mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
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>
8 lines
308 B
Text
8 lines
308 B
Text
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}
|