Linux Kernel Driver Development

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

Linux Kernel Driver Development

2,573 次查看
ritesh_panchal
Contributor I

Hello I am using imx6qsabresd board running with 3.14.28 linux fsl-image-multimedia-full image.

I want to develop toshiba3232pb camera driver kernel module.

So whats the best way to do the same.

Can i use eclipse to develop the same? I can able to debug Helloworld C project. Eclipse is generating .o file.

How to generate .ko from eclipse?

标签 (3)
0 项奖励
回复
3 回复数

1,992 次查看
Yuri
NXP Employee
NXP Employee

Please refer to the following :

http://magiksys.blogspot.ru/2012/05/develop-linux-kernel-module-using.html

http://askubuntu.com/questions/63834/writing-a-hello-world-device-driver-for-kernel-2-6-using-eclips...

You will need kernel headers (in include), for FSL Yocto Linux directory

is located in

<Yocto build directory>/tmp/work/<machine-poky-linux-gnueabi  


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,992 次查看
ritesh_panchal
Contributor I

Thanks Yuri for the Reply.

I followed the below link and setup Eclipse environment for yocto.

http://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#adt-eclipse

i created example template HelloWorld (Yocto Porject ADT Autotool Project). And i successfully cross-compile it and debug from eclipse also.

And i referred your link.

But instead of including linux src path and variable i just created Yocto Project ADT CMake HelloWorld Project.

But when i build this project i got error "Please make sure that cmake is installed properly on this machine".

So what i am missing?

0 项奖励
回复

1,992 次查看
Yuri
NXP Employee
NXP Employee
0 项奖励
回复