Received: from [140.186.70.92] (port=51623 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4FMT-0007JD-Pe for qemu-devel@nongnu.org; Fri, 08 Oct 2010 12:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4FLo-0001Fk-Vb for qemu-devel@nongnu.org; Fri, 08 Oct 2010 11:59:18 -0400 Received: from nm3-vm0.bullet.mail.ne1.yahoo.com ([98.138.91.55]:24332) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P4FLo-0001FV-Q6 for qemu-devel@nongnu.org; Fri, 08 Oct 2010 11:59:16 -0400 Message-ID: <267578.61736.qm@web113803.mail.gq1.yahoo.com> Date: Fri, 8 Oct 2010 08:59:13 -0700 (PDT) From: Gabi Voiculescu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] request help enabling both serial0 and parallel0 to emulate 2 distinct ports on beagle List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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