Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1

    "OTG Gadget" support (dwc2 overlay) support for piCore linux kernel

    I recently stumbled across this Adafruit tutorial about using the piZero's USB-OTG port for serial/ethernet connections via the "dwc2" overlay.

    It seems that the "dwc2" driver implements "gadget mode" and enables serial and network interactions across the USB cable. This would be quite useful as a debugging, configuration, and geeking-out tool.

    I can't find any mentions of the driver vis a vis tinyCore or piCore linux.

    Anyone have any experience with it?

  2. #2
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719

  3. #3

    Thanks!

    That looks like a start, thank you!

  4. #4
    Still digging on this.

    Can anyone point me to where the piCore distributions and/or piCorePlayer are built? I've found squeezelite and jivelite and lms on GitHub. I've always assumed it's an open project, but I can't find it.

    Starting from a post referenced above, I've found this link to an older kernel on the TinyCore site (piCore's upstream?)

    The info display from the diagnostics button on the Main Page of my piCorePlayers says that I'm running piCore version 9.2pCP, but I can't find any mention of it anywere on the TinyCore site.

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,001
    pCP has nothing really to do with tinycore other than using the same OS scheme.

    The pCP kernel source I s on github, but itĺs not much different than the rpi reference kernel. https://github.com/piCorePlayer/linux

    What are you looking for?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Thanks @paul

    This started off with a curiosity about enabling "gadget" mode on the pi zero, which seems to require replacing the `dwc-otg` USB driver (which, in spite of its name, apparently no longer supports OTG mode) with the `dwc2` driver. I haven't found any sign of the `dwc2` driver in the piCorePlayer distribution.

    It'd be wonderful if I could build my own piCorePlayer image with changes, e.g. including that driver.

    Are there instructions for that anywhere?

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,001
    dwc2 is an overlay, the driver should be compiled into the kernel. If not, all kernel modules are supplied in a tar file. You just need to grab the pack that corresponds to your kernel.

    https://github.com/raspberrypi/linux...ys/README#L622

    https://repo.picoreplayer.org/repo/9...Pi/src/kernel/

    As for remastering an image..... take a look here. http://wiki.tinycorelinux.net/wiki:remastering.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •