No alakul a molekula.
Sikerült módban pörgetni az spi modulokat.
Elvileg a Kconfig azt írja hogy lenne ilyen opció a menüconfigban, ha a "depends on DEBUG_KERNEL" sor teljesül.
Beraktam mindent ami kernel és debug, de így sem lett elérhető, ezért a Makefileba fő kókány megoldásként beírtam egy
EXTRA_CFLAGS += -DDEBUG sort. Így a dmesg bőbeszédűbb, illetve mostmár pontosan tudom hol akad el. (spidev.c, spidev_open-ben)
Illetve rájöttem egy RTFS jellegű apróságra:
* SPI has a character major number assigned. We allocate minor numbers
* dynamically using a bitmask. You must use hotplug tools, such as udev
* (or mdev with busybox) to create and destroy the /dev/spidevB.C device
* nodes, since there is no fixed association of minor numbers with any
* particular SPI bus or device.
*/
#define SPIDEV_MAJOR 153 /* assigned */
#define N_SPI_MINORS 32 /* ... up to 256 */
Azonban az mknod /dev/spidev1.1 c 153 32 sem segített, a spidev_test változatlanul bukik,
a dmesgben
spidev: nothing for minor 32nyomot hagy.
Edit:
A 2.6.31-es kernelben már több mese van arról hogy mit hogyan:
Do not try to manage the /dev character device special file nodes by hand.
That's error prone, and you'd need to pay careful attention to system
security issues; udev/mdev should already be configured securely.
Tehát jobb lenne megkerülni az mknodot.
A hotplug2 fent van, azonban nem találtam semmi információt a témában, hogy hogyan kellene vele az spit összebarátkoztatni. Valakinek nincs véletlenül valami ötlete?