DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH 0/5] enable uploading kernel, dtb and initramfs over fastboot and boot it on Rock3A
@ 2023-06-06 14:31 Johannes Zink
  2023-06-06 14:31 ` [DistroKit] [PATCH 1/5] v8a: enable initrd generation Johannes Zink
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Johannes Zink @ 2023-06-06 14:31 UTC (permalink / raw)
  To: distrokit; +Cc: Johannes Zink, patchwork-jzi

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 <j.zink@pengutronix.de>
---
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 <j.zink@pengutronix.de>




^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2023-06-09  9:53 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06 14:31 [DistroKit] [PATCH 0/5] enable uploading kernel, dtb and initramfs over fastboot and boot it on Rock3A Johannes Zink
2023-06-06 14:31 ` [DistroKit] [PATCH 1/5] v8a: enable initrd generation Johannes Zink
2023-06-06 14:37   ` Ahmad Fatoum
2023-06-06 14:44     ` Johannes Zink
2023-06-06 14:59       ` Jan Lübbe
2023-06-06 15:02         ` Johannes Zink
2023-06-06 14:31 ` [DistroKit] [PATCH 2/5] v8a: kernel: enable initramfs in kernel config Johannes Zink
2023-06-06 14:37   ` Ahmad Fatoum
2023-06-06 14:31 ` [DistroKit] [PATCH 3/5] v8a: images: generate sparse images from rock3a initramfs, kernel and dtb Johannes Zink
2023-06-06 14:41   ` Ahmad Fatoum
2023-06-06 14:42     ` Ahmad Fatoum
2023-06-06 14:49       ` Johannes Zink
2023-06-06 14:54         ` Ahmad Fatoum
2023-06-06 14:47     ` Johannes Zink
2023-06-06 14:51       ` Ahmad Fatoum
2023-06-06 15:04         ` Johannes Zink
2023-06-06 15:26           ` Ahmad Fatoum
2023-06-08  7:28             ` Ahmad Fatoum
2023-06-06 14:31 ` [DistroKit] [PATCH 4/5] v8a: barebox: enable loading kernel, dtb and initrd via fastboot Johannes Zink
2023-06-06 14:44   ` Ahmad Fatoum
2023-06-06 14:54     ` Johannes Zink
2023-06-08  7:36       ` Ahmad Fatoum
2023-06-09  6:26         ` Johannes Zink
2023-06-06 15:04     ` Jan Lübbe
2023-06-06 15:14       ` Johannes Zink
2023-06-06 15:16         ` Jan Lübbe
2023-06-06 14:31 ` [DistroKit] [PATCH 5/5] v8a: barebox: add a boot target for fastboot loaded image files Johannes Zink
2023-06-06 14:47   ` Ahmad Fatoum
2023-06-06 15:07     ` Jan Lübbe
2023-06-06 15:13       ` Johannes Zink
2023-06-09  9:53       ` Johannes Zink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox