On 05/24/2012 03:24 AM, Pierre-Emmanuel Goudet wrote:
> Thanks for this.
> We are already trying such a modification but not for "spidev" but for 
> "cc120" that we are trying to connect to beaglebone, through 
> "mac802154/iee802154" proto drivers.

Yes, that's why I clarified in the second email. I sent the wrong patch,
but the idea is the same, substituting cc120 for spidev. I thought your
previous email said cc2420. If that's the case, then there's already of
course a driver for it and you just need to attach to it (similar to
what I did in the patch I sent). If cc120 is a new device, then you'll
need to write a driver for it.

> Not yet successful but still working on. Will soon send our state on the 
> mailing list.
>
> We are a bit "new" to kernel and hardware/protocols drivers in Linux. Why the 
> way is so tricky for us. Do you know a good "tutorial" showing global schemes 
> of interfaces between Network stack / Protocols drivers / hardware drivers ?
>

The first thing you'll want to see You'll want to see
Documentation/spi/spi-summary for information about SPI, assuming that
you're using an SPI device like the cc2420.

Also see Documentation/networking/ieee802154.txt .

For general information about making drivers, see Linux Device Drivers,
3rd Edition at http://lwn.net/Kernel/LDD3/ .

Beyond that you'll need to read the code. Look at drivers which are
similar to your device to see how they work.

Alan.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to