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

Package: arm-sdk; Maintainer for arm-sdk is (unknown);

Reported by: Gregory Nowak <greg@gregn.net>

Date: Fri, 26 May 2017 03:33:01 UTC

Severity: normal

Done: "Ivan J." <parazyd@dyne.org>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#89: arm-sdk: no serial console by default on rpi3
Reply-To: Gregory Nowak <greg@gregn.net>, 89@bugs.devuan.org
Resent-From: Gregory Nowak <greg@gregn.net>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: parazyd <parazyd@dyne.org>
Resent-Date: Fri, 26 May 2017 03:33:01 UTC
Resent-Message-ID: <handler.89.B.149576880412648@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 89
X-Devuan-PR-Package: arm-sdk
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.149576880412648
          (code B ref -1); Fri, 26 May 2017 03:33:01 UTC
Received: (at submit) by bugs.devuan.org; 26 May 2017 03:20:04 +0000
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Fri, 26 May 2017 05:20:04 +0200 (CEST)
Received: from vserver.gregn.net (vserver.gregn.net [174.136.110.154])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by tupac2.dyne.org (Postfix) with ESMTPS id 825BC18D609
	for <submit@bugs.devuan.org>; Fri, 26 May 2017 03:12:58 +0000 (UTC)
Authentication-Results: tupac2.dyne.org; dkim=pass
	reason="2048-bit key; unprotected key"
	header.d=gregn.net header.i=@gregn.net header.b=jCsnxrr+;
	dkim-adsp=pass; dkim-atps=neutral
Received: from rpitest.gregn.net (unknown [IPv6:2001:470:f156:0:ba27:ebff:fe91:9a8])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vserver.gregn.net (Postfix) with ESMTPSA id EF3913A4F;
	Thu, 25 May 2017 20:12:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gregn.net; s=default;
	t=1495768376; bh=37KJfAuUCN7NZW7rZakLQoQp6CFb8DrebLHgSgF9Y6I=;
	h=From:To:Subject:Date:From;
	b=jCsnxrr+kJq13iNN1vEhzUHnpeS8sVfcQLmNQj3Sz6syxyHMiw8XRxn1j6ceWVZ2R
	 43oq/Kuzu4A4iLansjQgTmYJWrJqq03RgGNL9PFoqpq+ANjJLL1WysKDXExLmuJaBu
	 nbg6jTtvFTZEEUbyacEsVxILT7wKmfm+nfUwfHg5Hf51b6DuihbyIs3Yex/Suf+0dL
	 20sDx18jgfL1azrdvJ63artOLkGx66i1TGqhoVFCLNyKlF1uGJSrB5ozcuioT7EihW
	 sk4gsFWbQ50qbWzLMulhbD7+7wt53eiovrGeOwtZWiQxbV5BOp9lqaC88Hy+cwUot4
	 byccVmaFd1X6g==
Received: from greg by rpitest.gregn.net with local (Exim 4.84_2)
	(envelope-from <greg@gregn.net>)
	id 1dE5gM-0001Zu-98; Thu, 25 May 2017 20:12:54 -0700
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Gregory Nowak <greg@gregn.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <20170526031248.3988.72498.reportbug@rpitest.lan.lan>
X-Mailer: reportbug 6.6.3+devuan1.3
Date: Thu, 25 May 2017 20:12:48 -0700
X-Virus-Scanned: clamav-milter 0.99.2 at vserver
X-Virus-Status: Clean
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_PASS autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2
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)


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Sep 28 05:29:51 2020;