From: "Blue Swirl" <blauwirbel@gmail.com>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6271] Use ESCC for PowerMac serial
Date: Mon, 12 Jan 2009 22:32:43 +0200 [thread overview]
Message-ID: <f43fc5580901121232g3303a1bfyd36675fccb9d05ba@mail.gmail.com> (raw)
In-Reply-To: <20090112201836.GF29483@hall.aurel32.net>
On 1/12/09, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
> > Revision: 6271
> > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271
> > Author: blueswir1
> > Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)
> >
> > Log Message:
> > -----------
> > Use ESCC for PowerMac serial
> >
>
>
> [snip]
>
>
> > Modified: trunk/hw/ppc_oldworld.c
> > ===================================================================
> > --- trunk/hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270)
> > +++ trunk/hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271)
> > @@ -33,6 +33,7 @@
> > #include "pci.h"
> > #include "boards.h"
> > #include "fw_cfg.h"
> > +#include "escc.h"
> >
> > #define MAX_IDE_BUS 2
> > #define VGA_BIOS_SIZE 65536
> > @@ -126,7 +127,7 @@
> > int vga_bios_size, bios_size;
> > qemu_irq *dummy_irq;
> > int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index;
> > - int ide_mem_index[2];
> > + int escc_mem_index, ide_mem_index[2];
> > int ppc_boot_device;
> > BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
> > int index;
> > @@ -296,8 +297,8 @@
> > /* XXX: suppress that */
> > dummy_irq = i8259_init(NULL);
> >
> > - /* XXX: use Mac Serial port */
> > - serial_init(0x3f8, dummy_irq[4], 115200, serial_hds[0]);
> > + escc_mem_index = escc_init(0x80013000, pic[0x10], serial_hds[0],
> > + serial_hds[1], ESCC_CLOCK, 4);
>
>
> I don't think this address is correct. Also this is later mapped by
> macio_init() later.
It's there to enable some kind of serial console before PCI probing
and device mapping has been done, the address is arbitrary.
Maybe the new mapping could remove the old one.
> Also I have tried with the latest SVN of OpenBIOS (which includes the
> corresponding patches for ESCC), and the machine doesn't boot anymore.
> Using -serial stdio, I see
>
> | >> =============================================================
> | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28]
> | >> Configuration device id QEMU version 1 machine id 2
> | >> CPUs: 1
> | >> Memory: 144M
> | >> UUID: 00000000-0000-0000-0000-000000000000
> | >> CPU type PowerPC,750
> | >> Initializing PCI devices...
> | >> 0:0.0 - 1057:2 - /pci -
> | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -
>
> Then it hangs there.
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5
(CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like
before.
What kind of setup do you have? At least OpenBIOS config is not
standard, you have enabled PCI debugging.
next prev parent reply other threads:[~2009-01-12 20:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 17:40 [Qemu-devel] [6271] Use ESCC for PowerMac serial Blue Swirl
2009-01-12 20:18 ` Aurelien Jarno
2009-01-12 20:32 ` Blue Swirl [this message]
2009-01-12 20:40 ` Aurelien Jarno
2009-01-12 20:48 ` Blue Swirl
2009-01-12 21:10 ` Aurelien Jarno
2009-01-12 20:50 ` Aurelien Jarno
2009-01-12 20:59 ` Blue Swirl
2009-01-12 21:10 ` Aurelien Jarno
2009-01-13 17:03 ` Aurelien Jarno
2009-01-13 17:21 ` Blue Swirl
2009-01-13 17:28 ` Aurelien Jarno
2009-01-13 20:12 ` Blue Swirl
2009-01-13 21:24 ` Aurelien Jarno
2009-01-13 21:28 ` Laurent Vivier
2009-01-13 20:46 ` Laurent Vivier
2009-01-13 21:41 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f43fc5580901121232g3303a1bfyd36675fccb9d05ba@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).