From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfYHh-0002jj-O0 for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 11:54:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfYHa-0002jW-IY for grub-devel@gnu.org; Sun, 10 Nov 2013 11:54:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfYHV-0002cf-Dm for grub-devel@gnu.org; Sun, 10 Nov 2013 11:54:42 -0500 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:56087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfYHV-0002cQ-5T for grub-devel@gnu.org; Sun, 10 Nov 2013 11:54:37 -0500 Received: by mail-ea0-f169.google.com with SMTP id z15so318334ead.14 for ; Sun, 10 Nov 2013 08:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=RGBhLUlHFWiIQ63EEDxq+H6xS7+w3ALqSS9kFIlDwiA=; b=RFQ5ixNBYoVwLM9ehWulh7pyq8wskXZ6ds5yg0wxFJPpe4e7NSSLtbZQHByfAU5OLY DLuXT1j4BbReR6fG+7fscueHqQc7vWCJpxwLnWMhpQubPxG8u6Z0zzhaMshLs+YC9hPP ziEBNGMNM3z+G3ZKZHVavNrNNZ+V14q+x156QKpStlMBh4pASyEw6oTTwyfGR0DX7JgH ZTUbbfy+fMDDO0fCmUcR8hfazzUKRMEYn6vJOfoXEWP8D313k3wXGnz3mjCYe1IuVnPw 7A64zaK3JYJHqyFgPMIHhnX3I/qugCL4mLfzfJa7g1pkdM08KZZIFtTZ0uZBFyOfAFHa +JoQ== X-Received: by 10.15.54.69 with SMTP id s45mr29831835eew.37.1384102475727; Sun, 10 Nov 2013 08:54:35 -0800 (PST) Received: from [192.168.1.16] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id w6sm51334080eeo.12.2013.11.10.08.54.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Nov 2013 08:54:34 -0800 (PST) Message-ID: <527FBA48.7090403@gmail.com> Date: Sun, 10 Nov 2013 17:54:32 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Aaro Koskinen Subject: Re: PowerMac serial console confusion References: <20131109170451.GB2623@blackmetal.musicnaut.iki.fi> In-Reply-To: <20131109170451.GB2623@blackmetal.musicnaut.iki.fi> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2WBWPSHOHEFDOGBTKOMWR" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::229 Cc: grub-devel@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 16:54:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2WBWPSHOHEFDOGBTKOMWR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09.11.2013 18:04, Aaro Koskinen wrote: > Hi, >=20 > On Apple Xserve G5, the device tree looks like this with Linux v3.12: >=20 > /proc/device-tree/ht@0,f2000000/pci@3/mac-io@7/escc@13000/ch-b@13000 > /proc/device-tree/ht@0,f2000000/pci@3/mac-io@7/escc@13000/ch-a@13020 >=20 > Linux picks the ch-a as the first serial port: >=20 > [ 2.288585] 0.00013020:ch-a: ttyS0 at MMIO 0x80013020 [...] >=20 > Also in Open Firmware the primary serial port seems to be ch-a (there > is only one port in the box anyway). However, that won't work in GRUB > and I need to say "serial escc-ch-b --speed=3D57600" to get the serial > console working. >=20 > It would seem that GRUB 2.00 has ch-a and ch-b the other way round: >=20 > add_device (macio_addr[2] + escc_addr[0] + 32, 1); > add_device (macio_addr[2] + escc_addr[0], 0); >=20 > [...] >=20 > add_device (grub_addr_t addr, int channel) >=20 > [...] >=20 > port->name =3D grub_xasprintf ("escc-ch-%c", channel + 'a'); >=20 > Is this a bug or maybe I have missed something? >=20 It is a bug: I must have exchanged add_device's in order to make order right but it didn't work since I forgot to change the argument. Fixed, thanks. On another note: your message was stuck in spambox, I've seen it only because I was looking for another message in spambox. Apparently iki.fi is on some blacklist. > A. >=20 ------enig2WBWPSHOHEFDOGBTKOMWR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlJ/ukgACgkQmBXlbbo5nOsDbgD9GZ7DDf/zjAGmw2fNLAGgFi71 f6iibbfBSOJIkR3JZxsA/3uivGu5HBh4mERt89VsU5uSK+6fdV3axPCyE9g2oS1O =ZvFG -----END PGP SIGNATURE----- ------enig2WBWPSHOHEFDOGBTKOMWR--