From 56cd69db56c1775fbab8327e9ccf99c910053552 Mon Sep 17 00:00:00 2001 From: Dmitriy Beykun Date: Sun, 12 Dec 2010 00:27:37 +0300 Subject: [PATCH] Added minios restore script. --- script/restore_minios.scr | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 script/restore_minios.scr diff --git a/script/restore_minios.scr b/script/restore_minios.scr new file mode 100644 index 0000000..c104bd9 --- /dev/null +++ b/script/restore_minios.scr @@ -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 script/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 ----"