Raspberry PI instructions don't seem correct about how to enable SPI

1,143 views
Skip to first unread message

Dale Eason

unread,
Feb 6, 2015, 1:00:58 PM2/6/15
to flir-...@googlegroups.com
I got the video to work on raspberry pi however the instructions posted about commenting out the  drivers in the /etc/modules file do not seem right to me.

In fact if I follow them then the raspberryPi_video program will output an error stating that SPI can not be found.  So instead what I think was meant to be stated was to comment out the lines in the /etc/modprobe.d/raspi-blacklist.conf file.

Second I have a vertical line of pixels that seem to be the negative color of the lines on either side.  I have tried to run the FFC  function using the button on the RaspbieryPi_video gui interface but that just seems to hang the program.

Any help would be appreciated.  I have uploaded an example image from my camera.

Dale Eason
IRDad.jpg

W. R. Ashurst

unread,
Feb 6, 2015, 2:24:58 PM2/6/15
to flir-...@googlegroups.com
Greetings Dale,

I agree with you completely about the pi instructions - same experience here.  Also have the vertical line and the program hang at FFC.  If you let the module wait a bit does the vertical line become less apparent?  Mine does, but will sometimes spontaneously re-appear.

Good luck,

Bob A.

Dale Eason

unread,
Feb 7, 2015, 6:38:21 PM2/7/15
to flir-...@googlegroups.com
Fixed the FFC not working.   The i2c-dev was misspelled as ic2-dev in the /etc/modules file.  As part of the debug I discovered there was no /Dev/i2c-1 device.  Which lead me to look closer at the /etc/modules file.

Now flat field works and the vertical line is gone.

Dale Eason

jskane

unread,
Mar 24, 2015, 9:18:07 PM3/24/15
to flir-...@googlegroups.com
Hi,


I have the same problem and was curious where you found that there was no /dev/i2c-1 device? Where is that?

In the /etc/modules file there was nothing listed. So I added it as sudo but so far no luck.

Thanks

Jon Kane

Dale Eason

unread,
Mar 31, 2015, 6:16:23 PM3/31/15
to flir-...@googlegroups.com
Just like I wrote /dev,  That is from the root of the file system.  So cd /dev and then try "ls" to see all the devices.
Dale

Dave Brauer

unread,
May 9, 2015, 6:28:57 AM5/9/15
to flir-...@googlegroups.com
Hi, 

I am trying to bring up the raspberrypi board.  I have gotten as far as connecting the HW, installing qt, qmaking the raspberrypi_video sample code.  At first I got as far as the Red Spot, but I believe that was because I had not enabled SPI and I2C in raspi-config.   After doing so, including, making loading them in the kernel as default, when I try
sudo ./raspberrypi_video
I get 
Error - Could not open SPI device: No such file or directory
From the discussion above, it looks like I need to do something else to load the SPI and I2C modules, beyond just enabling them in raspi-config.

Reading the documentation
suggests that raspi-config should be it.

However, I do not see any modules called anything like spi or I2C in my filesystem.

Also confirmed I have version 3.18 installed 

I also added 
i2c-dev
spidev
to /etc/modules
and saw that these module were being loaded in the boot up sequence, but I still get 
Error - Could not open SPI device: No such file or directory

Any advice would be much appreciated. 

Dave

Dale jason

unread,
May 10, 2015, 12:06:49 AM5/10/15
to flir-...@googlegroups.com
Did you disable the "device tree" in raspi-config? That is necessary to do now as describe in the link you posted.  After that and a reboot you should see the devices in the /dev directory.

Dale

Pierre Guinault

unread,
May 11, 2015, 8:55:38 AM5/11/15
to flir-...@googlegroups.com
In /etc/modules ,
Replace spidev with spi-bcm2708

Comment lines in file /etc/modprobe.d/raspi-blacklist.conf if there are.

Try it.
Reply all
Reply to author
Forward
0 new messages