Skip to contentSkip to conversation

qemu-system-sparc video problem on 16 bitdisplays

Qemu-devel Blue Swirl 4 participants 9 messages Sep 6, 2006 – Sep 8, 2006

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Digging old bugs, I found this problem.

Maybe this patch helps? I can't test it here (can't get display to 16 bit somehow).

Quoted 31 lines · Anthony Liguori
Quoted 12 lines · Juergen Lock
Quoted 8 lines

Hi!

I was made aware of this by a FreeBSD user, but i suspect the
problem is not specific to FreeBSD hosts: If run on a 16 bit display, qemu-system-sparc' video is messed up like shown here:

      http://img320.imageshack.us/img320/3807/qemusparckd1.png

(pink, and uses only half of the window's width...) It looks okay on

24

Quoted 1 line

bit displays.

Quoted 15 lines

Looks you're telling QEMU that you've got a 16 bit buffer when it's really a 32 bit buffer.

Perhaps we're mixing up bits-per-pixel with depth?

Regards,

Anthony Liguori

Quoted 2 lines

Thanx,
Juergen

Perhaps this in tcx.c?

Quoted 14 lines
   switch (ts->ds->depth) {
   case 32:
   f = tcx_draw_line32;
   break;
   case 24:
   f = tcx_draw_line24;
   break;
   default:
   case 8:
   f = tcx_draw_line8;
   break;
   case 0:
   return;
   }

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

#1 lore raw
Quoted 5 lines · Blue Swirl

Digging old bugs, I found this problem.

Maybe this patch helps? I can't test it here (can't get display to 16 bit somehow).

Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the penguin at least. Then it hangs and burns CPU as usual.

WD

Signature · 4 lines
22:38 <@WaxDragon> false ^ true
22:39 < false> :(
22:39 < false> dont you think you can XOR me and get away with it! I
always return!
author
#2 lore raw
Quoted 2 lines

Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the penguin at least. Then it hangs and burns CPU as usual.

So early? I get to 'Running anaconda..' etc. Before AIO, install almost finished.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

#3 lore raw
Quoted 6 lines · Blue Swirl
Quoted 3 lines

Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the penguin at least. Then it hangs and burns CPU as usual.

So early? I get to 'Running anaconda..' etc. Before AIO, install almost finished.

It still cannot decide on console device; linux console=/dev/tty0 works fine

Signature · 2 lines
Kind Regards,
Igor V. Kovalenko
author
#4 lore raw
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the penguin at least. Then it hangs and burns CPU as usual.

So early? I get to 'Running anaconda..' etc. Before AIO, install almost finished.

It still cannot decide on console device; linux console=/dev/tty0 works fine

Now I see, I'm using the current SVN version (82) of OpenBIOS, not Qemu's. Console selection works fine in the current version.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

#5 lore raw
In reply to Igor Kovalenko
Quoted 11 lines · Igor Kovalenko
Quoted 5 lines · Blue Swirl
Quoted 2 lines

Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the penguin at least. Then it hangs and burns CPU as usual.

So early? I get to 'Running anaconda..' etc. Before AIO, install almost finished.

It still cannot decide on console device; linux console=/dev/tty0 works fine

I found "console=tty0" works a little better, thanks for the hint.

Specifying the console allows aurora to get farther, even starting X. Mouse doesn't seem to work though. ;0)

Gentoo 2004.0 shows me a mangled penguin, but otherwise boots.

WD

Signature · 4 lines
22:38 <@WaxDragon> false ^ true
22:39 < false> :(
22:39 < false> dont you think you can XOR me and get away with it! I
always return!
author
#6 lore raw
Quoted 2 lines

Specifying the console allows aurora to get farther, even starting X. Mouse doesn't seem to work though. ;0)

Mouse should work with Igor Kovalenko's patch, which I resent some days ago.

But I can't get to X with aurora-2.0, it just hangs much earlier.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

#7 lore raw
Quoted 8 lines
Quoted 3 lines

Specifying the console allows aurora to get farther, even starting X. Mouse doesn't seem to work though. ;0)

Mouse should work with Igor Kovalenko's patch, which I resent some days ago.

But I can't get to X with aurora-2.0, it just hangs much earlier.

It must be hanging while probing for sound modules, try adding 'blacklist snd-sun-cs4231' to /etc/modules.d/blacklist

Signature · 2 lines
Kind Regards,
Igor V. Kovalenko
#8 lore raw
In reply to Blue Swirl
Quoted 5 lines · Blue Swirl

Digging old bugs, I found this problem.

Maybe this patch helps? I can't test it here (can't get display to 16 bit somehow).
[...]

Thanx, that seems to fix the 16 bit display problem. (I just had to set
DefaultDepth 16
in Section "Screen" in xorg.conf to test it...)

Fabrice, please apply. :)

thanx + cheers,
Juergen