From: "Blue Swirl" <blueswir1@hotmail.com>
To: dgray@ucsc.edu, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Accessing the serial port from proll
Date: Sun, 20 Nov 2005 10:25:20 +0100 [thread overview]
Message-ID: <BAY104-F174897EB58B0D3F393D309FF500@phx.gbl> (raw)
Hi,
I guess you are not using Qemu's -nographic option. The flag is passed on to
Proll, which then initialises either serial port or frame buffer
accordingly.
For example, the following code echoes serial port data back:
diff -ru proll-patch-16/qemu/main.c proll-patch-16b/qemu/main.c
--- proll-patch-16/qemu/main.c 2005-08-14 10:07:48.000000000 +0000
+++ proll-patch-16b/qemu/main.c 2005-11-20 08:50:57.000000000 +0000
@@ -79,6 +79,13 @@
ram_size = ld_bypass(PHYS_JJ_EEPROM + 0x30);
printk("%d MB total\n", ram_size/(1024*1024));
+ for (;;) {
+ int ch;
+
+ ch = vcon_zs_getch(&dp0);
+ vcon_zs_putch(&dp0, ch);
+ }
+
bb.nbanks = 1;
bb.bankv[0].start = 0;
bb.bankv[0].length = ram_size;
I think serial loader would be nice addition, though there is already CD/HD
(no FD) and network boot options. If you don't care about Sun OBP
compatibility, I'd suggest reusing GDB remote debugging code.
Or are you trying to use Proll on Sparc64? In that case the serial port is
not Zilog one, but PC-compatible (vcons_su).
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
next reply other threads:[~2005-11-20 10:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-20 9:25 Blue Swirl [this message]
2005-11-20 10:11 ` [Qemu-devel] Re: Accessing the serial port from proll Doug Gray
2005-11-20 12:50 ` Blue Swirl
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=BAY104-F174897EB58B0D3F393D309FF500@phx.gbl \
--to=blueswir1@hotmail.com \
--cc=dgray@ucsc.edu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.