Devuan bug report logs - #89
arm-sdk: no serial console by default on rpi3

Package: arm-sdk; Reported by: Gregory Nowak <greg@gregn.net>; Done: "Ivan J." <parazyd@dyne.org>; Maintainer for arm-sdk is parazyd <parazyd@dyne.org>.


Message received at 89-done@bugs.devuan.org:


Received: (at 89-done) by bugs.devuan.org; 11 Jul 2017 15:10:02 +0000
Date: Tue, 11 Jul 2017 17:05:11 +0200
From: "Ivan J." <parazyd@dyne.org>
To: 89-done@bugs.devuan.org
Subject: done_89

done 89
done 89


Notification sent to Gregory Nowak <greg@gregn.net>:
bug acknowledged by developer. Full text available.


Reply sent to "Ivan J." <parazyd@dyne.org>:
You have taken responsibility. Full text available.


Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 26 May 2017 03:20:04 +0000
From: Gregory Nowak <greg@gregn.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: arm-sdk: no serial console by default on rpi3
Date: Thu, 25 May 2017 20:12:48 -0700

Package: arm-sdk
Severity: normal

Dear Maintainer,
This is a summary of:
<https://git.devuan.org/sdk/arm-sdk/issues/4>

The devuan_jessie_1.0.0_arm64_raspi3.img.xz image doesn't have a serial console enabled by default. While I understand this may not be desireable for all use cases, I think this should be noted, and documentation provided for those who want to enable the serial console. The discussion on this issue started here:
<https://lists.dyne.org/lurker/thread/20161213.035826.e049248a.en.html>

What needs to be done is described in the URL for the issue given above. What I will do in this bug report is describe what I feel needs to be done so that someone with a rpi3 on armhf or arm64 could simply uncomment one line in /boot/config.txt to activate both the serial port, and also the serial console

1. Bugs 87 and 88 need to be resolved:
<https://bugs.devuan.org/db/87/87.html>
<https://bugs.devuan.org/db/88/88.html>

2. The cmdline.txt file on the first partition of the sd card should read as follows:
--- begin cmdline.txt ---
dwc_otg.fiq_fix_enable=2 console=serial0,115200 kgdboc=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0 quiet
--- end cmdline.txt ---

The config.txt file on the first partition of the sd card should read as follows:
--- begin config.txt ---
## memory shared with the GPU
gpu_mem=64

## always audio
dtparam=audio=on

## maximum amps on usb ports
max_usb_current=1

# uncomment the next line to enable the serial port on the rpi3
#enable_uart=1
--- end config.txt ---

The last line of /etc/inittab currently reads:

T0:23:respawn:/sbin/agetty -L /dev/ttyAMA0 115200 vt100

It would instead read:

T0:23:respawn:/sbin/agetty --no-terminate -L /dev/serial0 115200 vt100

Once all this is done, enabling the serial console on the rpi3 would be as simple as uncommenting enable_uart=1 in config.txt.


-- System Information:

Architecture: aarch64

Kernel: Linux 4.10.0-rc5-v8+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)


Acknowledgement sent to Gregory Nowak <greg@gregn.net>:
New bug report received and forwarded. Copy sent to parazyd <parazyd@dyne.org>. Full text available.


Report forwarded to devuan-bugs@lists.dyne.org, parazyd <parazyd@dyne.org>:
bug#89; Package arm-sdk. Full text available.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat, 18 Aug 2018 16:39:01 UTC