MPC8313 & SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8313 & SPI

1,551 Views
MarkB
Contributor I

I am trying to understand how the SPI interface works in this BSP.  I don't see any of the spi devices in /dev/.  Do they need to be created by hand using 'mknod'?  Are they located elsewhere?

 

Also, does anyone have some example SPI code that talks to the MPC83* SPI driver?

Labels (1)
0 Kudos
2 Replies

431 Views
set
Contributor I

hiii

 

did you find the example code for SPI. i am  struck on the same side. please tell me how to check SPI communication for MPC8313 . I am also having this BSP Pakage for Rev. 4 . how to use this. guide me all please.

0 Kudos

431 Views
MarkB
Contributor I

I've replaced my Rev A4 boards with the new Rev C hardware and I still can't get spidev up and running.

 

I've recompiled the kernel with SPI support and I am loading devfs.  However, I see that udevd is present on the RDB but it isn't running at startup.

 

Do I need both devfsd and udevd?  It seems like I wouldn't.

 

I've even tried passing mount=devfsd as a boot parameter.

 

FYI, I am using the spidev_test.c compiled binary as a starter.  I always get "can't open device: No such file or directory" which suggests to me that udev or devfs is borked.

 

I've also tried the BSP kernel and 2.6.28.6.

0 Kudos