From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcaVu-00043t-N0 for qemu-devel@nongnu.org; Wed, 03 Feb 2010 03:23:06 -0500 Received: from [199.232.76.173] (port=35781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcaVu-00043f-8N for qemu-devel@nongnu.org; Wed, 03 Feb 2010 03:23:06 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcaVt-0002kG-6q for qemu-devel@nongnu.org; Wed, 03 Feb 2010 03:23:06 -0500 Received: from mx20.gnu.org ([199.232.41.8]:45938) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NcaVs-0002jy-Hh for qemu-devel@nongnu.org; Wed, 03 Feb 2010 03:23:04 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcaVr-0000d2-CW for qemu-devel@nongnu.org; Wed, 03 Feb 2010 03:23:03 -0500 Received: by vws15 with SMTP id 15so314679vws.4 for ; Wed, 03 Feb 2010 00:23:01 -0800 (PST) MIME-Version: 1.0 Date: Wed, 3 Feb 2010 16:23:01 +0800 Message-ID: <121fadb81002030023uba7d71cn5ab5bfa5beb9addb@mail.gmail.com> From: daniel tian Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aurelien@aurel32.net Cc: qemu-devel@nongnu.org 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. The command I run: qemu-system-mipsel -M malta -kernel vmlinux-malta -hda ~/rootfs_poky.ext2 -append "root=/dev/hda rootfstype=ext2 console=ttyS0" -nographic And I hacked and debug the qemu source code in gdb. there is a member variable in structure VGACommonState is ar_index. this variable is always 0 after being reset in function "vga_reset". this will cause the "graphic_mode" variable in vga_update_display function always being set as GMODE_BLANK. There are several functions which will rewrite the VGACommonState .ar_index, such as vga_ioport_write, cirrus_vga_save,cirrus_vga_load, vga_save, but they were not triggerred. Do I miss something? I don't where I could get some help, so after gotta your name in mips-malta.c, maybe youcan give me some advice. Thanks very much! daniel.tian