-
Notifications
You must be signed in to change notification settings - Fork 21
Description
I'm building a system, which needs GPIO access on a x86 machine.
The GPIO access works great. However, it falls apart once reboots come into play:
Plugging the PIZero in, lsusb shows Broadcom Corp.
If rpiboot loaded the OS on the PiZero and the PI is connected to an USB port that remains powered after shutdown, a reboot does not break anything. You can still use pigs for instance, after the x86 raspbian booted.
However, if power is cut or if the Pi is connected without loading the OS via RPIboot prior, then the linux kernel fails to boot properly and throws
device descriptor read/64, error -110
a couple of times with the last error being
device not accepting address 4
and all devices on that USB controller are blocked until the RPI is removed (Mouse / Keyboard are not active on Raspbian desktop).
It does not show up in lsusb and obviously rpiboot fails to find anything. Unplugging and plugging the usb back in solves this beheviour.
If it is still connected and a shutdown is initiated in that state, then the shutdown does not finish and remains stuck until the RPi is disconnected, with the same errors being thrown.
This issue may be a firmware bug and may be related to this issue with similar symptoms: raspberrypi/linux#2684
I want to make an automated system, currently physical interaction is required if the system is unplugged from the wall.
Leaving a Post-it on the machine saying "please unplug und plug back in that USB cord in case the system is moved or unplugged" is not an option ;]