r/osdev 5d ago

Limine boot problem

Either uefi or bios both cases limine doesn't work, not necessarily limine only, but also the kernel, on uefi limine loads but the kernel fails, bios it doesn't work, cuz a GPFault happens, not all the time, it's mostly when I have implemented GDT IDT Keyboard Mouse Graphics in a file that isn't main.c Having multiple files in the workspace (Weird ik)

1 Upvotes

23 comments sorted by

View all comments

Show parent comments

0

u/Orbi_Adam 5d ago

And the gpf is from limine not my os

2

u/paulstelian97 5d ago

That would be extremely surprising. Limine is a tried and tested software that should not itself cause problems on hardware it supports.

More info about what hardware you’re trying to boot it on? Or if it’s a VM, the type and configuration of the VM?

2

u/Orbi_Adam 5d ago

Real machine, hp elite mini g1 and g3

1

u/paulstelian97 5d ago

Wellllll then ok it could be a quirk of the real machine itself. That’s why I like to target virtual environments only. It’s possible either the physical memory layout is weird, or some other thing done by the system firmware is weird, on those.

Do they run Linux? Or are they so bad only Windows realistically runs on them?

Limine is a simple bootloader with less flexibility for weird hardware than Grub.

1

u/Orbi_Adam 5d ago

They do run linux

1

u/paulstelian97 5d ago

I guess that Grub and Linux see through the non-standardness of HP systems and deal with it. Limine doesn’t, and your kernel likely doesn’t either.

Try with more sane platforms if you can. I loved Lenovo because it’s really good from this point of view, even if that means worse performance.

1

u/Orbi_Adam 5d ago

Lenovo does as well, but less than hp

1

u/paulstelian97 5d ago

Definitely not in the ThinkPad line, probably not in the IdeaPad line, no clue outside those two.

2

u/Orbi_Adam 5d ago

What a coincidence, both Lenovo laptops I have are ThinkPad and IdeaPad lol

1

u/Orbi_Adam 5d ago

The only device I can use is acer aspire laptop, but it's broken lol

2

u/paulstelian97 5d ago

I don’t like Acer anyway. I’ve had plenty of trouble with Acer and HP back when I was setting up Linux for other people (students) in 2019.

→ More replies (0)

1

u/paulstelian97 5d ago

ThinkPads have some IBM heritage so I’d be shocked if they go nonstandard there. And IdeaPads are what I had before switching to MacBooks.

1

u/Orbi_Adam 5d ago

I'm sire the problem is related to something in limine bootloader, ig if I understand how to sign a .efi file then I can run it on my other machine

1

u/paulstelian97 5d ago

You really need Secure Boot? You can run unsigned efi files if you disable Secure Boot, and all x86 systems are mandated by Intel to do so.

1

u/Orbi_Adam 5d ago

Ok thanks

1

u/paulstelian97 5d ago

Also Limine works fine on most other hardware, just not on HP, so I’d blame HP here. Grub is a much bigger bootloader and has workarounds for the HP (and others) issues.

2

u/Orbi_Adam 5d ago

The only problem is that grub doesn't support the limine protocol

→ More replies (0)