diff --git a/recipes-bsp/u-boot/files/uEnv.txt b/recipes-bsp/u-boot/files/uEnv.txt new file mode 100644 index 0000000..05514d2 --- /dev/null +++ b/recipes-bsp/u-boot/files/uEnv.txt @@ -0,0 +1,4 @@ +bootcmd_otenv=load ${devtype} ${devnum}:3 ${scriptaddr} /boot/loader/uEnv.txt; env import -t ${scriptaddr} ${filesize} +bootcmd_load_f=load ${devtype} ${devnum}:3 ${ramdisk_addr_r} "/boot"${kernel_image} +bootcmd_run=bootm ${ramdisk_addr_r} +bootcmd=run bootcmd_otenv; run bootcmd_load_f; run bootcmd_run diff --git a/recipes-bsp/u-boot/u-boot_2019.07.bbappend b/recipes-bsp/u-boot/u-boot_2019.07.bbappend index f27f329..bab6383 100644 --- a/recipes-bsp/u-boot/u-boot_2019.07.bbappend +++ b/recipes-bsp/u-boot/u-boot_2019.07.bbappend @@ -25,6 +25,8 @@ SRC_URI_append_freedom-u540 = " \ file://tftp-mmc-boot.txt \ " +SRC_URI_append_freedom-u540_sota = " file://uEnv.txt" + DEPENDS_append_freedom-u540 = " u-boot-tools-native" # Overwrite this for your server @@ -44,6 +46,11 @@ do_deploy_append_freedom-u540() { install -d ${DEPLOY_DIR_IMAGE} install -m 755 ${WORKDIR}/boot.scr.uimg ${DEPLOY_DIR_IMAGE} fi + + if [ -f "${WORKDIR}/uEnv.txt" ]; then + install -d ${DEPLOY_DIR_IMAGE} + install -m 755 ${WORKDIR}/uEnv.txt ${DEPLOY_DIR_IMAGE} + fi } FILES_${PN}_append_freedom-u540 = " /boot/boot.scr.uimg"