<br><br><div class="gmail_quote">On Thu, Aug 13, 2009 at 7:24 AM, Kevin O'Connor <span dir="ltr"><<a href="mailto:kevin@koconnor.net">kevin@koconnor.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Aug 13, 2009 at 02:22:05AM +0800, Jason Wang wrote:<br>
> On Wed, Aug 12, 2009 at 9:17 PM, Kevin O'Connor <<a href="mailto:kevin@koconnor.net">kevin@koconnor.net</a>> wrote:<br>
><br>
> > On Wed, Aug 12, 2009 at 03:29:06PM +0800, Jason Wang wrote:<br>
> > > Hi Kevin,<br>
> > >     The Seabios try to booting usbrom with IPL_TYPE_BEV, which i think<br>
> > > should use IPL_TYPE_HARDDISK, right? Followed by BIOS BOOT Specification<br>
> > > I think it can add<br>
> > > #define IPL_TYPE_USBROM 0x05 to support BCV, how do you think about that?<br>
> ><br>
> > SeaBIOS is overloading those flags, and I agree it's confusing.  The<br>
> > flags for BCV tables are only used in run_bcv(), add_bcv(), and<br>
> > add_bcv_hd().  It's not necessary to add a new flag.<br>
><br>
> I find that handle_19, do_boot only seek the BEV devices<br>
<br>
</div>That is correct.<br>
<br>
The BEVs are the ways one can boot the machine and the BCVs are the<br>
drives in the machine.<br>
<br>
SeaBIOS has a BEV for booting off of a drive (see boot_disk()).  You<br>
should not add a new way to boot from a drive - instead you want to<br>
add a new drive.<br>
<br>
The BCV list is executed during post (see boot_prep()).  SeaBIOS will<br>
call all the optionroms that have BCVs and they can then hook int13.<br>
Once int13 has been properly hooked, the existing SeaBIOS drive<br>
booting code will work.</blockquote><div>I still have questions about the BCVs. <br>1) The BCVs is used to hook int13 while being called by optionrom.What if the usbrom failed,and system should<br>restore int13. Or the BCVs should do that?<br>
2)As you mentioned the BCVs are the drivers in the machine. How does the BCV save the drives in the memroy which <br>can be used by Seabios? Since after BCVs turning back to Seabios, it can leave some data to Seabios?<br>
3) i want to know if the int13 should initialize the USB stack each time it is called?<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<font color="#888888"><br>
-Kevin<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jason Wang <br>Peking University<br>