diff options
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr')
-rw-r--r-- | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic | 12 | ||||
-rw-r--r-- | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.generic.root | 11 |
2 files changed, 17 insertions, 6 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 e09bdfa9..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 | |||
@@ -13,7 +13,6 @@ rootfs_name=@@RAMDISK_IMAGE@@ | |||
13 | setenv get_bootargs 'fdt addr $fdtcontroladdr;fdt get value bootargs /chosen bootargs;' | 13 | setenv get_bootargs 'fdt addr $fdtcontroladdr;fdt get value bootargs /chosen bootargs;' |
14 | setenv 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' | 14 | setenv 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 | 15 | ||
16 | |||
17 | for boot_target in ${boot_targets}; | 16 | for boot_target in ${boot_targets}; |
18 | do | 17 | do |
19 | echo "Trying to load boot images from ${boot_target}" | 18 | echo "Trying to load boot images from ${boot_target}" |
@@ -83,4 +82,15 @@ do | |||
83 | @@KERNEL_BOOTCMD@@ @@KERNEL_LOAD_ADDRESS@@ @@RAMDISK_IMAGE_ADDRESS@@ @@DEVICETREE_ADDRESS@@; | 82 | @@KERNEL_BOOTCMD@@ @@KERNEL_LOAD_ADDRESS@@ @@RAMDISK_IMAGE_ADDRESS@@ @@DEVICETREE_ADDRESS@@; |
84 | echo "Booting using Separate images failed" | 83 | echo "Booting using Separate images failed" |
85 | fi | 84 | fi |
85 | if test "${boot_target}" = "nor" || test "${boot_target}" = "nor0"; then | ||
86 | cp.b @@QSPI_FIT_IMAGE_OFFSET@@ @@FIT_IMAGE_LOAD_ADDRESS@@ @@QSPI_FIT_IMAGE_SIZE@@ | ||
87 | bootm @@FIT_IMAGE_LOAD_ADDRESS@@; | ||
88 | echo "Booting using Fit image failed" | ||
89 | |||
90 | cp.b @@QSPI_KERNEL_OFFSET@@ @@KERNEL_LOAD_ADDRESS@@ @@QSPI_KERNEL_SIZE@@ | ||
91 | cp.b @@QSPI_RAMDISK_OFFSET@@ @@RAMDISK_IMAGE_ADDRESS@@ @@QSPI_RAMDISK_SIZE@@ | ||
92 | run update_bootargs | ||
93 | @@KERNEL_BOOTCMD@@ @@KERNEL_LOAD_ADDRESS@@ @@RAMDISK_IMAGE_ADDRESS@@ @@DEVICETREE_ADDRESS@@; | ||
94 | echo "Booting using Separate images failed" | ||
95 | fi | ||
86 | done | 96 | done |
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 ed12f941..a3ec1286 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,7 @@ ramdisk_name=@@RAMDISK_IMAGE1@@ | |||
9 | rootfs_name=@@RAMDISK_IMAGE@@ | 9 | rootfs_name=@@RAMDISK_IMAGE@@ |
10 | @@PRE_BOOTENV@@ | 10 | @@PRE_BOOTENV@@ |
11 | 11 | ||
12 | |||
12 | for boot_target in ${boot_targets}; | 13 | for boot_target in ${boot_targets}; |
13 | do | 14 | do |
14 | echo "Trying to load boot images from ${boot_target}" | 15 | echo "Trying to load boot images from ${boot_target}" |
@@ -43,17 +44,17 @@ do | |||
43 | fi | 44 | fi |
44 | echo "Checking for /${kernel_name}" | 45 | echo "Checking for /${kernel_name}" |
45 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${kernel_name}; then | 46 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${kernel_name}; then |
46 | echo "Loading ${kernel_name}"; | 47 | echo "Loading ${kernel_name} at @@KERNEL_LOAD_ADDRESS@@"; |
47 | fatload ${devtype} ${devnum}:${distro_bootpart} @@KERNEL_LOAD_ADDRESS@@ ${kernel_name}; | 48 | fatload ${devtype} ${devnum}:${distro_bootpart} @@KERNEL_LOAD_ADDRESS@@ ${kernel_name}; |
48 | fi | 49 | fi |
49 | echo "Checking for /system.dtb" | 50 | echo "Checking for /system.dtb" |
50 | if test -e ${devtype} ${devnum}:${distro_bootpart} /system.dtb; then | 51 | if test -e ${devtype} ${devnum}:${distro_bootpart} /system.dtb; then |
51 | echo "Loading system.dtb"; | 52 | echo "Loading system.dtb at @@DEVICETREE_ADDRESS@@"; |
52 | fatload ${devtype} ${devnum}:${distro_bootpart} @@DEVICETREE_ADDRESS@@ system.dtb; | 53 | fatload ${devtype} ${devnum}:${distro_bootpart} @@DEVICETREE_ADDRESS@@ system.dtb; |
53 | fi | 54 | fi |
54 | echo "Checking for /devicetree/openamp.dtbo" | 55 | echo "Checking for /devicetree/openamp.dtbo" |
55 | if test -e ${devtype} ${devnum}:${distro_bootpart} /devicetree/openamp.dtbo; then | 56 | if test -e ${devtype} ${devnum}:${distro_bootpart} /devicetree/openamp.dtbo; then |
56 | echo "Loading and merging openamp.dtbo into device tree"; | 57 | echo "Loading and merging openamp.dtbo into device tree at @@DEVICETREE_OVERLAY_ADDRESS@@"; |
57 | fatload ${devtype} ${devnum}:${distro_bootpart} @@DEVICETREE_OVERLAY_ADDRESS@@ devicetree/openamp.dtbo; | 58 | fatload ${devtype} ${devnum}:${distro_bootpart} @@DEVICETREE_OVERLAY_ADDRESS@@ devicetree/openamp.dtbo; |
58 | fdt addr @@DEVICETREE_ADDRESS@@ | 59 | fdt addr @@DEVICETREE_ADDRESS@@ |
59 | fdt resize 8192 | 60 | fdt resize 8192 |
@@ -61,7 +62,7 @@ do | |||
61 | fi | 62 | fi |
62 | echo "Checking for /${ramdisk_name}" | 63 | echo "Checking for /${ramdisk_name}" |
63 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${ramdisk_name} && test "${skip_tinyramdisk}" != "yes"; then | 64 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${ramdisk_name} && test "${skip_tinyramdisk}" != "yes"; then |
64 | echo "Loading ${ramdisk_name}"; | 65 | echo "Loading ${ramdisk_name} at @@RAMDISK_IMAGE_ADDRESS@@"; |
65 | fatload ${devtype} ${devnum}:${distro_bootpart} @@RAMDISK_IMAGE_ADDRESS@@ ${ramdisk_name}; | 66 | fatload ${devtype} ${devnum}:${distro_bootpart} @@RAMDISK_IMAGE_ADDRESS@@ ${ramdisk_name}; |
66 | fdt addr @@DEVICETREE_ADDRESS@@ | 67 | fdt addr @@DEVICETREE_ADDRESS@@ |
67 | fdt get value bootargs /chosen bootargs | 68 | fdt get value bootargs /chosen bootargs |
@@ -70,7 +71,7 @@ do | |||
70 | fi | 71 | fi |
71 | echo "Checking for /${rootfs_name}" | 72 | echo "Checking for /${rootfs_name}" |
72 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${rootfs_name} && test "${skip_ramdisk}" != "yes"; then | 73 | if test -e ${devtype} ${devnum}:${distro_bootpart} /${rootfs_name} && test "${skip_ramdisk}" != "yes"; then |
73 | echo "Loading ${rootfs_name}"; | 74 | echo "Loading ${rootfs_name} at @@RAMDISK_IMAGE_ADDRESS@@"; |
74 | fatload ${devtype} ${devnum}:${distro_bootpart} @@RAMDISK_IMAGE_ADDRESS@@ ${rootfs_name}; | 75 | fatload ${devtype} ${devnum}:${distro_bootpart} @@RAMDISK_IMAGE_ADDRESS@@ ${rootfs_name}; |
75 | fdt addr @@DEVICETREE_ADDRESS@@ | 76 | fdt addr @@DEVICETREE_ADDRESS@@ |
76 | fdt get value bootargs /chosen bootargs | 77 | fdt get value bootargs /chosen bootargs |