Solved How to get UEFI v12 installed on laptop (also load video dirivers)

I got this to boot one time, and one time only in UEFI only boot mode on this HP laptop HP EliteBook 840 G2, 1080p with touch screen, when It did boot it gave me the 1080p video screen with all of the unreadable text on the screen, and the blue screen where I could not see any dialog boxes to select for install.

So yeah I shut it down, and every sense then it has not booted it just sits there with the usb stick in the port and just sits there. nothing. Having gotten that screen once, I've been redoing the dd on the stick and well if it does ever work again. what is the command line args for loading video for intel video chip?

after install it needs to be installed, so I do not even know how this is going to work. But that was my idea just load the 1080p video support, then found a post on it that said basically the same thing.
post #17

Code:
kld_list="/boot/modules/i915kms.ko"
that is what is loading in my current install MBR akaCMS present install.
 
UPDATE:

On my experimental / test hdd, I got it to actually boot using UEFI w/CMS and installed 1024x768 graphics. but when i try to boot it without CMS the graphics go screwy.

my xfce4 says I am at 1920x1080 w/i915.ko driver loaded during boot. and still having it like that with UEFI only it still does not display properly after the boot screen pops up.

the thing too is that it also created its own efi partition, and I cannot mount it to move/copy it in to the other one that has two Linux OS'es and see if I can fix that part of it.

even though my BIOS gives me the second partition option where this freebsd efi is located.

Code:
[userx@FreeBSDefi ~]$ file /dev/ada1s3b     
/dev/ada1s3b: character special (0/165)
[userx@FreeBSDefi ~]$ file /dev/ada1s3a 
/dev/ada1s3a: character special (0/124)
[userx@FreeBSDefi ~]$ file /dev/ada1s3 
/dev/ada1s3: character special (0/117)
[userx@FreeBSDefi ~]$ file /dev/ada1s2
/dev/ada1s2: character special (0/116)
[userx@FreeBSDefi ~]$ efibootmgr
efibootmgr: efi variables not supported on this system. root? kldload efirt?
Code:
[userx@FreeBSDefi ~]$ ls /dev/ada*
/dev/ada0    /dev/ada0p3  /dev/ada0p6  /dev/ada1    /dev/ada1s3  /dev/ada1s4
/dev/ada0p1  /dev/ada0p4  /dev/ada0p7  /dev/ada1s1  /dev/ada1s3a /dev/ada1s5
/dev/ada0p2  /dev/ada0p5  /dev/ada0p8  /dev/ada1s2  /dev/ada1s3b /dev/ada1s6

anyone know a fix or work around? Just so I can use UEFI only boot.
 
It's hard to tell what your problem is... screen resolution, dual booting with Linux, booting FreeBSD in UEFI mode in general?
 
It's hard to tell what your problem is... screen resolution, dual booting with Linux, booting FreeBSD in UEFI mode in general?
I got FBSD to boot and install using UEFI with CMS but if I go UEFI without CMS as I am trying to make it all UEFI only, then it still falls to display resolution that needs work.
if it boots in UEFI w/CMS it will switch to 1024x768 which I think maybe the max res it can get with native drivers????
This HP Laptop must be default booting into 1080p its max res screen size. when I boot it UEFI only mode.
chain loading does not work anymore because I don't know the settings for efi
none of these work.....
Code:
bash-5.0# cat /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "FreeBSD A" {
set root='(hd0, 7)'
chainload+
#kfreebsd /boot/loader
}
menuentry "FreeBSD B" {
set root='(hd0, 6)'
kfreebsd /boot/loader
}
menuentry "FreeBSD A" {
set root='(hd0, 7)'
kfreebsd /boot/loader
}
menuentry "FreeBSD A" {
set root='(hd0, 7)'
kfreebsd /boot/loader
}


right now I just got the laptop with WIndows 10 UEFI w/o CMS and Linux UEFI using ELILO and now I am dd FBSD img to usb stick with gpt partition table on the stick. then I am going to try booting it with BIOS set to UEFI only. then see what happens.
7099
7100
7101
 
That looks like an HP BIOS, buggy stuff with the
In boot loader "3. Escape to the loader prompt"
gop set 4
gop set 0

depending on the model you may need to use different numbers, a list of available modes can be retrieved with
gop list
See also: FreeBSD wiki: HP EliteBook 840 G2
 
thanks, it kind of says something about my laptop when there has to be a page written up on it on how to get it to work. There's another one someone else showed my in Linux forums https://wiki.archlinux.org/index.php/HP_EliteBook_840_G1 about UEFI

finding out that efibootmgr does not even work in HP laptops. its hard coded for Windows OS.

Though I have to add that when I chain load it off Linux grub,
Code:
menuentry "FreeBSD 12.1-EFI" {
set root='(hd1,7)'
chainloader /boot/loader.efi
}
that gives me a perfect screen through out the entire boot process, both in UEFI w/CSM 1024x768, and UEFI w/o CSM 1090x1080
 
Back
Top