Altera_Forum
Honored Contributor
14 years agoNios SPI master support in kernel version 2.6.30
Hello all:
I am trying to compile and load a driver for a WiFi device with an SPI interface to my Nios2 host controller. For the kernel, I am compiling in Altera SPI master support with bitbanging support. My nios2-linux-gcc version is 3.4.6. The kernel and WiFi driver seem to build without problems however, when I try to load the driver with modprobe or insmod (from busybox) the driver hangs and the system locks up. I'm using printk's for debugging through the console and have been able to determine that the Altera SPI driver (altspi.c) appears to be registering the master controller and getting the correct IRQ. Debugging the WiFi driver and spi.c in the same way, I have been able to trace the lockup point... it locks up within spi_async in linux/spi/spi.h. So, probably something is wrong with either the spi_device struct or the spi_message struct but I'm not sure where to go from here. I guess I should point out that the the WiFi driver is proprietary so I need to compile and load it as a module.... Any suggestions would be helpful, thanks!