DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: distrokit@pengutronix.de
Cc: mtr@pengutronix.de, jzi@pengutronix.de
Subject: [DistroKit] [PATCH 17/20] v8a: rockchip: provide barebox-rock3a.norimg recovery image
Date: Mon,  5 Sep 2022 18:36:12 +0200	[thread overview]
Message-ID: <20220905163615.2807729-18-m.tretter@pengutronix.de> (raw)
In-Reply-To: <20220905163615.2807729-1-m.tretter@pengutronix.de>

From: Johannes Zink <j.zink@pengutronix.de>

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>
---
 .../barebox-common-defaultenv/init/bootsource       |  3 +++
 configs/platform-v8a/config/images/rock3a.config    | 13 +++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
index 0dfb309e23b2..8f00bced5df2 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 27de5f82c010..8b78ce7df4e7 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"
+	}
+}
-- 
2.30.2




  parent reply	other threads:[~2022-09-05 16:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 16:35 [DistroKit] [PATCH 00/20] Add Radxa Rock 3A support Michael Tretter
2022-09-05 16:35 ` [DistroKit] [PATCH 01/20] v8a: kernel: version bump v5.15 -> v5.19 Michael Tretter
2022-09-05 16:35 ` [DistroKit] [PATCH 02/20] v8a: kernel: disable ACPI Michael Tretter
2022-09-05 16:35 ` [DistroKit] [PATCH 03/20] v8a: kernel: disable VIRTUALIZATION Michael Tretter
2022-09-05 16:35 ` [DistroKit] [PATCH 04/20] v8a: kernel: disable DRM Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 05/20] v8a: kernel: disable SOUND Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 06/20] v8a: kernel: disable MEDIA_SUPPORT Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 07/20] v8a: kernel: disable CHROME_PLATFORMS Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 08/20] v8a: kernel: disable SPMI Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 09/20] v8a: kernel: disable SLIMBUS Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 10/20] v8a: kernel: disable network drivers except for FEC and STMMAC Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 11/20] v8a: kernel: enable SCMI based drivers Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 12/20] v8a: kernel: add Rockchip RK356x support Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 13/20] v8a: barebox: move default environment Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 14/20] v8a: rockchip: add rule for rockchip firmware Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 15/20] v8a: rockchip: add new barebox-rockchip rule Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 16/20] v8a: rockchip: add Radxa Rock 3A image and blspec entry Michael Tretter
2022-09-05 16:36 ` Michael Tretter [this message]
2022-09-05 16:36 ` [DistroKit] [PATCH 18/20] v8a: rockchip: copy default barebox env Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 19/20] v8a: rock3a: workaround SDR-UHS1 detection Michael Tretter
2022-09-05 16:36 ` [DistroKit] [PATCH 20/20] doc: v8a: rock3a: Add documentation Michael Tretter
2022-09-05 21:32 ` [DistroKit] [PATCH 00/20] Add Radxa Rock 3A support Robert Schwebel

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=20220905163615.2807729-18-m.tretter@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=jzi@pengutronix.de \
    --cc=mtr@pengutronix.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