qemu: could not load PC BIOS 'bios-256k.bin'
Asked Answered
A

3

15

I was trying to use QEMU with a kernel ISO I am building but I am unable to run the test.

I am using Windows 10 64 bit and I have added the pc-bios folder to PATH if that matters. I have tried the following commands till now: Windows terminal screenshot

Annabellannabella answered 18/2, 2021 at 18:59 Comment(1)
Similar issue for linux: unix.stackexchange.com/questions/134893/…Capitol
F
19

You can use bios-256k.bin that comes with QEMU. Add the following while running your command ... -L "C:\Program Files\qemu". Where "C:\Program Files\qemu" is the path to QEMU installation.

Fecal answered 19/2, 2021 at 22:0 Comment(2)
Thanks a lot for the help. I figured it out as well but anyways.Annabellannabella
@Mina Maged Why is this required and when is this required? Is there a command that works for any operating system?Capitol
Z
3

Add -L C:\Users\Ratul\AppData\Local\Android\Sdk\emulator\lib\pc-bios\ option to your command line. You tried this option, but used the path and name of the binary, and iIt should contain only the path.

Zepeda answered 18/2, 2021 at 19:30 Comment(0)
R
0

I had a similar issue on android termux.

It may be due to permission.

So I tried to find the version with qemu-system-x86_64 --version

Then I downloaded the proper qemu source code by tag and I specified the -L option

qemu-system-x86_64 -L qemu-8.2.5/pc-bios/

This worked for me.

Reconstitute answered 28/7, 2024 at 15:28 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.