]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: set MOX firmware fallback via cmdline 23666/head
authorŠtěpán Dalecký <daleckystepan@gmail.com>
Fri, 5 Jun 2026 17:04:30 +0000 (19:04 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Jun 2026 21:11:42 +0000 (23:11 +0200)
Newer kernels support applying sysctl keys from the kernel
command line.

Set sysctl.kernel.firmware_config.force_sysfs_fallback=0 in
MOX bootargs to disable firmware sysfs fallback without a
board-specific init script.

Signed-off-by: Štěpán Dalecký <daleckystepan@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23666
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mvebu/image/turris-mox.bootscript

index 29d16964af02074ebbbed7248702972711ce4726..6a4d4cd60f9cac5c5887c277f76c86ab885e5bd7 100644 (file)
@@ -40,7 +40,7 @@ if part uuid ${devtype} ${devnum}:${distro_bootpart} bootuuid; then
                        fi
                fi
                if test "$filesize" != "0"; then
-                       setenv bootargs "earlyprintk console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 rootfstype=${rootfstype} root=${rootdev} rootflags=${rootflags} rootwait ${contract} rw cfg80211.freg=${regdomain} ${quirks}"
+                       setenv bootargs "earlyprintk console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 rootfstype=${rootfstype} root=${rootdev} rootflags=${rootflags} rootwait ${contract} rw cfg80211.freg=${regdomain} sysctl.kernel.firmware_config.force_sysfs_fallback=0 ${quirks}"
                        booti ${kernel_addr_r} - ${fdt_addr_r}
                        echo "Booting Image failed"
                else