Tiny Core Base > Raspberry Pi
USB gadget kernel module with RPi zero
Linkan:
thanks for the tip @jgrulich it certainly looks like something interesting but I'm already commited to the approach with picore + g_ether but I'll keep this in mind if I run in to more problems.
johannkraus:
--- Quote from: Linkan on February 03, 2017, 02:32:41 PM ---Okay, I think I've resolved the dependencies but still I can't load the module with the same error. Do I have to manually specify all the parameters listed by `modinfo` to the kernel module?
--- End quote ---
Just to be curious: What happens if you load g_multi? I just tried to modprobe g_ether and got a "No such device error". But g_multi works on my Pi.
According to this site (http://trac.gateworks.com/wiki/linux/OTG) there seem to be alternative modes for ethernet:
- cdc eem
- rndis
This might be switched in g_ether via use_eem parameter (but probably only when compiled with support - and I was not able to switch).
From dmesg I don't see which one (rndis / eem) is used with g_multi. But my host tells me:
[1210370.212087] cdc_acm 1-4:1.2: ttyACM0: USB ACM device
[1210370.212363] usbcore: registered new interface driver cdc_acm
[1210370.212365] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[1210370.287192] usbcore: registered new interface driver cdc_ether
[1210370.293888] rndis_host 1-4:1.0 usb0: register 'rndis_host' at usb-0000:00:1a.7-4, RNDIS device, 12:88:92:94:83:ca
[1210370.293911] usbcore: registered new interface driver rndis_host
[1210370.317397] usbcore: registered new interface driver rndis_wlan
[1210370.319988] rndis_host 1-4:1.0 enp0s26f7u4: renamed from usb0
Linkan:
Thanks @johannkraus and others for the help I got it working now. Not sure what I was doing wrong but it seems that redoing the steps again got it working. `g_ether` works fine for me with the rndis mode for ethernet.
CoraDias:
Hi...i am a new user here. As per my knowledge it can be useful to have when no ethernet is available. What we can do to make kernel modules and support programs if any as tcz, test and add to the repo.
Juanito:
See the extension making section of the wiki here:
http://wiki.tinycorelinux.net/wiki:creating_extensions
In addition, for RPi, there are more kernel modules here:
http://tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/4.9.22-piCore_modules.tar.xz
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version