FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed May 12, 2021 01:20



Post new topic Reply to topic  [ 7 posts ] 
ntfs-3g porting 
Author Message

Joined: Tue Jul 22, 2014 09:06
Posts: 4
Post ntfs-3g porting
I can run ntfs-3g on my PC.

john@john-desktop:~/trunk/foxconn/targetFiles/bin$ ntfs-3g -help

ntfs-3g 1.2216 external FUSE 27 - Third Generation NTFS Driver

Copyright (C) 2006-2008 Szabolcs Szakacsits
Copyright (C) 2005-2007 Yura Pakhuchiy

Usage: ntfs-3g <device|image_file> <mount_point> [-o option[,...]]

Options: ro (read-only mount), force, remove_hiberfile, locale=,
uid=, gid=, umask=, fmask=, dmask=, streams_interface=,
syncio.
Please see the details in the manual.

Example: ntfs-3g /dev/sda1 /mnt/win -o force

Ntfs-3g news, support and information: http://ntfs-3g.org
john@john-desktop:~/trunk/foxconn/targetFiles/bin$



But I copy the file to my embedded arm system. The following log will be showed.

172.19.80.156 # ntfs-3g -help
/bin/ntfs-3g: line 1: syntax error: "(" unexpected
172.19.80.156 #



Please give a help. Thanks!


Tue Jul 22, 2014 12:11
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g porting
Hi,

Quote:
But I copy the file to my embedded arm system...

Most likely, your embedded system is not binary-compatible with your PC.
You may have to recompile ntfs-3g (a recent version would be best).
Quote:
Please give a help. Thanks!

The outputs of the following commands would be useful :
Code:
uname -a
lsmod | grep fuse

Regards

Jean-Pierre


Tue Jul 22, 2014 20:59
Profile

Joined: Tue Jul 22, 2014 09:06
Posts: 4
Post Re: ntfs-3g porting
I use the packet of ntfs-3g_ntfsprogs-2014.2.15.

I think that it is newest.

===================================
Most likely, your embedded system is not binary-compatible with your PC.
You may have to recompile ntfs-3g (a recent version would be best).
===================================

Can you explain it in detail? Thanks!


Thu Jul 24, 2014 04:33
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g porting
Hi,

Quote:
I use the packet of ntfs-3g_ntfsprogs-2014.2.15.

This adds another mystery, as this cannot the one which outputs :
Code:
john@john-desktop:~/trunk/foxconn/targetFiles/bin$ ntfs-3g -help

ntfs-3g 1.2216 external FUSE 27 - Third Generation NTFS Driver

You said :
Quote:
But I copy the file to my embedded arm system.

But I do not understand your configuration, what you have done, and, above all, what you should have done.

So, please describe how you did "copy the file to my embedded arm system", and what is the configuration of your embedded system. You said you tried the following command from your embedded system :
Code:
172.19.80.156 # ntfs-3g -help

Now get into the same conditions, and enter the following commands :
Code:
uname -a
lsmod | grep fuse

Then post the output of these commands.
Quote:
Can you explain it in detail? Thanks!

I need more information to put you on the right track....

Regards

Jean-Pierre


Thu Jul 24, 2014 08:56
Profile

Joined: Tue Jul 22, 2014 09:06
Posts: 4
Post Re: ntfs-3g porting
I use the following command to build image.
./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux
make;make install

I checked the result on my PC.
john@john-desktop:~/ntfs/ntfs-3g_ntfsprogs-2014.2.15/src$ ./ntfs-3g -help

ntfs-3g 2014.2.15 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information: http://tuxera.com
john@john-desktop:~/ntfs/ntfs-3g_ntfsprogs-2014.2.15/src$



I copied to files to my source code folder to emerge the files to file system.

I loaded the image to my linux embedded system to run the command.
172.19.80.156 # ./ntfs-3g -help
mkdir: cannot create directory '/bin/.libs': Read-only file system
./ntfs-3g: cd: line 1: can't cd to /home/john/ntsf/ntfs-3g_ntfsprogs-2014.2.15/src
./ntfs-3g: eval: line 1: gcc: not found
172.19.80.156 #


172.19.80.156 # uname -a
Linux bcm911198 2.6.27.47 #12 PREEMPT Mon Jul 28 09:13:14 CST 2014 armv6l unknown
172.19.80.156 # lsmod | grep fuse
fuse 56284 0
172.19.80.156 #

Do you have any suggestion? Thanks!


Mon Jul 28, 2014 11:33
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs-3g porting
Hi,

The configuration is more clear to me now.
Code:
./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux
make;make install

Ok, you are cross-compiling. I suggest you remove the "make install", there is too much risk of damaging your running configuration. After the make, you should get the following files :
Code:
[linux@dimension ntfs-3g]$ ls -og src/.libs/ntfs-3g libntfs-3g/.libs/libntfs-3g.so*
lrwxrwxrwx 1      20 Jul 28 21:35 libntfs-3g/.libs/libntfs-3g.so -> libntfs-3g.so.85.0.0
lrwxrwxrwx 1      20 Jul 28 21:35 libntfs-3g/.libs/libntfs-3g.so.85 -> libntfs-3g.so.85.0.0
-rwxrwxr-x 1 1031068 Jul 28 21:35 libntfs-3g/.libs/libntfs-3g.so.85.0.0
-rwxrwxr-x 1  311800 Jul 28 21:35 src/.libs/ntfs-3g

You probably only need src/.libs/ntfs-3g and libntfs-3g/.libs/libntfs-3g.so.85.0.0 (you may get a different version number).
Quote:
I checked the result on my PC.
john@john-desktop:~/ntfs/ntfs-3g_ntfsprogs-2014.2.15/src$ ./ntfs-3g -help

ntfs-3g 2014.2.15 integrated FUSE 27 - Third Generation NTFS Driver

You cannot check the result of the above make on a PC with a different CPU model. You probably switched to another directory and tested the result of another make. This is meaningless and creates confusion.
Quote:
I copied to files to my source code folder to emerge the files to file system.

I do not understand the above statement.
Quote:
I loaded the image to my linux embedded system to run the command.

You need to copy the two files resulting from your make (ntfs-3g and libntfs-3g.so.85.0.0 from their respective directories on your PC). ntfs-3g can go anywhere, but libntfs-3g.so.85.0.0 is expected by default in /lib You also should set two symlinks in /lib on the embedded system (assuming this is not in read-only storage).
Code:
ln -s libntfs-3g.so.85.0.0 /lib/libntfs-3g.so.85
ln -s libntfs-3g.so.85.0.0 /lib/libntfs-3g.so

Check the file and symlinks by issuing :
Code:
ls -l /lib/libntfs-3g*

Code:
172.19.80.156 # uname -a
Linux bcm911198 2.6.27.47 #12 PREEMPT Mon Jul 28 09:13:14 CST 2014 armv6l unknown
172.19.80.156 # lsmod | grep fuse
fuse 56284 0

This is as expected. Good luck.

Jean-Pierre


Mon Jul 28, 2014 22:23
Profile

Joined: Tue Jul 22, 2014 09:06
Posts: 4
Post Re: ntfs-3g porting
My embedded system needs to use Broadcom's compiler.

I changed my configuration.
./configure --host=arm-linux --prefix=$PWD/../../output/arm-linux CC=arm-wrs-linux-gnueabi-gcc

And I followed your steps to port it.

The system can support NTFS.

Thank you very much.


Tue Jul 29, 2014 05:04
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.