Linux Kernel Driver Development

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

Linux Kernel Driver Development

1,655 Views
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?

Labels (3)
0 Kudos
3 Replies

1,074 Views
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 Kudos

1,074 Views
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 Kudos

1,074 Views
Yuri
NXP Employee
NXP Employee
0 Kudos