[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703469: HP EliteBook 8570p UEFI install works, with some effort



Package: installation-reports

Boot method: ISO on USB drive
Image version: http://cdimage.debian.org/cdimage/wheezy_di_rc1/amd64/iso-cd/debian-wheezy-DI-rc1-amd64-netinst.iso
Date: 2013-03-19

Machine: HP EliteBook 8570p (C6Z56UT)
Processor: Intel Core i5-3320M
Memory: 4 GiB
Partitions:
----------------------------------------
# df -Tl | human
rootfs               rootfs   /
udev                 devtmpfs /dev
tmpfs                tmpfs    /run
/dev/mapper/___-root ext4     /           <- dm_crypt
tmpfs                tmpfs    /run/lock
tmpfs                tmpfs    /run/shm
/dev/sda_            ext4     /boot
/dev/sda_            vfat     /boot/efi   <- ESP
----------------------------------------

Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [O]
Detect network card:    [O]
Configure network:      [O]
Detect CD:              [O]
Load installer modules: [O]
Detect hard drives:     [O]
Partition hard drives:  [O]
Install base system:    [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Install tasks:          [O]
Install boot loader:    [E]
Overall install:        [E]

Comments/Problems:

In order to document this failure mode, I made this installation attempt on a
system that I "cleaned" after a successful installation.  So it isn't quite
the same as a brand-new machine.

At the HP startup screen, hit "ESC" for the "Startup Menu", "F10" for "BIOS
Setup", in "System Configuration" tab, "Boot Options", change "Boot Mode" from
"Legacy" to "UEFI Hybrid (With CSM)".  (I made other, irrelevant, settings
changes, too.)

Reboot to the "Startup Menu", "F9" for "Boot Device Options", choose "USB Hard
Drive 1", "Advanced options", "Expert install".

The Installer seemed to think that GRUB succeeded: "grub-installer: info:
grub-install ran successfully".  But rebooting fails to find boot code, gives
HP screen:

----------------------------------------
BootDevice Not Found

Please install an operating system on your hard disk.
----------------------------------------

etc.  Rebooting the USB stick to rescue mode, I umount the /boot and /boot/efi
partitions--because mount thinks they're mounted--before I truly mount them.
Then I install grub-efi-amd64, and:

----------------------------------------
# grub-install /dev/sda
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
Installation finished. No error reported.
# modprobe efivars
ERROR: could not insert 'efivars': Unknown symbol in module, or unknown parameter (see dmesg)
# dmesg | tail -1
[...] efivars: Unknown symbol efi_enabled_facility (err 0)
----------------------------------------

I assume that's because I haven't booted the USB stick in UEFI mode.

So "mkdir /boot/efi/EFI/boot" and "cp -p /boot/efi/EFI/debian/grubx64.efi
/boot/efi/EFI/boot/bootx64.efi" (Thanks to
<http://tanguy.ortolo.eu/blog/article51/debian-efi>.) and reboot.  That boots
to the GRUB menu, followed by:

----------------------------------------
  Booting 'Debian GNU/Linux, with Linux 3.2.0-4-amd64

error: file not found.
error: file not found.
Loading Linux 3.2.0-4-amd64 ...
Loading initial ramdisk ...

Press any key to continue...
error: no suitable mode found.
Booting however
----------------------------------------

and no further output.

Rebooting to USB stick rescue mode again, "dpkg-reconfigure grub-efi-amd64"
which now decides to add "insmod efi_gop" and "insmod efi_uga" to
/boot/grub/grub.cfg.  Why didn't it do it when I installed the package?  Then
reboot.  "login:"


Side note: Why isn't Debian or GRUB in
<http://www.uefi.org/specs/esp_registry>?


Reply to: