XXCoreRangerX / Hackintosh-HP-EliteBook-840-G4

OpenCore EFI for the HP EliteBook 840 G4
MIT License
17 stars 4 forks source link

Problems with Refind and Questions #5

Open DomiDomian opened 3 years ago

DomiDomian commented 3 years ago

I have Problems with Refind, I always get this output: IMG_20210316_144200

I tried to delete all VolumeIcon.icns but with no success. Maybe you can help me

Greetings from Hungary

XXCoreRangerX commented 3 years ago

Have you set rEFInd.conf properly? You need to set icons_dir to the icons path.

DomiDomian commented 3 years ago

Yes I tried around but always the same output. could you please provide your refind.conf as sample for me?

XXCoreRangerX commented 3 years ago

Sorry, never used rEFInd and I don’t have any premade configs for it. The only OS I use on the laptop is macOS. You can read rEFInd’s documentation or use a different bootloader.

XXCoreRangerX commented 3 years ago

Try following some kind of a guide to rEFInd. Maybe that will help.

XXCoreRangerX commented 3 years ago

If you still want to use rEFInd, I think I can help.

Recently, I've installed Linux on my laptop and wanted to use rEFInd as the main bootloader.

Basically I wanted all OSs to boot like this:

However, after configuring the system and installing rEFInd I booted to a blank rEFInd screen.

Not much helpful answers on the internet too, at least none of them worked on my unit.


I spend hours trying to figure it out. Turns out that these new HP laptops just won't let rEFInd's OS autodetection to work for some reason.

Changes I made to the config

I had to disable autodetection:

# Which types of boot loaders to search, and in what order to display them:
#  internal      - internal EFI disk-based boot loaders
#  external      - external EFI disk-based boot loaders
#  optical       - EFI optical discs (CD, DVD, etc.)
#  netboot       - EFI network (PXE) boot options
#  hdbios        - BIOS disk-based boot loaders
#  biosexternal  - BIOS external boot loaders (USB, eSATA, etc.)
#  cd            - BIOS optical-disc boot loaders
#  manual        - use stanzas later in this configuration file
#  firmware      - boot EFI programs set in the firmware's NVRAM
# Note that the legacy BIOS options require firmware support, which is
# not present on all computers.
# The netboot option is experimental and relies on the ipxe.efi and
# ipxe_discover.efi program files.
# On UEFI PCs, default is internal,external,optical,manual
# On Macs, default is internal,hdbios,external,biosexternal,optical,cd,manual
#

# Only allow manual boot entries
scanfor manual

I booted rEFInd and the poweroff, reboot etc. icons appeared.

Then, I manually specified the entries:

menuentry "Axis Linux" {
        icon     /EFI/refind/refind-theme-regular/icons/128-48/os_axis.png
        graphics on
        volume   xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        loader   /boot/vmlinuz-linux
        initrd   /boot/initramfs-linux.img
        options  "root=PARTUUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx rw add_efi_memmap initrd=boot\intel-ucode.img nowatchdog quiet loglevel=3 vga=current rd.systemd.show_status=auto rd.udev.log_level=3"
        submenuentry "Boot using fallback initramfs" {
                initrd /boot/initramfs-linux-fallback.img
        }
        submenuentry "Boot to terminal" {
                add_options "systemd.unit=multi-user.target"
        }
}

menuentry "macOS" {
    icon /EFI/refind/refind-theme-regular/icons/128-48/os_mac.png
    graphics on
    loader /EFI/OC/OpenCore.efi
}

menuentry "Windows 10" {
    icon /EFI/refind/refind-theme-regular/icons/128-48/os_windows.png
    loader /EFI/Microsoft/Boot/bootmgfw.efi
}

I rebooted and rEFInd was working now! I can provide more details if you're interested.