Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work, black screen. #2

Open
misterhsp opened this issue Oct 5, 2023 · 16 comments
Open

does not work, black screen. #2

misterhsp opened this issue Oct 5, 2023 · 16 comments

Comments

@misterhsp
Copy link

see topic

...

@JaapJoris
Copy link
Member

Hi there!

It works for me and many others. Have you followed the instructions? At which point do you see the black screen?

@misterhsp
Copy link
Author

misterhsp commented Oct 10, 2023 via email

@misterhsp
Copy link
Author

How do you get 1280x1024 video with Qemu? Do you have a howto and where to get the driver for it? Maybe a howto for it?

Thanks....

@mmmmmmbeer
Copy link

I had the same issue following the instructions exactly. It appears to be hanging on network startup. I was able to launch windows successfully by mounting hda.img and changing the autoexec.bat to run win /n instead of just win

@JaapJoris
Copy link
Member

That's a shame. It used to work including networking. Currently, I cannot get it to boot even with win /n. It just hangs showing this:

qemu

Since hda.img hasn't changed since it was first committed 3 years ago, this must have been caused by one of the recent changes to QEMU's ne2000.c, which means that this remark in the README may no longer be correct:

The installed driver is for the Realtek 8029 networking adapter, which is the one that is actually emulated with QEMU's ne2k_pci option (thank you Friedemann Baitinger for pointing me in the right direction in this 2004 forum post).

I mounted the hda.img mounted with ./mount, and looked at various *.ini and *.inf files beneath the c:\windows directory. It may be possible to deactivate the network only so you can still enjoy the games and other software. If anyone knows how, please chime in.

The last time I had to solve this problem I was 10.

@mattman86
Copy link

I got it to work with the following command:

qemu-system-i386 -nic user,ipv6=off,model=ne2k_pci -drive format=raw,file=hda.img -vga cirrus -device sb16 -display gtk

Only issue is that it sometimes freezes and I have to close the QEMU window and boot back up.

@misterhsp
Copy link
Author

misterhsp commented Apr 26, 2024 via email

@JaapJoris
Copy link
Member

JaapJoris commented May 9, 2024

IT WORKS AGAIN!

Well, at least for me, using QEMU emulator version 8.2.3 (Debian 1:8.2.3+ds-2).

Edit: this may have been a fluke, see this message further down this thread:

The problem does not appear to be consistent though, for example if I run many instances of it at once, on say, v9.0.0, usually at least one of them will actually boot correctly.

@misterhsp
Copy link
Author

misterhsp commented May 10, 2024 via email

@popey
Copy link

popey commented Sep 4, 2024

I just stumbled on this repo via a link from another forum. I also had a black screen issue.

However, Good News, Everyone! It's easily fixed. Here's a screenshot of it on my ThinkPad running Ubuntu.

image

I agree with the previous comments about updates to QEMU being the problem.

So, I went back and found the version of QEMU that would have been contemporary when @JaapJoris uploaded the image. QEMU 5.0.2 was released in December before the upload, so I suspect that may have been the release they used.

I grabbed the source from https://download.qemu.org/ - precisely this tarball.

I compiled it on my Ubuntu 24.04 laptop, mostly ./configure and make -j8. It needed apt install ninja and probably wouldn't hurt to apt-get build-dep qemu to get build dependencies required by the Ubuntu package.

I then copied the qemu-system-i386 binary and the various ROMS from the pc-bios/ folder too into the folder where the start script and hda.img are. That includes bios-256k.bin, efi-e1000.rom, efi-ne2k_pci.rom, vgabios-cirrus.bin, vgabios-stdvga.bin, kvmvapic.bin. I then tweaked the start script to use the local qemu-system-i386.

All working fine.

@JaapJoris
Copy link
Member

Oh god, I can see where this is going: in a few decades from now when someone recovers this repository from the arctic vault, someone will have to set up Ubuntu 24.04 in an emulator as the only way to run Windows 3.11 on a post-apocalyptic machine.

In order to help them with the visibility of this, I'll reopen this issue.

@JaapJoris JaapJoris reopened this Sep 4, 2024
@otonoton
Copy link

otonoton commented Sep 6, 2024

@popey Why not bisect the qemu code to find the exact commit that caused the issue so it can be reported and fixed?

@popey
Copy link

popey commented Sep 6, 2024

Because I wanted a quick and easy fix.

Feel free to do the lengthy work of bisecting until you find the right patch.

@otonoton
Copy link

otonoton commented Sep 6, 2024

@popey I bisected it, looks like it has been broken since 7.2.0:

2255da493a92e0f6441c773fa3bfdfb34273e85f is the first bad commit
commit 2255da493a92e0f6441c773fa3bfdfb34273e85f
Author: Richard Henderson <[email protected]>
Date:   Sat Oct 1 07:09:27 2022 -0700

    target/i386: Use gen_jmp_rel for loop, repz, jecxz insns
    
    With gen_jmp_rel, we may chain to the next tb instead of merely
    writing to eip and exiting.  For repz, subtract cur_insn_len to
    restart the current insn.
    
    Signed-off-by: Richard Henderson <[email protected]>
    Reviewed-by: Paolo Bonzini <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Paolo Bonzini <[email protected]>

 target/i386/tcg/translate.c | 36 +++++++++++++++---------------------
 1 file changed, 15 insertions(+), 21 deletions(-)

@otonoton
Copy link

otonoton commented Sep 6, 2024

The problem does not appear to be consistent though, for example if I run many instances of it at once, on say, v9.0.0, usually at least one of them will actually boot correctly. This will run 8 instances at once:

parallel -N0 qemu-system-x86_64 -hda hda.img -nic user,ipv6=off,model=ne2k_pci -device sb16 -vga cirrus -snapshot -no-shutdown -display gtk,zoom-to-fit=on ::: {1..8}

@Trash-o-ljub
Copy link

oke... so can somebody help me to run it on mac 15 with latest QEMU? or any way of click-click boom setup? why is image corupted aAAAA!
there is a problem in ./mount with "-o loop" option not supported
and in ./start with -display gtk (that I figgured out it should say "-display cocoa" I think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants