mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-04 07:44:45 +02:00
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:
committed by
Khem Raj
parent
679a01b574
commit
f48bec2be0
4
recipes-bsp/u-boot/files/uEnv.txt
Normal file
4
recipes-bsp/u-boot/files/uEnv.txt
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user