如何实现在nand上创建一个FAT分区
时间:10-02
整理:3721RD
点击:
[Description]
如何实现在nand上创建一个FAT分区,创建分区之后,可以实现无需插入T卡也能够进行拍照等基本功能。
[Solution]
1,请参照DCC文档《FAT on NAND Application Note》,修改
\alps\mediatek\config\{project}\ProjectConfig.mk
mtk_2SDCARD_SWAP=yes
MTK_MULTI_STORAGE_SUPPORT=yes
MTK_FAT_ON_NAND=yes
2,KK版本,需要修改\alps\mediatek\config\{platform}\init.no_ssd.rc
# MTK project .rc configure
#
# NO SHARED_SDCARD feature option
#
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard0 0700 root root
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/sdcard0
# Support legacy paths
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -
d /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -
d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
如何实现在nand上创建一个FAT分区,创建分区之后,可以实现无需插入T卡也能够进行拍照等基本功能。
[Solution]
1,请参照DCC文档《FAT on NAND Application Note》,修改
\alps\mediatek\config\{project}\ProjectConfig.mk
mtk_2SDCARD_SWAP=yes
MTK_MULTI_STORAGE_SUPPORT=yes
MTK_FAT_ON_NAND=yes
2,KK版本,需要修改\alps\mediatek\config\{platform}\init.no_ssd.rc
# MTK project .rc configure
#
# NO SHARED_SDCARD feature option
#
on init
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard0 0700 root root
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/sdcard0
# Support legacy paths
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -
d /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -
d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
我只想说我是来得金币的