mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-20 03:36:29 +00:00
bbd665f38d
Don't hard-code the PTUUID, use U-Boot commands to determine it, as some partitioning tools could rewrite PTUUID when modifying partitions. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
9 lines
308 B
Plaintext
9 lines
308 B
Plaintext
part uuid ${devtype} ${devnum}:2 ptuuid
|
|
|
|
setenv bootargs "root=PARTUUID=${ptuuid} rw rootwait console=ttyS0,115200 console=tty0"
|
|
|
|
load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /@KERNEL@
|
|
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /${soc}-${board}.dtb
|
|
|
|
bootz ${kernel_addr_r} - ${fdt_addr_r}
|