cd /root
wget https://ftp.olimex.com/TEMP/A64-OTG-fix/install-a64-olinuxino-usb0-dual-role.sh
chmod 700 /root/install-a64-olinuxino-usb0-dual-role.sh
/root/install-a64-olinuxino-usb0-dual-role.sh
reboot
/root/sun50i-a64-olinuxino-1Ge4GW-usb0-dual-role.dts
cat /sys/class/extcon/extcon0/state
USB=0
USB-HOST=0
cat /sys/class/extcon/extcon0/state
lsusb -t
dmesg | tail -n 30
&usbphy {
status = "okay";
usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus_det-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
usb0_vbus-supply = <>; /* Remove or disable ID pin detection if it forces power-off */
usb1_vbus-supply = <®_usb1_vbus>;
};
&usb_otg {
dr_mode = "host"; /* set to host from otg */
status = "okay";
};
optargs=usbcore.autosuspend=-1but this did not help./sys/devices/platform/usb1-vbusbut no/sys/devices/platform/usb0-vbus