mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
Merge jzboot as xburst-tools subdirectory
This commit is contained in:
25
jzboot/script/dump_minios.scr
Normal file
25
jzboot/script/dump_minios.scr
Normal file
@@ -0,0 +1,25 @@
|
||||
echo "Dumping script"
|
||||
nquery 0
|
||||
|
||||
#set NAND_RAW 1
|
||||
set NAND_ECCPOS 3
|
||||
rebuildcfg
|
||||
boot
|
||||
|
||||
echo "Configured for bootloader IO!"
|
||||
|
||||
ndump_oob 0 0 128 "dump/nand.bin"
|
||||
|
||||
set NAND_RAW
|
||||
set NAND_ECCPOS 8
|
||||
rebuildcfg
|
||||
boot
|
||||
|
||||
echo "Configuration restored"
|
||||
|
||||
ndump 0 128 66 "dump/loader.bin"
|
||||
ndump 0 256 1 "dump/def_boot.bin"
|
||||
ndump 0 512 3061 "dump/img_boot.bin"
|
||||
ndump 0 8192 8192 "dump/minios.bin"
|
||||
ndump 0 32768 32768 "dump/res.bin"
|
||||
|
||||
3
jzboot/script/ecc_boot.scr
Normal file
3
jzboot/script/ecc_boot.scr
Normal file
@@ -0,0 +1,3 @@
|
||||
set NAND_ECCPOS 3
|
||||
rebuildcfg
|
||||
boot
|
||||
3
jzboot/script/ecc_normal.scr
Normal file
3
jzboot/script/ecc_normal.scr
Normal file
@@ -0,0 +1,3 @@
|
||||
set NAND_ECCPOS 8
|
||||
rebuildcfg
|
||||
boot
|
||||
27
jzboot/script/flash_xz0032_linux.scr
Normal file
27
jzboot/script/flash_xz0032_linux.scr
Normal file
@@ -0,0 +1,27 @@
|
||||
#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 "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 512 uImage
|
||||
echo "Flashed kernel"
|
||||
|
||||
echo "Flashing rootfs"
|
||||
nprogram_oob 0 8192 rootfs.ubifs
|
||||
echo "Flashed rootfs"
|
||||
|
||||
echo "---- All done ----"
|
||||
42
jzboot/script/restore_minios.scr
Normal file
42
jzboot/script/restore_minios.scr
Normal file
@@ -0,0 +1,42 @@
|
||||
#11.12.2010 --rzk
|
||||
# orig from http://pastie.org/1368586
|
||||
# fixes by whitequark
|
||||
|
||||
echo "---- Restore MINIOS script ----"
|
||||
echo "Including initial config for 4750 XZ0032 board"
|
||||
source config/boot.cfg
|
||||
echo "jzboot successfully configured for XZ0032"
|
||||
|
||||
echo "Erasing all flash"
|
||||
nerase 0 0 4096
|
||||
echo "Erased all flash"
|
||||
|
||||
echo "Configuring for bootloader IO"
|
||||
source script/ecc_boot.scr
|
||||
echo "Configured for bootloader IO"
|
||||
|
||||
echo "Flashing SPL (nand.bin)"
|
||||
nprogram 0 0 nand.bin
|
||||
echo "Flashed SPL (nand.bin)"
|
||||
|
||||
echo "Configuring for standard IO"
|
||||
source script/ecc_normal.scr
|
||||
echo "Configured for standard IO"
|
||||
|
||||
echo "Flashing loader.bin"
|
||||
nprogram 0 128 dump/loader.bin
|
||||
echo "Flashed loader.bin"
|
||||
echo "Flashing def_boot.bin"
|
||||
nprogram 0 256 dump/def_boot.bin
|
||||
echo "Flashed def_boot.bin"
|
||||
echo "Flashing img_boot.bin"
|
||||
nprogram 0 512 dump/img_boot.bin
|
||||
echo "Flashed img_boot.bin"
|
||||
echo "Flashing minios.bin"
|
||||
nprogram 0 8192 dump/minios.bin
|
||||
echo "Flashed minios.bin"
|
||||
echo "Flashing res.bin"
|
||||
nprogram 0 32768 dump/res.bin
|
||||
echo "Flashed res.bin"
|
||||
|
||||
echo "---- All done ----"
|
||||
Reference in New Issue
Block a user