Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: shug on June 12, 2015, 04:03:47 PM

Title: Kernel 3.19 and SPI support
Post by: shug on June 12, 2015, 04:03:47 PM
Hello all,
I used to work on my A20 board with v3.4 kernel and the fex/bin files to enable spi support (/dev/spidevX.X).
I just switch to a new image with a v3.19 kernel and it seems that there isn't any fex/bin files anymore but a "dtb" folder with .dtb compiled files.
Do you know ho to manage with these files ?
Thank you
xavier
Title: Re: Kernel 3.19 and SPI support
Post by: MBR on June 29, 2015, 04:34:20 AM
These are so called Device trees, see http://elinux.org/Device_Trees (http://elinux.org/Device_Trees) or maybe Device Tree for Dummies from the Linux Foundation at the http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf (http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf). They are the way how to manage devices on ARM platform on almosts everything other than Allwinner SoCs. They work similar to the FEX files, so you must edit the source (DTS) first, them compile it into the binary format (DTB) to use.
Title: Re: Kernel 3.19 and SPI support
Post by: Cosik on August 21, 2015, 04:42:28 PM
Did you try this solution https://www.olimex.com/forum/index.php?topic=3809.msg16053#msg16053 ?