Skip to contentSkip to conversation

Replacing (vga)bios.bin source code with compiled binaries?

DISCUSSION Niklas K. 2 participants 4 messages May 11, 2008

lore
Share & tools
lore

Niklas K.

author
#0 lore raw

Hello,
this may be a more general issue with editing source code and makefiles, but as I'm not really a developer, I can't do it on my own and I thought I'd ask you on this mailing list rather than on some general development mailing list/forum:

I need to get modified hvmloader and vmxloader binaries that load a modified BIOS binary. I think the easiest way to do this is to remove some parts of the makefiles included in the Xen source code and add the compiled binary to the source (what probably doesn't work: I don't know if the bios.bin is directly compiled into the hvmloader/vmxloader binaries or the compiled bios.bin is inserted into them). Can you help me in doing this?

Thanks in advance,
Niklas K.

#1 lore raw
Quoted 6 lines · Niklas K.

Hello,
this may be a more general issue with editing source code and makefiles, but as I'm not really a developer, I can't do it on my own and I thought I'd ask you on this mailing list rather than on some general development mailing list/forum:

Quoted 8 lines

I need to get modified hvmloader and vmxloader binaries that load a modified BIOS binary. I think the easiest way to do this is to remove some parts of the makefiles included in the Xen source code and add the compiled binary to the source (what probably doesn't work: I don't know if the bios.bin is directly compiled into the hvmloader/vmxloader binaries or the compiled bios.bin is inserted into them). Can you help me in doing this?

Hello Niklas,

The content of the binaries your are talking about is put into an header file (roms.h)
and hvmloader use this file during the compilation process. You should look at the the
Makefile in tools/firmware/hvmloader to see how roms.h is created.

Cheers,

Signature · 1 line
Jean Guyader
author
#2 lore raw

Am Sonntag, den 11.05.2008, 18:12 +0100 schrieb Jean Guyader:

Quoted 18 lines · Niklas K.
Quoted 6 lines

Hello,
this may be a more general issue with editing source code and makefiles, but as I'm not really a developer, I can't do it on my own and I thought I'd ask you on this mailing list rather than on some general development mailing list/forum:

Quoted 8 lines

I need to get modified hvmloader and vmxloader binaries that load a modified BIOS binary. I think the easiest way to do this is to remove some parts of the makefiles included in the Xen source code and add the compiled binary to the source (what probably doesn't work: I don't know if the bios.bin is directly compiled into the hvmloader/vmxloader binaries or the compiled bios.bin is inserted into them). Can you help me in doing this?

Hello Niklas,

Quoted 8 lines

The content of the binaries your are talking about is put into an header file (roms.h)
and hvmloader use this file during the compilation process. You should look at the the
Makefile in tools/firmware/hvmloader to see how roms.h is created.

Cheers,

Hello again and thanks for the previous help,

I replaced my hvmloader with the one I compiled now. However, after starting my virtual machine, I only get a white screen.
Note that the BIOS I used was written for QEMU, not Xen. Are there any differences between the Xen bochsbios and the QEMU one?
Or may the problem be another BIOS? I do have the X11 library installed, so I don't think that's the issue.
I only exchanged the rombios/bochsbios/bios or however you may call it, not the vgabios.
Should I try compiling the hvmloader with the included bios and see if it's a problem with the modified bios?

Greetings,
Niklas

author
#3 lore raw

Am Sonntag, den 11.05.2008, 20:30 +0200 schrieb Niklas K.:

Quoted 41 lines

Am Sonntag, den 11.05.2008, 18:12 +0100 schrieb Jean Guyader:

Quoted 18 lines · Niklas K.
Quoted 6 lines

Hello,
this may be a more general issue with editing source code and makefiles, but as I'm not really a developer, I can't do it on my own and I thought I'd ask you on this mailing list rather than on some general development mailing list/forum:

Quoted 8 lines

I need to get modified hvmloader and vmxloader binaries that load a modified BIOS binary. I think the easiest way to do this is to remove some parts of the makefiles included in the Xen source code and add the compiled binary to the source (what probably doesn't work: I don't know if the bios.bin is directly compiled into the hvmloader/vmxloader binaries or the compiled bios.bin is inserted into them). Can you help me in doing this?

Hello Niklas,

Quoted 8 lines

The content of the binaries your are talking about is put into an header file (roms.h)
and hvmloader use this file during the compilation process. You should look at the the
Makefile in tools/firmware/hvmloader to see how roms.h is created.

Cheers,

Hello again and thanks for the previous help,

I replaced my hvmloader with the one I compiled now. However, after starting my virtual machine, I only get a white screen.
Note that the BIOS I used was written for QEMU, not Xen. Are there any differences between the Xen bochsbios and the QEMU one?
Or may the problem be another BIOS? I do have the X11 library installed, so I don't think that's the issue.
I only exchanged the rombios/bochsbios/bios or however you may call it, not the vgabios.
Should I try compiling the hvmloader with the included bios and see if it's a problem with the modified bios?

Quoted 8 lines

Greetings,
Niklas

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Nevermind, tried it, it's a problem with the modified bios.