Received: from [140.186.70.92] (port=45136 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5H5r-0005Rm-Co for qemu-devel@nongnu.org; Mon, 11 Oct 2010 08:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5H5q-0004M4-4R for qemu-devel@nongnu.org; Mon, 11 Oct 2010 08:03:03 -0400 Received: from nm4.bullet.mail.sp2.yahoo.com ([98.139.91.74]:25952) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P5H5p-0004L2-SB for qemu-devel@nongnu.org; Mon, 11 Oct 2010 08:03:02 -0400 Message-ID: <456971.39984.qm@web113812.mail.gq1.yahoo.com> Date: Mon, 11 Oct 2010 05:02:58 -0700 (PDT) From: Gabi Voiculescu Subject: Re: [Qemu-devel] request help enabling both serial0 and parallel0 to emulate 2 distinct ports on beagle In-Reply-To: <267578.61736.qm@web113803.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Can anybody tell me if I can use parallel0 and serial0 simultaneously as di= stinct input interfaces, please?=0A=0AIs this allowed by the qemu design or= not?=0A=0AThank you,=0AGabi Voiculescu=0A=0A--- On Fri, 10/8/10, Gabi Voic= ulescu wrote:=0A=0A> From: Gabi Voiculescu =0A> Subject: [Qemu-devel] request help enabling both serial0 and = parallel0 to emulate 2 distinct ports on beagle=0A> To: qemu-devel@nongnu.o= rg=0A> Date: Friday, October 8, 2010, 6:59 PM=0A> Hi.=0A> =0A> I am trying = to emulate the Beagle platform using the=0A> version of qemu (meego qemu) f= rom here (I'm currently in=0A> sync with commit caacc3f): =0A> git://gitori= ous.org/qemu-maemo/qemu.git.=0A> =0A> I'm faced with the following problem.= I'm running a=0A> microkernel underneath Linux and when I try to use invas= ive=0A> debug at the microkernel level I can no longer enable the=0A> linux= console on that port.=0A> =0A> For this reason we are using 2 distinct ser= ial ports in our=0A> development on real hardware.=0A> =0A> I'm trying to r= eplicate this in the emulator. By default I=0A> have keyboard into either s= erial0 or parallel0, depending on=0A> whether I make or not use of -serial = stdio in the=0A> qemu-system-arm command.=0A> =0A> I tried to use Ctrl-Alt-= 1 window (emulated tty0) as well as=0A> qemu serial0 console (using -serial= stdio in the=0A> qemu-system-arm call line).=0A> =0A> However I see emulat= ed tty0 does not accept input from my=0A> keyboard once I grab mouse and ke= yboard in that window.=0A> =0A> Now I'm trying to make use of both parallel= 0 and serial0.=0A> =0A> I modified the qemu code like this:=0A> --- a/hw/be= agle.c=0A> +++ b/hw/beagle.c=0A> @@ -68,7 +68,7 @@ static void beagle_commo= n_init(ram_addr_t=0A> ram_size,=0A> #error MAX_SERIAL_PORTS must be at lea= st 1!=0A> #endif=0A> =0A> =A0 =A0=A0=A0s->cpu =3D=0A> omap3_mpu_init(cpu_m= odel, 1, ram_size,=0A> -=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> =A0 =A0 =A0 =A0= =A0 =A0 NULL, NULL,=0A> serial_hds[0], NULL);=0A> +=A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0=0A> =A0 =A0 =A0 =A0 =A0 =A0 NULL,=0A> parallel_hds[0] , serial_hds= [0], NULL);=0A> =0A> I think I am missing something since I do not get seri= al=0A> output on parallel0 (Qemu Ctrl-Alt-2 window).=0A> =0A> My first ques= tion: is what I want even possible (serial on=0A> both serial0 and parallel= 0)? If yes, what file should I look=0A> into?=0A> =0A> Or should I consider= grabbing a usb device from my host PC=0A> in qemu and plug in a hub or usb= keyboard in there instead?=0A> =0A> Thank you,=0A> Gabi Voiculescu=0A> =0A= > =0A> =0A> =A0 =A0 =A0 =0A> =0A> =0A=0A=0A