mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 01:28:59 +00:00
213b406ae3
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>
22 lines
495 B
Diff
22 lines
495 B
Diff
--- 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) {
|