Tiny Core Base > Raspberry Pi
USB gadget kernel module with RPi zero
patrikg:
By using the modinfo command.
modinfo g_ether
Sometimes the depends: shows what modules it needs.
patrikg:
Why not test to include the hole gadget directory to your own module extension pack.
And this is how to managed to do the module extension pack.
http://forum.tinycorelinux.net/index.php/topic,18858.msg129216.html#msg129216
You modify the example above with just two lines. And also the dwc2 driver.
--- Code: (bash) ---mkdir -p /tmp/package/usr/local/lib/modules/4.4.39-piCore\+/kernel/drivers/usb/gadget/
cp -r /home/tc/modules/4.4.39-piCore\+/kernel/drivers/usb/gadget/* $_
--- End code ---
There are also lots of parameters to be set.
--- Code: (bash) ---modinfo g_ether.ko
filename: g_ether.ko
license: GPL
author: David Brownell, Benedikt Spanger
description: RNDIS/Ethernet Gadget
srcversion: 5E4C828D24F6E477C9CB5EE
depends: libcomposite,u_ether,usb_f_rndis
intree: Y
vermagic: 4.4.39-piCore+ mod_unload modversions ARMv6
parm: idVendor:USB Vendor ID (ushort)
parm: idProduct:USB Product ID (ushort)
parm: bcdDevice:USB Device version (BCD) (ushort)
parm: iSerialNumber:SerialNumber string (charp)
parm: iManufacturer:USB Manufacturer string (charp)
parm: iProduct:USB Product string (charp)
parm: qmult:queue length multiplier at high/super speed (uint)
parm: dev_addr:Device Ethernet Address (charp)
parm: host_addr:Host Ethernet Address (charp)
parm: use_eem:use CDC EEM mode (bool)
--- End code ---
bmarkus:
See
depends: libcomposite,u_ether,usb_f_rndis
Linkan:
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?
jgrulich:
Hi, may be, that my approach is quite different, but why not to use the u-boot bootloader to do all that stuff?
It is designed exactly for this purpose. It has USB and ethernet drivers and you may simply flash the card and do even much more. It's really powerfull. Look: http://www.denx.de/wiki/U-Boot/WebHome
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version