You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that I can reproduce this bug on 3 different RPIs. I have a backup SD card with an older version of the kernel, 3.12.28+ instead of 3.12.35+. And with the same RPI, the SD with the older kernel doesn't have this bug.
On my system, the i2c module are loaded at boot time. For that, you have to issue these commands:
Somewhat related:-( It looks like I lost my i2c bus completely with the upgrade to 3.18.5+:-(
root@issabove:/boot# uname -a
Linux issabove 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux
root@issabove:/boot# i2cdetect -l
root@issabove:/boot#
that worked before the upgrade:-(
The i2c modules are loaded:
root@issabove:/boot# lsmod | fgrep i2c
i2c_bcm2708 6004 0
i2c_dev 6709 0
But the spi- module does not want to load:-(
root@issabove:/boot# modprobe -v spi-bcm2708
insmod /lib/modules/3.18.5+/kernel/drivers/spi/spi-bcm2708.ko
ERROR: could not insert 'spi_bcm2708': No such device
My last working kernel was:
Linux version 3.12.29+ #714 PREEMPT Wed Oct 1 23:11:38 BST 2014
I rebooted with the parameters you suggested. But with no luck.
pi@raspberrypi ~ $ dmesg|grep baudrate
[ 7.163477] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
pi@raspberrypi ~ $ cat /boot/config.txt
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=900
# for more options see http://elinux.org/RPi_config.txt
start_x=1
gpu_mem=128
core_freq=250
sdram_freq=450
over_voltage=2
dtparam=spi=on
dtparam=i2c_arm=on,i2c_arm_baudrate=400000
If the board type is different, or you are using a different loader (perhaps start_x) then feel free to change the filenames above, but all ought to be kept in sync.
You're right about the warning - I'll check that out.
Ah, yes, you need to rpi-update to get the latest release. The Raspbian (apt-get upgrade) releases change less frequently, but I would anticipate a point release fairly soon.
I tried to search/google for my problem but that forum post did not show up:-( And since I started with the normal `apt-get update && apt-get upgrade', I did not expect the boot parameters to change:-(
We realised some time ago that we should enable Device Tree by default. If our DT usage was going to be in the true spirit of DT, that meant abandoning the "always on" semantics of the old board support code; this necessarily meant that some configuration changes would be needed after the update. After some debate we decidedit was better to require some user intervention after this update rather than attempt to change things automatically behind the scenes, because it is both safer and educational.
Activity
popcornmix commentedon Jan 31, 2015
I'm not seeing this:
Any non-standard settings in cmdline.txt or config.txt?
pelwell commentedon Jan 31, 2015
You don't show a full load/unload/load cycle - have you tested that?
popcornmix commentedon Jan 31, 2015
Works for me
jacqu commentedon Jan 31, 2015
Note that I can reproduce this bug on 3 different RPIs. I have a backup SD card with an older version of the kernel, 3.12.28+ instead of 3.12.35+. And with the same RPI, the SD with the older kernel doesn't have this bug.
On my system, the i2c module are loaded at boot time. For that, you have to issue these commands:
Also remove the blacklisting of the i2c-bcm2708 module:
Furthermore I run i2c at full speed (400kHz). To do so:
If I have some time, I will try a diff between the 3.12.28+ and 3.12.35+ source code of the i2c-bcm2708 driver.
jacqu commentedon Jan 31, 2015
FYI, this is the last modification of the drivers/i2c/busses/i2c-bcm2708.c file (tweaking the spinlocks may trigger system freeze):
jacqu commentedon Feb 2, 2015
Good news: with today's kernel update, the problem disappeared .
popcornmix commentedon Feb 2, 2015
Cool. There was another kernel update today - can you check if that is still okay.
mw46d commentedon Feb 5, 2015
Somewhat related:-( It looks like I lost my i2c bus completely with the upgrade to 3.18.5+:-(
root@issabove:/boot# uname -a
Linux issabove 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux
root@issabove:/boot# i2cdetect -l
root@issabove:/boot#
that worked before the upgrade:-(
The i2c modules are loaded:
root@issabove:/boot# lsmod | fgrep i2c
i2c_bcm2708 6004 0
i2c_dev 6709 0
But the spi- module does not want to load:-(
root@issabove:/boot# modprobe -v spi-bcm2708
insmod /lib/modules/3.18.5+/kernel/drivers/spi/spi-bcm2708.ko
ERROR: could not insert 'spi_bcm2708': No such device
My last working kernel was:
Linux version 3.12.29+ #714 PREEMPT Wed Oct 1 23:11:38 BST 2014
mw46d commentedon Feb 5, 2015
same problem still with
pi@issabove ~ $ uname -a
Linux issabove 3.18.5+ #748 PREEMPT Wed Feb 4 21:24:41 GMT 2015 armv6l GNU/Linux
pelwell commentedon Feb 5, 2015
You need to add:
to /boot/config.txt, and reboot. If you've done an apt-get upgrade then your new raspi-config can do that for you.
See: http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=97314&p=676583
jacqu commentedon Feb 5, 2015
I did what pelwell suggests. And below is the result of rmmoding then modprobing of the i2c driver.
Furthermore, I specified in /etc/modprobe.d/i2c.conf that I want i2c to run at 400kHz:
But if you read the end of dmesg ouptut, you see that this option is not taken into account:
This used to work before.
pelwell commentedon Feb 5, 2015
Yesterday's update brought some new parameters. What you want is:
It's all in /boot/overlays/README.
jacqu commentedon Feb 5, 2015
I rebooted with the parameters you suggested. But with no luck.
jacqu commentedon Feb 5, 2015
BTW, the kernel warning is deterministic on rmmoding the i2c driver.
pelwell commentedon Feb 5, 2015
For those options to work, you need the latest firmware. If you haven't updated in the last 24 hours, do so. If you have, try this:
If the board type is different, or you are using a different loader (perhaps start_x) then feel free to change the filenames above, but all ought to be kept in sync.
You're right about the warning - I'll check that out.
jacqu commentedon Feb 5, 2015
If have upgraded 1 hour ago (apt-get update;apt-get upgrade).
I still think I'm lagging behind the latest version because:
And just above, mw64d has:
The results of your commands, plus the same one with start_x.elf is blank.
pelwell commentedon Feb 5, 2015
Ah, yes, you need to rpi-update to get the latest release. The Raspbian (apt-get upgrade) releases change less frequently, but I would anticipate a point release fairly soon.
jacqu commentedon Feb 5, 2015
The 400kHz param is now working. Thanks.
pelwell commentedon Feb 5, 2015
bec4f0a should have fixed it.
mw46d commentedon Feb 5, 2015
OK, my PiGlow is working again as well;-)
I tried to search/google for my problem but that forum post did not show up:-( And since I started with the normal `apt-get update && apt-get upgrade', I did not expect the boot parameters to change:-(
Thanks,
mw46d
pelwell commentedon Feb 5, 2015
We realised some time ago that we should enable Device Tree by default. If our DT usage was going to be in the true spirit of DT, that meant abandoning the "always on" semantics of the old board support code; this necessarily meant that some configuration changes would be needed after the update. After some debate we decidedit was better to require some user intervention after this update rather than attempt to change things automatically behind the scenes, because it is both safer and educational.
pelwell commentedon Mar 9, 2015
Can we close this now?
mw46d commentedon Mar 9, 2015
yes, thanks.
jacqu commentedon Mar 10, 2015
It didn't show up in kernels compiled after the 5th February. Many thanks for your reactivity !
pelwell commentedon Mar 10, 2015
Thanks for the clear reports.
Merge pull request raspberrypi#776 from nbdd0121/trunk
ASoC: qcom: sdm845: add missing soundwire runtime stream alloc
ASoC: qcom: sdm845: add missing soundwire runtime stream alloc
ARC: Add eBPF JIT support