
This post is a summary of an error that I hit when trying to use devtool to rebuild the Linux kernel using PetaLinux 2018.2 from Xilinx: "could not find kconf openamp.cfg, included from /opt/pkg/petalinux/components/yocto/source/arm/workspace/sources/linux-xlnx/oe-local-files/openamp.scc."
Steps to Reproduce
1 BUILD THE LINUX KERNEL FROM SOURCE AND SAVE CHANGES
1.1 PULL IN PETALINUX TOOLS
1.1.1 Steps
1. Open a new terminal.
2. Type cd ~/plxprjs/xilinx-zc706-2018.2/
3. Type source /opt/pkg/petalinux/settings.sh
I see:
1.2 PULL IN BITBAKE
1.2.1 Note
I'm placed into ~/plxprjs/xilinx-zc706-2018.2/build/ after this sequence.
1.2.2 Steps
1. Type cd ~/plxprjs/xilinx-zc706-2018.2/
2. Type the following:
source /opt/pkg/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
I see:
source /opt/pkg/petalinux/components/yocto/source/arm/layers/core/oe-init-build-env
I see:
# this ^^^ puts you into PLXPROJ/build
# stay here to run BitBake commands
export PATH=/opt/pkg/petalinux/tools/hsm/bin:$PATH
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PETALINUX"
1.3 PULL U-BOOT-XLNX INTO DEVTOOL
1.3.1 Steps
1. Type cd ~/plxprjs/xilinx-zc706-2018.2/build/
2. Type devtool modify linux-xlnx
I see:
1.4 MAKE A CHANGE
1.4.1 Steps
1. Type cd /opt/pkg/petalinux/components/yocto/source/arm/workspace/sources/linux-xlnx
2. Type vi init/main.c
3. Make this change:
1.5 BUILD THE CHANGE
1.5.1 Steps
1. Type cd ~/plxprjs/xilinx-zc706-2018.2/build/
2. Type bitbake linux-xlnx
I see:
1.6 EXIT DEVTOOL
1.6.1 Steps
1. Type cd ~/plxprjs/xilinx-zc706-2018.2/build/
2. Type devtool reset --no-clean linux-xlnx
I see:
3. Type cd /opt/pkg/petalinux/components/yocto/source/arm/workspace/sources
4. Type rm-rf linux-xlnx
Reference
Xilinx logo clipped from xilinx.com