qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1.0] add sgabios blob and submodule
Date: Thu, 03 Nov 2011 20:44:07 -0500	[thread overview]
Message-ID: <4EB34367.7050501@codemonkey.ws> (raw)
In-Reply-To: <CAEH94LheJSJnaTHxjw=22cdKFYnKNCR_Eq5VKsQdRKpEgdykXQ@mail.gmail.com>

On 11/03/2011 08:39 PM, Zhi Yong Wu wrote:
> On Thu, Nov 3, 2011 at 10:14 PM, Paolo Bonzini<pbonzini@redhat.com>  wrote:
>> The rom was not added together with the sgabios device and is
>> not installed.
>>
>> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
>> ---
>>         The sgabios.git mirror repository can be fetched from
>>         http://people.redhat.com/pbonzini/sgabios-git.tgz
>>
>>   .gitmodules         |    3 +++
>>   Makefile            |    2 +-
>>   pc-bios/README      |    6 ++++++
>>   pc-bios/sgabios.bin |  Bin 0 ->  4096 bytes
>>   roms/sgabios        |    1 +
> Sorry, what are sgabios and sgabios.bin separately? What is the relationship?

The way git does submodules is that it stores a file in the tree that contains 
the commit hash of the submodule along with metadata indicating that its a 
submodule.  So in a git diff, you see a commit hash change, but when you check 
out or commit, it's really a directory that contains an external git tree.

We use submodules for all of the different firmware blobs that you need to run a 
guest.  You can look in roms/* for the full list.

We also include the binary blobs in the tree because they often require special 
build tools (or at least, target specific cross compilers).  That means that 
most people don't have the necessary tools available to build those blobs.

Regards,

Anthony Liguori

>
>>   5 files changed, 11 insertions(+), 1 deletions(-)
>>   create mode 100755 pc-bios/sgabios.bin
>>   create mode 160000 roms/sgabios
>>
>> diff --git a/.gitmodules b/.gitmodules
>> index 2a43dbc..eca876f 100644
>> --- a/.gitmodules
>> +++ b/.gitmodules
>> @@ -16,3 +16,6 @@
>>   [submodule "roms/qemu-palcode"]
>>         path = roms/qemu-palcode
>>         url = git://repo.or.cz/qemu-palcode.git
>> +[submodule "roms/sgabios"]
>> +       path = roms/sgabios
>> +       url = git://git.qemu.org/sgabios.git
>> diff --git a/Makefile b/Makefile
>> index 4f6eaa4..168093c 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -253,7 +253,7 @@ ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
>>   common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr
>>
>>   ifdef INSTALL_BLOBS
>> -BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin \
>> +BLOBS=bios.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
>>   vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin \
>>   ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc \
>>   pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
>> diff --git a/pc-bios/README b/pc-bios/README
>> index 0668559..1cebbbc 100644
>> --- a/pc-bios/README
>> +++ b/pc-bios/README
>> @@ -19,6 +19,12 @@
>>    https://github.com/dgibson/SLOF, and the image currently in qemu is
>>    built from git tag qemu-slof-20111013.
>>
>> +- sgabios (the Serial Graphics Adapter option ROM) provides a means for
>> +  legacy x86 software to communicate with an attached serial console as
>> +  if a video card were attached.  The master sources reside in a subversion
>> +  repository at http://sgabios.googlecode.com/svn/trunk.  A git mirror is
>> +  available at git://git.qemu.org/sgabios.git.
>> +
>>   - The PXE roms come from the iPXE project. Built with BANNER_TIME 0.
>>    Sources available at http://ipxe.org.  Vendor:Device ID ->  ROM mapping:
>>
>> diff --git a/pc-bios/sgabios.bin b/pc-bios/sgabios.bin
>> new file mode 100755
>> index 0000000000000000000000000000000000000000..c3da4c3d0a34e4eca9b0cda38d0538b332f7b09e
>> GIT binary patch
>> literal 4096
>> zcmeHJeRNah8Gmw<CMA}H3E~Hu1gWw1<C3&cp`^7R6etvvCcx5Msf5x%J8f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wlD%D6ZPsTWC(V7p@)J
>> zr=hvBUWln^Or0W>DU5r*I|-7PUeoBwOJnQ^S&--}2XZz}N)vrcft-w!S&6<@AV=dQ
>> zFL9lwzV8^2a2%7SyL;i~#V~-U1oCA(^cXomMtAQ8Zolw%&bS3QV;zuzIJp=fP}YEa
>> zK-mQMMU{<kOdeI%;<x*N(gUjPA4ZjH@hfguGazO677)Vp%X>k(>ojNV1){$~-oMg!
>> z5=d>F-f5z?4U+aa-nY&8Z$p~n<f*vyMfA7pAA|q1{QlSY4edq+ZdBm^RDlO;YDN9O
>> E0dGKec>n+a
>>
>> literal 0
>> HcmV?d00001
>>
>> diff --git a/roms/sgabios b/roms/sgabios
>> new file mode 160000
>> index 0000000..23d4749
>> --- /dev/null
>> +++ b/roms/sgabios
>> @@ -0,0 +1 @@
>> +Subproject commit 23d474943dcd55d0550a3d20b3d30e9040a4f15b
>> --
>> 1.7.6.4
>>
>>
>>
>
>
>

  reply	other threads:[~2011-11-04  1:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 14:14 [Qemu-devel] [PATCH 1.0] add sgabios blob and submodule Paolo Bonzini
2011-11-04  1:39 ` Zhi Yong Wu
2011-11-04  1:44   ` Anthony Liguori [this message]
2011-11-04  1:52     ` Zhi Yong Wu
2011-11-08 17:23 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB34367.7050501@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zwu.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).