Skip to content

Commit

Permalink
riscv: sifive: unleashed: Add genimage config files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lbmeng authored and trini committed Sep 11, 2021
1 parent 3283a05 commit 8c17a18
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions board/sifive/unleashed/genimage_sdcard.cfg
Original file line number Diff line number Diff line change
@@ -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
}
}
19 changes: 19 additions & 0 deletions board/sifive/unleashed/genimage_spi-nor.cfg
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 8c17a18

Please sign in to comment.