USB、SD卡烧写liunx系统

usb烧写
nand device 0
nand erase
usbstart
cp2rom usb 0 u-boot.rom 0x0      //uboot一般不用换
usbload zvmlinux.bin 0xa2000000
nand write 0xa2000000 0x0 0x600000
usbload logo.bmp 0xa2000000
nand write 0xa2000000  0xc00000 0x400000
usbload rootfs.image 0xa2000000
nand write.yaffs 0xa2000000 0x2000000 0x1600000


sd烧写
cp2rom u-boot.rom 0x0  //uboot一般不用换
sdload zvmlinux.bin 0xa2000000
nand write 0xa2000000 0x0 0x600000
sdload logo.bmp 0xa2000000
nand write 0xa2000000  0xc00000 0x400000
sdload rootfs.image 0xa2000000
nand write.yaffs 0xa2000000 0x2000000 0x1600000




setenv bootargs "mem=512m,128m,64m debug console=uart,mmio,0xb0224000,115200n8 video=c2fb:viod,720p,60,fbcm:16M root=ramfs"
set bootcmd "nand device 0;nand read 0xa0000000 0xc00000 0x400000;logo init;nand read 0xa0000000 0x0 0x600000;go"
save


然后开机
系统启动后,挂载u盘,把work包解压到板子上。
mount /dev/sda1 /mnt
cd /mnt
tar  xzvf  /mnt/work包名   -C  /home   把包解压到home下


然后重启。               







你可能感兴趣的:(linux)