- 論壇徽章:
- 0
|
nand flash uboot啟動(dòng)Linux系統(tǒng) 問(wèn)題
1.要想nand flash方式啟動(dòng)Linux,是不是要先把uboot下載到nand flash中,如何操作?
(通過(guò)H-JTAG下載uboot.bin到mini2440 nand flash ???
還是在norflash uboot啟動(dòng)后,#cp.b )
2.把uImage拷貝到nand flash中
先#tftp 31000000 uImage (把宿主機(jī)中的uImage通過(guò)網(wǎng)絡(luò)tftp方式下載到mini2440內(nèi)存地址31000000)
然后#nand write 31000000 0 300000 (nand write - addr off|partition size)
我如何確認(rèn)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.設(shè)置bootcmd參數(shù)
[u-boot@MINI2440]# setenv bootcmd 'cp.b xxxx 31000000 300000(size); bootm 31000000'
xxxx處,應(yīng)該為nand flash中uImage的地址,如何確認(rèn)這個(gè)地址???
size的大小,如何確認(rèn)??? (300000)
4.關(guān)于rootfs
我在宿主機(jī)制作了根文件rootfs
我是不是要把rootfs寫到nand flash,如何操作??? (先tftp .img再nand write? addr 和 size 如何確定)
5.
是不是nand flash中有了uImage和rootfs,bootcmd參數(shù)正確就可以從nand flash正常啟動(dòng)系統(tǒng)了???
|
|