diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2023-08-25 13:10:56 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2023-09-15 15:57:52 +0200 |
commit | d8f5c6fb4b47993ae2d5dc1213140ec647284863 (patch) | |
tree | f22f8eaa0c11607418d139bbe2f8f7fb9f93065f /configs/platform-v7a/barebox-mx6-defaultenv | |
parent | 096e678150f662b8e68018da450179040e48f5e4 (diff) | |
download | DistroKit-d8f5c6fb4b47993ae2d5dc1213140ec647284863.tar.gz DistroKit-d8f5c6fb4b47993ae2d5dc1213140ec647284863.tar.xz |
v7a: barebox: enable loading kernel, dtb and initrd via fastboot
This change is similar to:
2732f93bcf4ee011cecca3518aec7e523c311d7a
"v8a: barebox: enable loading kernel, dtb and initrd via fastboot"
but for some of the v7a platforms. Due to the absence of a common environment
it only can be added for the i.MX6 based systems for now.
This change prepares all v7a platforms to load kernel, dtb and initrd as
sparse images to RAM-files for rapid development.
It exposes mmc{1,2,3} as 'fastboot' partitions and add init script to
force barebox to detect these devices and have them available for
'fastboot'.
It autostarts the USB gadget and network capability to use 'fastboot' out of
the box.
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Link: https://lore.barebox.org/20230825111056.32801-1-jbe@pengutronix.de
Adapted bsp.ref for v7a, similar to v8a.
Inspired-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox-mx6-defaultenv')
7 files changed, 15 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/boot/ram-fastboot b/configs/platform-v7a/barebox-mx6-defaultenv/boot/ram-fastboot new file mode 100755 index 0000000..ff17b26 --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/boot/ram-fastboot @@ -0,0 +1,7 @@ +#!/bin/sh + +global.bootm.image=/tmp/ram-kernel +global.bootm.initrd=/tmp/ram-initramfs +global.bootm.oftree=/tmp/ram-oftree + +global.linux.bootargs.dyn.root="rdinit=/sbin/init" diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/init/detect-mmcs b/configs/platform-v7a/barebox-mx6-defaultenv/init/detect-mmcs new file mode 100644 index 0000000..0db902d --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/init/detect-mmcs @@ -0,0 +1,3 @@ +#!/bin/sh + +detect mmc1 mmc2 mmc3 diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.acm b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.acm new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.acm @@ -0,0 +1 @@ +1 diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.bbu b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.bbu new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.bbu @@ -0,0 +1 @@ +1 diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.net.autostart b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.net.autostart new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.net.autostart @@ -0,0 +1 @@ +1 diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.partitions b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.partitions new file mode 100644 index 0000000..15c7d42 --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/nv/fastboot.partitions @@ -0,0 +1 @@ +/dev/mmc1(mmc1)o,/dev/mmc2(mmc2)o,/dev/mmc3(mmc3)o,/tmp/ram-kernel(ram-kernel)c,/tmp/ram-initramfs(ram-initramfs)c,/tmp/ram-oftree(ram-oftree)c diff --git a/configs/platform-v7a/barebox-mx6-defaultenv/nv/usbgadget.autostart b/configs/platform-v7a/barebox-mx6-defaultenv/nv/usbgadget.autostart new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/configs/platform-v7a/barebox-mx6-defaultenv/nv/usbgadget.autostart @@ -0,0 +1 @@ +1 |