device driver

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

device driver

731 Views
niklasmolin
Senior Contributor I

Hi.

I wonder if there is a "quick" way to compile a device driver in Yocto (creating a .ko file) or do I have to include or do I have to create a recipe?

Thanks,

Niklas

Labels (2)
0 Kudos
5 Replies

518 Views
nishad_kamdar
Contributor IV
0 Kudos

518 Views
LeonardoSandova
Specialist I

At the development phase, I would have the driver built-in on the kernel and indicate u-boot to tftp it. Once your driver is working correctly, then build it as module.

518 Views
nishad_kamdar
Contributor IV

Hi ,

I just saw your discussion , and i thought i would ask you a related question, I have a a custom iMX6q board, It has is uboot and kernel in Weim NOR and rootfs in eMMC, it is booting just fine, however,  i have an FPGA connected on the EIM bus.

Following are the connecions,

CS1

26 bit address lines

lower order data bus

Now want to access the FPGA as an SRAM. I have the resources to write a block ram into the FPGA.

But i am new to writing drivers in Linux.

Can you point me to a right direction or documentation or a reference driver, so that i can find out the procedure to add a new device to the kernel.

help would be appreciated,

nishad

0 Kudos

518 Views
LeonardoSandova
Specialist I

Nishad, first search for a device driver already implemented or one similar to the one you need. If it does not exist, you may need to create a new one from scratch. Writing a driver is not trivial. BTW can you post your question on a new thread?

0 Kudos

518 Views
nishad_kamdar
Contributor IV

Hi Leonardo,

Yes i can do that.

Thanks for the tip.

regards, nishad

0 Kudos