@markov85: Hi. Maybe I could help with this, but I’ve got a question. What kernel version do you have? Is it 4.4.50 as @claudioItaly said? If it is this kernel version could you tell me where did you find it? Any link? I’m using 3.10.xx linux kernel but I’m looking for any newer one. If I have any new one I could try to recompile it and test it - but on Banana PI M2 Ultra (because I have this board, not M3).
I don’t know how to build a kernel or let alone an entire image. So I am just using one of the ready images - provided by Sinovoip - The Ubuntu Mate, kernel 3.10.107, from 24-Aug-2017 : 2017-08-24-ubuntu-16.04-mate-desktop-beta-bpi-m2u-sd-emmc.img
from here:
(https://drive.google.com/file/d/0B_YnvHgh2rwjM1A5UjVpWUdDdk0/view)
I am really going to appreciate it if you or someone else could help!
I’ve got very good news for you. It is working for me. Today after hard work with the Linux kernel sources I did it. Just a few minutes ago I uploaded the kernel and modules for banana pi m2 ultra to get ethernet connection via usb.
Direct link for the archive with kernel and module is here: http://goo.gl/xEf9jL
How to run it?
1. Copy my kernel and the modules to your SD card
2. Run the Linux system from SD card
3. echo -n 0 > /sys/devices/soc/usbc0/otg_role
4. modprobe g_ether
5. echo -n 2 > /sys/devices/soc/usbc0/otg_role
6. connect PC and BPI M2ULTRA with usb cable
7. configure IP addresses on both sides (usb0 interface)
Thank you so much, finally I get an usb that gets recognized as an ethernet device. I just wanted to ask you about two things:
Could you share the steps to produce the kernel file and modules so that other people too can fix this issue for themselves in the future ?
Also could you make some step by step tutorial , continuing after the steps you posted before about how to configure both the banana and you own PC , so that you can perfor SSH login from your own PC to the banana pi.
7. Configure IP address on PC side:
# ifconfig usb0 10.0.0.1 netmask 255.255.255.0 up
8. Configure IP address on BPI side:
# ifconfig usb0 10.0.0.2 netmask 255.255.255.0 up
9. Run sshd daemon on BPI side:
# /sbin/sshd
At this point all the ethernet transmission should be working via usb cable: ping, telnet, ssh, etc.
Do you continue to have audio , after applying (copying over) the kernel file and /lib/ folder?
I used to have the HDMI audio working with the monitor, but now it seems to be gone.