diff options
author | Johannes Zink <j.zink@pengutronix.de> | 2022-09-05 18:36:13 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2022-09-06 16:11:20 +0200 |
commit | 95014f4d8a509abfe29833bdd29a9e3b40990751 (patch) | |
tree | b2bca129288182f7b8d24d4bf74795f2171e6389 | |
parent | cc9b9986dd76dc7e494d3563ec68fe1f54ae701d (diff) | |
download | DistroKit-95014f4d8a509abfe29833bdd29a9e3b40990751.tar.gz DistroKit-95014f4d8a509abfe29833bdd29a9e3b40990751.tar.xz |
v8a: rockchip: copy default barebox env
Create a custom Barebox environment for the ROCK 3A to be able to apply
board specific workarounds.
Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.pengutronix.de/20220905163615.2807729-19-m.tretter@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
3 files changed, 15 insertions, 1 deletions
diff --git a/configs/platform-v8a/barebox-rock3a-defaultenv/init/bootsource b/configs/platform-v8a/barebox-rock3a-defaultenv/init/bootsource new file mode 100644 index 0000000..fe7991d --- /dev/null +++ b/configs/platform-v8a/barebox-rock3a-defaultenv/init/bootsource @@ -0,0 +1,13 @@ +#!/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" +elif [ "$bootsource" = "spi-nor" ]; then + usbgadget -A '/dev/mmc0(sd)' + global.autoboot=abort +fi diff --git a/configs/platform-v8a/barebox-rock3a-defaultenv/nv/linux.bootargs.loglevel b/configs/platform-v8a/barebox-rock3a-defaultenv/nv/linux.bootargs.loglevel new file mode 100644 index 0000000..705752c --- /dev/null +++ b/configs/platform-v8a/barebox-rock3a-defaultenv/nv/linux.bootargs.loglevel @@ -0,0 +1 @@ +loglevel=5 systemd.log_level=warning systemd.show_status=auto diff --git a/configs/platform-v8a/rules/barebox-rockchip.make b/configs/platform-v8a/rules/barebox-rockchip.make index cca9866..39032e0 100644 --- a/configs/platform-v8a/rules/barebox-rockchip.make +++ b/configs/platform-v8a/rules/barebox-rockchip.make @@ -69,7 +69,7 @@ $(BAREBOX_ROCKCHIP_CONFIG): endif BAREBOX_ROCKCHIP_EXTRA_ENV_PATH := $(foreach path, \ - $(call remove_quotes,"barebox-common-defaultenv"), \ + $(call remove_quotes,"barebox-rock3a-defaultenv"), \ $(call ptx/in-platformconfigdir,$(path))) BAREBOX_ROCKCHIP_EXTRA_ENV_DEPS := \ $(BAREBOX_ROCKCHIP_EXTRA_ENV_PATH) \ |