一、烧写厂家提供系统 1、烧写u-boot nfs 30000000 192.168.183.128:/home/share/jz2440/source/supply/u-boot.bin nand erase.part u-boot nand write 30000000 u-boot 2、烧写uImage(使用的是u-boot-1.6.2) nfs 30000000 192.168.183.128:/home/share/jz2440/source/supply/uImage nand erase kernel nand write 30000000 kernel 3、烧写yaffs2文件系统 nfs 30000000 192.168.183.128:/home/share/jz2440/source/supply/fs_mini_mdev.yaffs2 nand erase rootfs nand write.yaffs 30000000 260000 $(filesize) 4、设置启动参数 set bootargs console=ttySAC0,115200 root=/dev/mtdblock3 boot ifconfig eth0 192.168.183.127 up mount -t nfs -o nolock,vers=2 192.168.183.128:/home/share/jz2440/source /mnt 成功 5、以nfs启动 首先将fs_mini_mdev/etc/init.d/rcS里的ip地址改成:192.168.183.127 set bootargs noinitrd console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.183.128:/home/share/jz2440/source/supply/fs_mini_mdev ip=192.168.183.127:192.168.183.128:192.168.183.225:225.225.225.0::eth0:off init=/linuxrc boot 成功,如果不成功的话,插拔网线,多试几次!!! 二、烧写自己制作的系统 1、烧写u-boot nfs 30000000 192.168.183.128:/home/share/jz2440/source/my/u-boot.bin nand erase.part u-boot nand write 30000000 u-boot 2、烧写uImage nfs 30000000 192.168.183.128:/home/share/jz2440/source/my/uImage nand erase.part kernel nand write 30000000 kernel 3、烧写yaffs2文件系统 nfs 30000000 192.168.183.128:/home/share/jz2440/source/my/fs_mini_mdev_new.yaffs2 nand erase.part rootfs nand write.yaffs 30000000 260000 $filesize 4、设置启动参数 set bootargs console=ttySAC0,115200 root=/dev/mtdblock3 boot mount -t nfs -o nolock,vers=2 192.168.183.128:/home/share/jz2440/source /mnt 成功 5、以nfs启动 首先将fs_mini_mdev/etc/init.d/rcS里的ip地址改成:192.168.183.127 set bootargs console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.183.128:/home/share/jz2440/source/my/fs_mini_mdev_new ip=192.168.183.127:192.168.183.128:192.168.183.225:225.225.225.0::eth0:off init=/linuxrc boot 成功! |
|