How to include uEnv.txt in Yocto image

From KoanSoftware Wiki
Revision as of 11:08, 4 December 2020 by Koan (talk | contribs) (Created page with "== How to include uEnv.txt in Yocto image == If you need to include a custom u-boot environment configuration file for a '''BeagleBone''' board, follow these instructions. C...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to include uEnv.txt in Yocto image

If you need to include a custom u-boot environment configuration file for a BeagleBone board, follow these instructions.

Create a new recipe in your custom layer

recipes-bsp/ 
└── u-boot
    ├── files
    │   └── uEnv.txt
    └── u-boot-ti-staging_%.bbappend

Edit the file u-boot-ti-staging_%.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append_beaglebone = " file://uEnv.txt"

UBOOT_ENV_beaglebone = "uEnv"


Add your uEnv.txt file into the files directory.

Rebuild

bitbake virtual/bootloader

Now you will have a uEnv.txt in the image directory and in the wic file