qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] request help enabling both serial0 and parallel0 to emulate


From: Gabi Voiculescu
Subject: [Qemu-devel] request help enabling both serial0 and parallel0 to emulate 2 distinct ports on beagle
Date: Fri, 8 Oct 2010 08:59:13 -0700 (PDT)

Hi.

I am trying to emulate the Beagle platform using the version of qemu (meego 
qemu) from here (I'm currently in sync with commit caacc3f): 
git://gitorious.org/qemu-maemo/qemu.git.

I'm faced with the following problem. I'm running a microkernel underneath 
Linux and when I try to use invasive debug at the microkernel level I can no 
longer enable the linux console on that port.

For this reason we are using 2 distinct serial ports in our development on real 
hardware.

I'm trying to replicate this in the emulator. By default I have keyboard into 
either serial0 or parallel0, depending on whether I make or not use of -serial 
stdio in the qemu-system-arm command.

I tried to use Ctrl-Alt-1 window (emulated tty0) as well as qemu serial0 
console (using -serial stdio in the qemu-system-arm call line).

However I see emulated tty0 does not accept input from my keyboard once I grab 
mouse and keyboard in that window.

Now I'm trying to make use of both parallel0 and serial0.

I modified the qemu code like this:
--- a/hw/beagle.c
+++ b/hw/beagle.c
@@ -68,7 +68,7 @@ static void beagle_common_init(ram_addr_t ram_size,
 #error MAX_SERIAL_PORTS must be at least 1!
 #endif

     s->cpu = omap3_mpu_init(cpu_model, 1, ram_size,
-                            NULL, NULL, serial_hds[0], NULL);
+                            NULL, parallel_hds[0] , serial_hds[0], NULL);

I think I am missing something since I do not get serial output on parallel0 
(Qemu Ctrl-Alt-2 window).

My first question: is what I want even possible (serial on both serial0 and 
parallel0)? If yes, what file should I look into?

Or should I consider grabbing a usb device from my host PC in qemu and plug in 
a hub or usb keyboard in there instead?

Thank you,
Gabi Voiculescu



      



reply via email to

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