I want to control the power off my Usb Device conected to cubieboard (power off - power on the device by usb1-drv or usb2-drv )I googled a lot and find this article http://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060.aspx
but it is not for cubie can anybody help me for this issue?according to attached image it must be a way to control USB1-DRV from Linux.
I have checked the usb power at startup and i see the power goes on when in terminal report [sw-ehci1]: Set USB Power ON , but i dont know how it works.<6>hub 2-0:1.0: USB hub found
[ 1.894384] hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
[ 1.901073] hub 2-0:1.0: 1 port detected
[sw-ehci2]: open clock
[ 1.907602] [sw-ehci2]: open clock
[sw-ehci2]: Set USB Power ON
[ 1.923679] [sw-ehci2]: Set USB Power ON
if any body has an idea please help.
I want to control the power off my Usb Device conected to cubieboard (power off - power on the device by usb1-drv or usb2-drv )
I googled a lot and find this article http://e2e.ti.com/support/arm/sitara_arm/f/791/t/270060.aspx
but it is not for cubie can anybody help me for this issue?
according to attached image it must be a way to control USB1-DRV from Linux.
I have checked the usb power at startup and i see the power goes on when in terminal report [sw-ehci1]: Set USB Power ON , but i dont know how it works.
<6>hub 2-0:1.0: USB hub found
[ 1.894384] hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
[ 1.901073] hub 2-0:1.0: 1 port detected
[sw-ehci2]: open clock
[ 1.907602] [sw-ehci2]: open clock
[sw-ehci2]: Set USB Power ON
[ 1.923679] [sw-ehci2]: Set USB Power ON
if any body has an idea please help.
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.156913] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.168608] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
WRN:L104(drivers/usb/host/sw_hci_sunxi.c):[ 2.178486] WRN:L104(drivers/usb/host/sw_hci_sunxi.c):ERR: get usbc1(usbc1) id failed
ERR: get usbc1(usbc1) id failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):[ 2.192860] WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):[ 2.206014] WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
ERR: alloc_pin failed
WRN:L104(drivers/usb/host/sw_hci_sunxi.c):[ 2.218657] WRN:L104(drivers/usb/host/sw_hci_sunxi.c):ERR: get usbc1(usbc1) id failed
ERR: get usbc1(usbc1) id failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):[ 2.233026] WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):[ 2.246177] WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
ERR: alloc_pin failed
WRN:L104(drivers/usb/host/sw_hci_sunxi.c):[ 2.258821] WRN:L104(drivers/usb/host/sw_hci_sunxi.c):ERR: get usbc2(usbc2) id failed
ERR: get usbc2(usbc2) id failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):[ 2.273189] WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):[ 2.286342] WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
ERR: alloc_pin failed
WRN:L104(drivers/usb/host/sw_hci_sunxi.c):[ 2.298985] WRN:L104(drivers/usb/host/sw_hci_sunxi.c):ERR: get usbc2(usbc2) id failed
ERR: get usbc2(usbc2) id failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):[ 2.313354] WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):[ 2.326507] WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
ERR: alloc_pin failed
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 2.342599] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>pgd = c0004000
[ 2.352363] pgd = c0004000
<1>[00000000] *pgd=00000000[ 2.357427] [00000000] *pgd=00000000
USB1 USB2ON ON ./devmem2 0x1c2090c w 0x180078ON OFF ./devmem2 0x1c2090c w 0x180038OFF ON ./devmem2 0x1c2090c w 0x180070OFF OFF ./devmem2 0x1c2090c w 0x180030
./sunxi-pio -m PH6'<default><default<default><0>'
./sunxi-pio -m PH6'<default><default<default><1>'