[MinnowBoard] Lubuntu SPI-support
Markus Maier
maier.m at web.de
Wed May 13 17:42:36 UTC 2015
Hans Schriefers <hans.schriefers at ...> writes:
>
> Hey guys,
> I am trying to use the SPI-Bus to communicate with an Arduino Mega Board.
I tried to follow this tutorial
(http://www.mjoldfield.com/atelier/2014/12/mbmx-spi.html) but did not manage
to get it working.
>
> My steps:
>
> 1. Install Lubuntu with Kernel linux-3.19.0-16-gerneric
> 2. Downloaded Kernel linux-3.18.0-gerneric from
(https://www.kernel.org/pub/linux/kernel/v3.x). I used this kernel as it was
used in the tutorial as well.
> 3. Used the .config file
from https://github.com/mjoldfield/seabass/blob/master/config
>
> 4. Compiled the kernel successfully
> 4. Followed the instructions given in the tutorial and ended up with an
error "insmod: unable to load modules"
>
> Has anyone enabled SPI on the Minnowboard Max yet? Do you have a better
tutorial for me? Do you know how to solve my problem?
> Any help is much appreciated!
>
> Thank you in advance.
>
> Hans
>
>
>
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at ...
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>
Well, it should even be easiert than that. No need for a custom kernel on
Lubuntu as far as I know if you have your linux headers installed. Not even
the whole linux-source is needed.
Just
- grab the SPI driver source code
- cd minnow-max-extras/modules/low-speed-spidev/
- compile it "make KERNEL_SRC=/usr/src/linux-headers-`uname -r`"
- that should end up in a low-speed-spidev.ko in your local directory
- you can "insmod low-speed-spidev.ko" from there
Now either add the insmod to /etc/rc.local or copy the file to some location
where depmod finds it and let modprobe do the job.
Worked for me that way (if I remember corretly) on Xubuntu, which should
basically be the same.
Cheers
Markus
More information about the elinux-MinnowBoard
mailing list