diff --git a/Makefile b/Makefile index 79063977..a71686c6 100644 --- a/Makefile +++ b/Makefile @@ -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' \ diff --git a/dist/README b/dist/README index 704e7571..3b8aa6c6 100644 --- a/dist/README +++ b/dist/README @@ -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 diff --git a/dist/idl4k.cfgresetusb b/dist/idl4k.cfgresetusb new file mode 100644 index 00000000..20a92e1d Binary files /dev/null and b/dist/idl4k.cfgresetusb differ diff --git a/patches/uboot-cfgresetusb.script b/patches/uboot-cfgresetusb.script new file mode 100644 index 00000000..8f68242b --- /dev/null +++ b/patches/uboot-cfgresetusb.script @@ -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