Trying to run through Scotts spi stuff.
http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=57&Itemid=62
Builds fine
Load spike.ko
Module Size Used by
spike 2397 0
sdmak 3942 0
lpm_omap3530 6851 0
dsplinkk 129705 1 lpm_omap3530
cmemk 22108 0
ipv6 229162 12
mt9v032 6118 4294967295
omap3_isp 106957 0
v4l2_common 8885 2 mt9v032,omap3_isp
videodev 78776 3 mt9v032,omap3_isp,v4l2_common
media 12192 3 mt9v032,omap3_isp,videodev
but no omap2_mcspi ???
root@...# cat /dev/spike
spike ready on SPI1.1
then build part2
and load it
root@...# insmod spike.ko
root@...# cat /dev/spike
Status: 0
TX: 0 1 2 3
RX: 0 1 2 3
root@...# cat /dev/spike
Status: 0
TX: 4 5 6 7
RX: 4 5 6 7
root@...# cat /dev/spike
Status: 0
TX: 8 9 10 11
RX: 8 9 10 11
root@...# cat /dev/spike
Status: 0
TX: 12 13 14 15
RX: 12 13 14 15
root@...# cat /dev/spike
Status: 0
TX: 16 17 18 19
RX: 16 17 18 19
root@...# cat /dev/spike
Status: 0
TX: 20 21 22 23
RX: 0 0 0 0
remove the jumper
root@...# cat /dev/spike
Status: 0
TX: 24 25 26 27
RX: 0 0 0 0
root@...#
More than likely I've missed a step or stuffed something up but it seems
to be working ???
End goal is to talk to a few sparkfun spi matrix displays
http://www.sparkfun.com/products/760
(well make sure its not to hard for students to do)
Thanks
Alex
part 3
root@...# rm spike.ko
root@...# ls
patches
root@...# insmod spike.ko
root@...# lsmod
Module Size Used by
spike 3717 0
sdmak 3942 0
lpm_omap3530 6851 0
dsplinkk 129705 1 lpm_omap3530
cmemk 22108 0
ipv6 229162 12
mt9v032 6118 4294967295
omap3_isp 106957 0
v4l2_common 8885 2 mt9v032,omap3_isp
videodev 78776 3 mt9v032,omap3_isp,v4l2_common
media 12192 3 mt9v032,omap3_isp,videodev
root@...# cat /dev/spike
Stopped|0|0
root@...# echo start > /dev/spike
root@...# cat /dev/spike
Running|135|0
root@...# cat /dev/spike
Running|2669|0
root@...# cat /dev/spike
Running|2803|0
root@...# cat /dev/spike
Running|3774|0
root@...# echo stop > /dev/spike
root@...# rmmod spike
root@...# insmod spike.ko write_frequency=125
root@...# echo start > /dev/spike
root@...# cat /dev/spike
Running|582|0
root@...# cat /dev/spike
Running|754|0
root@...# cat /dev/spike
Running|858|0
root@...# cat /dev/spike
Running|6644|0
root@...# cat /dev/spike
Running|6856|0
root@...# cat /dev/spike
Running|6966|0
root@...# echo stop > /dev/spike
root@...# insmod spike.ko write_frequency=3000
insmod: error inserting 'spike.ko': -1 File exists
root@...# rmmod spike.ko
root@...# insmod spike.ko write_frequency=3000
root@...# echo start > /dev/spike
root@...# cat /dev/spike
Running|11675|15
root@...# cat /dev/spike
Running|15608|41
root@...# cat /dev/spike
Running|18064|51
root@...# echo stop > /dev/spike
root@...# rmmod spike.ko
root@...# insmod spike.ko write_frequency=100
root@...# lsmod
Module Size Used by
spike 3717 0
sdmak 3942 0
lpm_omap3530 6851 0
dsplinkk 129705 1 lpm_omap3530
cmemk 22108 0
ipv6 229162 12
mt9v032 6118 4294967295
omap3_isp 106957 0
v4l2_common 8885 2 mt9v032,omap3_isp
videodev 78776 3 mt9v032,omap3_isp,v4l2_common
media 12192 3 mt9v032,omap3_isp,videodev
root@...#
|