From: Bin Meng <bmeng.cn@gmail.com>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Subject: [PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files
Date: Thu, 26 Aug 2021 23:33:34 +0800 [thread overview]
Message-ID: <20210826153335.27964-3-bmeng.cn@gmail.com> (raw)
In-Reply-To: <20210826153335.27964-1-bmeng.cn@gmail.com>
This adds genimage [1] config files for generating SD card and spi-nor
images, which can be programmed to an SD card or SPI flash and boot
from there.
The same images will be used for U-Boot CI testing for this board.
[1] https://github.com/pengutronix/genimage
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
(no changes since v1)
board/sifive/unleashed/genimage_sdcard.cfg | 19 +++++++++++++++++++
board/sifive/unleashed/genimage_spi-nor.cfg | 19 +++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 board/sifive/unleashed/genimage_sdcard.cfg
create mode 100644 board/sifive/unleashed/genimage_spi-nor.cfg
diff --git a/board/sifive/unleashed/genimage_sdcard.cfg b/board/sifive/unleashed/genimage_sdcard.cfg
new file mode 100644
index 0000000000..91c53bf855
--- /dev/null
+++ b/board/sifive/unleashed/genimage_sdcard.cfg
@@ -0,0 +1,19 @@
+image sdcard.img {
+ size = 128M
+
+ hdimage {
+ gpt = true
+ }
+
+ partition u-boot-spl {
+ image = "u-boot-spl.bin"
+ offset = 17K
+ partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
+ }
+
+ partition u-boot {
+ image = "u-boot.itb"
+ offset = 1041K
+ partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
+ }
+}
diff --git a/board/sifive/unleashed/genimage_spi-nor.cfg b/board/sifive/unleashed/genimage_spi-nor.cfg
new file mode 100644
index 0000000000..2e5d89bfe8
--- /dev/null
+++ b/board/sifive/unleashed/genimage_spi-nor.cfg
@@ -0,0 +1,19 @@
+image spi-nor.img {
+ size = 32M
+
+ hdimage {
+ gpt = true
+ }
+
+ partition u-boot-spl {
+ image = "u-boot-spl.bin"
+ offset = 20K
+ partition-type-uuid = 5B193300-FC78-40CD-8002-E86C45580B47
+ }
+
+ partition u-boot {
+ image = "u-boot.itb"
+ offset = 1044K
+ partition-type-uuid = 2E54B353-1271-4842-806F-E436D6AF6985
+ }
+}
--
2.25.1
next prev parent reply other threads:[~2021-08-26 15:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 15:33 [PATCH v2 1/4] tools: docker: Bump up QEMU version to 6.1.0 Bin Meng
2021-08-26 15:33 ` [PATCH v2 2/4] tools: docker: Build and install genimage Bin Meng
2021-08-27 2:54 ` Tom Rini
2021-09-11 18:16 ` Tom Rini
2021-08-26 15:33 ` Bin Meng [this message]
2021-09-11 18:16 ` [PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files Tom Rini
2021-08-26 15:33 ` [PATCH v2 4/4] azure/gitlab: Add tests for SiFive Unleashed board Bin Meng
2021-08-27 2:54 ` Tom Rini
2021-09-11 18:16 ` Tom Rini
2021-08-27 2:54 ` [PATCH v2 1/4] tools: docker: Bump up QEMU version to 6.1.0 Tom Rini
2021-09-11 14:33 ` Bin Meng
2021-09-11 14:35 ` Tom Rini
2021-09-11 18:15 ` Tom Rini
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=20210826153335.27964-3-bmeng.cn@gmail.com \
--to=bmeng.cn@gmail.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