From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 05 Sep 2022 18:36:31 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oVF5J-007hxM-8P for lore@lore.pengutronix.de; Mon, 05 Sep 2022 18:36:31 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oVF5I-0002PD-LH; Mon, 05 Sep 2022 18:36:28 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVF5A-00024e-2h; Mon, 05 Sep 2022 18:36:20 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oVF57-004605-72; Mon, 05 Sep 2022 18:36:19 +0200 Received: from mtr by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oVF56-00BmRW-FI; Mon, 05 Sep 2022 18:36:16 +0200 From: Michael Tretter To: distrokit@pengutronix.de Date: Mon, 5 Sep 2022 18:36:12 +0200 Message-Id: <20220905163615.2807729-18-m.tretter@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220905163615.2807729-1-m.tretter@pengutronix.de> References: <20220905163615.2807729-1-m.tretter@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 17/20] v8a: rockchip: provide barebox-rock3a.norimg recovery image X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mtr@pengutronix.de, jzi@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false From: Johannes Zink 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 Signed-off-by: Michael Tretter --- .../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