Skip to content
Advertisement

YOCTO Change kernel version and select drivers

I am trying to compile a new Linux kernel obtained from https://github.com/qoriq-open-source/linux (version 4.9) for T1042D4RDB-64B embedded board using Yocto. It’s currently using 4.1.35-rt41.

I followed these steps:

  1. bitbake virtual/kernel -c cleansstate

  2. bitbake virtual/kernel -c patch

  3. replacing git folder with my new kernels source code (https://github.com/qoriq-open-source/linux)

  4. make ARCH=powerpc menuconfig

  5. bitbake virtual/kernel

Result is

The new kernel has compiled successfully but uImage does not contain the drivers I need. There are only 4 drivers in the new kernel (deploy/images/t1042d4rdb-64b/rootfs.tar.gz) which is “hid”, “input”, “misc” and “staging” like this.

There are lots of driver folders in Linux kernel 4.9 such as gpio,gpu,bluetooth, connector and so on..

Question is

How can I import the drivers I need to new uImage and put them into the board ? Or how can I compile this kernel and select the desired modules/drivers? I want a rich kernel like my Ubuntu kernel.

Advertisement

Answer

I found the solution by upgrading Yocto version from 2.0 to 2.7. The version I used was newly designed for my board(t1042d4rdb-64b) including linux kernel 4.19.xxx. Installation instructions can be found here https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=yocto_2.7

Advertisement