From: Coia Prant Date: Fri, 8 Aug 2025 14:39:03 +0000 (+0000) Subject: mediatek: remove loglevel in bootargs X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=e59635668dff13dbe7fa5d3007dbe5368ce0ace7;p=openwrt%2Fopenwrt.git mediatek: remove loglevel in bootargs `loglevel=8` causes the kernel to output all logs, including debug logs, at boot time It is enabled by default on the upstream eval board because it is aimed at developer debugging. Most devices reference the eval board directly without modification, and the debug log should be hidden at release Signed-off-by: Coia Prant Link: https://github.com/openwrt/openwrt/pull/19714 Signed-off-by: Robert Marko --- diff --git a/target/linux/mediatek/dts/mt7981b-unielec-u7981-01.dtsi b/target/linux/mediatek/dts/mt7981b-unielec-u7981-01.dtsi index ea5ab2d9f2..b9f0bcd7e6 100644 --- a/target/linux/mediatek/dts/mt7981b-unielec-u7981-01.dtsi +++ b/target/linux/mediatek/dts/mt7981b-unielec-u7981-01.dtsi @@ -10,9 +10,7 @@ compatible = "unielec,u7981-01-emmc", "mediatek,mt7981"; chosen { - bootargs = "console=ttyS0,115200n1 loglevel=8 \ - earlycon=uart8250,mmio32,0x11002000 \ - "; + bootargs = "console=ttyS0,115200n1 earlycon=uart8250,mmio32,0x11002000"; }; gpio-keys { diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts index d58ea48fc3..c0f7fff801 100644 --- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts +++ b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax.dts @@ -19,7 +19,7 @@ chosen { stdout-path = "serial0:115200n8"; - bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 loglevel=8"; + bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8"; }; memory { diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8103ax.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8103ax.dts index 3dfbbec3cf..67b1eef411 100644 --- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8103ax.dts +++ b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8103ax.dts @@ -19,7 +19,7 @@ chosen { stdout-path = "serial0:115200n8"; - bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 loglevel=8"; + bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8"; }; memory { diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi index 58d11476dd..a0a8804726 100644 --- a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi +++ b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi @@ -24,7 +24,7 @@ chosen { stdout-path = &serial0; - bootargs = "console=ttyS0,115200n1 loglevel=8 pci=pcie_bus_perf root=PARTLABEL=rootfs"; + bootargs = "console=ttyS0,115200n1 pci=pcie_bus_perf root=PARTLABEL=rootfs"; }; memory { diff --git a/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch b/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch index 204a2cb434..23bc2ea203 100644 --- a/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch +++ b/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch @@ -831,7 +831,7 @@ Signed-off-by: Daniel Golle + "mediatek,mt7988a"; + + chosen { -+ bootargs = "console=ttyS0,115200n1 loglevel=8 \ ++ bootargs = "console=ttyS0,115200n1 \ + earlycon=uart8250,mmio32,0x11000000 \ + pci=pcie_bus_perf"; + }; diff --git a/target/linux/mediatek/patches-6.12/189-arm64-dts-mediatek-mt7988a-complete-bpi-r4.patch b/target/linux/mediatek/patches-6.12/189-arm64-dts-mediatek-mt7988a-complete-bpi-r4.patch index a2643ea0a3..a8b7a74134 100644 --- a/target/linux/mediatek/patches-6.12/189-arm64-dts-mediatek-mt7988a-complete-bpi-r4.patch +++ b/target/linux/mediatek/patches-6.12/189-arm64-dts-mediatek-mt7988a-complete-bpi-r4.patch @@ -189,7 +189,7 @@ Subject: [PATCH 32/32] WIP: add BPi-R4 / { chosen { stdout-path = "serial0:115200n8"; -+ bootargs = "console=ttyS0,115200n1 loglevel=8 pci=pcie_bus_perf ubi.block=0,fit root=/dev/fit0"; ++ bootargs = "console=ttyS0,115200n1 pci=pcie_bus_perf ubi.block=0,fit root=/dev/fit0"; + rootdisk-spim-nand = <&ubi_rootfs>; };