public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Caleb Ethridge <jcethrid@gmail.com>
To: u-boot@lists.denx.de
Cc: malysagreg@gmail.com, trini@konsulko.com, linux@analog.com,
	philip@philipmolloy.com,
	Caleb Ethridge <caleb.ethridge@analog.com>
Subject: [RESEND v2 05/13] mach-sc5xx: Add USB boot command
Date: Thu,  2 Apr 2026 11:28:28 -0400	[thread overview]
Message-ID: <004cd6c2c2d38df036ebbef8897a22ea3c8bbfcc.1775143241.git.jcethrid@gmail.com> (raw)
In-Reply-To: <cover.1775143241.git.jcethrid@gmail.com>

From: Caleb Ethridge <caleb.ethridge@analog.com>

Add the USB boot command to the environments
of the boards that support it.

Signed-off-by: Caleb Ethridge <caleb.ethridge@analog.com>
---
 board/adi/sc573-ezkit/sc573-ezkit.env         | 1 +
 board/adi/sc589-ezkit/sc589-ezkit.env         | 1 +
 board/adi/sc589-mini/sc589-mini.env           | 1 +
 board/adi/sc594-som-ezkit/sc594-som-ezkit.env | 1 +
 board/adi/sc598-som-ezkit/sc598-som-ezkit.env | 1 +
 include/env/adi/adi_boot.env                  | 7 +++++++
 6 files changed, 12 insertions(+)

diff --git a/board/adi/sc573-ezkit/sc573-ezkit.env b/board/adi/sc573-ezkit/sc573-ezkit.env
index 51157ff36aa..36bd207f410 100644
--- a/board/adi/sc573-ezkit/sc573-ezkit.env
+++ b/board/adi/sc573-ezkit/sc573-ezkit.env
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
 #define USE_SPI
 #define USE_RAM
 #define USE_MMC
+#define USE_USB
 
 #include <env/adi/adi_boot.env>
diff --git a/board/adi/sc589-ezkit/sc589-ezkit.env b/board/adi/sc589-ezkit/sc589-ezkit.env
index d068b44573f..a4a686158ca 100644
--- a/board/adi/sc589-ezkit/sc589-ezkit.env
+++ b/board/adi/sc589-ezkit/sc589-ezkit.env
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
 #define USE_RAM
 #define USE_MMC
 #define USE_SPI
+#define USE_USB
 
 #include <env/adi/adi_boot.env>
diff --git a/board/adi/sc589-mini/sc589-mini.env b/board/adi/sc589-mini/sc589-mini.env
index 3827cf4e9a5..2a322bc6761 100644
--- a/board/adi/sc589-mini/sc589-mini.env
+++ b/board/adi/sc589-mini/sc589-mini.env
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
 #define USE_RAM
 #define USE_SPI
 #define USE_MMC
+#define USE_USB
 
 #include <env/adi/adi_boot.env>
diff --git a/board/adi/sc594-som-ezkit/sc594-som-ezkit.env b/board/adi/sc594-som-ezkit/sc594-som-ezkit.env
index 69d2ec3ba03..a4c72f2e9c7 100644
--- a/board/adi/sc594-som-ezkit/sc594-som-ezkit.env
+++ b/board/adi/sc594-som-ezkit/sc594-som-ezkit.env
@@ -12,5 +12,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
 #define USE_OSPI
 #define USE_RAM
 #define USE_MMC
+#define USE_USB
 
 #include <env/adi/adi_boot.env>
diff --git a/board/adi/sc598-som-ezkit/sc598-som-ezkit.env b/board/adi/sc598-som-ezkit/sc598-som-ezkit.env
index b6f477c8402..754dcece976 100644
--- a/board/adi/sc598-som-ezkit/sc598-som-ezkit.env
+++ b/board/adi/sc598-som-ezkit/sc598-som-ezkit.env
@@ -12,5 +12,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
 #define USE_OSPI
 #define USE_RAM
 #define USE_MMC
+#define USE_USB
 
 #include <env/adi/adi_boot.env>
diff --git a/include/env/adi/adi_boot.env b/include/env/adi/adi_boot.env
index eb098dd2256..d6caa95325e 100644
--- a/include/env/adi/adi_boot.env
+++ b/include/env/adi/adi_boot.env
@@ -68,3 +68,10 @@ 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;
+	ext4load usb 0:1 ${loadaddr} /fitImage; run usbargs;
+	bootm ${loadaddr}
+#endif
-- 
2.34.1


  parent reply	other threads:[~2026-04-02 15:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 15:28 [RESEND v2 00/13] sc5xx Environment Cleanup and Fixes Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 01/13] configs: sc5xx: Do not store environment in SPI flash Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 02/13] mach-sc5xx: Remove update commands from default environment Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 03/13] mach-sc5xx: Update boot commands Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 04/13] mach-sc5xx: Switch from tftp to wget Caleb Ethridge
2026-04-02 15:28 ` Caleb Ethridge [this message]
2026-04-02 15:28 ` [RESEND v2 06/13] mach-sc5xx: Remove preliminary binman support Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 07/13] dts: sc594: Fix gige-reset line on EZKIT Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 08/13] mach-sc5xx: sc573: Rename EZKIT board to EZLITE Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 09/13] mach-sc5xx: Update image load address Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 10/13] mach-sc5xx: Update SPI bootargs for ubifs Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 11/13] configs: sc5xx: Set default bootcmd to SPI boot Caleb Ethridge
2026-04-02 15:28 ` [RESEND v2 12/13] arm: sc5xx: remove LOADADDR and use kernel_addr_r Caleb Ethridge
2026-04-06  2:22   ` Greg Malysa
2026-04-06 13:32     ` Caleb Ethridge
2026-04-06 17:48       ` Greg Malysa
2026-04-02 15:28 ` [RESEND v2 13/13] arm: sc5xx: add missing boot env selectors Caleb Ethridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=004cd6c2c2d38df036ebbef8897a22ea3c8bbfcc.1775143241.git.jcethrid@gmail.com \
    --to=jcethrid@gmail.com \
    --cc=caleb.ethridge@analog.com \
    --cc=linux@analog.com \
    --cc=malysagreg@gmail.com \
    --cc=philip@philipmolloy.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox