Linux-2.6.22
步驟:
1、 openjtag燒寫u-boot:(oflash與文件在同一目錄)
oflash 0 1 00 0 u-boot.bin
2、 u-boot下燒寫系統(TFTP)
關閉防火牆;
tftp 30000000uImage_4.3
nand erase kernel
nand write.jffs2 30000000 kernel
tftp 30000000 fs_mini_mdev.yaffs2
nand erase root
nand write.yaffs 30000000 0x00260000$(filesize)
3、 參考http://blog.csdn.net/liqinghan/article/details/8997252
4、 用openjtag燒寫內核、文件系統時,由於不能檢測壞塊,燒進去的文件校驗錯誤,而u-boot能檢測壞塊。所以用openjtag燒寫u-boot,然後在u-boot中用TFTP方式燒寫內核、文件系統。
Linux-3.4.2
步驟:
1、 openjtag燒寫u-boot:(oflash與文件在同一目錄)
oflash 0 1 00 0 u-boot.bin
2、 u-boot下燒寫系統(TFTP)
關閉防火牆;
tftp 30000000uImage_new
nand erase.partkernel
nand write.jffs2 30000000 kernel
tftp30000000 fs_mini_mdev_new.yaffs2
nand erase.part rootfs
nand write.yaffs 30000000 0x00260000$filesize
啓動:
1、在UBOOT裏設置機器ID:
set machid 16a // smdk2440 mach-smdk2440.c
或
set machid 7CF // mini2440 mach-mini2440.c
2、在UBOOT裏設置串口波特率:
set bootargs console=ttySAC0,115200 root=/dev/mtdblock3
3、 boot啓動