2.1、操作目录在/home/yaffs/目录下进行
使用mkyaffs2image-128M指令压缩root_qtopia为root_qtopia.img镜像文件
2.2、启动YAFFS启动参数:
setenv bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
2.3、烧写YAFFS至NandFlash
将root_qtopia.img拷贝至/tftpboot/
在SecureCRT中依次输入:
SMDK2440A>tftp 0x30008000 root_qtopia.img
// 通过tftp server下载root_qtopia.img至开发板内存0x30008000 地址处
SMDK2440A>nand erase 0x560000 $filesize
//首先擦除Nand Flash从0x560000 开始,大小为0x3dac00的空间,来存放root_qtopia.img
SMDK2440A>nand write.yaffs 0x30008000 0x560000 $filesize
//烧写root_qtopia.img至0x560000 开始的Nand Flash
SMDK2440A> boot //启动Linux系统
