Yaffs Kernel Configuration

개발환경/opensource 2012. 6. 4. 23:29

1. Kernel Kconfig 수정 불필요 

   - 이미 설정되어 있으니까

 

2. kernel configuration file 수정   

  - make menuconfig로도 수정할 수 있으나 번거로움.

 

 

 CONFIG_YAFFS_FS=y

 CONFIG_YAFFS_YAFFS1=y

 CONFIG_YAFFS_YAFFS2=y

 CONFIG_YAFFS_AUTO_YAFFS2=y

 CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y

 

 

3. Kernel에 정상적으로 file system 설정되었는지 확인

 

 

 

# cat /proc/filesystems

nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev usbfs
nodev pipefs
nodev tmpfs
nodev cramfs
 squashfs
nodev ramfs
 msdos
 vfat
nodev nfs
nodev cifs
 ntfs
nodev jffs2
 yaffs
 yaffs2

4. App.에서 MTD Block, Yaffs2로 Mounting

 - /etc/fstab에 이미 있을 경우, 삭제하고 다시 Mounting 

 

 

 

 if(mount("/dev/mtdblock10", "/mnt/data", "yaffs2", 0, NULL) < 0)

{

   system("/bin/flash_eraseall /dev/mtd10");

   mount("/dev/mtdblock10", "/mnt/data", "yaffs2", 0, NULL);

}

 

 

'개발환경 > opensource' 카테고리의 다른 글

Cross Compile OpenSSL (MIPS)  (0) 2013.11.05
GTK Cross Compie for ARM  (0) 2012.06.04
basic opensource cross compile for ARM  (0) 2012.06.04
Directfb Cross Compile for ARM  (0) 2012.06.04
: