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/02/26 11:28] odroid [How to enable for Device Mode on ODROID-C0] |
en:c1_hardwarehacking [2016/11/18 09:58] (current) odroid [USB Hub IC reset script] |
||
---|---|---|---|
Line 25: | Line 25: | ||
If there is a USB device attached on USB host connector and consumes power a lot, the board might not be booted because the CPU can not be provided enough current. In order to prevent boot failure in such case, especially a USB device consumes a current more than 1A, we strongly recommend to keep providing power through DC jack. | If there is a USB device attached on USB host connector and consumes power a lot, the board might not be booted because the CPU can not be provided enough current. In order to prevent boot failure in such case, especially a USB device consumes a current more than 1A, we strongly recommend to keep providing power through DC jack. | ||
</WRAP> | </WRAP> | ||
- | ====== How to enable for Device Mode on ODROID-C0 ====== | + | ====== How to enable for USB Device Mode on ODROID-C0 ====== |
- | You need to connect the VBUS to the USB ID pin with a wire as the following picture. \\ | + | You need to unmount R24 as the red square in the following picture for USB device mode. \\ |
- | The inner USB port (in the green circle) works in device(client) mode. You may need a type-A to type-A USB cable. | + | The inner USB port (in the blue square) works in device(client) mode. You may need a type-A to type-A USB cable. |
- | {{:en:c1:c0_enable_for_device.png?250| Connect Between VBUS and USB ID}} | + | {{:en:c1:c0_enable_for_device.png?800| Connect Between VBUS and USB ID}} |
====== Power On/Off switch ====== | ====== Power On/Off switch ====== | ||
Line 96: | Line 96: | ||
sudo apt-get install gnome-settings-daemon gnome-settings-daemon-schemas | sudo apt-get install gnome-settings-daemon gnome-settings-daemon-schemas | ||
echo /usr/bin/gnome-settings-daemon >> /home/odroid/.config/lxsession/Lubuntu/autostart | echo /usr/bin/gnome-settings-daemon >> /home/odroid/.config/lxsession/Lubuntu/autostart | ||
+ | </code> | ||
+ | |||
+ | ====== Alternative heartbeat LED ====== | ||
+ | If you want to remap the blue heartbeat LED to other GPIO, need to edit the device-tree-file for C1 and change the GPIO used.\\ | ||
+ | [[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]] | ||
+ | |||
+ | ====== 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> | </code> | ||