I have been trying to get my SPI for C4 beagleboard for a while without much
success. I have googled and read the successful stories on how to make it work.
But I still can't see my spi port under /dev nor /sys/bus/spi/devices.
I have tried to follow this webpage to modify u-boot to expose the SPI:
I did turn on CONFIG_SPIDEV as a module. But I didn't do the kernel
board init routines to hook up SPIDEV to SPI3.0/3.1. Let me study that
and try again.
I went through this exact exercise a few months back. After getting past
the quirky pinmux configuration (the CLK pin must have its input
enabled), things were quite straightforward. I documented my attempt at
elinux[1]. Hope this helps!
Attached are patches to the 2.6.32.11-x13 kernel by RCN available here: https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable (rev. 66) to pinmux all the McSPI controllers (eg: 3.0, 3.1, and 4.0), the UART2 pins, and various GPIOs to the expansion header. You use them by simply saving them to the patches/ directory in the 2.6-stable folder of the repo, then running the patch.sh file (attached) that patches the kernel during its build.
The patch for omap2_mcspi is to shutup a warning message (no bad effects on my end but YMMV). The patch.sh file (may be out of date for newer revisions, seems like RCN’s committing quite a lot of changes to the bazaar repo), but it contains the function “custom-patches” that will patch the kernel as necessary, so you can use RCN’s build_deb and build_kernel scripts to build your kernel.
Hope this helps. Special thanks to RCN and emeb for the SPI help.
– @
I will try these fixes today. Currently I am using 2.6.33.3 vanilla kernel
because that the xenomai patch only works for vanilla kernel. Does
that make a difference for SPI?
I was just about to try the xenomai, and found out that the patch
doesn't exist for .32 kernel.
I'm bit nervous to use vanilla kernel as there are huge number of
patches for beagleboard in angstrom. Did you have some problems with
vanilla kernel 33 ?
Yes. There are some problems. The goodnews is xenomai works fine. But
DVI video doesn't work. I can't tell if my USB keyboard or mouse still
work. But console
still works.
Xenomai has no patch for 2.6.32. But it has patch for 2.6.33 and some other
version of kernels.