From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAfKZ-00016d-8J for qemu-devel@nongnu.org; Sat, 08 May 2010 04:24:15 -0400 Received: from [140.186.70.92] (port=38547 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAfKV-00016T-Ou for qemu-devel@nongnu.org; Sat, 08 May 2010 04:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAfKT-0007Is-Kl for qemu-devel@nongnu.org; Sat, 08 May 2010 04:24:11 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:52397) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAfKT-0007IU-G5 for qemu-devel@nongnu.org; Sat, 08 May 2010 04:24:09 -0400 Received: by vws9 with SMTP id 9so265950vws.4 for ; Sat, 08 May 2010 01:24:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <121fadb81002102240m591d0ea7j956278cb3334794d@mail.gmail.com> References: <121fadb81002030023uba7d71cn5ab5bfa5beb9addb@mail.gmail.com> <20100206213716.GD15349@volta.aurel32.net> <4B6DFCA0.50306@mail.berlios.de> <121fadb81002102240m591d0ea7j956278cb3334794d@mail.gmail.com> Date: Sat, 8 May 2010 16:24:06 +0800 Message-ID: Subject: Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel From: daniel tian Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , qemu-devel@nongnu.org Cc: dennis.yxun@gmail.com, samh.huang@mavrixtech.com.cn, peng.zheng@mavrixtech.com hi, all: I just finished a mips qemu with framebuffer graphic display. graphics card is not based on Cirrus. I defined a virtual graphic card with features following: 1. support only 32bpp (true color)framebuffer. 2. display resolution only support width X height = 640 X 480. 3. with only register support: Framebuffer Address. when kernel allocate the framebuffer memory, the start address will be filled into this register. The qemu I ported is based on qemu- 0.11.1, a function named "framebuffer_update_display" is called to display the linux XWindow. The mips machine is revised from mips malta board. I just replaced the Cirrus Card with mavrix-lcd (my virtual display card I named.) .So anyelse left is almost same as the malta board. A poky (an openembedded based linux for embedded.) was built for qemu testing. By the way, the poky can run in qemu with -nographic mode. but after I added the virtual graphic card in qemu (of course, a new framebuffer driver was written in kernel for this new virtual card.), with graphic mode, the qemu shows a window which displays the poky startup pecertage. But here is the problem, the qemu got stunk when the poky startup almost finished(there is an progress bar show the startup percentage ). I don't know what happening. because no console text showed. and the qemu still runs ok when -nographic option is used. is there any way that can let the qemu show both the linux startup console message in terminal, and SDL simulator window. Here is the command I used to run qemu: qemu-system-mipsel -M mavrix -kernel ../kernel/vmlinux -hda ~/rootfs_poky.ext2 -append "root=/dev/hda rootfstype=ext2 console=ttyS0" My friend told me maybe the wrong console used in command line caused the linux can not login successfully. Any idear? didanyone also have this problem before. Any suggestions is appreciated. 2010/2/11 daniel tian : > 2010/2/7 Stefan Weil : >> Aurelien Jarno schrieb: >>> On Wed, Feb 03, 2010 at 04:23:01PM +0800, daniel tian wrote: >>> >>>> Hi, Aurelien Jarno: >>>> >>>> I just encounter a problem in running kernel on qemu mips malta board, >>>> I don't know how to bring up the graphic mode. >>>> with the option --nographic, it's ok: the kernel and rootfs run successfully. >>>> >>>> But I after removing the --nographic, qemu window is black-blank, no >>>> single word was displayed. >>>> >>>> I am wondering whether the graphic mode is supported in qemu mips-malta board. >>>> >>>> >>> >>> I personally haven't been able to get the graphic mode working with >>> mips-malta, but patches are welcome. >>> >>> >> >> At least framebuffer works for me (Tux in upper left corner >> during boot) with all malta variants (big/little endian 32/64 bit). >> > so what the command to bringup qemu? > > Anyways, thanks for you guys suggestions. >