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!

AR# 68449

2016.4 PetaLinux: Migrating U-boot configs from 2016.3 PetaLinux project to 2016.4 PetaLinux Yocto based project

Description

How do I migrate 2016.3 PetaLinux project U-boot configs to a 2016.4 PetaLinux project?

Solution

1) To change the defconfig:

  1. Copy the defconfig file into your layer's "<2016.4-petalinux-project>/project-spec/meta-plnx-generated/recipes-bsp/u-boot/files/" directory (If the directory is not present, please create the directory).
  2. Rename the file to "defconfig.cfg".
  3. Add the following lines to your layer's bbappend file:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "  file://defconfig.cfg"

2) For incremental changes to the U-boot .config file:

  1. Specify configuration fragment in the your layer's bbappend file as follows.
  2. Copy the fragment files to your layer's "<2016.4-petalinux-project>/project-spec/meta-plnx-generated/recipes-bsp/u-boot/files/" directory (If the directory is not present please create the directory).     
  3. Add the following lines to your layer's bbappend file (if fragment1.cfg and fragment2.cfg are your fragment files.)

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "  file://fragment1.cfg \
                                          file://fragment2.cfg \
                                      "

3) If you have a final U-boot .config file you want to use:

  1. Copy the .config file into your layer's "<2016.4-petalinux-project>/project-spec/meta-plnx-generated/recipes-bsp/u-boot/files/" directory (If the directory is not present please create the directory).
  2. Rename the file to "defconfig.cfg". 
  3. Add the following lines to the .bbappend file in your layer:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "   file://defconfig.cfg"

 

Note: The SRC_URI tells the build system how to search for the file. 

The FILESEXTRAPATHS extends the FILESPATH variable (search directories) to include the files directory created for the configuration changes.

AR# 68449
Date 05/18/2018
Status Active
Type General Article
Devices
Tools
Boards & Kits
Page Bookmarked