|
主机平台: UBUNTU14.04
硬件平台:明远智睿MY-IMX6UL-EK140P
内核版本 :linux-4.1.15
交叉编译链:arm-poky-linux-gnueabi(gcc version 5.3)
1.下载源码:
http://www.tuxera.com/community/ntfs-3g-download/
2.解压进入源码目录:
$ tar xvf ntfs-3g_ntfsprogs-2017.3.23.tgz
$ cd ntfs-3g_ntfsprogs-2017.3.23/
3.配置交叉编译环境变量:
切换root用户:
$ sudo -i
配置:
$ source /home/myzr/my-work/03_toolchain/fsl-imx-x11-glibc-x86_64-meta-toolchain-qt5-cortexa7hf-neon-toolchain-4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
4.配置:
$ ./configure --host=arm-poky-linux-gnueabi --prefix=$PWD/install/usr --exec-prefix=$PWD/install
5.编译安装:
$ make
$ make install
6.修改内核配置:
进入内核目录进入配置:
$ cd /home/myzr/my-work/02_source/linux-4.1.15/
$ make menuconfig
File systems --->
<*> FUSE (Filesystem in Userspace) support
<*>Character device in Userspace support
-*- Native language support --->
<*> Codepage 437 (United States, Canada)
<*> Simplified Chinese charset (CP936, GB2312)
<*> ASCII (United States)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)
<*> NLS UTF-8
DOS/FAT/NT Filesystems --->
< > NTFS file system support
7.编译出内核镜像:
$ make zImage
8.更新内核镜像到开发板中
9.打包ntfs-3g工具和库:
$ cd ntfs-3g_ntfsprogs-2017.3.23/install/
$ tar cjf ntfs-3g.tar.bz2 *
10.测试:
解压刚才的压缩包到根目录:
# tar xvf ntfs-3g.tar.bz2 -C /
检查版本:
# ntfs-3g
ntfs-3g: No device is specified.
ntfs-3g 2017.3.23 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-2017 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
挂载:
# ntfs-3g /dev/sda1 /mnt/
取消挂载:
# umount /mnt/
|
|