How to get to menuconfig for u-boot in Yocto environment

Sylvain Huard picture Sylvain Huard · Apr 4, 2017 · Viewed 7.1k times · Source

I'm using Yocto for the first time for an ARM embedded system with a Xilinx Zynq. I want to make some configuration changes that requires going in the menuconfig utility. Yocto documentation shows how to do it for the Linux Kernel

bitbake yocto-xlnx -c menuconfig

Which, for Xilinx, I turned into

bitbake linux-xlnx -c menuconfig

It works very well.

Now, I want to do the same with u-boot and change the .config file using the menuconfig utility. I can't find any way to do it in Yocto or Xilinx documentation. I tried the obvious like

bitbake u-boot-xlnx -c menuconfig

just to get an error message:

ERROR: Task do_menuconfig does not exist for target u-boot-xlnx

Any Idea how to get to u-boot menuconfig with Yocto?

Edit: here are the layers I use

BBLAYERS ?= " \
/home/sylvain/poky/meta \
/home/sylvain/poky/meta-poky \
/home/sylvain/poky/meta-yocto-bsp \
/home/sylvain/poky/openembedded-core/meta \
/home/sylvain/poky/meta-xilinx \
"

Answer

Anders picture Anders · Apr 5, 2017

It's currently, as of 2.3 Pyro, not possible to run bitbake u-boot -c menuconfig as no-one has implemented that functionality for the U-Boot recipe. Please, file a bug if you'd have uses for this.

Normally, I'd recommend either of the following approaches:

  1. bitbake u-boot -c devshell
  2. Use of devtool.
  3. Use the SDK.

All of these would not only allow you to run make menuconfig, but also to cross-compile U-Boot to verify your configuration.