Connect USB-Ethernet device to HiKey620

Hello, Can someone help me to connect a USB-Ethernet Adapter to a Hikey620 board?
I’ve installed op-tee on the board and dmesg shows that a new usb device is detected:
usb 1-1.1: new high-speed USB device number 3 using dwc2
dwc2 f72c0000.usb: Set speed to high-speed
ifconfig shows only the loopback link.
I’ve read other posts but they are for Hikey960 with Linux(not optee). And didn’t work in this case.

Linux version: 5.1.0
Adapter link: http://www.logilink.org/Produkte_LogiLink/Aktive_Netzwerkkomponenten/Fast_Ethernet/Fast_Ethernet_USB_20_to_RJ45_Adapter_UA0144A.htm

Let’s start by seeing what the kernel is doing with the device.

Boot with the device disconnected, plug it in and run something like “dmesg | tail -n 25” and share the resulting text.

Note that copy 'n pasting the actually text is strongly preferred over screenshots :slight_smile:

Here is the command’s output:
Note that the USB Adapter (usb 1-1.1) is connected and OPTEE updated to the latest version.

[ 3.552187] dwc2 f72c0000.usb: f72c0000.usb supply vusb_d not found, using dummy regulator
[ 3.560601] dwc2 f72c0000.usb: f72c0000.usb supply vusb_a not found, using dummy regulator
[ 3.778320] dwc2 f72c0000.usb: EPs: 16, dedicated fifos, 1920 entries in SPRAM
[ 3.785949] dwc2 f72c0000.usb: DWC OTG Controller
[ 3.790693] dwc2 f72c0000.usb: new USB bus registered, assigned bus number 1
[ 3.797791] dwc2 f72c0000.usb: irq 39, io mem 0xf72c0000
[ 3.803944] hub 1-0:1.0: USB hub found
[ 3.807740] hub 1-0:1.0: 1 port detected
[ 3.813514] rtc-pl031 f8003000.rtc: setting system clock to 1970-01-01T00:00:11 UTC (11)
[ 3.822169] ALSA device list:
[ 3.825145] No soundcards found.
[ 3.828721] uart-pl011 f8015000.uart: no DMA platform data
[ 3.842148] Freeing unused kernel memory: 7744K
[ 3.846776] Run /init as init process
[ 3.906138] random: dd: uninitialized urandom read (512 bytes read)
[ 4.214244] dwc2 f72c0000.usb: Set speed to high-speed
[ 4.219446] usb 1-1: new high-speed USB device number 2 using dwc2
[ 4.249728] hub 1-1:1.0: USB hub found
[ 4.253812] hub 1-1:1.0: 3 ports detected
[ 4.486505] random: fast init done
[ 4.549915] dwc2 f72c0000.usb: Set speed to high-speed
[ 4.555118] usb 1-1.1: new high-speed USB device number 3 using dwc2
[ 8.268888] random: crng init done
[ 34.086219] LDO13_1V8: disabling
[ 34.089485] LDO17_2V5: disabling

At what stage in the boot was the adapter connected?

I suggesting booting with it disconnected and when the boot has completed to connect the device and look at the end of the log. If the device is booted with the adapter connected this won’t work (because the hotplug messages won’t be in the last 25 lines of the log).

This time nothing was connected to the board. It booted and then i connected the usb adapter. Immediately after the connection i got the following messages:
[ 47.422079] dwc2 f72c0000.usb: Set speed to high-speed
[ 47.427283] usb 1-1.1: new high-speed USB device number 3 using dwc2

And here is the output of: dmesg | tail -n 25:
[ 3.530592] dwc2 f72c0000.usb: f72c0000.usb supply vusb_d not found, using dummy regulator
[ 3.539021] dwc2 f72c0000.usb: f72c0000.usb supply vusb_a not found, using dummy regulator
[ 3.754395] dwc2 f72c0000.usb: EPs: 16, dedicated fifos, 1920 entries in SPRAM
[ 3.762030] dwc2 f72c0000.usb: DWC OTG Controller
[ 3.766769] dwc2 f72c0000.usb: new USB bus registered, assigned bus number 1
[ 3.773868] dwc2 f72c0000.usb: irq 39, io mem 0xf72c0000
[ 3.780016] hub 1-0:1.0: USB hub found
[ 3.783811] hub 1-0:1.0: 1 port detected
[ 3.789546] rtc-pl031 f8003000.rtc: setting system clock to 1970-01-01T00:00:13 UTC (13)
[ 3.798171] ALSA device list:
[ 3.801148] No soundcards found.
[ 3.804736] uart-pl011 f8015000.uart: no DMA platform data
[ 3.818330] Freeing unused kernel memory: 7744K
[ 3.822957] Run /init as init process
[ 3.881980] random: dd: uninitialized urandom read (512 bytes read)
[ 4.182329] dwc2 f72c0000.usb: Set speed to high-speed
[ 4.187531] usb 1-1: new high-speed USB device number 2 using dwc2
[ 4.217831] hub 1-1:1.0: USB hub found
[ 4.221925] hub 1-1:1.0: 3 ports detected
[ 30.214244] random: fast init done
[ 34.086388] LDO13_1V8: disabling
[ 34.089656] LDO17_2V5: disabling
[ 47.422079] dwc2 f72c0000.usb: Set speed to high-speed
[ 47.427283] usb 1-1.1: new high-speed USB device number 3 using dwc2
[ 50.653777] random: crng init done

Something doesn’t feel quite right. I was expecting to see the usual kernel messages as it learns the VID/PID. It would usually have this sort of shape (the first four messages should still come out even if the asix driver is missing from the kernel):

[347016.490744] usb 1-7: new high-speed USB device number 43 using xhci_hcd
[347016.531388] usb 1-7: New USB device found, idVendor=0b95, idProduct=772b, bcdDevice= 0.01
[347016.531398] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[347016.531403] usb 1-7: SerialNumber: 00112B
[347017.009447] asix 1-7:1.0 eth0: register 'asix' at usb-0000:00:14.0-7, ASIX AX88772B USB 2.0 Ethernet, 00:00:00:00:11:2b
[347017.010150] usbcore: registered new interface driver asix
[347017.066548] asix 1-7:1.0 enp0s20f0u7: renamed from eth0

Does lsusb show the device?