From: Lothar Rubusch <l.rubusch@gmail.com>
To: u-boot@lists.denx.de, trini@konsulko.com, marex@denx.de,
simon.k.r.goldschmidt@gmail.com, tien.fong.chee@intel.com
Cc: l.rubusch@gmail.com
Subject: [PATCH v2 6/7] ARM: socfpga: add Enclustra AA1 boot scripts
Date: Tue, 17 Sep 2024 06:21:56 +0000 [thread overview]
Message-ID: <20240917062157.3181-7-l.rubusch@gmail.com> (raw)
In-Reply-To: <20240917062157.3181-1-l.rubusch@gmail.com>
Add support to boot Enclustra SoMs from MMC, SD or QSPI flash.
Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
---
board/enclustra/bootscripts/qspi-aa1.cmd | 12 ++++++++++++
board/enclustra/bootscripts/sd-aa1.cmd | 10 ++++++++++
2 files changed, 22 insertions(+)
create mode 100644 board/enclustra/bootscripts/qspi-aa1.cmd
create mode 100644 board/enclustra/bootscripts/sd-aa1.cmd
diff --git a/board/enclustra/bootscripts/qspi-aa1.cmd b/board/enclustra/bootscripts/qspi-aa1.cmd
new file mode 100644
index 0000000000..42d02cfce1
--- /dev/null
+++ b/board/enclustra/bootscripts/qspi-aa1.cmd
@@ -0,0 +1,12 @@
+# This is an example input file for boot.scr generation.
+# Generate boot.scr
+# ./tools/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d board/enclustra/bootscripts/qspi-aa1.cmd boot.scr
+#
+# NB: The needed variables need to be set in the environment.
+bridge enable
+sf probe
+sf read $kernel_addr_r $qspi_offset_addr_kernel $kernel_size
+sf read $fdt_addr_r $qspi_offset_addr_devicetree $fdt_size
+sf read $rootfs_addr_r $qspi_offset_addr_rootfs $rootfs_size
+run fdtload_qspi
+bootm $kernel_addr_r $rootfs_addr_r $fdt_addr_r
diff --git a/board/enclustra/bootscripts/sd-aa1.cmd b/board/enclustra/bootscripts/sd-aa1.cmd
new file mode 100644
index 0000000000..4beefc7e13
--- /dev/null
+++ b/board/enclustra/bootscripts/sd-aa1.cmd
@@ -0,0 +1,10 @@
+# This is an example input file for boot.scr generation.
+# Generate boot.scr
+# ./tools/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "U-boot mmc start script" -d board/enclustra/bootscripts/sd-aa1.cmd boot.scr
+#
+# NB: The needed variables need to be set in the environment.
+bridge enable
+fatload mmc $devnum:$distro_bootpart $kernel_addr_r Image
+fatload mmc $devnum:$distro_bootpart $fdt_addr_r $fdtfile
+run fdtload
+bootm $kernel_addr_r - $fdt_addr_r
--
2.25.1
next prev parent reply other threads:[~2024-09-18 6:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-17 6:21 [PATCH v2 0/7] add support for Enclustra Mercury AA1 SoMs Lothar Rubusch
2024-09-17 6:21 ` [PATCH v2 1/7] doc: board: enclustra: add Enclustra Intel AA1 SoM Lothar Rubusch
2024-09-17 6:21 ` [PATCH v2 2/7] ARM: dts: socfpga: add Enclustra Intel AA1 Lothar Rubusch
2024-09-17 6:21 ` [PATCH v2 3/7] ARM: socfpga: add Enclustra AA1 SoM support Lothar Rubusch
2024-09-22 21:27 ` Marek Vasut
2024-09-17 6:21 ` [PATCH v2 4/7] ARM: socfpga: add Enclustra AA1 extra env settings Lothar Rubusch
2024-09-22 21:28 ` Marek Vasut
2024-09-17 6:21 ` [PATCH v2 5/7] ARM: socfpga: add Enclustra AA1 demo env files Lothar Rubusch
2024-09-22 21:30 ` Marek Vasut
2024-09-17 6:21 ` Lothar Rubusch [this message]
2024-09-22 21:31 ` [PATCH v2 6/7] ARM: socfpga: add Enclustra AA1 boot scripts Marek Vasut
2024-09-17 6:21 ` [PATCH v2 7/7] ARM: socfpga: AA1: support MAC from secure eeprom Lothar Rubusch
2024-09-22 21:40 ` Marek Vasut
2024-09-22 15:26 ` [PATCH v2 0/7] add support for Enclustra Mercury AA1 SoMs Marek Vasut
2024-09-22 19:20 ` Lothar Rubusch
2024-09-22 21:11 ` Marek Vasut
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=20240917062157.3181-7-l.rubusch@gmail.com \
--to=l.rubusch@gmail.com \
--cc=marex@denx.de \
--cc=simon.k.r.goldschmidt@gmail.com \
--cc=tien.fong.chee@intel.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