aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2023-03-13 03:14:42 +0100
committerDavid Bauer <mail@david-bauer.net>2023-03-24 20:30:29 +0100
commit652d5ac1526ffb5e5d5894dbde4064b2d56723e0 (patch)
tree901d489aabbad855b6eef6a2c064aff708c56637 /target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch
parent90691f450543fa0a7f0258ffce06ec22e516445b (diff)
downloadupstream-652d5ac1526ffb5e5d5894dbde4064b2d56723e0.tar.gz
upstream-652d5ac1526ffb5e5d5894dbde4064b2d56723e0.tar.bz2
upstream-652d5ac1526ffb5e5d5894dbde4064b2d56723e0.zip
mediatek: enable bootargs-override for filogic subtarget
The ASUS TUF-AX4200 bootloader adds invalid parameters for the rootfs. Without overwriting the cmdline, the kernel crashes when trying to attach the rootfs, as OpenWrt uses a different partition than the vendor OS. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch')
-rw-r--r--target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch b/target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch
index acbb190030..6016128bd4 100644
--- a/target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch
+++ b/target/linux/mediatek/patches-5.15/901-arm-add-cmdline-override.patch
@@ -35,3 +35,20 @@
/*
* CONFIG_CMDLINE is meant to be a default in case nothing else
* managed to set the command line, unless CONFIG_CMDLINE_FORCE
+--- a/arch/arm64/Kconfig
++++ b/arch/arm64/Kconfig
+@@ -1942,6 +1942,14 @@ config CMDLINE_FORCE
+
+ endchoice
+
++config CMDLINE_OVERRIDE
++ bool "Use alternative cmdline from device tree"
++ help
++ Some bootloaders may have uneditable bootargs. While CMDLINE_FORCE can
++ be used, this is not a good option for kernels that are shared across
++ devices. This setting enables using "chosen/cmdline-override" as the
++ cmdline if it exists in the device tree.
++
+ config EFI_STUB
+ bool
+