rockchip: merge bootscript
[openwrt/staging/ldir.git] / target / linux / rockchip / image / mmc.bootscript
1 part uuid mmc ${devnum}:2 uuid
2
3 if test $stdout = 'serial@fe660000' ;
4 then serial_addr=',0xfe660000';
5 elif test $stdout = 'serial@ff130000' ;
6 then serial_addr=',0xff130000';
7 elif test $stdout = 'serial@ff1a0000' ;
8 then serial_addr=',0xff1a0000';
9 fi;
10
11 setenv bootargs "console=ttyS2,1500000 console=tty1 earlycon=uart8250,mmio32${serial_addr} swiotlb=1 root=PARTUUID=${uuid} rw rootwait";
12
13 load mmc ${devnum}:1 ${kernel_addr_r} kernel.img
14
15 bootm ${kernel_addr_r}