:: Re: [DNG] rpi3 serial console
Página Principal
Delete this message
Reply to this message
Autor: Gregory Nowak
Data:  
Para: dng
Assunto: Re: [DNG] rpi3 serial console
On Mon, Dec 12, 2016 at 12:04:59PM -0500, Christopher Clements wrote:
> First of all, this might help you with the GPIO stuff:
> https://pinout.xyz/pinout/uart


Thanks Christopher. According to the above, the GPIO for the rpi2 and
rpi3 are indeed the same ... good.

> You might need to make sure that /boot/config.txt has the following line:
>
>    enable_uart=1


Yes, that did it! I started seeing boot messages, but only got as far
as:

"[    0.125433] dmi: Firmware registration failed.
[    0.239817] pinctrl-bcm2835 3f200000.gpio: Starting probe
[    0.240893] pinctrl-bcm2835 3f200000.gpio: Probe successful!
[    1.233892] bcm2835_vchiq 3f00b840.vchiq: slot mem 00000000fa880000
[    1.647510] sdhost: failed to allocate log buf
[    2.922200] rpi-ft5406 soc:ft5406: Touchscreen not detected
[    3.245975] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive
strength init done for chip 43430 rev 1 pmurev 24
[    3.389902] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
wl0: Dec 15 2015 18:10:45 version 7.45.41.23 (r606571) FWID
01-cc4eda9c
[    3.429876] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166
code (0x30 0x30)"


and that was that. I then replaced the references to ttyAMA0 with
serial0 in cmdline.txt, but still the same thing. Next, I thought to
edit /etc/inittab, and changed:

#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100

to:

T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100

The boot messages ended, and I waited long enough to think that maybe
this wasn't going to work either, when I got:

"Devuan GNU/Linux 1 devuan ttyS0

devuan login:"

I should have ideally been able to watch the entire boot process
happen. However, with a system I can interact with and login to,
resolving that should be a matter of experimentation. I didn't use the
force_turbo=1 line in cmdline.txt, since I don't need the rpi to run
at max speed, and don't have a heat sink on this board. I will be
reporting this on the gitlab page for the arm64 image shortly. While I
understand not everyone may want a serial console taking over the
rpi's ttyS0, the process explaining how to get one going should be
described in the readme.txt file that comes with the image. This is
especially true for those of us who aren't able to look at a screen to
interact with the system. Thanks Christopher for pointing me in the
right direction.

Greg


--
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-manager@???