[Solved]Can't load i2c-bcm2708 with linux-rpi-3.12.26-1

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[Solved]Can't load i2c-bcm2708 with linux-rpi-3.12.26-1

Postby paulcrawford » Mon Aug 11, 2014 11:56 pm

I did a system upgrade a couple of days ago and got linux-raspberrypi-3.12.26-1 installed. Then I found that my C program, that worked perfectly before and uses i2c, failed with the error:

gpio: Unable to load i2c_bcm2708
Unable to open I2C device: No such file or directory

When I reverted to the system without the upgrade of 3.12.26-1, all was well again.

When will 3.12.26-1 be fixed so I can upgrade again?

Thanks,

Paul
Last edited by paulcrawford on Thu Aug 14, 2014 1:24 pm, edited 1 time in total.
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby moonman » Tue Aug 12, 2014 6:19 am

It should be there
https://github.com/archlinuxarm/PKGBUIL ... nfig#L1839

Did you forget to reboot?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby paulcrawford » Tue Aug 12, 2014 10:52 am

I see that the i2c-bcm2708 is configured to load on github and my raspberrypi has been rebooted several times but I still get the error.

I cannot imagine that it makes a difference but with my raspberrypi configuration I use the SD card for booting only and run the root filesystem on a USB memory stick, which means of course that problem is with the USB stick. I actually have a pair of SD cards and a pair of USB sticks. Presently only one of the USB sticks has been rolled back to pre 3.12.26-1. Last night before posting my question I put the USB stick with 3.12.26-1 into the raspberrypi and booted up, so there has been no less than one reboot on that USB stick. After booting I ran my program that uses i2c to get the exact wording of the error to put into my question.

I am at a loss here. What else can be amiss?

Thanks,

Paul
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby WarheadsSE » Tue Aug 12, 2014 1:09 pm

Compare uname and pkgver
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby paulcrawford » Wed Aug 13, 2014 2:35 am

Thanks for the suggestion WarheadsSE. On both USB sticks I get:
$this->bbcode_second_pass_code('', 'uname -a
Linux normaddie 3.12.25-1-ARCH #1 PREEMPT Tue Jul 29 21:47:49 MDT 2014 armv6l GNU/Linux
')
This does not agree with the package version which is 3.12.26-1.

When I run:

$this->bbcode_second_pass_code('', 'sudo pacman -Syu')

I get:

$this->bbcode_second_pass_code('', 'Packages (10): bash-4.3.022-1 cracklib-2.9.1-1 gpgme-1.5.1-1 kbd-2.0.2-1 krb5-1.12.1-2 libidn-1.29-1
libmariadbclient-10.0.13-1 mariadb-10.0.13-1 mariadb-clients-10.0.13-1 xfsprogs-3.2.1-1
')

on the USB stick that was upgraded to 3.12.26-1, while the other USB stick that was rolled back to 3.12.25-1 I get:

$this->bbcode_second_pass_code('', 'Packages (12): bash-4.3.022-1 cracklib-2.9.1-1 gpgme-1.5.1-1 kbd-2.0.2-1 krb5-1.12.1-2 libidn-1.29-1
libmariadbclient-10.0.13-1 linux-raspberrypi-3.12.26-1 mariadb-10.0.13-1 mariadb-clients-10.0.13-1 netctl-1.9-1
xfsprogs-3.2.1-1')

This would suggest, to me, that the first USB stick is already upgraded to 3.12.26-1, hence that package does not show up on the upgrade, while the second USB stick must be on 3.12.25-1 since the 3.12.26-1 package does show up on the upgrade.

The first USB stick still fails to run my C program with the error:

$this->bbcode_second_pass_code('', 'gpio: Unable to load i2c_bcm2708
Unable to open I2C device: No such file or directory')

and yet that same stick says:

$this->bbcode_second_pass_code('', 'uname -a
Linux normaddie 3.12.25-1-ARCH #1 PREEMPT Tue Jul 29 21:47:49 MDT 2014 armv6l GNU/Linux')

Clearly there is something I am missing and do not understand. My suspicion now is that the problem is due to runnng the raspberrypi root on a USB stick rather than the SD card, but I don't possess enough knowledge of how Arch Linux works on this aspect.

Any help or guidance gratefully accepted.

Thanks,

Paul
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby moonman » Wed Aug 13, 2014 4:53 am

You didn't mount your sd card to /boot
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby pepedog » Wed Aug 13, 2014 9:55 am

Look at /etc/fstab on rootfs on sd card
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby paulcrawford » Thu Aug 14, 2014 2:18 am

Thank you all so much for your gentle nudges...

Actually the SD card was mounted to /boot but the USB stick, /dev/sda5, was not mounted to / in /etc/fstab on /dev/sda5.

But everything is working perfectly now.

Thanks again,

Paul
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby paulcrawford » Thu Aug 14, 2014 2:27 am

Sorry, cannot find how to mark as solved but it is.

Thanks,

Paul
paulcrawford
 
Posts: 20
Joined: Sat Jan 25, 2014 1:16 am

Re: Can't load i2c-bcm2708 with linux-raspberrypi-3.12.26-1

Postby moonman » Thu Aug 14, 2014 7:36 am

$this->bbcode_second_pass_quote('', 'A')ctually the SD card was mounted to /boot but the USB stick, /dev/sda5, was not mounted to / in /etc/fstab on /dev/sda5.
umm generally you specify rootfs (e.g /) in kernel commandline (so it in cmdline.txt root=/dev/sda5) and then on the usb stick you would put an entry in fstab to mount /boot which is effectively on the sd card. Unless i misunderstood the whole thing here... But you say it works so all is well.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 20 guests