mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
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 <tmn505@gmail.com>
This commit is contained in:
parent
fa77051037
commit
bbd665f38d
@ -14,10 +14,7 @@ define Build/tegra-sdcard
|
|||||||
$(if $(DEVICE_DTS),\
|
$(if $(DEVICE_DTS),\
|
||||||
$(foreach dtb,$(DEVICE_DTS),$(CP) $(DTS_DIR)/$(dtb).dtb $@.boot), \
|
$(foreach dtb,$(DEVICE_DTS),$(CP) $(DTS_DIR)/$(dtb).dtb $@.boot), \
|
||||||
$(CP) $(DTS_DIR)/*.dtb $@.boot)
|
$(CP) $(DTS_DIR)/*.dtb $@.boot)
|
||||||
sed \
|
sed -e 's#@KERNEL@#$(KERNEL_NAME)#g' $(BOOT_SCRIPT) > $@-boot.scr
|
||||||
-e 's#@ROOT@#$(IMG_PART_SIGNATURE)#g' \
|
|
||||||
-e 's#@KERNEL@#$(KERNEL_NAME)#g' \
|
|
||||||
$(BOOT_SCRIPT) > $@-boot.scr
|
|
||||||
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
|
||||||
-n '$(DEVICE_TITLE) OpenWrt bootscript' \
|
-n '$(DEVICE_TITLE) OpenWrt bootscript' \
|
||||||
-d $@-boot.scr \
|
-d $@-boot.scr \
|
||||||
|
@ -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} ${kernel_addr_r} /@KERNEL@
|
||||||
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /${soc}-${board}.dtb
|
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /${soc}-${board}.dtb
|
||||||
|
Loading…
Reference in New Issue
Block a user