* PowerMac serial console confusion
@ 2013-11-09 17:04 Aaro Koskinen
2013-11-10 16:54 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2013-11-09 17:04 UTC (permalink / raw)
To: Vladimir 'φ-coder/phcoder' Serbinenko, grub-devel
Hi,
On Apple Xserve G5, the device tree looks like this with Linux v3.12:
/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
Linux picks the ch-a as the first serial port:
[ 2.288585] 0.00013020:ch-a: ttyS0 at MMIO 0x80013020 [...]
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=57600" to get the serial
console working.
It would seem that GRUB 2.00 has ch-a and ch-b the other way round:
add_device (macio_addr[2] + escc_addr[0] + 32, 1);
add_device (macio_addr[2] + escc_addr[0], 0);
[...]
add_device (grub_addr_t addr, int channel)
[...]
port->name = grub_xasprintf ("escc-ch-%c", channel + 'a');
Is this a bug or maybe I have missed something?
A.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PowerMac serial console confusion
2013-11-09 17:04 PowerMac serial console confusion Aaro Koskinen
@ 2013-11-10 16:54 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-11-10 16:54 UTC (permalink / raw)
To: Aaro Koskinen; +Cc: grub-devel
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
On 09.11.2013 18:04, Aaro Koskinen wrote:
> Hi,
>
> On Apple Xserve G5, the device tree looks like this with Linux v3.12:
>
> /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
>
> Linux picks the ch-a as the first serial port:
>
> [ 2.288585] 0.00013020:ch-a: ttyS0 at MMIO 0x80013020 [...]
>
> 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=57600" to get the serial
> console working.
>
> It would seem that GRUB 2.00 has ch-a and ch-b the other way round:
>
> add_device (macio_addr[2] + escc_addr[0] + 32, 1);
> add_device (macio_addr[2] + escc_addr[0], 0);
>
> [...]
>
> add_device (grub_addr_t addr, int channel)
>
> [...]
>
> port->name = grub_xasprintf ("escc-ch-%c", channel + 'a');
>
> Is this a bug or maybe I have missed something?
>
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.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-10 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-09 17:04 PowerMac serial console confusion Aaro Koskinen
2013-11-10 16:54 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).