GalliumOS / galliumos-distro

Docs, issues, and artwork sources for GalliumOS
https://galliumos.org/
GNU General Public License v2.0
346 stars 11 forks source link

Installation fails UEFI bios HP ChromeBook 11 G4 Bay Trail #560

Closed true-pigmaster closed 4 years ago

true-pigmaster commented 4 years ago

Issue: Installation fails UEFI bios HP ChromeBook 11 G4 Bay Trail

  1. Machine Details: Model HP ChromeBook 11G4, Intel Atom N2840 Dev Mode: KIP C8E-G40-P4A-A6A-A3E uname -a Linux Yakuza 4.16.18-galliumos #1 SMP PREEMPT Sun Jun 23 04:14:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  2. Firmware: dmidecode -s bios-version : MrChromebox-4.11.2
  3. Installation: ISO - Pendrive usb

Case: ISO image downloaded through torrent, version 3.1 for Bay Trail. Burned in to USB both once through Rufus and DD, second Etcher. During the fist installation fail i have noticed that it hanged on grub installation (haven't check /var/log/installation files). Also after failing and re-running the installer i was getting the issue already reported with partman and locked partiton. Workaround: When i was trying to run simple grub-install it was showing that it is missing files in folder /usr/lib/grub/i386-pc i have copied them from the live filesystem to target and tried again, it showed that grub was installed but EFI partition was empty. After another reboot and trying with 3.0 where i was getting the same error.

  1. After installer fails - reboot.
  2. login as root (sudo su -) and mount /dev/mmcblk0p2 as /mnt
  3. mount /dev/mmcblk0p1 as /mnt/boot/efi
  4. copy files from life system : /usr/lib/grub to /mnt/usr/lib/grub
  5. for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
  6. chroot /mnt
  7. grub-mkconfig
  8. grub-install /dev/mmcblk0
  9. update-grub
  10. reboot

After that system was booting. Without grub-mkconfig system will probably not boot and you will see standard screen of grub without any entries.

Plymouth was not working adding line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" /etc/default/grub.d/00-galliumos.cfg suppose to fix that (i have also re-installed plymouth and changed the graphic mode to 1366x768), and re-isntalled the gallium themes plymouth-theme-galliumos-logo, plymouth-theme-galliumos-text), as well with loading the module at startup: in /etc/initramfs-tools/modules i have added:

#KMS
intel_agp
drm
i915 modeset=1

P.S: After installing the system i was running it for 12 hours on battery (9% wear off) even with intel-pstate driver and standard cpufreqd.conf (till i thikn 50% processor is set around 2GHz, so i think with properly written config you can run up 14 - 16 hours even with p-state driver).

source for partially used plymouth guide: Plymouth - Debian Guide source of partial solution for grub: Reinstalllation of grub

reynhout commented 4 years ago

Thanks for writing this up -- hopefully this will help someone who encounters a similar issue.

true-pigmaster commented 4 years ago

It happened 4 times, i think it is related to 64 bit grub installation problem.