channemann
Posts: 3
Joined: Fri Oct 09, 2015 2:21 am

Reset USB Stack in Jessie

Fri Oct 09, 2015 2:32 am

On an RPi2 Model B with Wheezy installed, I was able to reset the USB stack using:

Code: Select all

sleep 0.1
echo 0 > /sys/devices/platform/bcm2708_usb/buspower
sleep 1
echo 1 > /sys/devices/platform/bcm2708_usb/buspower
sleep 2
However, on a Jessie install,

Code: Select all

/sys/devices/platform/bcm2708_usb/
does not exist.

Is there another way to power-cycle the USB ports programmatically in Jessie?

channemann
Posts: 3
Joined: Fri Oct 09, 2015 2:21 am

Re: Reset USB Stack in Jessie

Sat Oct 10, 2015 4:37 pm

Found the answer elsewhere; looks like the device ID is different and has moved. This worked:

Code: Select all

echo 0 > /sys/devices/platform/soc/3f980000.usb/buspower
sleep 2
echo 1 > /sys/devices/platform/soc/3f980000.usb/buspower
sleep 3
(specifics of sleep durations not finely tuned, so this may be optimizable for other applications)

virtualguy
Posts: 1
Joined: Sat Feb 20, 2016 10:38 pm

Re: Reset USB Stack in Jessie

Sat Feb 20, 2016 10:42 pm

As far as I can tell your suggestion disables the usb module inside the SOC so it stops talking to the USB hub. It doesn't actually disable the power to the USB ports on a Raspberry Pi B+. I imagine it WOULD work for a Raspberry Pi A+

Return to “Raspberry Pi OS”