firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Cant boot any OS

Open Mrnermaler opened this issue 1 year ago • 23 comments

I keep getting failed verify its a contains a 64bit UEFI OS but i know it's 64 bit UEFI os because it worked before

Mrnermaler avatar Jan 23 '24 00:01 Mrnermaler

ok? You can't provide a half-assed error description and expect anyone to be able to help. Some basic info would be nice, such as:

  • device you're using
  • firmware version from UEFI menu
  • exact steps you're taking
  • full and exact error message (pic is fine)

MrChromebox avatar Jan 23 '24 01:01 MrChromebox

OP probably ran some Linux distro from a USB which, upon installation, failed to boot up from the internal drive (hence the phrase "because it worked before"):

PXL_20240206_012222332

I'm met with the same problem on my Chromebook Plus 515 (CB515-2H-31NY) with board name OMNIGUL. Tried multiple distros (Ubuntu 23.10, EndeavourOS, Manjaro) with and without using Ventoy, but the outcome was the same regardless: the EFI partition showed up in the boot menu (path: \EFI\[distro name]\grubx64.efi) but it produced the above error message when selected, followed by this message in the UEFI shell: map: No mapping found

I would also like to add that there weren't any installation errors, and can confirm that the EFI and root partitions were visible and accessible from the live USB session.

Here's the cbmem logs: cbmem.log

micmalti avatar Feb 06 '24 01:02 micmalti

@micmalti boot to the UEFI boot menu. If there's no entry present for the internal storage, then that's your problem -- edk2 doesn't recognize it, and so the 'Manjaro' boot entry points to a device/path that doesn't exist.

MrChromebox avatar Feb 06 '24 02:02 MrChromebox

You mean checking for entries in Boot Manager → Boot From File, as it says in the FAQ? It's empty. I'm not sure how I can add the entry manually.

micmalti avatar Feb 06 '24 03:02 micmalti

no, literally press ESC then select Boot Menu. It should list the UEFI shell, the internal storage, and any boot entries added by the OS (eg, 'Manjaro')

MrChromebox avatar Feb 06 '24 15:02 MrChromebox

Yes, there's an entry but it produces the same error message when selected.

micmalti avatar Feb 06 '24 15:02 micmalti

Shall I consider using efibootmgr as suggested here?

micmalti avatar Feb 06 '24 15:02 micmalti

no. post a pic of your boot menu, as well as the Boot From File options

MrChromebox avatar Feb 06 '24 16:02 MrChromebox

Please note that only one distro is visible in the boot menu since I had previously removed the others:

PXL_20240206_161135424

PXL_20240206_161206401

micmalti avatar Feb 06 '24 16:02 micmalti

it's exactly as I said before:

If there's no entry present for the internal storage, then that's your problem -- edk2 doesn't recognize it, and so the 'Manjaro' boot entry points to a device/path that doesn't exist.

your internal storage is not recognized by edk2, so it's not bootable.

MrChromebox avatar Feb 06 '24 16:02 MrChromebox

Is there a way that I can specify the path manually without using efibootmgr? My understanding is that the solution in the FAQ only works if the EFI partition is already visible in the File Explorer.

micmalti avatar Feb 06 '24 16:02 micmalti

there is no workaround, other than booting from removable media.

The Manjaro entry already specifies a path -- that path doesn't exist because your internal storage doesn't exist.

edk2 needs to be updated/fixed to support UFS boot media

MrChromebox avatar Feb 06 '24 16:02 MrChromebox

Then it seems I have to revert back, unless there's a fix in the near future. Too bad.

micmalti avatar Feb 06 '24 16:02 micmalti

do you have a SuzyQ cable? that would help in debugging

MrChromebox avatar Feb 06 '24 16:02 MrChromebox

No, but I'll try to find one. I've seen a tutorial on how to make one but I'm not sure that I can do it.

micmalti avatar Feb 06 '24 16:02 micmalti

I think that in the meantime, it's a good idea to specify in the docs that devices with UFS media are currently unsupported.

micmalti avatar Feb 06 '24 17:02 micmalti

I think the UFS drivers were simply not being compiled into edk2, ping me on Discord for a test build with them enabled

MrChromebox avatar Feb 06 '24 18:02 MrChromebox

Where can I obtain an invite?

micmalti avatar Feb 06 '24 18:02 micmalti

https://discord.gg/j5YjPWp9

MrChromebox avatar Feb 06 '24 18:02 MrChromebox

My Acer 515 chromebook arrived yesterday, and this issue also affects me. Any idea when the test build will be released?

Thank you.

karmst avatar Feb 16 '24 13:02 karmst

there will be no test build released, the solution I tried did not work. Need to get my hands one for testing

MrChromebox avatar Feb 16 '24 14:02 MrChromebox

Thank you for the quick reply. Apart from the HD not being detected, I like the machine. For now, I can boot off another USB. Keep up the great work, by the way. I've had Linux running on my older Acer for years.

karmst avatar Feb 16 '24 14:02 karmst

I'd be happy to test any builds, if that would help? My intention is never to use the CB as a CB anyway, so I'm not at any loss to rinse and repeat.

Let me know.

karmst avatar Feb 17 '24 14:02 karmst

Is the current workaround to boot off USB, but then the rootfs can still be on a UFS device? Since I had issues with a different device, I have one of these (CB515-2H) on order, because I thought it was supported and inexpensive...and now see this bug. :)

I can certainly deal with the USB workaround for now, and would definitely be up to helping test / attempt to contribute as well. I have another Linux laptop and server that I can set up a dev environment if pointed to some docs.

-Matt

mdrobnak avatar Apr 15 '24 22:04 mdrobnak

I've got a fix for UFS-equipped devices, just need to push updates - will try to do so later tonight/tomorrow morning

MrChromebox avatar Apr 16 '24 00:04 MrChromebox

Booting directly from UFS is currently possible, but you need to manually install the missing UFS modules. Something that I've yet to solve is the boot time which takes about 2min (probably a non-critical module that's failing to load). I'll try to test the update and check whether it addresses this issue as well.

micmalti avatar Apr 16 '24 01:04 micmalti

I've got a fix for UFS-equipped devices, just need to push updates - will try to do so later tonight/tomorrow morning

Awesome! Thanks for all your work.

-Matt

mdrobnak avatar Apr 16 '24 01:04 mdrobnak

This is super news! Maybe now I can make use of my Acer Plus Chromebook! Thank you SO MUCH for your work.

-Keith

karmst avatar Apr 16 '24 02:04 karmst

updated 4.22.4 ROMs pushed for all ADL/ADL-N boards

MrChromebox avatar Apr 16 '24 14:04 MrChromebox

Hi. I might be doing something wrong, but I updated the firmware to the latest version, and tried to install OpenSuSE and Void Linux, but neither see the UFS disk.

When you say "Booting directly from UFS is currently possible, but you need to manually install the missing UFS modules"...how does one go about that, or is it not related to my issue?

Thank you very much.

-K

karmst avatar Apr 17 '24 11:04 karmst