mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 04:28:58 +02:00
Added typical XZ0032 linux flash script.
This commit is contained in:
parent
56cd69db56
commit
64290a8df0
34
script/flash_xz0032_linux.scr
Normal file
34
script/flash_xz0032_linux.scr
Normal file
@ -0,0 +1,34 @@
|
||||
#11.12.2010 --rzk
|
||||
# orig from http://pastie.org/1368585
|
||||
# fixes by whitequark
|
||||
|
||||
echo "---- Linux kernel+loader+rootfs flashing script ----"
|
||||
echo "Including initial config for 4750 XZ0032 board"
|
||||
|
||||
source config/boot.cfg
|
||||
|
||||
echo "jzboot successfully configured for XZ0032"
|
||||
|
||||
echo "Configuring for bootloader IO"
|
||||
source script/ecc_boot.scr
|
||||
echo "Configured for bootloader IO"
|
||||
|
||||
echo "Erasing all flash"
|
||||
nerase 0 0 4096
|
||||
echo "Erased all flash"
|
||||
echo "Flashing loader"
|
||||
nprogram 0 0 u-boot-nand.bin
|
||||
echo "Flashed loader"
|
||||
echo "Flashing kernel"
|
||||
nprogram 0 2048 uImage
|
||||
echo "Flashed kernel"
|
||||
|
||||
echo "Configuring for standard IO"
|
||||
source script/ecc_normal.scr
|
||||
echo "Configured for standard IO"
|
||||
|
||||
echo "Flashing rootfs"
|
||||
nprogram 0 4096 rootfs.yaffs2
|
||||
echo "Flashed rootfs"
|
||||
|
||||
echo "---- All done ----"
|
Loading…
Reference in New Issue
Block a user