mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 15:03:07 +00:00
uboot-mediatek: add missing LED command for OpenWrt One
The u-boot LED command "led_loop_done" is missing from the OpenWrt One NAND flash u-boot. Copy it from the OpenWrt One NOR flash u-boot default environment to fix this issue. Fixes: https://github.com/openwrt/openwrt/issues/17310 Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/17338 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
9f97e39a93
commit
5ef71eaafd
@ -520,7 +520,7 @@
|
|||||||
+_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title [33m$ver[0m"
|
+_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title [33m$ver[0m"
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/openwrt-one-spi-nand_env
|
+++ b/openwrt-one-spi-nand_env
|
||||||
@@ -0,0 +1,61 @@
|
@@ -0,0 +1,62 @@
|
||||||
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
||||||
+ipaddr=192.168.11.11
|
+ipaddr=192.168.11.11
|
||||||
+serverip=192.168.11.23
|
+serverip=192.168.11.23
|
||||||
@ -562,6 +562,7 @@
|
|||||||
+check_buttons=if button front ; then run boot_recovery ; run boot_tftp ; run led_loop_error ; else if button back ; then ; run usb_recover ; run led_loop_error ; fi ; fi
|
+check_buttons=if button front ; then run boot_recovery ; run boot_tftp ; run led_loop_error ; else if button back ; then ; run usb_recover ; run led_loop_error ; fi ; fi
|
||||||
+led_boot=led green on ; led white on ; led red on
|
+led_boot=led green on ; led white on ; led red on
|
||||||
+led_done=led green on ; led white off ; led red off
|
+led_done=led green on ; led white off ; led red off
|
||||||
|
+led_loop_done=led white off ; led green on ; echo done ; while true ; do sleep 1 ; done
|
||||||
+led_loop_error=led white off ; led green off ; while true ; do led red on ; sleep 1 ; led red off ; sleep 1 ; done
|
+led_loop_error=led white off ; led green off ; while true ; do led red on ; sleep 1 ; led red off ; sleep 1 ; done
|
||||||
+led_start=led white on ; led green off ; led red off
|
+led_start=led white on ; led green off ; led red off
|
||||||
+preboot=run led_boot
|
+preboot=run led_boot
|
||||||
|
Loading…
Reference in New Issue
Block a user