mach-sc5xx: Add USB boot command
Add the USB boot command to the environments of the boards that support it. Signed-off-by: Caleb Ethridge <caleb.ethridge@analog.com>
This commit is contained in:
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_SPI
|
||||
#define USE_RAM
|
||||
#define USE_MMC
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -9,5 +9,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_NFS
|
||||
#define USE_SPI
|
||||
#define USE_RAM
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_RAM
|
||||
#define USE_MMC
|
||||
#define USE_SPI
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_RAM
|
||||
#define USE_SPI
|
||||
#define USE_MMC
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_OSPI
|
||||
#define USE_RAM
|
||||
#define USE_MMC
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_OSPI
|
||||
#define USE_RAM
|
||||
#define USE_MMC
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
|
||||
#define USE_OSPI
|
||||
#define USE_RAM
|
||||
#define USE_MMC
|
||||
#define USE_USB
|
||||
|
||||
#include <env/adi/adi_boot.env>
|
||||
|
||||
Vendored
+8
@@ -67,3 +67,11 @@ ramboot=wget ${loadaddr} ${serverip}:/fitImage;
|
||||
run ramargs;
|
||||
bootm ${loadaddr}
|
||||
#endif
|
||||
|
||||
#if defined(USE_USB)
|
||||
usbargs=setenv bootargs root=/dev/sda2 rw rootfstype=ext4 rootwait ${adi_bootargs}
|
||||
usbboot=usb start;
|
||||
run usbargs;
|
||||
ext4load usb 0:1 ${loadaddr} /fitImage;
|
||||
bootm ${loadaddr}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user