All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Re: Accessing the serial port from proll
@ 2005-11-20  9:25 Blue Swirl
  2005-11-20 10:11 ` Doug Gray
  0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2005-11-20  9:25 UTC (permalink / raw)
  To: dgray, qemu-devel

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-20 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20  9:25 [Qemu-devel] Re: Accessing the serial port from proll Blue Swirl
2005-11-20 10:11 ` Doug Gray
2005-11-20 12:50   ` Blue Swirl

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.