Re: [PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files

2021-09-11 Thread Tom Rini
On Thu, Aug 26, 2021 at 11:33:34PM +0800, Bin Meng wrote:

> 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 

Applied to u-boot/next, thanks!

-- 
Tom


signature.asc
Description: PGP signature


[PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files

2021-08-26 Thread Bin Meng
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 
---

(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 00..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 00..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