From: "Jan Beulich" Subject: [PATCH] x86-64/EFI: document building and usage Date: Wed, 20 Jun 2012 08:36:36 +0100 Message-ID: <4FE199A4020000780008ABC3@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part2F018C94.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2F018C94.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- /dev/null +++ b/docs/misc/efi.txt @@ -0,0 +1,52 @@ +Building xen.efi requires gcc 4.5.x or above (4.6.x or newer recommended, = as +4.5.x was probably never really tested for this purpose) and binutils = 2.22 or +newer. Additionally, the binutils build must be configured to include = support +for the x86_64-pep emulation (i.e. --enable-targets=3Dx86_64-pep or an = option of +equivalent effect should be passed to the configure script). + +Once built, "make install-xen" can place the resulting binary directly = int +the EFI boot partition, provided EFI_VENDOR is set (and EFI_MOUNTPOINT is +overridden as needed, should the default of /boot/efi not match the = target +system). + +The binary itself will require a configuration file (names with the .efi +extension of the binary's name replaced by .cfg, and - until an existing = file +is found - trailing name components dropped at '.', '-', and '_' = separators +will be tried) to be present in the same directory as the binary. (To +illustrate the name handling, a binary named xen-4.2-unstable.efi would = try +xen-4.2-unstable.cfg, xen-4.2.cfg, xen-4.cfg, and xen.cfg in order.) One = can +override this with a command line option ("-cfg=3D"). + +The configuration file consists of one or more sections headed by a = section +name enclosed in square brackets, with individual values specified in = each +section. A section named [global] is treated specially to allow certain +settings to apply to all other sections (or to provide defaults for = certain +settings in case individual sections don't specify them). A typical file = would +thus look like this ('#' serving as comment character): + +**************************example begin****************************** +[global] +default=3Dsle11sp2 + +[sle11sp2] +options=3Dconsole=3Dvga,com1 com1=3D57600 loglvl=3Dall noreboot +kernel=3Dvmlinuz-3.0.31-0.4-xen ignore_loglevel #earlyprintk=3Dxen +ramdisk=3Dinitrd-3.0.31-0.4-xen +**************************example end******************************** + +Other values to specify are + +video=3Dgfx-[x[x]] +(specifying a video mode to select if available; in case of problems the +"-basevideo" command line option can be used to skip altering video = modes) + +xsm=3D +(specifying an XSM module to load) + +ucode=3D +(specifying a CPU microcode blob to load) + +Filenames must be specified relative to the location of the EFI binary. + +Extra options to be passed to Xen can also be specified on the command = line, +following a "--" separator option. --=__Part2F018C94.0__= Content-Type: text/plain; name="EFI-build-doc.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="EFI-build-doc.patch" x86-64/EFI: document building and usage=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- /dev/null=0A+++ b/docs/misc/efi.txt=0A@@ -0,0 = +1,52 @@=0A+Building xen.efi requires gcc 4.5.x or above (4.6.x or newer = recommended, as=0A+4.5.x was probably never really tested for this = purpose) and binutils 2.22 or=0A+newer. Additionally, the binutils build = must be configured to include support=0A+for the x86_64-pep emulation = (i.e. --enable-targets=3Dx86_64-pep or an option of=0A+equivalent effect = should be passed to the configure script).=0A+=0A+Once built, "make = install-xen" can place the resulting binary directly int=0A+the EFI boot = partition, provided EFI_VENDOR is set (and EFI_MOUNTPOINT is=0A+overridden = as needed, should the default of /boot/efi not match the target=0A+system).= =0A+=0A+The binary itself will require a configuration file (names with = the .efi=0A+extension of the binary's name replaced by .cfg, and - until = an existing file=0A+is found - trailing name components dropped at '.', = '-', and '_' separators=0A+will be tried) to be present in the same = directory as the binary. (To=0A+illustrate the name handling, a binary = named xen-4.2-unstable.efi would try=0A+xen-4.2-unstable.cfg, xen-4.2.cfg, = xen-4.cfg, and xen.cfg in order.) One can=0A+override this with a command = line option ("-cfg=3D").=0A+=0A+The configuration file consists = of one or more sections headed by a section=0A+name enclosed in square = brackets, with individual values specified in each=0A+section. A section = named [global] is treated specially to allow certain=0A+settings to apply = to all other sections (or to provide defaults for certain=0A+settings in = case individual sections don't specify them). A typical file would=0A+thus = look like this ('#' serving as comment character):=0A+=0A+*****************= *********example begin******************************=0A+[global]=0A+default= =3Dsle11sp2=0A+=0A+[sle11sp2]=0A+options=3Dconsole=3Dvga,com1 com1=3D57600 = loglvl=3Dall noreboot=0A+kernel=3Dvmlinuz-3.0.31-0.4-xen ignore_loglevel = #earlyprintk=3Dxen=0A+ramdisk=3Dinitrd-3.0.31-0.4-xen=0A+******************= ********example end********************************=0A+=0A+Other values to = specify are=0A+=0A+video=3Dgfx-[x[x]]=0A+(specifying a = video mode to select if available; in case of problems the=0A+"-basevideo" = command line option can be used to skip altering video modes)=0A+=0A+xsm=3D= =0A+(specifying an XSM module to load)=0A+=0A+ucode=3D= =0A+(specifying a CPU microcode blob to load)=0A+=0A+Filenames must be = specified relative to the location of the EFI binary.=0A+=0A+Extra options = to be passed to Xen can also be specified on the command line,=0A+following= a "--" separator option.=0A --=__Part2F018C94.0__= 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.xen.org http://lists.xen.org/xen-devel --=__Part2F018C94.0__=--