diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-08-20 21:12:28 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-01-23 19:48:42 +0000 |
commit | 213b406ae3364913ef73ea027a38605107fcf78d (patch) | |
tree | 6370fdb2b17d62e1f8f2cd10e20f9baa06404045 /package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch | |
parent | 4356e2b58a20ffc15cb8b47018419461e79c6f2b (diff) | |
download | upstream-213b406ae3364913ef73ea027a38605107fcf78d.tar.gz upstream-213b406ae3364913ef73ea027a38605107fcf78d.tar.bz2 upstream-213b406ae3364913ef73ea027a38605107fcf78d.zip |
uboot-mediatek: update build for the U7623-02 board
Brings bootmenu and production/recovery dual-boot scheme like on
the BPi-R2, BPi-R64, E8450 and UniFi 6 LR.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch')
-rw-r--r-- | package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch b/package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch index f45462eeab..c24ecad42e 100644 --- a/package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch +++ b/package/boot/uboot-mediatek/patches/300-mt7622-generic-reset-button-ignore-env.patch @@ -17,13 +17,12 @@ DECLARE_GLOBAL_DATA_PTR; -@@ -20,7 +27,20 @@ int board_init(void) +@@ -20,7 +27,19 @@ int board_init(void) int board_late_init(void) { - gd->env_valid = 1; //to load environment variable from persistent store + struct udevice *dev; -+ int ret; + + if (!button_get_by_label(CONFIG_RESET_BUTTON_LABEL, &dev)) { + puts("reset button found\n"); |