- 论坛徽章:
- 0
|
nand flash uboot启动Linux系统 问题
1.要想nand flash方式启动Linux,是不是要先把uboot下载到nand flash中,如何操作?
(通过H-JTAG下载uboot.bin到mini2440 nand flash ???
还是在norflash uboot启动后,#cp.b )
2.把uImage拷贝到nand flash中
先#tftp 31000000 uImage (把宿主机中的uImage通过网络tftp方式下载到mini2440内存地址31000000)
然后#nand write 31000000 0 300000 (nand write - addr off|partition size)
我如何确认uImage size的大小??? (300000)
[u-boot@MINI2440]# nand write 31000000 0 300000
NAND write: device 0 offset 0x0, size 0x300000
Writing at 0x20000 -- NAND write to offset 64 failed 0
0 bytes written: ERROR
这又是怎么回事??? (ERROR)
3.设置bootcmd参数
[u-boot@MINI2440]# setenv bootcmd 'cp.b xxxx 31000000 300000(size); bootm 31000000'
xxxx处,应该为nand flash中uImage的地址,如何确认这个地址???
size的大小,如何确认??? (300000)
4.关于rootfs
我在宿主机制作了根文件rootfs
我是不是要把rootfs写到nand flash,如何操作??? (先tftp .img再nand write? addr 和 size 如何确定)
5.
是不是nand flash中有了uImage和rootfs,bootcmd参数正确就可以从nand flash正常启动系统了???
|
|