saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

ERROR: could not insert 'spi_bcm2708': No such device

Wed Mar 25, 2015 6:07 pm

Hi,

I have been trying to enable SPI on the latest Pi 2. Each time I run ' sudo raspi-config' and enable the SPI and then exit the response is 'ERROR: could not insert 'spi_bcm2708': No such device.

[email protected] ~ $ sudo raspi-config
ERROR: could not insert 'spi_bcm2708': No such device


I cannot understand why this keeps happening ? Help please !!

SH

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Wed Mar 25, 2015 7:09 pm

It may be a device tree related problem.

Add dtparam=spi=on to /boot/config.txt and reboot.

See http://www.raspberrypi.org/forums/viewt ... 28&t=97314 for full details.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Wed Mar 25, 2015 7:48 pm

Hi,.

I have done that - but still no luck I have even used the raspi-config to enable SPI/DT/kernel etc.

Regards,

SH

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Wed Mar 25, 2015 7:51 pm

uname -a
cat /etc/os-release
cat /proc/cpuinfo

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Wed Mar 25, 2015 11:25 pm

Hi.
I am away from the office at the moment but a quick question:
I understand running those commands will return system info. But what information will they give regarding the issue I'm having with SPI.

Regards.

Saj

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 1:01 pm

Below are the responses from the commands :

I notice that the Hardware is BCM2709 not BCM2708 ??

uname -a
Linux sajpi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux


cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"


cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5

Hardware : BCM2709
Revision : a01041
Serial : 000000001d74c68d


Regards,

SH

User avatar
DougieLawson
Posts: 34568
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 1:08 pm

saj wrote:Hi,.

I have done that - but still no luck I have even used the raspi-config to enable SPI/DT/kernel etc.

Regards,

SH
Have you added it to the right config?

Boot while holding the [SHIFT] key. Use the NOOBS recovery system to edit your config.txt file.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 1:16 pm

As it happens they don't help much. I wanted to confirm you had a Pi2, although in actual fact that is pretty irrelevant to the SPI problem as well.

Does

Code: Select all

lsmod | grep spi
show the module as loaded?

Is the modules present at /lib/modules/3.18.7-v7+/kernel/drivers/spi/spi-bcm2708.ko

I don't remember any problems but perhaps you might as well update to the latest firmware with

Code: Select all

sudo rpi-update

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 2:15 pm

Hi,

Thanks for the help.

lsmod | grep spi does not return anything.

spi-bcm2708.ko is in /lib/modules/3.18.7-v7+/kernel/drivers/spi

I'll try the update now

Regards,
SH

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 2:24 pm

Hi ,

I believe I tried sudo rpi-update yesterday and it killed the Pi. It would get stuck on reboot and hang. I dont want to re-run this command again if there is an issue.

From what I read the standard update should take care of the firmware.

Any thoughts ?

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:22 pm

Hi,

Just ran rpi-update and it kills the pi on boot up again:

Download from here : http://expirebox.com/download/b6939714a ... 84e85.html

--

User avatar
DougieLawson
Posts: 34568
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:35 pm

Try this
sudo apt-get --reinstall install raspberrypi-bootloader
that will re-install the stock stable kernel and /lib stuff.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:37 pm

I have to re-flash the sd card - i cannot do anything with the system, it is completely stuck

I have seen this : http://www.raspberrypi.org/forums/viewt ... 78#p206778

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:48 pm

Is that another way to update the pi to the latest firwamre/libs etc ?

User avatar
DougieLawson
Posts: 34568
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:55 pm

saj wrote:Is that another way to update the pi to the latest firwamre/libs etc ?
Clone stuff from another SDCard (your RPi booted from one card with the other mounted in a USB reader).

It lives in partitions #1 & #5 and in /lib/modules on the root filesystem.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 3:59 pm

How do I get to the problematic SD card on a second pi ? I have plugged it in. What commands do i need to run from the shell ?

In simple in layman's terms would be most appreciated !!

2. After running these command will I get the pi up and running with spi support ?

Regards,

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 4:30 pm

It would be easier if you are using a non-Pi, as the Pi will be confused if you swap out its SD card.

Either another Linux box or a Pi with a USB SD card reader module.

Are you using NOOBS or Raspbian?

No, this won't make SPI work, we still don't understand what is wrong.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 4:42 pm

Hi,

This is the Pi 2 I have: http://www.element14.com/community/comm ... spberrypi2

Its is NOOBS.

I have another Pi I can use, what do I need to do in order to get the SD card (crashing after running rpi-update) back up and running?

What are the command needed to run ?

Regards,

SH

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 5:12 pm

I can't help with NOOBS. I don't know how it works.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 5:34 pm

Hi,

Is this something to do with the board/hardware I have? Or maybe an issue with a batch of boards? Many others have SPI etc working. NOOBS is the preferred method for simplicity.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 6:12 pm

I will move away from NOOBS and install Raspbian now and try again.

saj
Posts: 15
Joined: Wed Mar 25, 2015 5:59 pm

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Mar 26, 2015 7:04 pm

Hi,

Good news, I have finally got the SPI devices listen in /dev . So now I am there.

The solution - dont use NOOBS !!! I reformatted the SD Card installed the Raspbian image from the Pi website and updated everything - worked first time as it should !!

Don't know what NOOBS is doing ???!!!

Next to write some code and test the SPI.

Thanks for the help.


Regards,

Saj

Dimonira
Posts: 44
Joined: Mon Apr 06, 2015 6:17 am

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Jul 23, 2015 8:55 pm

Hi!
Help please!
I have the same problem in my RPi 2 (see attached pic), raspbian 4.0.8-v7+ #805. But I have not used NOOBS.
The name of the module is written with an underscore spi_bcm2708, but file name is written with a hyphen spi-bcm2708. Is it right?
Attachments
spi.png
screenshot
spi.png (50.41 KiB) Viewed 17134 times

User avatar
joan
Posts: 13668
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Jul 23, 2015 9:09 pm

Dimonira wrote:Hi!
Help please!
I have the same problem in my RPi 2 (see attached pic), raspbian 4.0.8-v7+ #805. But I have not used NOOBS.
The name of the module is written with an underscore spi_bcm2708, but file name is written with a hyphen spi-bcm2708. Is it right?
The underscore and hyphen are synonyms for the module load command.

The SPI module is now spi_bcm2835.

Use the following command to load the module.

sudo modprobe spi_bcm2835

However you should be using device tree in which case the module should be loaded automatically.

Add the following line to /boot/config.txt and reboot.

dtparam=spi=on

Dimonira
Posts: 44
Joined: Mon Apr 06, 2015 6:17 am

Re: ERROR: could not insert 'spi_bcm2708': No such device

Thu Jul 23, 2015 9:19 pm

joan wrote: The SPI module is now spi_bcm2835.
Use the following command to load the module.

sudo modprobe spi_bcm2835
This command is executed without error.
joan wrote: However you should be using device tree in which case the module should be loaded automatically.
Add the following line to /boot/config.txt and reboot.

dtparam=spi=on
This line is already present.
Does this mean that everything is OK? How to check?

Return to “Troubleshooting”