[OpenWrt-Devel] [PATCH 3/5] apm821xx: force WNDR4700 console to 115200n8

Christian Lamparter chunkeey at gmail.com
Mon Oct 15 14:00:07 EDT 2018

With the upcoming 4.19 release, the serial console on the
Netgear WNDR4700 would no longer work as it is never really
set and always relied on the kernel's serial code not to
change the baud rate.

On the stock firmware, Netgear forced the console setting
through a custom CONFIG_CMDLINE in their kernel to 115200.
Normally, they should have done it in a different way and
just passed the baudrate through a "console=..." kernel
parameter via the bootargs in the "/chosen" dt node.
But in their default u-boot bootcmd setting, they somehow
forgot to add the "run addtty", so there's no easy way to
pass the baudrate from u-boot to the kernel. So it has
to be forced as otherwise it ends up as 9600 baud.

Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
 target/linux/apm821xx/dts/netgear-wndr4700.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts
index 171b7e34d6..a8f73e8a04 100644
--- a/target/linux/apm821xx/dts/netgear-wndr4700.dts
+++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts
@@ -26,7 +26,7 @@
 	chosen {
-		stdout-path = "/plb/opb/serial at ef600300";
+		stdout-path = "/plb/opb/serial at ef600300:115200n8";
 	thermal-zones {

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list