* [Qemu-devel] How can I make serial console works
@ 2012-03-07 2:36 Zhi-zhou Zhang
2012-03-07 7:35 ` Andreas Färber
0 siblings, 1 reply; 3+ messages in thread
From: Zhi-zhou Zhang @ 2012-03-07 2:36 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
HI All,
I am working on adding openrisc to qemu target. Till now I have done the
cpu part. I use it to run linux kernel. it can run to the end of linux
kernel. but there is no any message to the console.What should I do? Does
timer and pic must implement first? Need I implement a serial port or just
setup IO address?
I am looking forward to you help,thank you!
--
Regards,
Zhizhou Zhang
[-- Attachment #2: Type: text/html, Size: 461 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] How can I make serial console works
2012-03-07 2:36 [Qemu-devel] How can I make serial console works Zhi-zhou Zhang
@ 2012-03-07 7:35 ` Andreas Färber
2012-03-07 8:37 ` Zhi-zhou Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Färber @ 2012-03-07 7:35 UTC (permalink / raw)
To: Zhi-zhou Zhang; +Cc: stuart.brady, qemu-devel
Hi,
Am 07.03.2012 03:36, schrieb Zhi-zhou Zhang:
> I am working on adding openrisc to qemu target. Till now I have done the
> cpu part. I use it to run linux kernel. it can run to the end of linux
> kernel.
How do you know? :)
> but there is no any message to the console.What should I do?
> Does timer and pic must implement first? Need I implement a serial port
> or just setup IO address?
For a serial console you need a serial port, yes. Whether you can reuse,
e.g., the memory-mapped serial port or need to write your own device
depends on the hardware you're trying to match and that also determines
what dependencies you have - timer and PIC are likely.
Have you checked http://repo.or.cz/w/qemu/openrisc.git?
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] How can I make serial console works
2012-03-07 7:35 ` Andreas Färber
@ 2012-03-07 8:37 ` Zhi-zhou Zhang
0 siblings, 0 replies; 3+ messages in thread
From: Zhi-zhou Zhang @ 2012-03-07 8:37 UTC (permalink / raw)
To: Andreas Färber; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
Sorry for resend this mail, for I can't see it untill now, I thought I had
failed send to the mailist.
On Wed, Mar 7, 2012 at 3:35 PM, Andreas Färber <afaerber@suse.de> wrote:
>
> How do you know? :)
>
I added a function in op_helper.c, then every insn will dump all the
registers when it runs. I traced the log and was sure that we had get to
the rest_init().
>
> > but there is no any message to the console.What should I do?
> > Does timer and pic must implement first? Need I implement a serial port
> > or just setup IO address?
>
> For a serial console you need a serial port, yes. Whether you can reuse,
> e.g., the memory-mapped serial port or need to write your own device
> depends on the hardware you're trying to match and that also determines
> what dependencies you have - timer and PIC are likely.
>
> I want to use 8250, it seems it needs PIC and timer.
I have finished openrisc's timer(there is still some pits), and want to use
8259.
But I don't how to start.
> Have you checked http://repo.or.cz/w/qemu/openrisc.git?
>
> No, we did it from zero. I will check it for reference.
--
Regards,
Zhizhou Zhang
[-- Attachment #2: Type: text/html, Size: 1840 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-07 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 2:36 [Qemu-devel] How can I make serial console works Zhi-zhou Zhang
2012-03-07 7:35 ` Andreas Färber
2012-03-07 8:37 ` Zhi-zhou Zhang
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).