这篇文章只做备忘之用,
以前的参数(主要):
mtddevname=bootloader
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k(bootloader),128k(params),2m(kernel),-(root)
bootargs=noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
set mtddevname bootloader
set mtdids nand0=nandflash0
set mtdparts mtdparts=nandflash0:256k(bootloader),128k(params),2m(kernel),-(root)
set bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
下面是原本截图:
更改U-boot后的参数:
baudrate=115200
bootargs=noinitrd root=/dev/nfs nfsroot=192.168.1.113:/work/nfs_root/fs_mini_mdev_new ip=192.168.1.17:192.168.1.19:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0,115200 user_debug=0xff
bootcmd=nand read.jffs2 0x30007FC0 kernel; bootm 0x30007FC0
bootdelay=3
ethact=dm9000
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.1.17
mtdids=nand0=jz2440-0
mtdparts=mtdparts=jz2440-0:256k(u-boot),128k(params),2m(kernel),-(rootfs)
netmask=255.255.255.0
serverip=192.168.7.11
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=u-boot
machid=16a
filesize=3474
设置内核参数:
set bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.113:/work/nfs_root/fs_mini_mdev_new ip=192.168.1.17:192.168.1.19:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0,115200 user_debug=0xff
为了方便网络启动,这里附上命令:
nfs 30000000 192.168.1.113:/work/nfs_root/uImage_wifi ; bootm 30000000