u-boot: Add OSTree uEnx.txt file

Add the uEnx.txt file to meta-riscv to allow users to build OSTree
setups for the HiFive Unleashed. This is based on the original version
from Ricardo Salveti (@ricardosalveti).

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
Alistair Francis
2019-08-05 16:16:42 -07:00
committed by Khem Raj
parent 679a01b574
commit f48bec2be0
2 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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"