Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
Regards, Lukasz
On 13-11-18, 12:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
Is eth over usb working on any other branch for you ?
There is one typical problem with hikey though. You can either use the controller in host OR device mode and not both.
So, make sure usb-eth converted is plugged in and nothing is connected to the host port (or do we call it the device port ?).
On 13/11/2018 11:35, Viresh Kumar wrote:
On 13-11-18, 12:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
Is eth over usb working on any other branch for you ?
There is one typical problem with hikey though. You can either use the controller in host OR device mode and not both.
So, make sure usb-eth converted is plugged in and nothing is connected to the host port (or do we call it the device port ?).
Ha, beat me to it!
Hi Viresh,
On 11/13/18 12:35 PM, Viresh Kumar wrote:
On 13-11-18, 12:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
Is eth over usb working on any other branch for you ?
I haven't tried 'eas/next/integration_20181109_0000_topic_hikey960_mainline' yet. I will check it now.
There is one typical problem with hikey though. You can either use the controller in host OR device mode and not both.
Good to know, thank you.
So, make sure usb-eth converted is plugged in and nothing is connected to the host port (or do we call it the device port ?).
Currentlt, I don't use any other USB port apart from this small usb-C connected to PC.
I can see in git log that usb gadget probably used to work: 'John Stultz usb: dwc3: Get gadget mode working again'
Regards, Lukasz
Hi Lukasz,
On 13/11/2018 11:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
Just to give a bit of background, there's some upstream patches for HiKey960 USB on the fly [1] but they still have some quirks that are being worked on. In the meantime, I forward-port an older patch-set that is known to work but requires a few tweaks to keep it working through the kernel versions.
[1]: https://lore.kernel.org/lkml/20181027095820.40056-1-chenyu56@huawei.com/
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
I also get that warning, but I still get an eth device up. Would you happen to be using an ethernet to USB-C dongle by any chance? We only use ethernet to USB-A dongles and they seem to work alright - the USB-C port is only used for flashing a new kernel in fastboot mode.
Oh and speaking of USB-C, you musn't have anything plugged in that port otherwise the USB-A ports are disabled (hardware quirk IIRC). I managed to automate this by using an ACME board - with an USB probe you can cut all data/power from going through the USB-C cable and that seems to do the trick.
Regards, Lukasz
Cheers, Valentin
Hi Valentin,
On 11/13/18 12:47 PM, Valentin Schneider wrote:
Hi Lukasz,
On 13/11/2018 11:22, Lukasz Luba wrote:
Hi ARM folks,
Does the branch 'eas/next/integration_20181109_0000', which has hikey topic, support USB gadget Ethernet connection? I found some issues while running Debian with sshd on Hikey960. I have been trying to connect LISA over usb eth gadget on ssh and I noticed that USB gadget is disabled by Valentin's patch: http://linux-arm.org/git?p=linux-power.git%3Ba=commitdiff%3Bh=81f0a7cdd7171d...
Just to give a bit of background, there's some upstream patches for HiKey960 USB on the fly [1] but they still have some quirks that are being worked on. In the meantime, I forward-port an older patch-set that is known to work but requires a few tweaks to keep it working through the kernel versions.
I have tried to configure the kernel with this gadget again, but it does not appear as eth device. Dmesg shows some warnings:
[ 11.592012] dwc3_otg_work: dwc3 is not otg mode!
How do you connect this board to LISA?
I also get that warning, but I still get an eth device up. Would you happen to be using an ethernet to USB-C dongle by any chance? We only use ethernet to USB-A dongles and they seem to work alright - the USB-C port is only used for flashing a new kernel in fastboot mode.
Oh and speaking of USB-C, you musn't have anything plugged in that port otherwise the USB-A ports are disabled (hardware quirk IIRC). I managed to automate this by using an ACME board - with an USB probe you can cut all data/power from going through the USB-C cable and that seems to do the trick.
Thank you Valentin for this information. I will switch to USB dongle keeping in mind these tricks.
Cheers, Valentin
Cheers, Lukasz