From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 06 Jun 2023 16:31:58 +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 1q6Xj6-00D911-13 for lore@lore.pengutronix.de; Tue, 06 Jun 2023 16:31:58 +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 1q6Xj3-0003Yu-Bb; Tue, 06 Jun 2023 16:31:57 +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 1q6Xiv-0003TI-2q; Tue, 06 Jun 2023 16:31:49 +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 1q6Xiu-005WuF-G5; Tue, 06 Jun 2023 16:31:48 +0200 Received: from localhost ([::1] helo=dude03.red.stw.pengutronix.de) by dude03.red.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6Xit-001ruN-2X; Tue, 06 Jun 2023 16:31:47 +0200 From: Johannes Zink Date: Tue, 06 Jun 2023 16:31:33 +0200 Message-Id: <20230606-default_enable_fastboot_rock3a-v1-0-42195d538df2@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEZDf2QC/x2NQQrDIBAAvxL2XMFosdCvlCK7Zm2kshY1oRDy9 0qPM4eZAxrXxA3u0wGV99RSkQHzZYKworxYpWUwGG2sdtqphSNuuXsWpMw+YutUSve1hLdFZY2 xwZGe3fUGI0LYWFFFCevIyJbzkJ/KMX3/18fzPH8ZjRgyhQAAAA== To: distrokit@pengutronix.de X-Mailer: b4 0.12.2 Subject: [DistroKit] [PATCH 0/5] enable uploading kernel, dtb and initramfs over fastboot and boot it on Rock3A 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: Johannes Zink , patchwork-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 This series enables building Android sparse images of kernel, dtb and initramfs for the Radxa Rock3A, enables mounting corresponding ram-files as fastboot partitions in the barebox fastboot gadget, and adds support for booting the image uploaded via fastboot. This can be useful in situations, where booting a Linux system is required on such target without touching the nonvolatile storage, e.g. for debugging purposes. For uploading kernel, dtb and initramfs use fastboot flash kernel platform-v8a/images/kernel-sparse.img fastboot flash dtb platform-v8a/images/dtb-rock3a-sparse.img fastboot flash initramfs platform-v8a/images/initramfs-sparse.img then for booting either use the barebox command boot fastboot or pass the bootcommand over fastboot from the host via fastboot oem exec boot fastboot Best regards Johannes To: distrokit@pengutronix.de Cc: patchwork-jzi@pengutronix.de Signed-off-by: Johannes Zink --- Johannes Zink (5): v8a: enable initrd generation v8a: kernel: enable initramfs in kernel config v8a: images: generate sparse images from rock3a initramfs, kernel and dtb v8a: barebox: enable loading kernel, dtb and initrd via fastboot v8a: barebox: add a boot target for fastboot loaded image files .../barebox-common-defaultenv/boot/fastboot | 7 +++++++ .../barebox-common-defaultenv/nv/fastboot.acm | 1 + .../barebox-common-defaultenv/nv/fastboot.bbu | 1 + .../nv/fastboot.partitions | 1 + .../nv/usbgadget.autostart | 1 + configs/platform-v8a/config/images/rock3a.config | 21 +++++++++++++++++++++ configs/platform-v8a/kernelconfig | 16 +++++++++++++--- configs/platform-v8a/platformconfig | 10 +++++++++- 8 files changed, 54 insertions(+), 4 deletions(-) --- base-commit: 282b5aff9aecf141de5040f896a9a10081596350 change-id: 20230606-default_enable_fastboot_rock3a-3223c6b01647 Best regards, -- Johannes Zink