UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
754 Views
Registered: ‎11-14-2008

Can Petalinux build uboot enviironment uboot.env?

Can Petalinux create the uboot environment file uboot.env from a text file (like uEnv.txt)?

 

I configure uboot to store it's environment in SD/eMMC memory. I'm able to issue “saveenv” from u-boot, which copies the default environment to eMMC. However I need a recipe to create it from a Petalinux build.

 

I added UEnv.txt in my u-boot bbappend recipe.

(Refer  https://github.com/Xilinx/meta-xilinx/blob/rel-v2017.1/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb#L17)

 

include u-boot-xlnx.inc

XILINX_RELEASE_VERSION = "v2017.1"
SRCREV ?= "92e3dd638b50ad22dd90072673c80d8730903e95"
PV = "v2017.01-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}"

FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:"
FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot:"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"


UBOOT_ENV_minized = "uEnv"

SRC_URI_append = " file://platform-top.h"
#SRC_URI_append = " file://0001-zynq-mmc-Removed-HS200-support.patch"
SRC_URI_append = " file://0001-zynq-qspi-initialize-is_dual-flag.patch"
SRC_URI_append = " file://uEnv.txt"

SRC_URI += "file://user_2017-08-14-12-31-00.cfg \
file://user_2017-08-28-13-51-00.cfg \
file://user_2017-08-30-14-13-00.cfg \
"

 

This appears to be ignored during the build for some reason. What am I missing?

 

Thanks!

/Matt

0 Kudos