[LCA2019 Chat] Headless RPi setup

martin f krafft madduck at madduck.net
Sat Jan 26 19:17:21 AEDT 2019


Quoting "Wes Cilldhaire", who wrote on 2019-01-22 at 21:55 Uhr +1100:
>I used this[0] method to get a serial console on it, then used 
>a normal usb-a to micro-usb cable plugged in to my laptop.  It sets 
>up a usb serial gadget driver on the pi which presents to the host 
>as a cdc_acm serial device then runs a getty on it.

I've followed this method byte for byte, but I see no serial device 
on the laptop.

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
                                      ^^^^^^^^^^

Also, yes, I've rebooted a second time.

It's also in /proc/modules, and there seem to be no errors in 
syslog.

Any clues? I mean, I can connect on Wifi, but I really want a serial 
console.

Thanks,

-- 
@martinkrafft | https://riot.im/app/#/room/#madduck:madduck.net
 
obviously i was either onto something, or on something.
                               -- larry wall on the creation of perl
 
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1118 bytes
Desc: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.lca2019.linux.org.au/pipermail/chat/attachments/20190126/2255a112/attachment.sig>


More information about the Chat mailing list