yocto menuconfig do not load driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto menuconfig do not load driver

2,406 Views
nirmalpanchal
Contributor II

Hi,

I want to add ralink driver to my linux kernel. As explained in the yocto document I enabled the ralink driver using menuconfig. Then copied the .config  as defconfig inside linux kernel source directory /receipe-kernel/linux/files

and added following line to the .bbappend files

FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://defconfig"
and rebuild the kernel. But no ralink driver appeared inside built linux kernel. I could not
find anything named ralink inside /lib/module directory.

Steps I followed: 
1. bitbake -c cleansstate linux-variscite
2. bitbake -c menuconfig linux-variscite
3 .applied changes as in the attached image ad saved it as .config
4. copied .config as defconfig to /receipe-kernel/linux/files
5. added .bbappend files as metntioned above
6. bitbake linux-variscite

Though, I could not find anything inside linux-kernel image on my machine.

Can somebody tell me what I am doing wrong?
Why module is not appearing in /lib/module ?

End goal is to install driver on the image...
But since I can not see it on kernel,I am not sure it will be available on the image rootfs.
0 Kudos
2 Replies

1,079 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nirmal Panchal,

Which document are you referring to and which Community BSP branch are you using (or BSP Release, if that’s the case)? I’d like to try to replicate this issue.

One of the variables to keep in mind when adding appends is the priority of the layer. Is the bbappend in a layer with a higher priority than the rest of the layers?

The other thing is I think the file should be placed on the directory of the recipe. Inside recipes-kernel/linux/<KERNEL_RECIPE>/

I’ll be looking forward to hearing back from you!

Regards,

0 Kudos

1,079 Views
nirmalpanchal
Contributor II

Hi,

Gusarambula,

I am referring following link in order to do this.

Yocto Project Linux Kernel Development Manual

I am not sure about the priority of the layers.

In my case, I am using variscite DART 6ul EVK board (for more info : DART-6UL - Variscite Wiki ).

It has its own meta layer named meta-variscite-imx which contains kernel

kernel recipe named linux-variscite_4.1.5.bb and linux-variscite_bbappend are located inside /meta-variscite-imx/recipes-kernel/linux/

and I created another directory inside /meta-variscite-imx/recipes-kernel/linux/ called files which contains updated defconfig

currently I am using :

BSP from GitHub - varigit/meta-variscite-imx: BSP for Variscite i.MX boards , branch :Krogoth-imx-4.1.15-var01_r2

Let me know if you need any further information in order to investigate.

Regards.

0 Kudos