add cfgresetusb uboot script

This commit is contained in:
Jaroslav Kysela 2015-08-10 15:09:15 +02:00
parent e45c18b9b5
commit c8f8ed8839
4 changed files with 13 additions and 2 deletions

View File

@ -89,7 +89,7 @@ endef
all: kernel-axe-modules kernel
.PHONY: release
release: kernel-axe-modules out/idl4k.scr out/idl4k.cfgreset out/idl4k.recovery
release: kernel-axe-modules out/idl4k.scr out/idl4k.cfgreset out/idl4k.cfgresetusb out/idl4k.recovery
-ls -la out
.PHONY: dist
@ -151,6 +151,11 @@ out/idl4k.cfgreset: patches/uboot-cfgreset.script
-n 'Reset satip-axe fw configuration' \
-d patches/uboot-cfgreset.script out/idl4k.cfgreset
out/idl4k.cfgresetusb: patches/uboot-cfgresetusb.script
$(TOOLPATH)/mkimage -T script -C none \
-n 'Reset satip-axe fw configuration (USB)' \
-d patches/uboot-cfgresetusb.script out/idl4k.cfgresetusb
out/idl4k.recovery: patches/uboot-recovery.script
$(TOOLPATH)/mkimage -T script -C none \
-n 'Restore original idl4k fw' \

5
dist/README vendored
View File

@ -102,7 +102,10 @@ Misc:
Recovery from the wrong configuration:
- it works with firmware build 10 and later
- copy idl4k.cfgreset file as idl4k.scr file to the root directory on the USB stick
- for flashed firmware:
- copy idl4k.cfgreset file as idl4k.scr file to the root directory on the USB stick
- for firmare on the USB stick:
- copy idl4k.cfgresetusb file as idl4k.scr file to the root directory on the USB stick
- plug the USB stick to the upper USB port in box
- turn on the box
- the old configuration file is moved to /etc/sysconfig/config.old

BIN
dist/idl4k.cfgresetusb vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,3 @@
fatload usb 0 $load_addr satip-axe-@VERSION@.fw
set bootargs console=ttyAS0,115200 bigphysarea=20000 axecfg=reset
bootm $load_addr