qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
@ 2010-02-03  8:23 daniel tian
  2010-02-06 21:37 ` Aurelien Jarno
  0 siblings, 1 reply; 7+ messages in thread
From: daniel tian @ 2010-02-03  8:23 UTC (permalink / raw)
  To: aurelien; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-02-03  8:23 [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel daniel tian
@ 2010-02-06 21:37 ` Aurelien Jarno
  2010-02-06 23:34   ` Stefan Weil
  0 siblings, 1 reply; 7+ messages in thread
From: Aurelien Jarno @ 2010-02-06 21:37 UTC (permalink / raw)
  To: daniel tian; +Cc: qemu-devel

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.

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-02-06 21:37 ` Aurelien Jarno
@ 2010-02-06 23:34   ` Stefan Weil
  2010-02-11  6:40     ` daniel tian
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Weil @ 2010-02-06 23:34 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: daniel tian, qemu-devel

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).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-02-06 23:34   ` Stefan Weil
@ 2010-02-11  6:40     ` daniel tian
  2010-05-08  8:24       ` daniel tian
  2010-05-08  8:39       ` Stefan Weil
  0 siblings, 2 replies; 7+ messages in thread
From: daniel tian @ 2010-02-11  6:40 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-devel

2010/2/7 Stefan Weil <weil@mail.berlios.de>:
> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-02-11  6:40     ` daniel tian
@ 2010-05-08  8:24       ` daniel tian
  2010-05-08  8:39       ` Stefan Weil
  1 sibling, 0 replies; 7+ messages in thread
From: daniel tian @ 2010-05-08  8:24 UTC (permalink / raw)
  To: Stefan Weil, qemu-devel; +Cc: dennis.yxun, samh.huang, peng.zheng

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 <daniel.xntian@gmail.com>:
> 2010/2/7 Stefan Weil <weil@mail.berlios.de>:
>> 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.
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-02-11  6:40     ` daniel tian
  2010-05-08  8:24       ` daniel tian
@ 2010-05-08  8:39       ` Stefan Weil
  2010-05-08  8:50         ` daniel tian
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Weil @ 2010-05-08  8:39 UTC (permalink / raw)
  To: daniel tian; +Cc: qemu-devel, Aurelien Jarno

Am 11.02.2010 07:40, schrieb daniel tian:
> 2010/2/7 Stefan Weil<weil@mail.berlios.de>:
>    
>> 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.
>    


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel
  2010-05-08  8:39       ` Stefan Weil
@ 2010-05-08  8:50         ` daniel tian
  0 siblings, 0 replies; 7+ messages in thread
From: daniel tian @ 2010-05-08  8:50 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-devel, Aurelien Jarno

>
>
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-08  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03  8:23 [Qemu-devel] running qemu-system-mipsel with VGA graphic mode based malta board kernel daniel tian
2010-02-06 21:37 ` Aurelien Jarno
2010-02-06 23:34   ` Stefan Weil
2010-02-11  6:40     ` daniel tian
2010-05-08  8:24       ` daniel tian
2010-05-08  8:39       ` Stefan Weil
2010-05-08  8:50         ` daniel tian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).