applo - Burn Image
时间:2010-09-07 来源:jiangjqian
原先若是空Image可以通过uart boot下载u-boot到ddr中运行,可参考" ymodem under ubuntu "
接下是u-boot启动后,通过tftp下载Image通过nor write写入。
(1) Copy vmlinux.bin, rootfs.arm.jffs2 and appfs.jffs2 to /tftpboot.
You can get images from /target/output/flash_bin/$(SYSTEM_MAKEFILE_DIR)-$(STB_HW_CONFIG)-$(STB_SW_CONFIG)-$(_TMTOOLCHAIN)-$(GCC_VERSION)-$(_TMTGTOS)-$(_TMTGTREL)
(2) Reboot IRD. If you see "Hit any key to stop autoboot: " at serial port, please press any key.
(3) Commands at Uboot.
We need to set the following before flashing all images(uldr.bin,u-boot.bin,vmlinux,rootfs and appfs)
Apollo # setenv serverip <serverip addr>
Apollo # dhcp
Apollo # saveenv
Flash uldr(do this only you are upgrading the image from Beta4 to beta5)
#nor erase 0x0 0x100000
#tftp uldr.bin
#nor write 0x8000 0x0 0x100000
Flash uboot(do this only you are upgrading the image from Beta4 to beta5)
#nor erase 0x100000 0x80000
#tftp u-boot.bin
#nor write 0x8000 0x100000 0x80000
Flash vmlinux:
Apollo # tftp vmlinux.bin
Apollo # nor write kernel (OR nor write 0x8000 0x180000 0x400000)
Flash rootfs:
Apollo # tftp rootfs.arm.jffs2
Apollo # nor write rootfs ( OR nor write 0x8000 0x700000 0x2000000) (This will take approx 8-10 mins)
Flash appfs:
Apollo # tftp appfs.jffs2
Apollo # nor write appfs ( OR nor write 0x8000 0x2700000 0x2000000) (This will take approx 8-10 mins)