[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Accessing the serial port from proll

From: Blue Swirl
Subject: [Qemu-devel] Re: Accessing the serial port from proll
Date: Sun, 20 Nov 2005 10:25:20 +0100


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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]