From bbd665f38d6b48e56bb5ef38ee0eeceb02a8e129 Mon Sep 17 00:00:00 2001 From: Tomasz Maciej Nowak Date: Wed, 25 Nov 2020 17:10:04 +0100 Subject: tegra: image: make bootscript standalone 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 --- target/linux/tegra/image/generic-bootscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'target/linux/tegra/image/generic-bootscript') diff --git a/target/linux/tegra/image/generic-bootscript b/target/linux/tegra/image/generic-bootscript index 7e86afdf5fb..0908025d5d5 100644 --- a/target/linux/tegra/image/generic-bootscript +++ b/target/linux/tegra/image/generic-bootscript @@ -1,4 +1,6 @@ -setenv bootargs "root=PARTUUID=@ROOT@-02 rw rootwait console=ttyS0,115200 console=tty0" +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 -- cgit v1.2.3