Tiny Core Base > Raspberry Pi
USB gadget kernel module with RPi zero
bmarkus:
dwc2 overlay is shipped with piCore. Enable it in /mnt/mmcblk0p1/config.txt For more info read /mnt/mmcblk0p1/overlays/README
Kernel modules in the archive
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.20-piCore%2B_modules.tar.xz
Extract modules you need and create a personal tcz with them or add to backup, tcz is preferred.
tehfink:
--- Quote from: bmarkus on September 10, 2016, 05:43:52 AM ---gadget is not an essential functionality, it will not go to the base. However it can be useful to have when no ethernet is available.
--- End quote ---
It's also quite useful because the power usage via USB is about half of that with a USB/Ethernet adaptor, on a Pi Zero.
Linkan:
Sorry but I just can't figure it out. I have enabled the `dwc2` overlay in config.txt and I created a tcz package with the following modules added:
--- Code: ---4.4.20-piCore+/kernel/drivers/usb/gadget/legacy/g_ether.ko
4.4.20-piCore+/kernel/drivers/usb/gadget/libcomposite.ko
4.4.20-piCore+/kernel/drivers/usb/gadget/function/usb_f_rndis.ko
4.4.20-piCore+/kernel/drivers/usb/gadget/function/u_ether.ko
4.4.20-piCore+/kernel/drivers/usb/gadget/udc/udc-core.ko
4.4.20-piCore+/kernel/drivers/usb/dwc2/dwc2.ko
--- End code ---
I also put `modules-load=dwc2,g_ether` after `rootwait` in cmdline.txt and then I reboot my rpi. It doesn't show up as a usb device on my machine. Is there something I forgot to do?
I also tried the method described above with loading dwc2 and g_ether in /opt/bootlocal.sh with a 5 second delay and setting the ip with ifconfig but I can't ping it from my main machine.
Doing `ip link` doesn't show `usb0` and I see nothing in dmesg or a difference in `lsusb` before and after plugging in my RPi. I have tried with multiple microusb cables too. When I plug in my phone I see a new usb device was connected so I know that works.
patrikg:
Have you tried to run
--- Code: (bash) ---sudo lsmod
--- End code ---
, to see if the modules have been loaded.
Linkan:
How can I do that without a keyboard? I can plug in a monitor but I wont be able to use a keyboard because the only USB port on the pi zero will be occupied by my OTG cable.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version