help with coding a loadable kernel module

Daniel Braniss danny at cs.huji.ac.il
Fri Apr 17 08:04:16 UTC 2015


Hi,
I know I’m embarking on a dangerous trip, but I want to use a Raspberry Pi
and or a BeagleBone to read (and write) RFID cards.
Since a driver is needed to use the spibus, I have 2 options while
developing:
1- write a conventional driver module
    means cross compiling, generating a new kernel, making a new image,
    writing a SD card, etc, etc
2- make it a loadable module
    cross compile,via NFS load/unload 

2 seems the logical path, but I’m getting entangled trying to use
   the spibus, while with 1 there are several drivers I can use to
   learn from.

So before I give up on option 2, is there some examples/help?

I should point out that I have no experience (yet) with arm/spi/fdt
and so option 2 will make the trial and error faster :-)

thanks

	danny




More information about the freebsd-hackers mailing list