diff options
author | Johannes Zink <j.zink@pengutronix.de> | 2022-09-05 18:36:12 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2022-09-06 16:11:20 +0200 |
commit | cc9b9986dd76dc7e494d3563ec68fe1f54ae701d (patch) | |
tree | 07e4bf05b6d8d6bbf21f9df2ac770a84d798eb16 | |
parent | 5bc0a6317a38d9752b9f67b0493ddfef7b16cf43 (diff) | |
download | DistroKit-cc9b9986dd76dc7e494d3563ec68fe1f54ae701d.tar.gz DistroKit-cc9b9986dd76dc7e494d3563ec68fe1f54ae701d.tar.xz |
v8a: rockchip: provide barebox-rock3a.norimg recovery image
Have genimage generate a new image that can be flashed to SPI-NOR and
that when booted opens an Andorid Fastboot gadget for flashing the
SD-Card.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-18-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | configs/platform-v8a/barebox-common-defaultenv/init/bootsource | 3 | ||||
-rw-r--r-- | configs/platform-v8a/config/images/rock3a.config | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource index 0dfb309..8f00bce 100644 --- a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource +++ b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource @@ -8,4 +8,7 @@ fi if [ "$bootsource" = mmc ]; then detect mmc$bootsource_instance global.boot.default="mmc$bootsource_instance net" +elif [ "$bootsource" = "spi-nor" ]; then + usbgadget -A '/dev/mmc0(sd)' + global.autoboot=abort fi diff --git a/configs/platform-v8a/config/images/rock3a.config b/configs/platform-v8a/config/images/rock3a.config index 27de5f8..8b78ce7 100644 --- a/configs/platform-v8a/config/images/rock3a.config +++ b/configs/platform-v8a/config/images/rock3a.config @@ -31,3 +31,16 @@ image @IMAGE@ { size = 512M } } + +image barebox-rock3a.norimg { + hdimage { + partition-table-type = none + } + + partition boot1 { + offset = 32k + size = 2M + in-partition-table = false + image = "barebox-rock3a.img-rockchip" + } +} |