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/500-board-mt7623-fix-mmc-detect.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/500-board-mt7623-fix-mmc-detect.patch')
-rw-r--r-- | package/boot/uboot-mediatek/patches/500-board-mt7623-fix-mmc-detect.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/boot/uboot-mediatek/patches/500-board-mt7623-fix-mmc-detect.patch b/package/boot/uboot-mediatek/patches/500-board-mt7623-fix-mmc-detect.patch new file mode 100644 index 0000000000..2f0ed85e53 --- /dev/null +++ b/package/boot/uboot-mediatek/patches/500-board-mt7623-fix-mmc-detect.patch @@ -0,0 +1,21 @@ +--- a/board/mediatek/mt7623/mt7623_rfb.c ++++ b/board/mediatek/mt7623/mt7623_rfb.c +@@ -9,6 +9,7 @@ + #include <env.h> + #include <init.h> + #include <mmc.h> ++#include <part.h> + #include <asm/global_data.h> + #include <linux/delay.h> + +@@ -31,8 +32,9 @@ int mmc_get_boot_dev(void) + { + int g_mmc_devid = -1; + char *uflag = (char *)0x81DFFFF0; ++ struct blk_desc *desc; + +- if (!find_mmc_device(1)) ++ if (blk_get_device_by_str("mmc", "1", &desc) < 0) + return 0; + + if (strncmp(uflag,"eMMC",4)==0) { |