🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.raspberry-pi
Article #63

Re: Pi 3B enable USB boot

#63
From: Theo
Date: Sat, 24 Oct 2026 15:52
39 lines
2509 bytes
Marco Moock <mm@dorfdsl.de> wrote:
> Am 24.10.26 um 13:40 schrieb Theo:
> > Marco Moock <mm@dorfdsl.de> wrote:
> >> Thanks for the link.
> >> I need to figure out how I can read and set the OTGID in FreeBSD.
> > 
> > It's a physical 5th pin on the micro USB connector.  If you insert a normal
> > A male (host) to microUSB male (device) cable the cable grounds the pin.  If
> > you insert an OTG cable (microUSB to A female, so the Pi becomes the host)
> > the pin is left floating.
> > 
> > So if you use an 'OTG' cable the port will be put into 'host' mode, if you
> > connect it to a PC with a regular micro USB cable the port will be in
> > 'device' mode.
> 
> I have a normal USB cable (other side is male) connected to a USB power 
> supply.
> 
> I have another PI 3B (in use, so I cannot play around with it) connected 
> to a USB power supply. I do not know how that cable handles it.
> 
> > You can override this with some dwc2 settings in config.txt.
> 
> Can you give more info about this setting?

It's:
dtoverlay=dwc2,dr_mode=host
or
dtoverlay=dwc2,dr_mode=peripheral
or
dtoverlay=dwc2,dr_mode=otg

The latter is the default, which is deciding between host and device using
the ID pin in the microUSB socket.

There's a doc:
https://pip-assets.raspberrypi.com/categories/685-app-notes-guides-whitepapers/documents/RP-009276-WP-1-Using%20OTG%20mode%20on%20Raspberry%20Pi%20SBCs.pdf

Theo
Technical Details
Message-ID: <JdC*ruZTA@news.chiark.greenend.org.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
References: <11bb0mi$3kla$1@solani.org> <nk0slcFslhpU1@mid.individual.net> <11bfpvu$8qj1$3@solani.org> <11bg4ia$209l1$1@dont-email.me> <11bhjgq$8cqh$1@solani.org> <HdC*hzYTA@news.chiark.greenend.org.uk> <11bibbt$am96$1@solani.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: Theo <theom+news@chiark.greenend.org.uk>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Pi 3B enable USB boot
Date: 24 Oct 2026 16:52:39 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <JdC*ruZTA@news.chiark.greenend.org.uk>
References: <11bb0mi$3kla$1@solani.org> <nk0slcFslhpU1@mid.individual.net> <11bfpvu$8qj1$3@solani.org> <11bg4ia$209l1$1@dont-email.me> <11bhjgq$8cqh$1@solani.org> <HdC*hzYTA@news.chiark.greenend.org.uk> <11bibbt$am96$1@solani.org>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:93.93.131.173";
	logging-data="17016"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-44-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([93.93.131.173])