Requesting some changes for xen PKGBUILD to work with --enable-ovmf

For background about this issue, you may want to read these two E-Mails to edk2 Mailing List:
http://sourceforge.net/p/edk2/mailman/e … sg32776907
http://sourceforge.net/p/edk2/mailman/e … sg32793684
Basically, it goes like this:
- Xen can be compiled with the optional --enable-ovmf option, so it can make DomU VMs using UEFI Firmware. Instructions here:
http://wiki.xen.org/wiki/OVMF
This can be done in Arch Linux by adding in the ./configure line of PKGBUILD --enable-ovmf, adding an additional step where makepkg downloads Source Code from edk2 repository.
- Currently, it fails to build that way with this error:
http://lists.xen.org/archives/html/xen- … 02855.html
This error is caused because the edk2 Source Code that xen pulls during build is fresh and doesn't include any patch to make it aware that Arch Linux has both Python 3 (python) and Python 2 (python2). By default, it tries to compile with Python 3, so it fails.
- Assuming than the Python version issue was fixed (I did it in a non-elegant way, replacing /usr/bin/python with /usr/bin/python2), it will still fail with this error:
https://bugs.archlinux.org/task/40277
https://aur.archlinux.org/packages/ovmf-svn/ (Some of the latest comments)
This error is caused by building with GCC 4.9, earlier versions seems unaffected.
The AUR has also a very similar package (If not identical) that is based on edk2 Source Code, the same which xen downloads while building, ovmf-svn:
https://aur.archlinux.org/packages/ovmf-svn/
This one has a PKGBUILD which includes some lines that seem to point that it is aware of both the python version issue, and the GCC 4.9 build issue, by providing a patch:
https://aur.archlinux.org/packages/ov/ovmf-svn/PKGBUILD
Reelevant lines seems to be these ones:
    msg "Fix GenFw: ERROR 3000: Invalid, Unsupported section alignment"
    patch -Np1 -i "${srcdir}/edk2-basetools-add-gcc4.9-support.patch" || true
    patch -Np1 -i "${srcdir}/edk2-ovmfpkg-add-gcc4.9-support.patch" || true
    msg "Use python2 for UDK BaseTools"
    sed 's|python |python2 |g' -i "${EDK_TOOLS_PATH}/BinWrappers/PosixLike"/* || true
    sed 's|python |python2 |g' -i "${EDK_TOOLS_PATH}/Tests/GNUmakefile"
I didn't found any info regarding if Xen can work with OVMF ready-to-use binaries, or either building ovmf-svn, which I didn't tested but I suppose should build properly. All instructions regarding using Xen with OVMF request that it is added as option during build time. This forces me to have to modify the edk2 Source Code that xen downloads.
Basically, what I want to request is if xen PKGBUILD can be modified to include a statement that checks if --enable-ovmf is being used, then make the appropriate changes to the edk2 Source Code that gets downloaded while building Xen so it successfully builds. This could *POSSIBILY* be based on existing ovmf-svn PKGBUILD code.
This change could also be applied to other xen-based packages that can also be builded with --enable-ovmf and presents the same issues.

FINALLY managed to get this thing working:
http://i.imgur.com/ZWTRcn0.png
I tried to build xen with --with-system-ovmf= as suggested like ten times or so, with no success. While xen seemed to build fine, when I tried to create a UEFI DomU, it simply opens and inmediately closes, through if using SeaBIOS worked fine. On xen IRC there was another Arch Linux user claiming that he recently got Xen with OVMF working using that parameter and the bios.bin binary from the ovmf-bin package from AUR. Installing ovmf-bin then providing xen the full path (--with-system-ovmf=/usr/share/ovmf/bios.bin) didn't worked, neither building ovmf-svn myself then using ovmf_x64.bin (Or renaming it to OVMF.fd, ovmf.bin, etc). It always builded perfectly, yet it failed to make a UEFI DomU. Still, both Firmwares worked when using qemu from the official Arch Linux repository (Note that ovmf-bin bios.bin is 1 MiB in size while ovmf-svn ovmf_x64.bin is 2 MiB, not sure what accounts for the difference).
So how I got it working? A bit complex:
- While in my first post I mention that ovmf-svn had a patch for GCC 4.9, it seems than the patch was removed in the last two days. Without the patch, ovmf-svn still builded properly, so I expected than the GCC 4.9 fix got included in edk2 Source Repository. This was blocking me earlier, so decided to give --enable-ovmf another go.
- Renamed python2 to python as a workaround to not have to touch the edk2 tree that xen downloads, which worked the last time.
- Used makepkg with --enable-ovmf in the PKGBUILD ./configure line. I expected it to work due what I mentioned earlier, but it still fails with the GCC 4.9's GenFw: ERROR 3000.
- As a last resort measure, I decided to try to merge into xen the source that ovmf-svn PKGBUILD modifies, as that one builds properly.
- I replaced all the directories inside xen/src/xen-4.4.1/tools/firmware/ovmf-dir-remote/ with the ones from ovmf-svn/src/tianocore-edk2-svn_build/. Not all directories were replaced, seems than ovmf-svn just downloads the parts of the tree required for building the OVMF Firmware, not everything, which xen does.
- Used makepkg again, which used the existing source to try to build again.
- It builded, no python or GenFw error. Installed the new package, rebooted, tried to make the UEFI DomU and BAM! There it is, as you can see in the Screenshot.
Why can some users get this running with just providing bios.bin from ovmf-bin while I have to do a walk around the globe is anyone guess...
To not derail this request further, I can say the following:
- Assuming than --with-system-ovmf= works consistently, which for me didn't, is currently possible to build Xen with OVMF, so making a more complex PKGBUILD to be able to use --enable-ovmf may not be needed.
- --enable-ovmf is still useful because it may reduce a two-step process (Installing ovmf-bin or building ovmf-svn) into one, through I'm not sure if there are pros/cons for each approach besides than you will have latest OVMF version compared to the ready-to-use binary. It also makes xen package more compatible with the mainstream Xen instructions, as  --with-system-ovmf= is quite unknow.
These decisions are for kantras to make.
Last edited by zir_blazer (2014-09-06 06:54:02)

Similar Messages

  • Some pointers for Netgear N300 - it works with AE

    I bought two new Airport Express Stations yesterday and with trepidation I tried to hook up to my Netgear N300 Wireless Router. Using the airport Utility, it allowed me to add both to the existing network. No problem whatsoever. Just thought I'd post up in case someone else is wondering if it works.

    If you want to use the AirPort Express, you will need to connect it to your Netgear router using an Ethernet cable, or use a pair of Ethernet power line adapters to send the signal over the AC power lines in your home...if you cannot run the cable.
    Otherwise, if you want to extend using wireless only, your best bet by far would be to see what Netgear offers in this regard. You know the devices will be compaible using the same manufacturer.
    It appears that Apple's "extend" feature is a proprietary setting with Apple "n" devices. As far as we know, this feature is not compatible with devices from other manufacturers.

  • How do I install OS X Mountain Lion in a machine that came with OS X Yosemite already?? I need to do it in order for me to keep working with some of my softwares.

    How do I install OS X Mountain Lion in a machine that came with OS X Yosemite already?? I need to do it in order for me to keep working with some of my softwares with are very expensive and can't afford to buy new versions.

    Parallels
    VirtualBox
    VM Fusion

  • Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Can the apple external disc drive that I just got for my air also work with my late 2007 macbook pro?  The internal disc drive broke after apple care expired, natch.

    Can the apple external disc drive that I just got for my air also work with my late 2007 macbook pro?  The internal disc drive broke after apple care expired, natch.

    No, sorry. it won't work with the 2007 MBP. You can replace the optical drive yourself - just go shopping at OWC.
    Good luck,
    Clinton

  • Will a charger for a model 1280 work with my model A1278?

    Will a charger for a model 1280 work with my model A1278? Will any L tip 60w work?

    Many thanks for your help.

  • Some advice for quicker rendering of work area preview in AE?

    Hi
    I've been using premiere over the past while and gotten used to the option of 'render effects in work area' and then leaving it for a few minutes till the green bar is ready to be viewed, but now that I am using After effects, i have found that RAM preview is extremely slow, very very slow, especially when working with particle systems, is there a quicker option to select is i only wish to preview the small work area of the composition? Is RAM preview work the same way as 'render effects in work area' as in premiere or should i be using a different preview render option?
    Thanks

    There are numerous options in the RAM Preview pallet for creating faster previews.  You can preview just the work area.  You can reduce preview resolution.  You can reduce preview frame rate.
    You can also solo layers to preview a specific layer animation without having to render the entire composition.
    Remember that AE previews in a very different way to Premiere Pro.  AE loads every pixel of every preview frame into RAM before it plays, while PPro can play straight off your hard drive.

  • I have Wacom Intuos 4, and for some reason pen pressure isn't working with PSE 10

    I can still use wacom tablet pen to draw in Photoshop Elements 10, but I am frustrated because I could not get lines thinner and thicker with more pressure I apply with the pen like I could with Photoshop Elements 7 - and I had already checked "size"  in the tablet setting in PSE 10.  I also made sure I set up my Wacom Tablet Properties to apply to Photoshop Elements 10, and I still can't vary the lines like I want.   Any suggestions?  (also, could it be because I unwittingly bought and installed  34 bits PSE 10 in my 64-bit computer with Window 7  - is that what is preventing PSE 10 from making lines thin and thick with pen pressure?) 
    Thanks for your help.  

    photodrawken, I went to Wacom website and looked up the latest driver.  I see Driver 4.60 for Windows -- will that work on my 64 Windows 7?   (The information didn't mention which Windows, but did warned not to install it on Window Vista 64.) 

  • Changed Apple ID  is not working with the appstore

    I have 2 iPads. Upon updating to iOS 6 I've been experiencing the following problems:
    On iPad number 1: My Apple ID works from the settings menu, however when loading into the appstore, it keeps on asking me for a password of an old apple ID that I do not use anymore and I've got no idea how to change this.
    On iPad number 2: I moved over all of my apps from first iPad to my second one via the iCloud backup. However any apps purchased on my first iPad, i cannot make in-purchases for on the iPad number 2 as it says the Apple ID I purchased the app on is different from the one currently in use.
    Please could anyone help me?
    Many thanks!

    I have the exact same problem as "Jan Olsen 1"
    I sent them feedback:
    "I was given a $25 iTunes gift card. 
    When trying to log on to my account, my password didn't work (though I entered the correct password THREE TIMES). 
    I requested help changing the password through an e-mail. Went through the process, changed the password.
    I successfully logged on to my account and entered the gift card information and was given a $25 credit.
    When I tried to buy mp3s, I was asked to enter my password - AGAIN. 
    I got one of the following messages each time I tried to enter my NEW password:
    'We could not complete your iTunes Store request. An unknown error occurred (5002).
    There was an error in the iTunes Store. Please try again later.'
    or
    'Verification is required.
    You must enter your AppleID and password, click Billing Info, and verify your payment information in order to make purchases.
    The Apple ID you entered couldn't be found or your password was incorrect. Please try again.'
    Don't know where to go from here."
    And then, just to log on to this forum, I had to enter my AppleID TWICE! Once, then again to verify my AppleID!
    Ridiculous! Frustrating!

  • Firefox for aol dose not work with aol emails.Why

    Since the email inter face changed I can no longer send email attachments, even items embeded in the email body come out blank at the other end. I use Firefox configured for AOL but that dose not make any difference. I had no problems untill this change is there anyway to reset it. AOL say the problem must be with your software. They sujested that I try using IE 9, I would rather stay with Firefox as I find it is a much better browser.

    ''ralphieboy [[#question-1022015|said]]''
    <blockquote>
    for some reason firefox does not work with the new Email window on yahoo.com All the other browsers work with yahoo mail just fine!! Are you working on a fix???
    </blockquote>
    I have had the problem of Yahoo! mail freezing (my computer freezing) with Firefox right after I boot up my computer and sign into my Yahoo! mail account. I have to either shut down my computer or use Control + Alt and press Delete to eventually bring up the Task Manager option. Then, once the choice for Task Manager comes up, I can click on cancel and Yahoo! mail and my computer have "un-frozen." I have followed all the recommendations for updating Firefox, clearing caches, checking if an Add-On is the problem, etc., as well as all the recommendations on Yahoo! help pages. Nothing has improved the situation to date. Firefox info says the problem is with Yahoo! Yahoo! says it is a browser problem. I just want the problem to be fixed.

  • HP B500 Wireless Bluethooth Adapter for HP Printer Not Working With Windows 8.1

    I have been using the HP BT500 bluetooth Wireless adapter to print wirelessly to my HP Officejet Pro 8500 printer.  I have been using Windows Vista, but recently upgraded to Windows 8.1.  I learned after the upgrade that the HP B500 wireless bluetooth adapter is not compatable with Windows 8.1.  I have attempted to find a driver upgrade for the B500, but there does not appear to be one available.  I have also searched the HP site and other sites in an attempt to locate an alter wireless blotth adapter to replace the B500, but have again been unable to locate one. 
    Is there a wireless bluetooth apter that will allow me to print wirelessly to my HP Office Pro 8500 from my laptop?

    Hi @Raider83,
    Welcome to the HP Forums!
    I noticed that your HP B500 wireless bluetooth adapter for your HP Officejet 8500 is not working with Windows 8.1. I am sorry to hear this but happy to look into this for you!
    I am not sure if you are using a 32-bit or 64-bit Operating System. But sometimes with Windows 8.1 you can use compatibility mode to install an older version of the driver. Which might help the situation. Here is a link to some other Windows drivers, HP bt500 Bluetooth USB 2.0 Wireless Adapter Drivers.
    Once you got a driver downloaded, follow this guide, Make older programs compatible with this version of Windows, on how to install it using compatibility mode.  It is not guaranteed to work, but it is worth a try!
    If you still need me to look for other bluetooth adapters, please respond with your printer's Product/Model Number. To find your printer's Product/Model Number follow instructions in this link. Finding Your HP Product Model Number. As there are multiple HP Officejet 8500 printers.
    Thank you for posting, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Cant oppen some word docs in Pages - it works with others

    why cant I open some word documents in Pages - others work fine?

    As per Apple support at http://support.apple.com/kb/HT4641
    Pages for iOS can open
    Pages ’09 for Mac
    Microsoft Word - Office Open XML (.docx) and Office 97 or later (.doc)
    Plain Text files (.txt)
    Ensure your files are in one of the above formats and all should be fine.

  • Will the Logitech Tablet Keyboard for Android 3.0+ work with the Playbook 2.0 OS?

    Thinking of buying the Logitech Tablet Keyboard for Android 3.0+ for my Playbook but before I do I want to make sure it'll work with my Playbook with the new 2.0.  Can anyone help?

    Hi Patrick,
    short storry: you can not setup Sun VDI 3 that way.
    Long story: Sun VDI 3 takes advantage of the VBox webservice to register, startup, poweroff, etc. VMs. The configuration and startup of the webservice is handled via a VBox installation script/installer that is bundled with Sun VDI 3 (and this installer is available for Solaris 10 only). Furthermore, we require a specific VBox version, because the VBox API has changed incompatible between 2.0.x, 2.1.x, 2.2.x, etc. - Sun VDI 3 currently supports 2.0.8. Thus any VBox VMs created with 2.1 or 2.2 will not run in a Sun VDI 3 environment.
    The typical Sun VDI 3 setup requires that the core and VBox parts are installed on a Solaris 10 machine (either both on the same machine or separate ones). For both the core and the vbox parts we provide a corresponding installer available via the Sun VDI 3 download page. Furthermore, you also need another machine for the ZFS/iSCSI storage part (e.g. running OpenSolaris). Please refer to the Sun VDI 3 documentation for all the details and background.
    You can still install VBox also on a laptop with your preferred OS and use this setup for example for preparing your VMs that should later be imported and executed in a Sun VDI 3 environment. However, as stated this requires the VBox 2.0.8 version (there is a link on the Sun VDI 3 download page pointing to the compatible VBox versions for other OS).
    - Klaus

  • Oracle sync for Macintosh doesn't work with Leopard.

    I have tried to install the oracle sync client for Mac OS (v 9.x) and it will just not install on any Leopard OS Macs. The console message repeats the error:
    5/27/08 11:07:12 AM [0x0-0x12012].Oracle Calendar Sync installer.1[121] 2008-05-27 11:07:12.373 install[126:190b] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    and
    5/27/08 11:07:15 AM com.apple.launchd[81] ([0x0-0x12012].Oracle Calendar Sync installer.1[121]) Stray process with PGID equal to this dead job: PID 127 PPID 126 osascript
    The installer does work with Tiger. I have found that it complains about some Java errors when its unpacking itself but I have the most recent version of Java available for this OS.
    Any thoughts?

    I was able to get the sync to work when I started on a machine running Tiger (OS 10.4) and then upgraded to Leopard, but NOT on any machines that start at Leopard.
    I've just about abandoned Oracle Calendar given their (lack of) product support, and likewise for PalmOS devices.
    Bring on iPhone.

  • Looking for Fireworks users that work with Flash in Manhattan!

    If you live in Manhattan and work with Fireworks and Flash
    and do not mind making some extra cash, then check this out:
    http://weblogs.macromedia.com/amusselman/archives/2006/07/nyc_usability_s.cfm
    Good luck!

    We are starting a Computer Management course in our school district where the students will basically be doing a tier 1 helpdesk. Does anyone have this type of thing going on at your school? Im looking for ideas as to how to handle these kids' user rights as well as what they do. Im worried things can get messy by giving the students too many permissions. 
    This topic first appeared in the Spiceworks Community

Maybe you are looking for

  • Chost in makepkg.conf

    what is this variable ? and what happen if i change this ? thanks

  • Function module on date

    HI!     IS there any function module existing wherein I give the Date(eg 09/09/2005)  and daytext( eg: monday --etc. The function module should return the date for Monday ( this date should be after 09/09/2005) eg : date     - 09/10/2005 ( mm/dd/yyyy

  • Iphone 5 will not display 3G, ever

    My iphone 5, with 6.1.4 on the AT&T network does not have this option. In fact it will NOT display 3G under any circumstances. It always goes directly from 4G to EDGE. I find this to be very unsatisfactory.

  • SAP Short Dumps when generating BSP page

    While generating my BSP page a short dump occurs saying that there is too much code basically. (more then 10,000 ABAP statments). This happens on my LAYOUT section of the screen and the weird thing is that I only have 2145 lines of code.  A little ba

  • Not able create Events in BT108H_LEA

    Hi I was trying to create an event for one of the fields however the system is throwing below error "Parameter LSM not in version 0018 of tp configuration" Could you please let me know what is this error indicating ? Regards Anil