아래 방법을 참고하여 테스트를 진행해 보시길 바랍니다.
PATH : /android/device/samsung/smdk4412
FILE : init.smdk4412.rc
[수정 전]
on init
start watchdogd
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard2 000 root root
mkdir /storage/sdcard1 000 root root
mkdir /storage/usb 0000 system system
export EXTERNAL_STORAGE
/storage/emulated/legacy
export SECONDARY_STORAGE
/storage/sdcard1:/storage/sdcard2:/storage/usb
export EMULATED_STORAGE_SOURCE
/mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy
/storage/sdcard0
symlink /mnt/shell/emulated/0
/storage/emulated/legacy
[수정 후]
on init
start watchdogd
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard 0000 root root
mkdir /storage/usb 0000 system system
export EXTERNAL_STORAGE
/storage/emulated/legacy
export SECONDARY_STORAGE
/storage/sdcard:/storage/usb
export EMULATED_STORAGE_SOURCE
/mnt/shell/emulated
export EMULATED_STORAGE_TARGET
/storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy
/storage/sdcard0
symlink /mnt/shell/emulated/0
/storage/emulated/legacy
symlink /storage/sdcard /mnt/ext_sd
PATH : /android/device/samsung/smdk4412
FILE : BoardConfigCommon.mk
[수정 전]
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 685768704
BOARD_USERDATAIMAGE_PARTITION_SIZE := 685768704
BOARD_CACHEIMAGE_PARTITION_SIZE := 553648128
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 4096
[수정 후]
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 685768704
BOARD_USERDATAIMAGE_PARTITION_SIZE := 14994636800
BOARD_CACHEIMAGE_PARTITION_SIZE := 553648128
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 4096
위 사항을 적용한 다음에 새롭게 컴파일하여 생성된 이미지를 보드에 write합니다.
이때 “fdisk”설정은 다음과 같이 진행하시길 바랍니다.
MV4412 # fdisk -c 0 700 2400 500
Count: 10000
NAME: S5P_MSHC4
fdisk is completed
partion # size(MB)
block start # block count partition_Id
1
36
7519215
75570 0x0C
2
701
136026
1435830 0x83
3
2402
1571856
4919607 0x83
4
501
6491463 1027752
0x83
새롭게 이미지를 적용한 후에 부팅을 하시면 아래와 같이 설정 된 것을 확인 하실 수 있습니다.
shell@android:/ $ df
Filesystem
Size Used Free Blksize
/dev
356M 32K 356M 4096
/mnt/secure
356M 0K 356M 4096
/mnt/asec
356M 0K 356M 4096
/mnt/obb
356M 0K 356M 4096
/system
643M 193M 450M 4096
/cache
486M 16M 469M 4096
/data
2G 118M 2G 4096
/mnt/shell/emulated 2G
118M 2G 4096
shell@android:/ $
PC 인식