Skip to contentSkip to conversation

Regression: more 0.12 regression (SeaBIOS related?)

Qemu-devel Alain Ribière 5 participants 13 messages Mar 6, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

Hello,

I'm reacting a bit later but I have a trouble with an old DOS OS from Digital Research called Concurrent DOS.
It worked fine till Qemu v0.11.1.
I tried it with a lot of versions from 0.12.0 to 1.0.1 and it boot correctly. But after a key pressed, I can't use the keyboard any more. The system is not freezed (there is a clock in the bottom side of the screen which is running) but I can't use the keyboard any more. It worked also with 0.12.0-rc1 and the PC-BIOS. It seems that with Seabios it doesn't work any more but PC-BIOS is no longer supported by QEMU (from v0.12.0).

Do you know what can I do ?

Thanks,

Alain

#1 lore raw
Quoted 8 lines · Alain Ribière

Hello,

I'm reacting a bit later but I have a trouble with an old DOS OS from Digital Research called Concurrent DOS.
It worked fine till Qemu v0.11.1.
I tried it with a lot of versions from 0.12.0 to 1.0.1 and it boot correctly. But after a key pressed, I can't use the keyboard any more. The system is not freezed (there is a clock in the bottom side of the screen which is running) but I can't use the keyboard any more. It worked also with 0.12.0-rc1 and the PC-BIOS. It seems that with Seabios it doesn't work any more but PC-BIOS is no longer supported by QEMU (from v0.12.0).

Do you know what can I do ?

You can help debug the issue so it can be fixed in SeaBIOS. Start with producing a log from SeaBIOS by adding (on a recent qemu) the following to the command-line:

-chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios

Also, if there is an image available for download, other developers can take a look at it as well.

-Kevin

#2 lore raw

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :
qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16

Here is the log :
https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1ibjJDcEhTRWlNV050QnMyMWwtZw

Here is the floppy disk image I used :

https://docs.google.com/open?id=0B7mz0vq6Rpb7bHpYaEt2SnVUUi1KaWE3a3lBQUJpQQ

The floppy disk is simply a C-DOS 720 Ko floppy created by "format a: /s". So it's quite empty.

Qemu doesn't crash or freeze. But I can just type a single character and the nothing else. But the system is still running (there is a clock at the bottom right of the screen).

Thanks,

Alain

________________________________
De : Kevin O'Connor <[email protected]>
À : Alain Ribière <[email protected]>
Cc : "[email protected]" <[email protected]>; [email protected] Envoyé le : Mercredi 7 mars 2012 14h38
Objet : Re: [Qemu-devel] Regression: more 0.12 regression (SeaBIOS related?)

Quoted 8 lines · Alain Ribière

Hello,

I'm reacting a bit later but I have a trouble with an old DOS OS from Digital Research called Concurrent DOS.
It worked fine till Qemu v0.11.1.
I tried it with a lot of versions from 0.12.0 to 1.0.1 and it boot correctly. But after a key pressed, I can't use the keyboard any more. The system is not freezed (there is a clock in the bottom side of the screen which is running) but I can't use the keyboard any more. It worked also with 0.12.0-rc1 and the PC-BIOS. It seems that with Seabios it doesn't work any more but PC-BIOS is no longer supported by QEMU (from v0.12.0).

Do you know what can I do ?

You can help debug the issue so it can be fixed in SeaBIOS.  Start with producing a log from SeaBIOS by adding (on a recent qemu) the following to the command-line:

-chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios

Also, if there is an image available for download, other developers can take a look at it as well.

-Kevin

#3 lore raw
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

#4 lore raw
Quoted 5 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

Quoted 7 lines

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

Daniel reported a similar error. I haven't had a chance to look at it yet.

-Kevin

#5 lore raw
Quoted 8 lines · Kevin O'Connor
Quoted 7 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Quoted 8 lines
Quoted 5 lines

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

Daniel reported a similar error. I haven't had a chance to look at it yet.

This was the issue where QEMU's binary build of Seabios was broken. Rebuilding the exact same Seabios changeset from source works fine.

Regards,
Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
#6 lore raw
Quoted 13 lines · On Thu, 8 Mar 2012 14:09:05 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 12 lines · Kevin O'Connor
Quoted 11 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The git HEAD of my seabios repo is c5c488f46b.

Daniel reported a similar error. I haven't had a chance to look at it yet.

This was the issue where QEMU's binary build of Seabios was broken. Rebuilding the exact same Seabios changeset from source works fine.

Are you running qemu 1.0 or latest from git?

qemu 1.0 has seabios from commit 8e301472e324, I don't get the problem with this one. But latest qemu from git has seabios 1.6.3.1, it's with that version that I get my problem.

Using latest seabios makes it go away, didn't try re-building 1.6.3.1 though.

#7 lore raw
Quoted 2 lines · Luiz Capitulino

Using latest seabios makes it go away, didn't try re-building 1.6.3.1 though.

Try it, if your toolchain is not broken it should work.

//Peter

#8 lore raw
In reply to Luiz Capitulino
Quoted 18 lines · Luiz Capitulino
Quoted 15 lines · On Thu, 8 Mar 2012 14:09:05 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 14 lines · Kevin O'Connor
Quoted 12 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Daniel reported a similar error. I haven't had a chance to look at it yet.

This was the issue where QEMU's binary build of Seabios was broken. Rebuilding the exact same Seabios changeset from source works fine.

Are you running qemu 1.0 or latest from git?

Using GIT

Quoted 3 lines

qemu 1.0 has seabios from commit 8e301472e324, I don't get the problem with this one. But latest qemu from git has seabios 1.6.3.1, it's with that version that I get my problem.

That's the same I found - simply rebuilding 1.6.3.1 gives a binary that works fine.

Quoted 1 line

Using latest seabios makes it go away, didn't try re-building 1.6.3.1 though.

Daniel

Signature · 4 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
#9 lore raw
Quoted 27 lines · On Thu, 8 Mar 2012 14:37:47 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 18 lines · Luiz Capitulino
Quoted 15 lines · On Thu, 8 Mar 2012 14:09:05 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 14 lines · Kevin O'Connor
Quoted 12 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Daniel reported a similar error. I haven't had a chance to look at it yet.

This was the issue where QEMU's binary build of Seabios was broken. Rebuilding the exact same Seabios changeset from source works fine.

Are you running qemu 1.0 or latest from git?

Quoted 8 lines

Using GIT

Quoted 3 lines

qemu 1.0 has seabios from commit 8e301472e324, I don't get the problem with this one. But latest qemu from git has seabios 1.6.3.1, it's with that version that I get my problem.

That's the same I found - simply rebuilding 1.6.3.1 gives a binary that works fine.

Yeah, just tried it, worked.

I think we're thinking in updating our seabios version soon?

#10 lore raw

I still have the problem with :
seabios git : c5c488f46b (it shoes a version pre-1.6.4-20120308_165857)

qemu git : 1c8a881daa (v1.0)
I also tried with latest qemu from git : e326050 (snapshot from the git.qemu.org) And it doesn't work for me.
Have you tried my disk image ?

It doesn't crash. I can just type a character, which prints on the screen, and then nothing.

Maybe I made something wrong...

Thanks,

Alain

________________________________
De : Luiz Capitulino <[email protected]>
À : Daniel P. Berrange <[email protected]>
Cc : Kevin O'Connor <[email protected]>; Alain Ribière <[email protected]>; "[email protected]" <[email protected]>; "[email protected]" <[email protected]>; [email protected]; [email protected] Envoyé le : Jeudi 8 mars 2012 15h45
Objet : Re: [Qemu-devel] Re : Regression: more 0.12 regression (SeaBIOS related?)

Quoted 27 lines · On Thu, 8 Mar 2012 14:37:47 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 18 lines · Luiz Capitulino
Quoted 15 lines · On Thu, 8 Mar 2012 14:09:05 +0000 "Daniel P. Berrange" <[email protected]>…
Quoted 14 lines · Kevin O'Connor
Quoted 12 lines · Luiz Capitulino
Quoted 1 line · On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière…

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :

What's the git HEAD?

Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After debugging a bit, I found out that latest seabios fixes the problem but couldn't identify the actual commit.

The git HEAD of my seabios repo is c5c488f46b.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Daniel reported a similar error.  I haven't had a chance to look at it yet.

This was the issue where QEMU's binary build of Seabios was broken. Rebuilding the exact same Seabios changeset from source works fine.

Are you running qemu 1.0 or latest from git?

Quoted 8 lines

Using GIT

Quoted 3 lines

qemu 1.0 has seabios from commit 8e301472e324, I don't get the problem with this one. But latest qemu from git has seabios 1.6.3.1, it's with that version that I get my problem.

That's the same I found - simply rebuilding 1.6.3.1 gives a binary that works fine.

Yeah, just tried it, worked.

I think we're thinking in updating our seabios version soon?

#11 lore raw
In reply to Alain Ribière
Quoted 11 lines · Alain Ribière

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :
qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16

Here is the log :
https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1ibjJDcEhTRWlNV050QnMyMWwtZw

Here is the floppy disk image I used :

https://docs.google.com/open?id=0B7mz0vq6Rpb7bHpYaEt2SnVUUi1KaWE3a3lBQUJpQQ

Quoted 6 lines

The floppy disk is simply a C-DOS 720 Ko floppy created by "format
a: /s". So it's quite empty.

Qemu doesn't crash or freeze. But I can just type a single character and the nothing else. But the system is still running (there is a clock at the bottom right of the screen).

I tracked this down. Looks like the image takes over the PS2 irq and keyboard handling, but then occasionally calls into the BIOS. When it does call the BIOS irq handler (manually), it expects the irq handler to enable the keyboard. Weird.

Anyway, the patch below fixes it for me.

-Kevin

Quoted 1 line

From 90ce89f8953da0e89c311aa34116b59aac1c6c5e Mon Sep 17 00:00:00 2001

From: Kevin O'Connor <[email protected]>
Date: Sun, 11 Mar 2012 20:45:56 -0400
Subject: [PATCH] ps2: Enable keyboard at end of PS2 port irq.
To: [email protected]

Looks like some old programs expect the keyboard irq to enable the keyboard port at the end of the irq. This behavior was seen on an image of "Concurrent DOS".

---
 src/ps2port.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/ps2port.c +3 -0
index 1f04299..4b27b7a 100644
@@ -404,6 +404,9 @@ handle_09(void)
 
     process_key(v);
 
+    // Some old programs expect ISR to turn keyboard back on.
+    i8042_command(I8042_CMD_KBD_ENABLE, NULL);
+
 done:
     eoi_pic1();
 }
Signature · 1 line
1.7.6.5
#12 lore raw
Quoted 20 lines · Alain Ribière
Quoted 12 lines

I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options :
qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16

Here is the log :
https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1ibjJDcEhTRWlNV050QnMyMWwtZw

Here is the floppy disk image I used :

https://docs.google.com/open?id=0B7mz0vq6Rpb7bHpYaEt2SnVUUi1KaWE3a3lBQUJpQQ

Quoted 6 lines

The floppy disk is simply a C-DOS 720 Ko floppy created by "format
a: /s". So it's quite empty.

Qemu doesn't crash or freeze. But I can just type a single character and the nothing else. But the system is still running (there is a clock at the bottom right of the screen).

Quoted 8 lines

I tracked this down.  Looks like the image takes over the PS2 irq and keyboard handling, but then occasionally calls into the BIOS.  When it does call the BIOS irq handler (manually), it expects the irq handler to enable the keyboard.  Weird.

Anyway, the patch below fixes it for me.

-Kevin

Great ! It works for me too.

Thanks a lot,

Alain