<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Nikolay,</DIV>
<DIV> </DIV>
<DIV>Thanks, I will take a look of the EFI code.</DIV>
<DIV> </DIV>
<DIV>Another option to introduce BIOS code is to insert a device with expansion ROM, the code will get called when doing self test. But I am not sure if current BIOS supports this.</DIV>
<DIV> </DIV>
<DIV>The clean solution is to extend current BIOS, I will try to explorer if possible to use a different bios from other projects. VBox bios came from Bochs. The Bochs has an updated version, which added some 32-bit init code, for PCI devices.</DIV>
<DIV> </DIV>
<DIV>will report back in a few weeks.</DIV>
<DIV> </DIV>
<DIV>- huihong<BR><BR>--- On <B>Wed, 6/23/10, Nikolay Igotti <I><Nikolay.Igotti@Sun.COM></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Nikolay Igotti <Nikolay.Igotti@Sun.COM><BR>Subject: Re: [vbox-dev] What prevents from using a different BIOS ?<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: vbox-dev@virtualbox.org, "Alexey Eremenko" <al4321@gmail.com><BR>Date: Wednesday, June 23, 2010, 12:45 AM<BR><BR>
<DIV class=plainMail>  Huihong,<BR><BR>Maybe you can use EFI then? It is modularized (while not very well <BR>engineered, IMO), and have some USB support.<BR><BR>Nikolay<BR><BR><BR>Huihong Luo пишет:<BR>> thanks for the pointer.<BR>> We also have some usb code from our boot loader can be used.<BR>> The problem with current vbox bios code, all code is in the single <BR>> huge file (rombios.c). In order to support usb, we need some modulized <BR>> clock and pci code. Clock timers are needed for scheduling usb frames.<BR>><BR>> --- On *Tue, 6/22/10, Alexey Eremenko /<<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=al4321@gmail.com" ymailto="mailto:al4321@gmail.com">al4321@gmail.com</A>>/* wrote:<BR>><BR>><BR>>     From: Alexey Eremenko <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=al4321@gmail.com" ymailto="mailto:al4321@gmail.com">al4321@gmail.com</A>><BR>> 
    Subject: Re: [vbox-dev] What prevents from using a different BIOS ?<BR>>     To: <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>>     Date: Tuesday, June 22, 2010, 3:30 PM<BR>><BR>>     On Wed, Jun 23, 2010 at 12:17 AM, Huihong Luo <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" ymailto="mailto:huisinro@yahoo.com">huisinro@yahoo.com</A><BR>>     <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target=_blank>http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com</A>>><BR>>     wrote:<BR>>     ><BR>>     > I am trying to extend the vbox BIOS module to support USB<BR>> 
    devices, and flash drive boot.<BR>>     ><BR>>     > The current BIOS is 64k in size, what is the consequency if we<BR>>     increase the size to 128K? the usb code is rather large, 64k won't<BR>>     hold it.<BR>>     ><BR>>     > Or, perhaps a better way, is to replace the whole bios code. Is<BR>>     there anything specific to vbox that makes this not to work? if<BR>>     not, is it going to be really difficult to port another BIOS to<BR>>     use with vbox?<BR>>     ><BR>>     > The current bios code is monolithic, not easy to extend.<BR>>     ><BR>><BR>>     Before you write any such thing, please take a look at
 SeaBIOS here:<BR>>     <A href="http://www.coreboot.org/SeaBIOS" target=_blank>http://www.coreboot.org/SeaBIOS</A><BR>><BR>>     It seems this BIOS supports USB disk boot, and it was ported to<BR>>     run on Qemu.<BR>>     NOTE: I have not tried it, so I don't know about any potential<BR>>     problems.<BR>><BR>>     The big problem of changing BIOS, is that we must ensure *everything*<BR>>     works with all guest OSes, which is not easy.<BR>><BR>>     --<BR>>     -Alexey Eromenko "Technologov"<BR>><BR>>     _______________________________________________<BR>>     vbox-dev mailing list<BR>>     <A
 href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>>     <<A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target=_blank>http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org</A>><BR>>     <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR>><BR>> ------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> vbox-dev mailing list<BR>> <A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev"
 target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR>>   <BR><BR></DIV></BLOCKQUOTE></td></tr></table>