Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c1_hardwarehacking [2016/07/21 18:19] odroid [Alternative heartbeat LED] |
en:c1_hardwarehacking [2016/11/18 09:58] odroid [USB Hub IC reset script] |
||
---|---|---|---|
Line 102: | Line 102: | ||
[[http://forum.odroid.com/viewtopic.php?f=112&t=22629&p=151984#p151984|How-to-guide]] \\ | [[http://forum.odroid.com/viewtopic.php?f=112&t=22629&p=151984#p151984|How-to-guide]] \\ | ||
[[https://github.com/hardkernel/linux/blob/odroidc-3.10.y/arch/arm/boot/dts/meson8b_odroidc.dts#L1006|device-tree-file for C1]] | [[https://github.com/hardkernel/linux/blob/odroidc-3.10.y/arch/arm/boot/dts/meson8b_odroidc.dts#L1006|device-tree-file for C1]] | ||
+ | |||
+ | ====== USB Hub IC reset script ====== | ||
+ | If you need to do power-cycle to the USB devices on the USB host ports, run below commands. \\ | ||
+ | It will reset all the USB devices connected to the USB host ports. | ||
+ | <code> | ||
+ | echo 4 > /sys/class/gpio/export | ||
+ | echo out > /sys/class/gpio/gpio4/direction | ||
+ | sleep 1 | ||
+ | echo 0 > /sys/class/gpio/gpio4/value | ||
+ | sleep 1 | ||
+ | echo 1 > /sys/class/gpio/gpio4/value | ||
+ | echo 4 > /sys/class/gpio/unexport | ||
+ | sleep 1 | ||
+ | </code> | ||