home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.93k stars 972 forks source link

GRUB failing to load kernel on Intel Atom boards (Intel NM10 chipset) #3305

Closed HAPSagan closed 2 months ago

HAPSagan commented 6 months ago

Describe the issue you are experiencing

I see GNU GRUB with 4 options - Slot A, Slot B, Slot A rescue shell, Slot B rescue shell. Selecting any of them results in a message that it's unable to boot. I dont get any CLI options. I have used Linux Reader to download the backups from the disk and have then tried to do a fresh installation with OS12.2. The result is the same as after the update - unable to boot from any slot. After that I did a fresh install with OS 12.1 and everything started fine again.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

12.1

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Do a fresh install with OS 12.2 or update to OS 12.2 and it's unable to boot.
  2. ...

Anything in the Supervisor logs that might be useful for us?

Can´t get a log.

Anything in the Host logs that might be useful for us?

Can´t get a log.

System information

No response

Additional information

No response

ChernyaevAN commented 2 months ago

@ChernyaevAN It's a bit more complicated, since the current GRUB installed on your machine is faulty. You will need to connect the drive to a different PC, or boot any live USB distro on your Atom, and copy the files from the following archive to overwrite those in /EFI/BOOT folder in the boot partition of HAOS.

grub2-nm10-fixed.zip

Sorry for the complications 😢

This is not the problem. I will post after installation.

ahmetem commented 2 months ago

The same problem occurred with 13.0. There was no problem with version 12.4. i boot ha with Super Grub2 Disk image on usb disk. show all boot menu. and selected slot a. it open normaly. after downgrade 12.4.boot is normaly start again.

MacBook Air (11-inch, Mid 2011) a1370 64GB flash storage 1.6GHz dual-core Intel Core i5 2GB of 1333MHz DDR3 onboard memory Advanced Intel HD Graphics 3000.

ChernyaevAN commented 2 months ago

@ChernyaevAN It's a bit more complicated, since the current GRUB installed on your machine is faulty. You will need to connect the drive to a different PC, or boot any live USB distro on your Atom, and copy the files from the following archive to overwrite those in /EFI/BOOT folder in the boot partition of HAOS.

grub2-nm10-fixed.zip

Sorry for the complications 😢

It works after patching but offers me to upgrade. Do I just need to wait for the new operation system version?

sairon commented 2 months ago

@ChernyaevAN It should be safe to select the other boot slot with OS 13.0 in GRUB boot menu, or run ha os boot-slot other. But definitely don't upgrade to OS 13.0 again, wait at least for 13.1.rc1 which should fix that.

@ahmetem Can you please also follow the instructions above to get the processor ID?

randallzapata commented 2 months ago

I am able to get into grub, but I can't get HAOS to boot linux.

I installed https://os-artifacts.home-assistant.io/13.1.dev20240816/haos_generic-x86-64-13.1.dev20240816.img.xz

Also, I tried the grub patch, and it looked the same as what I have.

I am running on an AtomMan X7 Ti with a Intel® Core™ Ultra 9 processor 185H.

smbios --type 4 --get-qword 8 13829424153407129252

When I am in debug mode, this is what I get. ​ loader/efi/linux.c:218:linux: * linux command line: BOOT_IMAGE=(hd0,gpt2)/bzImage root=PARTUUID=8d3d53a9-6d49-4c38-8349-aff6859e82fd rootwait zram.enabled=1 zram.num_devices=3 systemd.machine_id= fsck.repair=yes systemd.condition=first-boot=true systemd.firstboot=tty0 rauc.slot=A debug' loader/efi/linux.c:238:linux: starting image 0x5e9fad18

It just does nothing after this.

sairon commented 2 months ago

@randallzapata It's a modern system, so I don't expect it to have problems with the EFI kernel loader. It looks rather like this issue, you can try disabling VT-d in the BIOS settings too. Let's follow up there if it helps, or please create a new issue for your system.

ChernyaevAN commented 2 months ago

I have updated to HAOS 13.1. Everything works fine. Thank you.

VerbruggenBart commented 1 month ago

Just wanted to let you know I still had this problem with the latest update and a Lenovo Thinkpad [11e (Type 20D9, 20DA)]

I used the download above (grub-2.06-haos-12.1.zip together with a debian live usb stick to copy both files to the BOOT directory, which seems to have fixed it again (temporarily)...

pitzer commented 1 month ago

I also ran into this issue on my 2011 Mac Mini running Generic x86-64 when updating HAOS a week ago. It runs a 2.3GHz dual-core Intel Core i5 CPU. Reverting grub via bootable USB solved the issue. Thank you for the pointers in this thread!

agners commented 1 month ago

@VerbruggenBart hm, looking at this datasheet, that seems a Celeron CPU from the same era. Can you run the commands @sairon pointed out in https://github.com/home-assistant/operating-system/issues/3305#issuecomment-2288559250?

sairon commented 1 month ago

@pitzer Could you please also send me the CPU ID reported on the Mac Mini, using the smbios command from the above post? It is probably the same platform as @ahmetem reported earlier it's having issues but no one shared the required information so far.

ahmetem commented 1 month ago

@sairon i try smbios --type 4 --get-qword 8 but give error. error : cant find command 'smbios' maybe situation is different for Mac.

agners commented 1 month ago

@ahmetem did you run the command from the GRUB2 command line? Note you need to install the HAOS 13.0 version to get the smbios command.

ahmetem commented 1 month ago

yes i run GRUB2 command line but my HAOS 12.4 version. i will update and try again.

ahmetem commented 1 month ago

@sairon smbios --type 4 --get-qword 8 13829424153406604967

KnzHz commented 3 weeks ago

I had this issue updating to 13.1 last week on a Dell Wyse 5070. Using the rescue files mentioned here fixed it. Need any data from me Og can I safely try to upgrade again?

I tried to go from 12.4 to 13.1.

okh-mzny commented 3 weeks ago

I too have a broken UEFI platform that doesnt load the kernel. HP T640 Thin Client with Ryzen Embedded R1505G CPU.

grub> smbios --type 4 --get-qword 8
1696726757278814081