summaryrefslogtreecommitdiffstats
path: root/pc-bios
Commit message (Collapse)AuthorAgeFilesLines
* Fix checksum writing in signboot.shAlexander Graf2009-08-101-1/+2
| | | | | | | | | | | | | | | | | | The printf command takes an octal value after \, so we have to convert our decimal representation to octal first and then write it. This unbreaks extboot signing. Multiboot wasn't affected yet because the checksum was < 8. Spotted and first patch by Glauber Costa <glommer@redhat.com>. Printf idea by Paolo Bonzini <bonzini@gnu.org>. Signed-off-by: Alexander Graf <agraf@suse.de> CC: Glauber Costa <glommer@redhat.com> CC: Paolo Bonzini <bonzini@gnu.org> CC: Jan Ondrej <ondrejj@salstar.sk> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Do not try to invoke shebang scripts directly (NFS issues)malc2009-08-101-1/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Option rom makefile fixesPaul Brook2009-07-311-0/+2
| | | | | | Fix toplevel option rom makefile rules. Signed-off-by: Paul Brook <paul@codesourcery.com>
* Fix out of tree build broken by 791e08c753a9f9be3c3880b4ea83b6dfa4b6ccadBlue Swirl2009-07-271-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* use cc-option for optionromJuan Quintela2009-07-271-21/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Use quiet-command for building optionromJuan Quintela2009-07-271-9/+7
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QEMU BOCHS bios patches to use maxcpus value.Jes Sorensen2009-07-274-0/+181
| | | | | Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* signrom.sh: portability fixChristoph Egger2009-07-221-2/+3
| | | | | | | | | Attached patch makes signrom.sh working on NetBSD. The output of the 'od' command leads to a syntax error which breaks the build. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Update to a hopefully more future proof FSF addressBlue Swirl2009-07-162-4/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Don't copy multiboot.bin into pc-bios after builtAnthony Liguori2009-07-161-1/+0
| | | | | | That dirties the working directory of the tree. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix multiboot.bin build on mingw32Anthony Liguori2009-07-161-3/+5
| | | | | | This combination of ld/object was suggested by Bartlomiej Celary Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix non-ACPI Timer Interrupt Routing - v3Anthony Liguori2009-07-162-8/+30
| | | | | | | | v1 -> v2 adds comment suggested by Ryan. v2 -> v3 clarifies comment and corrects entry count Signed-off-by: Beth Kon <eak@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* bios: Fix multiple calls into smbios_load_exAnthony Liguori2009-07-163-0/+36
| | | | | | | | | | | We're marking the used entry bitmap in smbios_load_external() for each type we check, regardless of whether we loaded anything. This makes subsequent calls behave as if we've already loaded the tables from qemu and can result in missing tables (ex. multiple type4 entries on an SMP guest). Only mark the bitmap if we actually load something. Signed-off-by: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Regenerate BIOS and add patches for -boot optionAnthony Liguori2009-07-164-0/+129
| | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Replace signrom with shell script v3Alexander Graf2009-07-093-85/+48
| | | | | | | | | | | | | In order to not execute code we just compiled, let's replace signrom with a shell script that does the same thing while staying compatible to pretty much every system available. This should make cross-compilation for windows easier. aliguori: fix build when objdir != srcdir Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Update OpenBIOS images to r505Blue Swirl2009-07-054-1/+1
| | | | | | | For Sparc64, this fixes the PCI bridge configuration bugs revealed by the improved bridge handling (b7ee1603c16c1feb0d439d2ddf6cf824119d0aab). Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Work around Solaris gas problemBlue Swirl2009-07-031-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Multiboot build system v4Alexander Graf2009-06-293-0/+127
| | | | | | | | | | | | | | | In order to build the multiboot option rom, we need a Makefile and a tool to sign the rom with. Both are provided by this patch and mostly taken from the extboot source, written by Anthony Liguori. Once built, the resulting binary gets copied to pc-bios automatically. Building also occurs automatically when on an x86 host. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Multiboot support v5Alexander Graf2009-06-291-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | This patch implements support for Multiboot on x86 for -kernel. Multiboot is a "new" approach to get rid of different bootloaders, providing a unified interface for the kernel. It supports command line options and kernel modules. The two probably best known projects using multiboot are Xen and GNU Hurd. This implementation should be mostly feature-complete. It is missing VBE extensions, but as no system uses them currently it does not really hurt. To use multiboot, specify the kernel as -kernel option. Modules should be given as -initrd options, seperated by a comma (,). -append also works. Please bear in mind that grub also does gzip decompression, which qemu does not do yet. To run existing images, please ungzip them first. The guest multiboot loader code is implemented as option rom using int 19. Parts of the work are based on efforts by Rene Rebe, who originally ported my code to int 19. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* microblaze: Fix loading of petalogix s3adsp1800 dtb.Edgar E. Iglesias2009-06-031-0/+0
| | | | | | | Provide a petalogix-s3adsp1800.dtb blob. Correct loading of the petalogix dtb. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* Move keymaps into pc-biosAnthony Liguori2009-05-2835-0/+3627
| | | | | | | This isn't the most ideal layout, but it makes -L /path/to/git/pc-bios Just Work which is very convenient. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* bios: Use the correct mask to size the PCI option ROM BARAnthony Liguori2009-05-223-0/+34
| | | | | | | | Bit 0 is the enable bit, which we not only don't want to set, but it will stick and make us think it's an I/O port resource. Signed-off-by: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Enable power button even generation.Anthony Liguori2009-05-083-0/+21
| | | | | Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* sending NUMA topology to BIOS (Andre Przywara)aliguori2009-04-213-0/+306
| | | | | | | | | | | | uses the QEMU firmware configuration interfacce to send the NUMA topology to the BIOS, which has to setup the tables. Only one firmware configuration channel is used. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7212 c046a42c-6fe2-441c-8c8c-71466251a162
* Fix non-ACPI Timer Interrupt Routing (Beth Kon)aliguori2009-04-173-0/+39
| | | | | | | | | | | | | Replicate ACPI irq0->inti2 override in mp table for non-acpi case. v1 -> v2 adds comment suggested by Ryan. Signed-off-by: Beth Kon <eak@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7169 c046a42c-6fe2-441c-8c8c-71466251a162
* qemu: Add support for SMBIOS command line otions (Alex Williamson)aliguori2009-04-173-0/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a new -smbios option (x86-only) to allow binary SMBIOS entries to be passed through to the BIOS or modify the default values of individual fields of type 0 and 1 entries on the command line. Binary SMBIOS entries can be generated as follows: dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \ perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin These can then be passed to the BIOS using this switch: -smbios file=smbios_type_1.bin Command line generation supports the following syntax: -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d] -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str] [,uuid=$(uuidgen)][,sku=str][,family=str] For instance, to add a serial number to the type 1 table: -smbios type=1,serial=0123456789 Interface is extensible to support more fields/tables as needed. aliguori: remove texi formatting from help output Signed-off-by: Alex Williamson <alex.williamson@hp.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7163 c046a42c-6fe2-441c-8c8c-71466251a162
* Make PCI config status register read-onlyaliguori2009-04-101-14/+9
| | | | | | | | | From the documentation I can find, this register is supposed to be read-only. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7070 c046a42c-6fe2-441c-8c8c-71466251a162
* Update OpenBIOS images to r482blueswir12009-03-314-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6962 c046a42c-6fe2-441c-8c8c-71466251a162
* Use firmware configuration instead of NVRAM (initial patch by Aurelien Jarno)blueswir12009-03-084-1/+1
| | | | | | | | | | Use firmware configuration device for boot device, kernel, initrd and kernel command line parameters on PPC, Sparc32 and Sparc64. Update OpenBIOS images to r479 which supports the change. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6777 c046a42c-6fe2-441c-8c8c-71466251a162
* pc-bios/Makefile: add a rule to produce dtb filesaurel322009-03-071-0/+3
| | | | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6732 c046a42c-6fe2-441c-8c8c-71466251a162
* kvm/powerpc: flat device tree files for MPC8544DSaurel322009-03-022-0/+122
| | | | | | | | | | | mpc8544ds.dts is copied from kerenl. Non-supported devices has been removed. Signed-off-by: Liu Yu <yu.liu@freescale.com> Acked-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6664 c046a42c-6fe2-441c-8c8c-71466251a162
* Update to OpenBIOS 1.0blueswir12009-03-014-2/+2
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6658 c046a42c-6fe2-441c-8c8c-71466251a162
* Allow additions of ACPI tables from command line (Gleb Natapov)aliguori2009-02-273-0/+156
| | | | | | | | | | | | This is needed to dynamically add SLIC tables with Windows activation keys. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6650 c046a42c-6fe2-441c-8c8c-71466251a162
* Add BIOS patches necessary for hotplug (Marcelo Tosatti)aliguori2009-02-117-0/+373
| | | | | | | | See each patch for appropriate Signed-off-by's. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6590 c046a42c-6fe2-441c-8c8c-71466251a162
* Update PC BIOS to latest bits from Bochsaliguori2009-02-1111-436/+33
| | | | | | | | | | | | A number of patches were merged since we last pulled. Thanks to Marcelo Tosatti for rebasing the existing patches and testing. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6589 c046a42c-6fe2-441c-8c8c-71466251a162
* Update Sparc imagesblueswir12009-02-083-2/+2
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6563 c046a42c-6fe2-441c-8c8c-71466251a162
* Switch Mac99 to OpenBIOSblueswir12009-02-082-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6560 c046a42c-6fe2-441c-8c8c-71466251a162
* Remove accidental addition of local patch.aliguori2009-02-031-1/+0
| | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6509 c046a42c-6fe2-441c-8c8c-71466251a162
* Split VNC defines to vnc.h (Alexander Graf)aliguori2009-02-021-0/+1
| | | | | | | | | | | | | | | The VNC protocol contains quite some constants, some of which are currently hardcoded in the vnc.c code. This is not exactly pretty. Let's move all those constants out to vnc.h, so they are clearly separated. While at it, I also included other defines that will be used later in this patch series. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6493 c046a42c-6fe2-441c-8c8c-71466251a162
* Add BIOS fixes from KVM treealiguori2009-01-2112-1/+695
| | | | | | | | See each patch for individual Signed-off-by's/commit logs git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6392 c046a42c-6fe2-441c-8c8c-71466251a162
* Update openbios-ppc to revision 418aurel322009-01-182-1/+1
| | | | | | | | | | - fix milliseconds PROM call - fix PCI I/O ports assignation - misc fixes Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6363 c046a42c-6fe2-441c-8c8c-71466251a162
* Update OpenBIOS PowerPC image to revision 406aurel322009-01-142-1/+1
| | | | | | | | | | - Support kernel arguments through -append - Quik support - PowerMac serial ports supports Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6294 c046a42c-6fe2-441c-8c8c-71466251a162
* Update bochs biosaliguori2009-01-136-344/+1
| | | | | | | | | | They have applied all of our patches and they have an additional HPET fix. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6289 c046a42c-6fe2-441c-8c8c-71466251a162
* Update Sparc32 and Sparc64 imagesblueswir12009-01-123-1/+1
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6273 c046a42c-6fe2-441c-8c8c-71466251a162
* Update openbios-ppc to revision 373aurel322009-01-092-1/+1
| | | | | | | | Fix boot on CD-ROM. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6264 c046a42c-6fe2-441c-8c8c-71466251a162
* target-ppc: add an openbios-ppc imageaurel322009-01-092-0/+1
| | | | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6260 c046a42c-6fe2-441c-8c8c-71466251a162
* Update to latest Bochs BIOSaliguori2008-12-216-94/+1
| | | | | | | | | | | A number of our patches have been merged so we can now remove them from our queue. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6117 c046a42c-6fe2-441c-8c8c-71466251a162
* Remove obsolete VGABIOS patch.aliguori2008-12-211-896/+0
| | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6116 c046a42c-6fe2-441c-8c8c-71466251a162
* Add patch to allow Bochs patch queue to be built from another directory.aliguori2008-12-192-0/+34
| | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6110 c046a42c-6fe2-441c-8c8c-71466251a162
* Add BIOS build instructions (Andre Przywara)aliguori2008-12-191-0/+21
| | | | | | | | | | | aliguori: did a little indenting and motion for aesthics. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6109 c046a42c-6fe2-441c-8c8c-71466251a162
OpenPOWER on IntegriCloud