mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
705954a51a
ttyS2 is the default console used for all rockchip boards.
The redundant 'console=tty1' parameter now breaks the console due to
recent procd update.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 163c3d0bde
)
16 lines
439 B
Plaintext
16 lines
439 B
Plaintext
part uuid mmc ${devnum}:2 uuid
|
|
|
|
if test $stdout = 'serial@fe660000' ;
|
|
then serial_addr=',0xfe660000';
|
|
elif test $stdout = 'serial@ff130000' ;
|
|
then serial_addr=',0xff130000';
|
|
elif test $stdout = 'serial@ff1a0000' ;
|
|
then serial_addr=',0xff1a0000';
|
|
fi;
|
|
|
|
setenv bootargs "console=ttyS2,1500000 earlycon=uart8250,mmio32${serial_addr} root=PARTUUID=${uuid} rw rootwait";
|
|
|
|
load mmc ${devnum}:1 ${kernel_addr_r} kernel.img
|
|
|
|
bootm ${kernel_addr_r}
|