techping / linux

Linux kernel source tree
Other
14 stars 15 forks source link

No USB Host on Lichee Pi Zero #1

Open petit-miner opened 6 years ago

petit-miner commented 6 years ago

Hi there, I'm trying to use the USB OTG function of my Allwinner V3s Board, but unfortunately the Kernel doesn't recognize any type of USB peripherals (USB memory stick, wifi, mice...) lsusb only shows one device on the bus(even when an USB device is connected): Bus 001 Device 001: ID 1d6b:0002

Further logs from dmesg:

dmesg | grep usb [ 0.021331] usbcore: registered new interface driver usbfs [ 0.021426] usbcore: registered new interface driver hub [ 0.021520] usbcore: registered new device driver usb [ 1.082807] usbcore: registered new interface driver usbhid [ 1.091593] usbhid: USB HID core driver [ 1.171139] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator [ 1.188818] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver [ 1.197847] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1

I don't know whats wrong, maybe the Allwinner V3s SoC doesn't know that he should be the host?

techping commented 6 years ago

@petit-miner I have never tried the USB OTG function on my branch, maybe you can try the latest kernel 4.14, which might support it well.

petit-miner commented 6 years ago

I forked the latest Kernel from Torvalds/linux (4.15), but it is missing the option: Allwinner sun8i Emac support.. I compared the difference between your rep and the rep from Torvalds/linux and I saw that the sun8i-emac is missing.

Which branch / rep should I fork to get the latest kernel with ethernet support for the V3s? Thank you

techping commented 6 years ago

@petit-miner In the new kernel, 'sun8i-emac' is named 'dwmac-sun8i'. The ethernet of V3s is also supported.

tomwimmenhove commented 2 years ago

I'm having the same issue with USB. It seems to be working fine on the https://github.com/Lichee-Pi/linux.git 4.10.15 kernel. (But, of course, that one doesn't have ethernet :) )