summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorJohannes Zink <j.zink@pengutronix.de>2022-07-13 10:45:55 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2022-09-05 15:47:58 +0200
commitc0d02b6bdc429e68e53b7ae6adb771eba3e49e5d (patch)
treecabe118e34be2183c25c022c33436eb886c5a477 /configs
parent67de50de60708b7584a32354e12d3f50f041d3a5 (diff)
downloadDistroKit-c0d02b6bdc429e68e53b7ae6adb771eba3e49e5d.tar.gz
DistroKit-c0d02b6bdc429e68e53b7ae6adb771eba3e49e5d.tar.xz
v8a: barebox: add missing defaultenv directory for MMC boot
MMC images generated by DistroKit for i.MX8M family of EVK boards did not boot beyond bootloader shell without manual intervention, because there was no environment compiled in telling barebox where to load the kernel from. Add this missing environment, so we can boot directly to userspace shell with DistroKit-generated i.MX8M SD-Card images. Fixes: f1d8cd1 ("Add barebox for i.MX8M boards") Co-developed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Johannes Zink <j.zink@pengutronix.de> Link: https://lore.pengutronix.de/20220713084555.3371718-1-j.zink@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs')
-rw-r--r--configs/platform-v8a/barebox-imx8m-defaultenv/init/bootsource11
-rw-r--r--configs/platform-v8a/barebox-imx8m-defaultenv/nv/linux.bootargs.loglevel1
2 files changed, 12 insertions, 0 deletions
diff --git a/configs/platform-v8a/barebox-imx8m-defaultenv/init/bootsource b/configs/platform-v8a/barebox-imx8m-defaultenv/init/bootsource
new file mode 100644
index 0000000..0dfb309
--- /dev/null
+++ b/configs/platform-v8a/barebox-imx8m-defaultenv/init/bootsource
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "${nv.boot.default}" ]; then
+ exit
+fi
+
+
+if [ "$bootsource" = mmc ]; then
+ detect mmc$bootsource_instance
+ global.boot.default="mmc$bootsource_instance net"
+fi
diff --git a/configs/platform-v8a/barebox-imx8m-defaultenv/nv/linux.bootargs.loglevel b/configs/platform-v8a/barebox-imx8m-defaultenv/nv/linux.bootargs.loglevel
new file mode 100644
index 0000000..705752c
--- /dev/null
+++ b/configs/platform-v8a/barebox-imx8m-defaultenv/nv/linux.bootargs.loglevel
@@ -0,0 +1 @@
+loglevel=5 systemd.log_level=warning systemd.show_status=auto