From: Keir Fraser Subject: Re: Re: gpxe in hvmloader? Date: Wed, 06 Aug 2008 16:47:23 +0100 Message-ID: References: <489972B9.87A6.0099.1@seakr.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0182206491==" Return-path: In-Reply-To: <489972B9.87A6.0099.1@seakr.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Nick Couchman , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0182206491== Content-type: multipart/alternative; boundary="B_3300886044_32295249" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3300886044_32295249 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable If you use xen-unstable then vmxassist is no longer there and you have more space. -- Keir On 6/8/08 16:45, "Nick Couchman" wrote: > =20 >=20 > Well, from my very limited programming knowledge it seems like the gPXE = ROM > might be too big to fit into the memory location set aside for etherboot.= The > Etherboot ROM seems to be around 32K (0x8000) while the gPXE ROM is large= r - > around 45K (0xB7B9). In the tools/firmware/hvmloader/config.h file, the > following locations are set: > =20 >=20 > /* Memory map. */ > =20 >=20 > #define HYPERCALL_PHYSICAL_ADDRESS 0x00080000 > =20 >=20 > #define VGABIOS_PHYSICAL_ADDRESS 0x000C0000 > =20 >=20 > #define ETHERBOOT_PHYSICAL_ADDRESS 0x000C8000 > =20 >=20 > #define VMXASSIST_PHYSICAL_ADDRESS 0x000D0000 > =20 >=20 > #define SMBIOS_PHYSICAL_ADDRESS 0x000E9000 > =20 >=20 > #define SMBIOS_MAXIMUM_SIZE 0x00001000 > =20 >=20 > #define ACPI_PHYSICAL_ADDRESS 0x000EA000 > =20 >=20 > #define ROMBIOS_PHYSICAL_ADDRESS 0x000F0000 >=20 > =20 >=20 > Looks like the space between the VMXASSIT and ETHERBOOT physical address= es is > 0x8000 - exactly big enough for the Etherboot ROM but not big enough for = the > gPXE ROM. So maybe it's just a matter of enlarging the memory location s= et > aside for the Etherboot/gPXE ROM? Or am I completely off on the wrong tr= ack > here? =20 >=20 > =20 >=20 > Thanks - Nick >=20 >>>> >>> On Wed, Aug 6, 2008 at=A0 7:19 AM, Nick Couchman wrote: > =20 > =20 > =20 >=20 > I'd like to play around with booting an HVM directly off an iSCSI share.= =A0One > of the ways to do this is with an iSCSI Boot ROM. =A0The latest versions of= gpxe > allow for this functionality, and I was wondering if there's a somewhat-s= imple > way to replace the etherboot .zrom file with a gpxe .rom file. =A0 > =20 >=20 > =20 > =20 > =20 >=20 > I've already tried the obvious - use rom-o-matic to generate the gpxe fi= le > for the rtl8139 network card, then use the tools/firmware/hvmloader/mkhex > utility to make it into a header file, and then replace the line in the > tools/firmware/hvmloader/Makefile that cats the eb-rtl8139.zrom.h file in= to > the roms.h to cat the gpxe-rtl8139.rom.h file into the roms.h header. =A0If= I do > this, then try to use the newly-generated hvmloader to boot an HVM, it do= esn't > want to network boot at all, even if the only boot=3D argument is "n". > =20 >=20 > =20 > =20 > =20 >=20 > Anyone have any hints, or is this just not possible right now? > =20 >=20 > =20 > =20 > =20 >=20 > Thanks - Nick=20 > =20 > =20 >=20 > This e-mail may contain confidential and privileged material for the sole= use > of the intended recipient. If this email is not intended for you, or you= are > not responsible for the delivery of this message to the intended recipien= t, > please note that this message may contain SEAKR Engineering (SEAKR) > Privileged/Proprietary Information. In such a case, you are strictly > prohibited from downloading, photocopying, distributing or otherwise usin= g > this message, its contents or attachments in any way. If you have receiv= ed > this message in error, please notify us immediately by replying to this e= -mail > and delete the message from your mailbox. Information contained in this > message that does not relate to the business of SEAKR is neither endorsed= by > nor attributable to SEAKR. >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3300886044_32295249 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Re: gpxe in hvmloader? If yo= u use xen-unstable then vmxassist is no longer there and you have more space= .

 -- Keir


On 6/8/08 16:45, "Nick Couchman" <Nick.Couchman@seakr.com> = wrote:

  

 Well, from my very limited programming knowledge it seems like the gP= XE ROM might be too big to fit into the memory location set aside for etherb= oot.  The Etherboot ROM seems to be around 32K (0x8000) while the gPXE = ROM is larger - around 45K (0xB7B9).  In the tools/firmware/hvmloader/c= onfig.h file, the following locations are set:    
 

 /* Memory map. */    
 

 #define HYPERCALL_PHYSICAL_ADDRESS    0x00080000  = ;  
 

 #define VGABIOS_PHYSICAL_ADDRESS      0x000C= 0000    
 

 #define ETHERBOOT_PHYSICAL_ADDRESS      &nbs= p;  0x000C8000    
 

 #define VMXASSIST_PHYSICAL_ADDRESS    0x000D0000  = ;  
 

 #define SMBIOS_PHYSICAL_ADDRESS       0= x000E9000    
 

 #define SMBIOS_MAXIMUM_SIZE        = ;   0x00001000    
 

 #define ACPI_PHYSICAL_ADDRESS       &nb= sp; 0x000EA000    
 

 #define ROMBIOS_PHYSICAL_ADDRESS      0x000F= 0000    

       

 Looks like the space between the VMXASSIT and ETHERBOOT physical addr= esses is 0x8000 - exactly big enough for the Etherboot ROM but not big enoug= h for the gPXE ROM.  So maybe it's just a matter of enlarging the memor= y location set aside for the Etherboot/gPXE ROM?  Or am I completely of= f on the wrong track here?    

       

 Thanks - Nick

>>> On Wed, Aug 6, 2008 at=A0 7:19 AM, Nick Couchman wrote:
    
 
 

 I'd like to play around with booting an HVM directly off an iSCSI sha= re. =A0One of the ways to do this is with an iSCSI Boot ROM. =A0The latest versi= ons of gpxe allow for this functionality, and I was wondering if there's a s= omewhat-simple way to replace the etherboot .zrom file with a gpxe .rom file= . =A0      
 

 
 
 

 I've already tried the obvious - use rom-o-matic to generate the gpxe= file for the rtl8139 network card, then use the tools/firmware/hvmloader/mk= hex utility to make it into a header file, and then replace the line in the = tools/firmware/hvmloader/Makefile that cats the eb-rtl8139.zrom.h file into = the roms.h to cat the gpxe-rtl8139.rom.h file into the roms.h header. =A0If I = do this, then try to use the newly-generated hvmloader to boot an HVM, it do= esn't want to network boot at all, even if the only boot=3D argument is "= n".      
 

 
 
 

 Anyone have any hints, or is this just not possible right now?  =     
 

 
 
 

 Thanks - Nick
 
 

This e-mail may contain confidential= and privileged material for the sole use of the intended recipient.  I= f this email is not intended for you, or you are not responsible for the del= ivery of this message to the intended recipient, please note that this messa= ge may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information.=  In such a case, you are strictly prohibited from downloading, photoco= pying, distributing or otherwise using this message, its contents or attachm= ents in any way.  If you have received this message in error, please no= tify us immediately by replying to this e-mail and delete the message from y= our mailbox.  Information contained in this message that does not relat= e to the business of SEAKR is neither endorsed by nor attributable to SEAKR.=


____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3300886044_32295249-- --===============0182206491== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0182206491==--