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
So I have a raspberry pi connected to an array of 18 AVR microcontrollers through one of adafruit's I2C-friendly level shifters.
The ATMega328 datasheet is very clear in mentioning that a powered-off microcontroller will render an attached I2C bus inoperable. I'm fine with this (there are no other devices on the bus anyway), the problem is that when they are powered off (with grounds still connected together, and the level shifter powered on), the Pi gets stuck in the boot process at the point where the I2C driver would normally load.
If I have SCL1 (GPIO3) shorted to ground at power-up, it will boot the emergency kernel.
You can place a regular .1" jumper across GPIO3 and GND (pins 5-6 on P1 for a rev2 board).
It is almost as if something is looking at GPIO3 to determine which kernel to load.
If SCL1 is shorted immediately after the normal kernel starts to load, everything goes well including loading the i2c driver. After it boots and the short is removed I can access my I2C devices with no problems.
Ok that makes sense. The emergency kernel finishes booting right where you would expect the I2C driver to load. You have to press ENTER to get a prompt.
I really wish they chose some other pin because I2C devices can hold that line low, especially during power-up when things are coming out of reset. Anyways, avoid_safe_mode works for me. Should be documented somewhere?
Activity
popcornmix commentedon Jun 23, 2013
Are you able to rebuild the kerenel and insert logging?
P33M commentedon Jun 23, 2013
So are you saying that to cause the hang, you just need to keep SCL and SDA pulled low while the driver is probing?
Are you using just the BCM2708 I2C adapter driver and no other i2c modules?
cbeytas commentedon Jun 29, 2013
If I have SCL1 (GPIO3) shorted to ground at power-up, it will boot the emergency kernel.
You can place a regular .1" jumper across GPIO3 and GND (pins 5-6 on P1 for a rev2 board).
It is almost as if something is looking at GPIO3 to determine which kernel to load.
If SCL1 is shorted immediately after the normal kernel starts to load, everything goes well including loading the i2c driver. After it boots and the short is removed I can access my I2C devices with no problems.
popcornmix commentedon Jun 29, 2013
Sounds like safe mode:
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=12007
Add avoid_safe_mode=1 to config.txt.
cbeytas commentedon Jun 29, 2013
Ok that makes sense. The emergency kernel finishes booting right where you would expect the I2C driver to load. You have to press ENTER to get a prompt.
I really wish they chose some other pin because I2C devices can hold that line low, especially during power-up when things are coming out of reset. Anyways, avoid_safe_mode works for me. Should be documented somewhere?
popcornmix commentedon Jun 30, 2013
It's described here: http://elinux.org/RPI_safe_mode
PCI: fix oops when try to find Root Port for a PCI device
mm: check pfn_valid first in zero_resv_unavail
nvme: fix controller removal race with scan work
nvme: fix controller removal race with scan work
mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING
mm/zsmalloc.c: drop ZSMALLOC_PGTABLE_MAPPING
Bluetooth: Fix alt settings for incoming SCO with transparent coding …
Bluetooth: Fix alt settings for incoming SCO with transparent coding …
Bluetooth: Fix alt settings for incoming SCO with transparent coding …
arm64: bpf: fix 32bit unconditional bswap
arm64: bpf: fix 32bit unconditional bswap
arm64: bpf: fix 32bit unconditional bswap
powerpc/bpf/32: Fix failing test_bpf tests
selftests/bpf: Enable cpu v4 tests for arm64
selftests/bpf: Enable cpu v4 tests for LoongArch
powerpc/bpf/32: Fix failing test_bpf tests