davidferguson / pibakery-blocks

All the blocks for the Pi Bakery program
GNU General Public License v3.0
242 stars 86 forks source link

Blocks for pi-zero USB OTG? #3

Closed carlosperate closed 8 years ago

carlosperate commented 8 years ago

Are there plans to include any blocks to configure the Pi Zero OTG USB? This projects would be perfect to configure the Etherner or mass storage USB gadgets.

davidferguson commented 8 years ago

I sadly don't have much experience with using OTG with Pi Zero, but it's a good idea, and definitely something I can look into. However, if you've used OTG before and want to implement it yourself, you can always add it as a custom block if you want.

carlosperate commented 8 years ago

I haven't used it before and I am a bit swamped with other projects, but this would probably be one of the primary use cases for me, as configuring a headless raspberry pi zero usually requires quite a bit of reading beforehand. Whenever you get a chance I think this would be a great addition :)

davidferguson commented 8 years ago

I've got them working now - just a bit more testing before I add them in.

davidferguson commented 8 years ago

These have now been added in to PiBakery. The OTG modes supported are g_ether, g_serial, g_mass_storage and g_midi.

For the best experience, reinstall PiBakery rather than just letting PiBakery auto-update the blocks

carlosperate commented 8 years ago

Great, thanks @davidferguson !

Since you've got experience with the usb gadgets now, do you know if its possible to have the composite gadget (g_multi) working on all OS (mac, win and linxu) with something like ethernet + mass storage?

davidferguson commented 8 years ago

I've had all the gadgets (MIDI, ethernet, mass storage and serial) working at the same time, but it doesn't work on Windows (the drivers don't exist yet). I'll have another look at ethernet + mass storage, but I have a feeling that Windows won't have the drivers for that either.