Solved Trying to install FreeBSD 13.0 on HP ZBook 15 G6

huginn

New Member

Reaction score: 1
Messages: 5

Hi,
I am trying to install Free BSD on HP ZBook 15 G6 following handbook. I didn't get very far because my computer freezes after BOOT Menu and printing
Code:
masks 0x00ff0000 0x0000ff00 0xff000000
.
I did try "safe mode" but nothing changed.
I am pretty intrigued by the fact that FreeBSD 14.0 boots without any problems.

As far as I understand 14.0 is Work In Progress version and shouldn't be used as a "daily driver".

I found few threads on the mailing list about problems similar to mine but did not find any solutions.
 
OP
huginn

huginn

New Member

Reaction score: 1
Messages: 5

After enabling Legacy mode in BIOS and booting my pendrive I get few lines of text for split second and after that booting process crashes. From what I was able to spot something about kernel and disks in the system is printed.

Not sure if this is relevant but I am using FreeBSD-13.0-RELEASE-amd64-memstick.img and I have Windows and Linux currently installed on two separate SSD drives.
 

fel1x

Member

Reaction score: 25
Messages: 72

Can you post your laptop's spec(cpu, RAM, HDD) and the usb you used? And I think we can solve this quickly if you attach a video that has the booting moment.
 
OP
huginn

huginn

New Member

Reaction score: 1
Messages: 5

It's probably this PR 209821. It's fixed on -current, what you can do is grab loader.efi on a recent -current and put it in the ESP.
I might be misunderstanding something, but from what I understand from uefi(8) loader.efi is created/installed during installation process.
I am not sure how installing FreeBSD 14.0-current will affect ability to boot Live CD or installer from a pendrive.

Crap, you'll probably need a -current kernel...
Unless this scary sentence means that previous message is not relevant in my case.

Is there some kind of guide that might help me with swapping kernel? I am new to FreeBSD, but I work as a programmer so with some guide/tips I am confident that I can manage.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,274
Messages: 38,775

Is there some kind of guide that might help me with swapping kernel?
No, because FreeBSD comes as a whole. Running a different version of the kernel compared to the userland is not a supported configuration.

Also note that -CURRENT is a unsupported, development version.
 
OP
huginn

huginn

New Member

Reaction score: 1
Messages: 5

I am aware that -CURRENT is a development version this is why I was looking for a way to install 13.0-RELEASE despite all the problems.

In that case I will wait for the 14.0-CURRENT to become 14.0-RELEASE.

Thank you for all your help and patience.
 

astyle

Daemon

Reaction score: 458
Messages: 1,068

Yeah, ABI mismatch between kernel and userland is recipe for a hard-to-debug crash.
That's why FreeBSD has a development process in place - somebody needs to have the discipline to do reasonably thorough testing of changes to code before saying, "OK, this works, we stand behind it, to the extent it's used as intended".

There are 14-CURRENT iso's available that OP can try (instead of 13-RELEASE), those bowls of jell-o are at least set. But like real jell-o, the flavors are experimental, and not meant to be served to customers. I wonder if anyone can understand my analogy here.
 

acheron

Aspiring Daemon
Developer

Reaction score: 323
Messages: 778

I might be misunderstanding something, but from what I understand from uefi(8) loader.efi is created/installed during installation process.
I am not sure how installing FreeBSD 14.0-current will affect ability to boot Live CD or installer from a pendrive.


Unless this scary sentence means that previous message is not relevant in my case.

Is there some kind of guide that might help me with swapping kernel? I am new to FreeBSD, but I work as a programmer so with some guide/tips I am confident that I can manage.
You can replace the EFI loader, it's located on the ESP (usually it's the first partition, formatted as fat32, gpart show -l will give you more info)
Something like this should do it (replace ada0 with the name of your disk):
Makefile:
mount_msdosfs /dev/ada0p1 /mnt
cp /boot/loader.efi /mnt/efi/boot/BOOTx64.efi

You can put the CURRENT kernel in say /boot/kernel.current/ (you can fetch on here https://download.freebsd.org/ftp/snapshots/amd64/14.0-CURRENT/kernel.txz). When you reboot you can choose at the loader prompt which kernel you want to boot.

You can use a 14-CURRENT kernel with a 13.x-RELEASE (or 12.x) userland.
 

astyle

Daemon

Reaction score: 458
Messages: 1,068

You can replace the EFI loader, it's located on the ESP (usually it's the first partition, formatted as fat32, gpart show -l will give you more info)
Something like this should do it (replace ada0 with the name of your disk):
Makefile:
mount_msdosfs /dev/ada0p1 /mnt
cp /boot/loader.efi /mnt/efi/boot/BOOTx64.efi

You can put the CURRENT kernel in say /boot/kernel.current/ (you can fetch on here https://download.freebsd.org/ftp/snapshots/amd64/14.0-CURRENT/kernel.txz). When you reboot you can choose at the loader prompt which kernel you want to boot.

You can use a 14-CURRENT kernel with a 13.x-RELEASE (or 12.x) userland.
yeah, you can, but it's better to compile the two on the same machine for best results. Depends on how adventurous you are, and whether or not you're willing to put up with unpredictable crashes and spending time reinstalling the system from scratch. That's the kind of territory you're stepping into. Nothing wrong with with that, but you might need to re-calibrate your expectations from ground up.
 
OP
huginn

huginn

New Member

Reaction score: 1
Messages: 5

"Unsupported" and "experimental" doesn't mix well with "I want a stable machine".
So I will wait for the 14.0 to become -RELEASE and maybe meanwhile look for old(-er) ThinkPad. For sure I am not giving up on FreeBSD. ;)

BTW I really like the jell-o analogy, I might use it in the future.
 
Top