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
From: owner@bugs.devuan.org (Devuan bug Tracking System)
To: "Ivan J." <parazyd@dyne.org>
Cc: parazyd <parazyd@dyne.org>
Subject: bug#89: marked as done (arm-sdk: no serial console by default on rpi3)
Message-ID: <handler.89.D89.149978580229227.ackdone@bugs.devuan.org>
In-Reply-To: <20170711150511.GA2962@fq>
References: <20170711150511.GA2962@fq> <20170526031248.3988.72498.reportbug@rpitest.lan.lan>
Precedence: bulk
X-Devuan-PR-Message: closed 89
X-Devuan-PR-Package: arm-sdk
X-Devuan-PR-Keywords: 
Your message dated Tue, 11 Jul 2017 17:05:11 +0200
with message-id <20170711150511.GA2962@fq>
and subject line done_89
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Devuan Bugs Owner
(administrator, Devuan bugs database)

--------------------------------------
Received: (at submit) by bugs.devuan.org; 26 May 2017 03:20:04 +0000
Return-Path: <greg@gregn.net>
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>
Subject: arm-sdk: no serial console by default on rpi3
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)
---------------------------------------
Received: (at 89-done) by bugs.devuan.org; 11 Jul 2017 15:10:02 +0000
Return-Path: <parazyd@dyne.org>
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); Tue, 11 Jul 2017 17:10:02 +0200 (CEST)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	(Authenticated sender: parazyd@dyne.org)
	with ESMTPSA id BE7D618DC07
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dyne.org; s=mail;
	t=1499785516; bh=rvrksLL2s7R91+sxadPySapDHn3M7rG49rtKl5Hw01Q=;
	h=Date:From:To:Subject:From;
	b=MCcGwTX+Gkv0ErRmLGnvCpfEJJpGscRvY7Y737at9MhCSRIaFe5IMFlaWPQLGufEK
	 pWEa+HlP+vj0e2jjOj+JTewL2/XbxARFKnQRSam2va8O0jhT9SR1EOCDtIFlMtsBqa
	 Qydw0Fw5+tMZz8bDYtiTldlfgHwQ95FHIW23bf3Q=
Date: Tue, 11 Jul 2017 17:05:11 +0200
From: "Ivan J." <parazyd@dyne.org>
To: 89-done@bugs.devuan.org
Subject: done_89
Message-ID: <20170711150511.GA2962@fq>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-GPG-Keyserver: pgp.dyne.org
X-GPG-Id: 0xB876CB44FA1B0274
X-GPG-Fingerprint: 0333 7671 FDE7 5BB6 A85E  C91F B876 CB44 FA1B 0274
User-Agent: Jaro Mail <https://www.dyne.org/software/jaromail>
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
	autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

done 89
done 89

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: Wed Apr 24 18:00:48 2024;