Bug 10314 - Installing Yocto on EFI systems
Summary: Installing Yocto on EFI systems
Status: RESOLVED NOTABUG
Alias: None
Product: Installation
Classification: Runtime
Component: Installation (show other bugs)
Version: 2.1.2
Hardware: x86 x86_64
: Medium minor
Target Milestone: 2.4 M1
Assignee: Alejandro Hernandez
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-21 11:53 UTC by tomasz.meresinski
Modified: 2017-06-01 18:25 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Patches (1.85 KB, application/zip)
2016-09-21 11:53 UTC, tomasz.meresinski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomasz.meresinski 2016-09-21 11:53:20 UTC
Created attachment 3435 [details]
Patches

Hi,
I had some difficulties during installing my image by init-install-efi.sh.
After some research I found out, that on my platform it was necessary to invoke grub-install. Patch resolving it is in attachments.
The second bug was incorrect location of grub.cfg file after install. I patched it too.

I'm not sure if it is a good idea to apply those patches because they may break on other platforms but I think you should know that there are some EFI firmware which doesn't like your current script. Maybe it would be a good idea to copy EFI handling from other distros?
Comment 1 Alejandro Hernandez 2016-09-21 16:57:31 UTC
(In reply to comment #0)
> Created attachment 3435 [details]
> Patches
> 
> Hi,
> I had some difficulties during installing my image by init-install-efi.sh.
> After some research I found out, that on my platform it was necessary to
> invoke grub-install. Patch resolving it is in attachments.
> The second bug was incorrect location of grub.cfg file after install. I
> patched it too.
> 
> I'm not sure if it is a good idea to apply those patches because they may
> break on other platforms but I think you should know that there are some EFI
> firmware which doesn't like your current script. Maybe it would be a good
> idea to copy EFI handling from other distros?

What platform are you using?
Comment 2 tomasz.meresinski 2016-09-22 09:31:53 UTC
/sys/devices/virtual/dmi/id# for file in bios* board*; do echo $file; cat "$file"; done

bios_date
02/02/2016
bios_vendor
FUJITSU // American Megatrends Inc.
bios_version
V5.0.0.11 R1.11.0 for D3402-B1x                   
board_asset_tag
        
board_name
D3402-B1
board_vendor
FUJITSU
board_version
S26361-D3402-B1
Comment 3 Alejandro Hernandez 2017-06-01 18:25:30 UTC
Hey Tomasz,

I was taking a look at your patches and I do believe they work for your specific platform, but I dont think this can be classified as a bug, I believe its more related to the specific configuration that you choose.

It looks that the EFIVAR should be set to what you are setting it to already, I am unsure whether this should be done by you or automatically, like I said, it looks like this is related to your specific configuration.

Also you are mentioning efivar, efibootmgr, etc. Which are part of meta-oe and technically they are not part of the core distribution, you may want to send these by email to the meta-oe list, using the tag [meta-oe]:

openembedded-devel@lists.openembedded.org