running qemu-system-mipsel with VGA graphic mode based malta board kernel
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
Quoted 11 lines · daniel tian
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.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
Quoted 11 lines · Aurelien Jarno
Quoted 9 lines · daniel tian
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.
Quoted 8 lines
Quoted 3 lines
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).
2010/2/7 Stefan Weil <[email protected]>:
Quoted 16 lines
Quoted 15 lines · Aurelien Jarno
Quoted 12 lines · daniel tian
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.
Quoted 8 lines
Quoted 4 lines
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.
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 <[email protected]>:
Quoted 29 lines
2010/2/7 Stefan Weil <[email protected]>:
Quoted 16 lines
Quoted 15 lines · Aurelien Jarno
Quoted 12 lines · daniel tian
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.
Quoted 8 lines
Quoted 4 lines
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.
Am 11.02.2010 07:40, schrieb daniel tian:
Quoted 25 lines
2010/2/7 Stefan Weil<[email protected]>:
Quoted 23 lines
Quoted 21 lines · Aurelien Jarno
Quoted 13 lines · daniel tian
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.
Quoted 8 lines
Quoted 4 lines
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.
For linux, you need cirrusfb - either compiled into the kernel (CONFIG_FB_CIRRUS=y) or loaded as a module.
Then the default options should be sufficient for malta.
Quoted 7 lines
For linux, you need cirrusfb - either compiled into the kernel (
CONFIG_FB_CIRRUS=y) or loaded as a module.Then the default options should be sufficient for malta.
Are you sure? I 've already tried this solution. and after I tired of this trying solution, I began to write my own one.
I check the mips qemu code, and it does not call anything like framebuffer_update_display function(maybe it was accomplished in another way.)
But I need the qemu to jump out another window(just like arm-system-qemu, like a virtual monitor) to show my mips linux. Obviously, I didn't find out a certain way to do this.
Thanks for you reply.
Do you have any ideal for my qemu plight?
I do not have much linux/qemu develop experience.
Thanks again.
daniel