* [Qemu-devel] EFI BIOS on QEMU
@ 2007-12-06 4:58 Kuniyasu Suzaki
2007-12-06 9:30 ` Tristan Gingold
0 siblings, 1 reply; 11+ messages in thread
From: Kuniyasu Suzaki @ 2007-12-06 4:58 UTC (permalink / raw)
To: qemu-devel
Hello,
We tried EFI BIOS on QEMU.
http://bellard.org/qemu/efi-bios.tar.bz2
It' fine but the network is not effective. The "devices" command of EFI
does not find a NIC.
# Linux can not set up also network.
Please tell me how to solve this problem. I will re-compile EFI BIOS if necessary.
We want to try EFI toolkit on QEMU because EFI toolkit has many
commands for network. They were effective on EFI on IntelMac.
https://efi-toolkit.tianocore.org/
------
suzaki
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2007-12-06 4:58 [Qemu-devel] EFI BIOS on QEMU Kuniyasu Suzaki
@ 2007-12-06 9:30 ` Tristan Gingold
2007-12-06 15:48 ` Kuniyasu Suzaki
0 siblings, 1 reply; 11+ messages in thread
From: Tristan Gingold @ 2007-12-06 9:30 UTC (permalink / raw)
To: qemu-devel
On Dec 6, 2007, at 5:58 AM, Kuniyasu Suzaki wrote:
>
> Hello,
>
> We tried EFI BIOS on QEMU.
> http://bellard.org/qemu/efi-bios.tar.bz2
>
> It' fine but the network is not effective. The "devices" command of
> EFI
> does not find a NIC.
> # Linux can not set up also network.
>
> Please tell me how to solve this problem. I will re-compile EFI
> BIOS if necessary.
IIRC, tiano only support eepro100. But I have never tested it.
Tristan.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2007-12-06 9:30 ` Tristan Gingold
@ 2007-12-06 15:48 ` Kuniyasu Suzaki
2008-01-07 20:19 ` Stefan Weil
0 siblings, 1 reply; 11+ messages in thread
From: Kuniyasu Suzaki @ 2007-12-06 15:48 UTC (permalink / raw)
To: qemu-devel, gingold
Tristan,
>>From: Tristan Gingold <gingold@adacore.com>
>>Subject: Re: [Qemu-devel] EFI BIOS on QEMU
>>
>>IIRC, tiano only support eepro100. But I have never tested it.
I see. I should try an e100 emulator on QEMU, if I want to use EFI on QMEU.
------
suzaki
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2007-12-06 15:48 ` Kuniyasu Suzaki
@ 2008-01-07 20:19 ` Stefan Weil
2008-01-08 1:12 ` Rob Landley
2008-01-08 15:07 ` Tristan Gingold
0 siblings, 2 replies; 11+ messages in thread
From: Stefan Weil @ 2008-01-07 20:19 UTC (permalink / raw)
To: qemu-devel
Hi,
I just wanted to run QEMU CVS with EFI BIOS:
i386-softmmu/qemu -snapshot -L efi-bios -hda efi-bios/efi.disk
linux.img -net nic,model=i82551 -net user
i82551 is part of the E100 emulator (eepro100.c).
It does not work - no output on serial console nor VGA screen.
Or do I have to press some magic keys to get any response?
Stefan
Kuniyasu Suzaki schrieb:
> Tristan,
>
> >>From: Tristan Gingold <gingold@adacore.com>
> >>Subject: Re: [Qemu-devel] EFI BIOS on QEMU
> >>
> >>IIRC, tiano only support eepro100. But I have never tested it.
>
> I see. I should try an e100 emulator on QEMU, if I want to use EFI on
> QMEU.
>
> ------
> suzaki
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2008-01-07 20:19 ` Stefan Weil
@ 2008-01-08 1:12 ` Rob Landley
2008-04-26 16:11 ` Stefan Weil
2008-01-08 15:07 ` Tristan Gingold
1 sibling, 1 reply; 11+ messages in thread
From: Rob Landley @ 2008-01-08 1:12 UTC (permalink / raw)
To: qemu-devel
On Monday 07 January 2008 14:19:27 Stefan Weil wrote:
> Hi,
>
> I just wanted to run QEMU CVS with EFI BIOS:
>
> i386-softmmu/qemu -snapshot -L efi-bios -hda efi-bios/efi.disk
> linux.img -net nic,model=i82551 -net user
>
> i82551 is part of the E100 emulator (eepro100.c).
>
> It does not work - no output on serial console nor VGA screen.
> Or do I have to press some magic keys to get any response?
You tried ctrl-alt-2 to switch from vga to serial console? (Wild guess...)
Where did this bios come from?
You are aware that bioses come in 2 stages, and that only the _second_ stage
applies to something like qemu, right?
The first stage is hardware initialization. Most importantly, BIOS stage 1
has to initialize the DRAM controller and start the periodic refresh timer,
and then wait a bit for it to clock up before the DRAM can store stable
values. (The memory starts out holding random garbage, and until the refresh
timer is working it won't hold on to values you write to it either.)
This sort of early hardware initialization is what the "linux bios" project
does. It's extremely system specific stuff that has to have hardwired into
it exactly where all the devices it's talking to live because it can't do
things like probe the PCI bus until you know where the PCI bus controller is
(and have switched it on and booted it up).
This stage doesn't apply to qemu. QEMU is only emulating hardware, it doesn't
have things like DRAM refresh hardware, and if you try to play with that sort
of thing you won't get back the right results because it's not _there_. (In
general, running a stage 1 BIOS for one machine on any other machine won't
work unless the hardware is _identical_. That's why Linux Bios has 8
gazillion config options at build time for which board you're building it
for.)
The second stage of the BIOS provides an API to userspace, called by things
like bootloaders to load sectors from the boot device into memory. For the
x86 and x86-64 targets QEMU uses the bochs bios to provide this interface,
for bootloaders like grub. That's already there.
Could you tell us more about what exactly you're trying to do?
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2008-01-07 20:19 ` Stefan Weil
2008-01-08 1:12 ` Rob Landley
@ 2008-01-08 15:07 ` Tristan Gingold
2008-04-26 17:20 ` [Qemu-devel][BUG] EFI BIOS on QEMU stopped working with r3371 Stefan Weil
1 sibling, 1 reply; 11+ messages in thread
From: Tristan Gingold @ 2008-01-08 15:07 UTC (permalink / raw)
To: qemu-devel
On Jan 7, 2008, at 9:19 PM, Stefan Weil wrote:
> Hi,
>
> I just wanted to run QEMU CVS with EFI BIOS:
>
> i386-softmmu/qemu -snapshot -L efi-bios -hda efi-bios/efi.disk
> linux.img -net nic,model=i82551 -net user
>
> i82551 is part of the E100 emulator (eepro100.c).
>
> It does not work - no output on serial console nor VGA screen.
> Or do I have to press some magic keys to get any response?
EFI Bios worked once with Qemu (around Feb 2007), so certainly
something was broken.
Happy debugging ;-)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2008-01-08 1:12 ` Rob Landley
@ 2008-04-26 16:11 ` Stefan Weil
2008-04-26 19:15 ` Rob Landley
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Weil @ 2008-04-26 16:11 UTC (permalink / raw)
To: Rob Landley; +Cc: QEMU Developers
Rob Landley schrieb:
> On Monday 07 January 2008 14:19:27 Stefan Weil wrote:
>> Hi,
>>
>> I just wanted to run QEMU CVS with EFI BIOS:
>>
>> i386-softmmu/qemu -snapshot -L efi-bios -hda efi-bios/efi.disk
>> linux.img -net nic,model=i82551 -net user
>>
>> i82551 is part of the E100 emulator (eepro100.c).
>>
>> It does not work - no output on serial console nor VGA screen.
> You tried ctrl-alt-2 to switch from vga to serial console? (Wild guess...)
>
> Where did this bios come from?
> ...
> Could you tell us more about what exactly you're trying to do?
>
> Rob
Hi Rob,
thank you for your answer. I'm sorry that it took some time until I could
come back to this topic. Here is more information on what I was trying to do
(which still does not work).
I heared from Tristan's mail that EFI BIOS network functions only support
eepro100 hardware. Well, I wrote the eepro100 emulation for QEMU, so
I wanted to see this working.
So, I compiled i386-softmmu/qemu from QEMU svn trunk, got
http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2 and
http://fabrice.bellard.free.fr/qemu/efi-bios.tar.bz2, unpacked both
files, and finally had this directory:
$ ls -l efi-bios/
insgesamt 24712
-rw-r--r-- 1 stefan stefan 1048576 4. Mär 2007 bios.bin
-rw-r--r-- 1 stefan stefan 3145728 4. Mär 2007 efi.disk
-rw-r--r-- 1 stefan stefan 20971520 26. Apr 16:47 linux-0.2.img
-rw-r--r-- 1 stefan stefan 923 4. Mär 2007 README
-rw-r--r-- 1 stefan stefan 35328 26. Apr 13:18 vgabios-cirrus.bin
vgabios-cirrus.bin is a copy from qemu/trunk/pc-bios.
Now, I started this command:
i386-softmmu/qemu -snapshot -hda efi-bios/efi.disk -hdb
efi-bios/linux-0.2.img -L efi-bios
Result: no output in VGA console, no output (beside serial0 console) in
serial console.
Of course I did not try ctrl-alt-2 to switch to the serial console (this
selects the monitor
console), but ctrl-alt-3.
Obviously, some earlier CVS revisions had worked. So I started with QEMU
CVS of
2007-03, and it worked! Up to now, I could narrow the change from
working to no
longer working to the time interval from 2007-10-07 to 2007-10-13.
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel][BUG] EFI BIOS on QEMU stopped working with r3371
2008-01-08 15:07 ` Tristan Gingold
@ 2008-04-26 17:20 ` Stefan Weil
2008-06-15 15:05 ` [Qemu-devel][BUG] Regression: " Stefan Weil
0 siblings, 1 reply; 11+ messages in thread
From: Stefan Weil @ 2008-04-26 17:20 UTC (permalink / raw)
To: qemu-devel
Tristan Gingold schrieb:
> EFI Bios worked once with Qemu (around Feb 2007), so certainly
> something was broken.
>
> Happy debugging ;-)
Thanks. EFI BIOS stopped working with qemu/trunk r3371. From the change log:
------------------------------------------------------------------------
r3371 | ths | 2007-10-09 05:08:56 +0200 (Di, 09 Okt 2007) | 3 lines
Don't route PIC interrupts through the local APIC if the local APIC
config says so. By Ari Kivity.
------------------------------------------------------------------------
The bug comes from function pic_irq_request in pc.c.
I can fix it for r3371 by adding cpu_reset_interrupt (like in r3370),
but the code in the current trunk is totally different.
Could the pic experts please have a look?
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2008-04-26 16:11 ` Stefan Weil
@ 2008-04-26 19:15 ` Rob Landley
2008-04-26 20:32 ` Stefan Weil
0 siblings, 1 reply; 11+ messages in thread
From: Rob Landley @ 2008-04-26 19:15 UTC (permalink / raw)
To: Stefan Weil; +Cc: QEMU Developers
On Saturday 26 April 2008 11:11:03 Stefan Weil wrote:
> Obviously, some earlier CVS revisions had worked. So I started with QEMU
> CVS of
> 2007-03, and it worked! Up to now, I could narrow the change from
> working to no
> longer working to the time interval from 2007-10-07 to 2007-10-13.
Now that QEMU has moved to a subversion archive, you should be able use that
to binary search through the available revisions...
Don't ask me why the download page on qemu.org doesn't mention the repository,
nor why the links page still says "cvs" and the project page it links to on
savannah still says CVS...
The conversion request was here:
https://savannah.gnu.org/support/?106278
The announcement was here:
http://lists.gnu.org/archive/html/qemu-devel/2008-03/msg00495.html
> Stefan
Rob
--
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] EFI BIOS on QEMU
2008-04-26 19:15 ` Rob Landley
@ 2008-04-26 20:32 ` Stefan Weil
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Weil @ 2008-04-26 20:32 UTC (permalink / raw)
To: qemu-devel
Rob Landley schrieb:
> Now that QEMU has moved to a subversion archive, you should be able use that
> to binary search through the available revisions...
>
> Rob
>
So I did. EFI BIOS stopped working with qemu/trunk r3371.
See my previous mail for details.
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel][BUG] Regression: EFI BIOS on QEMU stopped working with r3371
2008-04-26 17:20 ` [Qemu-devel][BUG] EFI BIOS on QEMU stopped working with r3371 Stefan Weil
@ 2008-06-15 15:05 ` Stefan Weil
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Weil @ 2008-06-15 15:05 UTC (permalink / raw)
To: QEMU Developers, Thiemo Seufer
Stefan Weil schrieb:
> Thanks. EFI BIOS stopped working with qemu/trunk r3371. From the
> change log:
>
> ------------------------------------------------------------------------
> r3371 | ths | 2007-10-09 05:08:56 +0200 (Di, 09 Okt 2007) | 3 lines
>
> Don't route PIC interrupts through the local APIC if the local APIC
> config says so. By Ari Kivity.
>
> ------------------------------------------------------------------------
>
> The bug comes from function pic_irq_request in pc.c.
> I can fix it for r3371 by adding cpu_reset_interrupt (like in r3370),
> but the code in the current trunk is totally different.
>
> Could the pic experts please have a look?
>
> Stefan
Is there nobody interested in getting this regression fixed?
What is the equivalent to cpu_reset_interrupt in Qemu's current code?
Regards,
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-06-15 15:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-06 4:58 [Qemu-devel] EFI BIOS on QEMU Kuniyasu Suzaki
2007-12-06 9:30 ` Tristan Gingold
2007-12-06 15:48 ` Kuniyasu Suzaki
2008-01-07 20:19 ` Stefan Weil
2008-01-08 1:12 ` Rob Landley
2008-04-26 16:11 ` Stefan Weil
2008-04-26 19:15 ` Rob Landley
2008-04-26 20:32 ` Stefan Weil
2008-01-08 15:07 ` Tristan Gingold
2008-04-26 17:20 ` [Qemu-devel][BUG] EFI BIOS on QEMU stopped working with r3371 Stefan Weil
2008-06-15 15:05 ` [Qemu-devel][BUG] Regression: " Stefan Weil
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).