jffs/jffs2

作者在 2015-06-23 21:13:52 发布以下内容

cd /home / uclinux-dist

make menuconfig

  select customize kernek setting

  customize cerdor/user setting

esc  esc

loadable mudule support

space

 

enablet loadable module support

est

select memort technology decice

MTD support

debugging

MTD partitioning support

direct char device access to MTD layers

caching block device access to MTD device

 

secect NAND Flash Device Drivers

space 

NAND Device Support

NAND Flash device on ARMSYS board

esc

file system

journalling flash file system

jffsw debugging verbositu

esc

flash tools

mud-utils

erase

eraseall

mkfs.jffs2

esc

busybox

mount

umount

vi

esc

 

/dev>cd  /var/tmp

/var/tmp >mkdir jffs2

/var/tmp >c

/var/tmp/jffs2> vi file1

hello this is JFFS2 on Nandflash.

/var/tmp/jffs2>mkdir folder1

/var/tmp/jffs2>mkdir folder2

 

/var/tmp/jffs2>mkdir folder3

/var/tmp/jffs2>cd..

/var/tmp>mkfs.jffs2 -d jffs2 -o jffs2.img

/var/tmp>ls

jffs2

jffs2.img

/var/tmp>eraseall /dev/mtd0

....................

/var/tmp>cp jffs2.img /dev/mtd0

MTD_open

MTD_write

MTD_close

/var/tmp>

 

 

/var/tmp>mount -t jffs2/dev/mtdblock0/mnt

/var/tmp>cd /mnt

/mnt>ls

file1

folder1

folder2

 

 

默认分类 | 阅读 2398 次
文章评论,共0条
游客请输入验证码
浏览109835次
文章分类