Building Image With Yocto - Wrong Kernel Version

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Building Image With Yocto - Wrong Kernel Version

跳至解决方案
2,907 次查看
flohg
Contributor II

Hello!

I am currently trying to build a image for a imx6Q Board. So far I have followed two tutorials

https://community.freescale.com/docs/DOC-94849

and the

Freescale Yocto Project's User Guide

Everything works fine.

The problem started when I tried to attach a USB Camera to the board. The board recognizes it, but just as:

usb 1-1: new high-speed USB device number 3 using ci_hdrc

After some google-using I knew I had to load (or at least try to load) the modules "uvcvideo.ko" and/or "gspca_main.ko".

So I tried this on the board

insmod uvcvideo.ko

Which lead to the output:

uvcvideo: disagrees about version of symbol module_layout

and

insmod: ERROR: could not insert module uvcvideo.ko: Invalid module format

Ok, the modules where build against a different kernel version - checking the board kernel version (uname -r): 3.16.0-rc3

But the modules reside in the directory /lib/modules/3.10.17-1.0.1_ga+gdac46dc

So my question is, where does this kernel 3.16 come from?

At the moment I actually do not care what kernel version I use, I just want to be able to use the modules I build.

On a side note: If start menuconfig for virtual/kernel I am able to configure the kernel for 3.10.17.

Maybe someone can help me or point me in the right direction.

Best Regards,

Florian

标签 (3)
0 项奖励
回复
1 解答
2,150 次查看
flohg
Contributor II

I found it - somehow the 3.16 kernel was in the nand-flash. I changed the uboot parameters and was able to load the correct kernel from the sdcard. Now I am not able to boot because of some kernel panics, but that is another problem.

Best Regards,

Florian

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,151 次查看
flohg
Contributor II

I found it - somehow the 3.16 kernel was in the nand-flash. I changed the uboot parameters and was able to load the correct kernel from the sdcard. Now I am not able to boot because of some kernel panics, but that is another problem.

Best Regards,

Florian

0 项奖励
回复
2,150 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Thanks you for updating the post with the answer. I'm sure it will help other users on the community.

0 项奖励
回复