You are not logged in.

#1 2017-09-28 14:21:04

warmos
Member
Registered: 2014-11-18
Posts: 20

Invalid opcode while modifying efi

Just bought a new laptop HP ProBook x360 11 G1 EE
Downloaded archlinux iso, booted it from USB. After installation of system I was trying to install bootloader with

bootctl --path=/boot/efi install

after that system traces an error (see photos). No additional entries are found in uefi.
Followed this guide to check if EFI is available.
I have also wanted to turn off the uefi in the bios settings, but those new notebooks does not have such option.
Here are the photos of commands and error:
https://ibb.co/i4CSow
https://ibb.co/hUip1G
Any ideas?

Offline

#2 2017-09-29 13:41:34

unixman
Member
Registered: 2015-03-12
Posts: 64

Re: Invalid opcode while modifying efi

good luck with it .  photos cannot open for me for some reason.

So,  is /boot  mounted:)

Try to drop UEFI shell then setup manually there.

Offline

#3 2017-09-29 13:48:00

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Invalid opcode while modifying efi

The photo's show a segfault in bootctl; primarily invalid opcode 0000 (#1) PREEMPT SMP, Call trace: update_curr > get_mem_cgroup_from_mm #FYI

The topicstarter should have included this information as this thread will become useless once $RANDOM-img-provider disappears

Offline

#4 2017-10-01 19:05:23

warmos
Member
Registered: 2014-11-18
Posts: 20

Re: Invalid opcode while modifying efi

Yes, i have /boot on the same partition as root, i am mounting ESP to /boot/efi

the same "invalid opcode 0000 (#1) PREEMPT SMP" is thrown, when doing

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub

There is no such option to turn on legacy support in the BIOS.

What does this invalid opcode mean?

Offline

#5 2017-10-02 09:12:15

unixman
Member
Registered: 2015-03-12
Posts: 64

Re: Invalid opcode while modifying efi

How about setup it via 'efibootmgr' ?

How about setup it via 'efivar' ?

How about setup it via UEFI shell?

Last edited by unixman (2017-10-02 09:14:04)

Offline

#6 2017-10-02 17:10:11

warmos
Member
Registered: 2014-11-18
Posts: 20

Re: Invalid opcode while modifying efi

unixman wrote:

How about setup it via 'efibootmgr' ?

How about setup it via 'efivar' ?

How about setup it via UEFI shell?

For the efibootmgr and efivar, it does the same invalid opcode when adding entries. Tried this:

efibootmgr -c -d /dev/sda -p 1 -l /EFI/grub/grubx64.efi -L "Grub"

Could you please tell me, how to set it up through UEFI shell? I tried to run shellx64.efi and grubx64.efi (generated by grub-install) from the UEFI shell, but it did nothing. The UEFI shell just frozen after executing these commands.
Thank you guys for replies.

EDIT: I've tried also making separate whole /boot partition, to keep images and efi files on one partition.

Last edited by warmos (2017-10-02 17:16:03)

Offline

#7 2017-10-03 08:52:10

unixman
Member
Registered: 2015-03-12
Posts: 64

Re: Invalid opcode while modifying efi

you have to do it via  'bcfg'  UEFI shell built-in  command.

https://wiki.archlinux.org/index.php/Un … rface#bcfg

BTW: The path of the EFI image to boot must use \ (backslash) instead of / (forward slash) as path separator.

So it seems you misused above.

Last edited by unixman (2017-10-03 09:09:13)

Offline

Board footer

Powered by FluxBB