mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 09:54:53 +00:00
e35c7ab51f
The bootscript for nanopi r2s/r4s only changes the serial address, so make it auto detected in mmc bootscript rather than creating more (redudant) files. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
16 lines
462 B
Plaintext
16 lines
462 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 console=tty1 earlycon=uart8250,mmio32${serial_addr} swiotlb=1 root=PARTUUID=${uuid} rw rootwait";
|
|
|
|
load mmc ${devnum}:1 ${kernel_addr_r} kernel.img
|
|
|
|
bootm ${kernel_addr_r}
|