summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic3
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root10
2 files changed, 11 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic
index aad962cc..f60a1ea9 100644
--- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic
+++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic
@@ -11,8 +11,7 @@ rootfs_name=@@RAMDISK_IMAGE@@
11 11
12 12
13setenv get_bootargs 'fdt addr $fdtcontroladdr;fdt get value bootargs /chosen bootargs;' 13setenv get_bootargs 'fdt addr $fdtcontroladdr;fdt get value bootargs /chosen bootargs;'
14setenv update_bootargs 'if test -n ${launch_ramdisk_init} && test ${bootargs} = "";then if run get_bootargs;then setenv bootargs "\$bootargs launch_ramdisk_init=${launch_ramdisk_init} $extrabootargs $select_rootfs";fi; else if run get_bootargs; then setenv bootargs "\$bootargs $select_rootfs"; fi; fi' 14setenv update_bootargs 'if test -n ${launch_ramdisk_init} && test ${bootargs} = "";then if run get_bootargs;then setenv bootargs "\$bootargs launch_ramdisk_init=${launch_ramdisk_init} $extrabootargs";fi;fi'
15
16 15
17for boot_target in ${boot_targets}; 16for boot_target in ${boot_targets};
18do 17do
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root
index 638296bc..8a9d6d67 100644
--- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root
+++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root
@@ -9,6 +9,10 @@ ramdisk_name=@@RAMDISK_IMAGE1@@
9rootfs_name=@@RAMDISK_IMAGE@@ 9rootfs_name=@@RAMDISK_IMAGE@@
10@@PRE_BOOTENV@@ 10@@PRE_BOOTENV@@
11 11
12# check part uuid based on device type
13setenv mmc_part_uuid 'if mmc dev ${devnum}; then devtype=mmc; part uuid ${devtype} ${devnum}:@@PARTNUM@@ root_uuid; setenv select_rootfs "root=PARTUUID=$root_uuid ro rootwait"; fi'
14setenv usb_part_uuid 'usb start; if usb dev ${devnum}; then devtype=usb; part uuid ${devtype} ${devnum}:@@PARTNUM@@ root_uuid; setenv select_rootfs "root=PARTUUID=$root_uuid ro rootwait"; fi'
15
12for boot_target in ${boot_targets}; 16for boot_target in ${boot_targets};
13do 17do
14 echo "Trying to load boot images from ${boot_target}" 18 echo "Trying to load boot images from ${boot_target}"
@@ -21,9 +25,15 @@ do
21 if test "${boot_target}" = "mmc0" || test "${boot_target}" = "mmc1" || test "${boot_target}" = "usb0" || test "${boot_target}" = "usb1"; then 25 if test "${boot_target}" = "mmc0" || test "${boot_target}" = "mmc1" || test "${boot_target}" = "usb0" || test "${boot_target}" = "usb1"; then
22 if test "${boot_target}" = "mmc0" || test "${boot_target}" = "mmc1"; then 26 if test "${boot_target}" = "mmc0" || test "${boot_target}" = "mmc1"; then
23 setenv bootdev mmcblk${devnum}p 27 setenv bootdev mmcblk${devnum}p
28 if test -n "${enable_bootmenu}"; then
29 run mmc_part_uuid
30 fi
24 fi 31 fi
25 if test "${boot_target}" = "usb0" || test "${boot_target}" = "usb1"; then 32 if test "${boot_target}" = "usb0" || test "${boot_target}" = "usb1"; then
26 setenv bootdev sda 33 setenv bootdev sda
34 if test -n "${enable_bootmenu}"; then
35 run usb_part_uuid
36 fi
27 fi 37 fi
28 38
29 if test -e ${devtype} ${devnum}:${distro_bootpart} /@@UENV_TEXTFILE@@; then 39 if test -e ${devtype} ${devnum}:${distro_bootpart} /@@UENV_TEXTFILE@@; then