[LCA2019 Chat] Headless RPi setup

Marc MERLIN marc at merlins.org
Tue Jan 29 16:01:03 AEDT 2019


On Tue, Jan 29, 2019 at 07:04:24AM +1100, Wes Cilldhaire wrote:
> 
> 
> ----- On 26 Jan, 2019, at 7:17 PM, martin f krafft madduck at madduck.net wrote:
> > On the Pi I just get the message
> 
> > "udc-core: couldn't find an available UDC - added [g_cdc] to list
> > of pending drivers."
> 
> > which the article says means that I didn't enable the dwc2 properly.
> 
> > But hey:
> 
> > # grep dwc /proc/cmdline
> > 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416
> > bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:3B:08:DD
> > vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000
> > dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1
> > root=PARTUUID=9a617d9a-02 rootfstype=ext4 elevator=deadline
> > fsck.repair=yes rootwait modules-load=dwc2,g_cdc
> > ^^^^^^^^^^
> 
> You need to add the dtoverlay=dwc2 line in config.txt as well so the device actually appears in the device tree for the module to find.
> 
> Yes, I overlooked this step too initially, something about its position in the instructions seems to make one's mind skip over it :)
> (null)

For anyone with the hat, edit the first partition's config.txt, add 
enable_uart=1
Put it back in the rPi, power it up, and get serial console at 115200.
Then you can login in as pi/raspberry
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/enabling-serial-console

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                       | PGP 7F55D5F27AAF9D08


More information about the Chat mailing list