Browse Source

configs: starfive: Change boot order to try DHCP last

Currently, the boot order is DHCP, then MMC.

Trying DHCP boot first is not user-friendly, because it can take a long
time before falling back to MMC.  Also, network booting is usually not
wanted when a SD card is inserted.

Change order so that we first try MMC, and then fall back to DHCP if MMC
booting didn't work.

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Baptiste Jonglez 1 year ago
parent
commit
df3534e3ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/configs/starfive-jh7100.h

+ 2 - 2
include/configs/starfive-jh7100.h

@@ -48,8 +48,8 @@
 #endif
 
 /* HACK these should have '#if defined (stuff) around them like zynqp*/
-#define BOOT_TARGET_DEVICES(func)	func(DHCP, dhcp, na) \
-					func(MMC, mmc, 0)
+#define BOOT_TARGET_DEVICES(func)	func(MMC, mmc, 0) \
+					func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>