public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
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,
	sumit.garg@linaro.org
Cc: sjg@chromium.org, xypron.glpk@gmx.de, michal.simek@amd.com,
	jit.loon.lim@intel.com, barnas@google.com, l.rubusch@gmail.com
Subject: [PATCH 06/10] ARM: socfpga: add Mercury+ AA1 boot scripts
Date: Sun, 13 Oct 2024 14:32:28 +0000	[thread overview]
Message-ID: <20241013143232.2090645-7-l.rubusch@gmail.com> (raw)
In-Reply-To: <20241013143232.2090645-1-l.rubusch@gmail.com>

Add bootscripts to boot Enclustra SoMs from MicroSD card or QSPI flash.
MicroSD card as bood device here covers the cases of sdmmc or emmc as
such boot media.

Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com>
---
 board/enclustra/bootscripts/qspi-aa1.cmd | 12 ++++++++++++
 board/enclustra/bootscripts/sd-aa1.cmd   |  9 +++++++++
 2 files changed, 21 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..65bee32767
--- /dev/null
+++ b/board/enclustra/bootscripts/sd-aa1.cmd
@@ -0,0 +1,9 @@
+# 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 zImage
+fatload mmc $devnum:$distro_bootpart $fdt_addr_r $fdtfile
+bootz $kernel_addr_r - $fdt_addr_r
-- 
2.25.1


  parent reply	other threads:[~2024-10-14  2:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-13 14:32 [PATCH 00/10] add support for Enclustra Mercury AA1 SoMs Lothar Rubusch
2024-10-13 14:32 ` [PATCH 01/10] doc: board: enclustra: add Enclustra Mercury+ AA1 Lothar Rubusch
2024-10-13 14:32 ` [PATCH 02/10] ARM: socfpga: add Mercury+ AA1 SoM support Lothar Rubusch
2024-10-14 17:43   ` Marek Vasut
2024-10-18 21:47     ` Lothar Rubusch
2024-10-20  2:51       ` Marek Vasut
2024-10-23 20:10         ` Lothar Rubusch
2024-10-27 15:25           ` Marek Vasut
2024-11-19 22:35             ` Lothar Rubusch
2024-10-13 14:32 ` [PATCH 03/10] ARM: dts: socfpga: add Mercury+ AA1 for u-boot dts Lothar Rubusch
2024-10-14 17:47   ` Marek Vasut
2024-10-18 21:57     ` Lothar Rubusch
2024-10-20  2:52       ` Marek Vasut
2024-10-13 14:32 ` [PATCH 04/10] ARM: socfpga: add Enclustra storage switch Lothar Rubusch
2024-10-14 17:51   ` Marek Vasut
2024-10-13 14:32 ` [PATCH 05/10] ARM: socfpga: add Mercury+ AA1 extra env settings Lothar Rubusch
2024-10-14 17:52   ` Marek Vasut
2024-10-13 14:32 ` Lothar Rubusch [this message]
2024-10-14 17:52   ` [PATCH 06/10] ARM: socfpga: add Mercury+ AA1 boot scripts Marek Vasut
2024-10-13 14:32 ` [PATCH 07/10] ARM: socfpga: AA1: support MAC from secure eeprom Lothar Rubusch
2024-10-13 14:32 ` [PATCH 08/10] misc: atsha204a: update kconfig description Lothar Rubusch
2024-10-14 17:57   ` Marek Vasut
2024-10-13 14:32 ` [PATCH 09/10] ARM: dts: arria10: update according to DTSpec Lothar Rubusch
2024-10-13 14:32 ` [PATCH 10/10] ARM: socfpga: update function call to modern API Lothar Rubusch

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=20241013143232.2090645-7-l.rubusch@gmail.com \
    --to=l.rubusch@gmail.com \
    --cc=barnas@google.com \
    --cc=jit.loon.lim@intel.com \
    --cc=marex@denx.de \
    --cc=michal.simek@amd.com \
    --cc=simon.k.r.goldschmidt@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=tien.fong.chee@intel.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.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