AnsweredAssumed Answered

Geting imx yocto 1.8's cross env to be used with kernel backports tool

Question asked by jayakumar2 on Oct 5, 2016
Latest reply on Oct 5, 2016 by gusarambula

Hi,

I've been doing okay so far with the 3.14.28/yocto 1.8 release. I'm now looking at adding support for the wifi chip on my board which uses wl12xx. On 3.0.35/ltib, I was able to just manually apply the backported patches to the kernel and get things to work.

With yocto and 3.14.28, this looks a bit different. Firstly, I need to use the kernel backports tool ( WL18xx System Build Scripts - Texas Instruments Wiki  ) which is not part of yocto. I'm at the step that needs the setup-env. With previous versions of yocto for imx, I was able to get this from the log.do_compile logs that are generated in the build directory. But I noticed that with this version, the log is much shorter. Eg:

less ~/yocto_3.14.28-1.0.1/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-imx/3.14.28-r0/temp/log.do_compile.888

DEBUG: Executing shell function do_compile
NOTE: make -j 1 zImage CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd LOADADDR=0x80008000
scripts/kconfig/conf --silentoldconfig Kconfig

 

I think I can set this up manually figuring out each parameter. For example, on my setup this becomes:

export TOOLCHAIN_PATH=/home/test/yocto_3.14.28-1.0.1/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
export KERNEL_PATH=/home/test/yocto_3.14.28-1.0.1/build/tmp/work/imx6slevk-poky-linux-gnueabi/linux-imx/3.14.28-r0/git

 

But this seems error prone and messy. I was wondering if I missed an easy step that could have been done to generate the setup-env needed for kernel backports tool, or if there is an easier way to add wl12xx support.

 

Thanks!

Outcomes