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?
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.
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,
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, 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?
Yes i can do that.
Thanks for the tip.
This in the new thread.
Retrieving data ...