set serverip 192.168.*.*
set ipaddr 192.168.*.*
protect off all
tftp 0x100000 u-boot.bin
erase 0x34000000 +0x800000
cp.b 0x100000 0x34000000 0x80000
tftp 0x500000 uImage
erase 0x34080000 +0x180000
cp.b 0x500000 0x34080000 0x180000
tftp 0x400000 rootfs
erase 0x34260000 0x347fffff
cp.b 0x400000 0x34260000 0x50000
setenv bootargs 'root=/dev/mtdblock/2 rw rootfstype=jffs2 console=ttyS0,115200 mem=40M mtdparts=phys_mapped_flash:512k(u-boot),1536k(kernel),5760k(fs)'
setenv bootcmd mw 7400000 0 300000\;bootm 0x34080000
saveenv
bootargs: 傳遞給linux內核的命令行參數
bootcmd:自動(dòng)啟動(dòng)時(shí)執行的幾條命令
bootargs定義命令行參數,通過(guò)bootm命令傳遞給內核
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。