New way of working with upstream Bochs BIOS
I've setup a git mirror of Bochs on repo.or.cz. I've also restructured the bios.diff into a patch queue and recorded what changeset we're using. Now, to recreate the bios.bin that we ship, use the following instructions:
$ export QEMUSRC=/path/to/qemu/svn $ git clone git://repo.or.cz/bochs-mirror.git $ cd bochs-mirror $ git checkout -b qemu-bios $(cat $QEMUSRC/pc-bios/bios-pq/HEAD) $ mkdir -p .git/patches $ ln -s $QEMUSRC/pc-bios/bios-pq .git/patches/qemu-bios $ touch .git/patches/qemu-bios/status $ guilt push -a $ ./configure $ cd bios $ make $ cp BIOS-bochs-latest $QEMUSRC/pc-bios/bios.bin
New patches against bochs should go in pc-bios/bios-pq with series being updated appropriately. When we bump to a new version of the bochs bios, we should update pc-bios/HEAD appropriately. The bochs mirror gets updated daily with a cron job for now.
Regards,
Anthony Liguori
Quoted 1 line · Anthony Liguori
I've setup a git mirror of Bochs on repo.or.cz. I've also restructured the bios.diff into a patch queue and recorded what changeset we're using. Now, to recreate the bios.bin that we ship, use the following instructions:
Nice. But is requiring guilt (ever googled for it ;-) and poking around in .git really necessary? I'd suggest to force all patches to be in a (at least simulated) mbox format (as 0002-0005 are) and using "git am" in a for loop.
Quoted 5 lines
$ export QEMUSRC=/path/to/qemu/svn$ git clone git://repo.or.cz/bochs-mirror.git $ cd bochs-mirror $ git checkout -b qemu-bios $(cat $QEMUSRC/pc-bios/bios-pq/HEAD)
If you would create a branch on the remote repo, one could use
$ git init && git fetch git://... qemu-bios:qemu-bios which would directly get the desired branch only.
Quoted 4 lines
$ mkdir -p .git/patches $ ln -s $QEMUSRC/pc-bios/bios-pq .git/patches/qemu-bios $ touch .git/patches/qemu-bios/status $ guilt push -a
could be replaced with
$ for p in $(cat $QEMUSRC/pc-bios/bios-pq/series); do git am $p; done
Quoted 5 lines
$ ./configure$ cd bios $ make $ cp BIOS-bochs-latest $QEMUSRC/pc-bios/bios.bin
$ make bios covers the above three steps.
Quoted 1 line
New patches against bochs should go in pc-bios/bios-pq with series being updated appropriately. When we bump to a new version of the bochs bios, we should update pc-bios/HEAD appropriately. The bochs mirror gets updated daily with a cron job for now.
BTW: I think the #define BX_QEMU does not belong in a header file, but in a Makefile. What about pouring the above commands in a Makefile, which automatically fetches, patches and builds the BIOS? Normally this process would not be triggered, but only on explicit request.
Or patch the Makefile in the bochs-mirror.git:qemu-bios branch:
bios/Makefile.in +1 -1
@@ -41,7 +41,7 @@ RANLIB = @RANLIB@ BCC = bcc GCC = gcc -GCC32 = gcc -m32 -fno-stack-protector +GCC32 = gcc -m32 -fno-stack-protector -DBX_QEMU AS86 = as86 BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev
Regards,
Andre.
Signature · 9 lines
Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG, Wilschdorfer Landstr. 101, 01109 Dresden, Germany Register Court Dresden: HRA 4896, General Partner authorized to represent: AMD Saxony LLC (Wilmington, Delaware, US) General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
Quoted 3 lines · Andre Przywara
Quoted 1 line · Anthony Liguori
I've setup a git mirror of Bochs on repo.or.cz. I've also restructured the bios.diff into a patch queue and recorded what changeset we're using. Now, to recreate the bios.bin that we ship, use the following instructions:
Nice. But is requiring guilt (ever googled for it ;-) and poking around in .git really necessary? I'd suggest to force all patches to be in a (at least simulated) mbox format (as 0002-0005 are) and using "git am" in a for loop.
The patches are in a pretty reasonable format right now. Normal patch with the description above.
The use of guilt is just a suggestion. However you want to work with the patches is fine.
Regards,
Anthony Liguori
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Andre Przywara
Quoted 1 line · Anthony Liguori
I've setup a git mirror of Bochs on repo.or.cz. I've also restructured the bios.diff into a patch queue and recorded what changeset we're using. Now, to recreate the bios.bin that we ship, use the following instructions:
Nice. But is requiring guilt (ever googled for it ;-) and poking around in .git really necessary? I'd suggest to force all patches to be in a (at least simulated) mbox format (as 0002-0005 are) and using "git am" in a for loop.
The patches are in a pretty reasonable format right now. Normal patch with the description above.
Sure, but not patch 0001, which lacks an author and a description. But as said in the last mail, I'd question that patch anyway. Is it possible to add the Makefile.in patch in this repo, or do you want this to be pure BOCHS mirror?
Quoted 1 line
The use of guilt is just a suggestion. However you want to work with the patches is fine.
Ok, then please consider this patch.
Regards,
Andre
[PATCH] Add BIOS build instructions
pc-bios/README (working copy) renamed from pc-bios/README (revision 6106) +21 -0
@@ -10,6 +10,27 @@ repo that HEAD refers to is located at git://git.kernel.org/pub/scm/virt/vgabios/vgabios.git +To build these use the following instructions: +using guilt: +$ export QEMUSRC=/path/to/qemu/svn +$ git clone git://git.kernel.org/pub/scm/virt/bochs/bochs.git +$ cd bochs +$ git checkout -b qemu-bios $(cat $QEMUSRC/pc-bios/bios-pq/HEAD) + +$ mkdir -p .git/patches +$ ln -s $QEMUSRC/pc-bios/bios-pq .git/patches/qemu-bios +$ touch .git/patches/qemu-bios/status +$ guilt push -a +$ ./configure +$ cd bios +$ make +$ cp BIOS-bochs-latest $QEMUSRC/pc-bios/bios.bin + +or alternatively (after the git checkout): +$ for p in $(cat $QEMUSRC/pc-bios/bios-pq/series); do git am $p; done +$ ./configure +$ make bios + - The PowerPC Open Hack'Ware Open Firmware Compatible BIOS is available at http://perso.magic.fr/l_indien/OpenHackWare/index.htm.
Quoted 8 lines · Andre Przywara
Quoted 6 lines · Anthony Liguori
Quoted 3 lines · Andre Przywara
Quoted 1 line · Anthony Liguori
I've setup a git mirror of Bochs on repo.or.cz. I've also restructured the bios.diff into a patch queue and recorded what changeset we're using. Now, to recreate the bios.bin that we ship, use the following instructions:
Nice. But is requiring guilt (ever googled for it ;-) and poking around in .git really necessary? I'd suggest to force all patches to be in a (at least simulated) mbox format (as 0002-0005 are) and using "git am" in a for loop.
The patches are in a pretty reasonable format right now. Normal patch with the description above.
Sure, but not patch 0001, which lacks an author and a description. But as said in the last mail, I'd question that patch anyway. Is it possible to add the Makefile.in patch in this repo, or do you want this to be pure BOCHS mirror?
I don't find one greater than the other so I'm reluctant to change the status quo. If you really wanted to "fix" it, I'd recommend an --enable-qemu-bios option to the Bochs configure to enable the QEMU extensions. That would be the Right Way IMHO.
Quoted 2 lines
Quoted 1 line
The use of guilt is just a suggestion. However you want to work with the patches is fine.
Ok, then please consider this patch.
Great idea, I'll apply it.
Quoted 39 lines
Regards,
Andre[PATCH] Add BIOS build instructions
Signed-off-by Andre Przywara <[email protected]>pc-bios/README (working copy) renamed from pc-bios/README (revision 6106) +21
-0@@ -10,6 +10,27 @@ repo that HEAD refers to is located at git://git.kernel.org/pub/scm/virt/vgabios/vgabios.git +To build these use the following instructions: +using guilt: +$ export QEMUSRC=/path/to/qemu/svn +$ git clone git://git.kernel.org/pub/scm/virt/bochs/bochs.git +$ cd bochs +$ git checkout -b qemu-bios $(cat $QEMUSRC/pc-bios/bios-pq/HEAD) + +$ mkdir -p .git/patches +$ ln -s $QEMUSRC/pc-bios/bios-pq .git/patches/qemu-bios +$ touch .git/patches/qemu-bios/status +$ guilt push -a +$ ./configure +$ cd bios +$ make +$ cp BIOS-bochs-latest $QEMUSRC/pc-bios/bios.bin + +or alternatively (after the git checkout): +$ for p in $(cat $QEMUSRC/pc-bios/bios-pq/series); do git am $p; done +$ ./configure +$ make bios + - The PowerPC Open Hack'Ware Open Firmware Compatible BIOS is available at http://perso.magic.fr/l_indien/OpenHackWare/index.htm.