Search found 12 matches

by bzt
Wed Dec 20, 2023 5:54 pm
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

Just a blank black screen after the blue boot screen. So after the blue screen, then this must be the ACPI code. Can it be that ds register isn't set when accessing BOOT_LO variables? Yes. Please try this: diff -r -U 3 aaa/kernel/boot/bootcode.inc bbb/kernel/boot/bootcode.inc --- aaa/kernel/boot/bo...
by bzt
Tue Dec 19, 2023 11:20 pm
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

Sorry, I still can't get your patch working. What seems to be the problem? Any messages, screenshot? Maybe I'm doing something wrong but the kernel doesn't boot from floppy or hdd. This patch changed nothing about anything related to those. In fact, even the biosboot.bin should be unchanged for tha...
by bzt
Sat Dec 16, 2023 3:50 am
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

Okay, thanks for the input, here's the final patch then for the unified kernel! This includes everything we've talked about, has no "if defined UEFI", and the header is the small one with "KolibriOS" as you've asked. Hope it's going to be useful for others as well! Tested on BIOS...
by bzt
Thu Dec 14, 2023 6:32 am
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

You were right, I focused on kernel.mnt only, uefi4kos indeed did not compile! I wrote too much AT&T syntax lately, I accidently swapped the parameters. But I agree that check is unnecessary if we're only about to support the latest kernel. I give it a little more thought, and here's a third alt...
by bzt
Wed Dec 13, 2023 2:44 pm
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

I tried your unified_kernel.zip patch and it doesn't compile. That's strange, maybe different fasm versions? I could compile it, see kernel.mnt in the zip. Anyway, you're right this isn't needed at all, enough to support the latest. I'm afraid that bootbios doesn't zero acpi_rsdp, devicesdat_* It d...
by bzt
Mon Dec 11, 2023 9:50 pm
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

Okay, here's a patch to help you with the unification. (Again, this does not change boot flow, it just removes the need for "if" macros.) First, this patch moves the BIOS based RSDP search from init.inc to bootcode.inc. This way init.inc can be firmware neutral, it shouldn't care where tha...
by bzt
Mon Dec 11, 2023 8:02 pm
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

Indeed, jumping directly to the 32-bit code was one of reasons to separate BIOS code to bootbios.asm. Another reason was to avoid dead 16-bit code when booting on modern UEFI systems. Yes, but I think you shouldn't worry about that dead code. It's just a few kilobytes, and it provides backward comp...
by bzt
Mon Dec 11, 2023 7:14 pm
Forum: Boot-loader
Topic: How to boot Kolibri in protected mode?
Replies: 2
Views: 835

Re: How to boot Kolibri in protected mode?

Ah, thank you so much, that was it!

Cheers,
bzt
by bzt
Mon Dec 11, 2023 3:38 am
Forum: Boot-loader
Topic: How to boot Kolibri in protected mode?
Replies: 2
Views: 835

How to boot Kolibri in protected mode?

Hi, I'm trying to write a boot loader for KolibriOS. It already works in real mode on BIOS, but I also want to support UEFI, so I'm trying to start the Kolibri kernel in protected mode (related topic ). The kernel boots fine, it can use the lfb, memory is detected correctly, everything seems to be w...
by bzt
Mon Dec 11, 2023 12:48 am
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Re: Booting kernel

So what do you think? I'd love to have a simple way of locating the protected mode entry point, and then BIOS and UEFI could use the same kernel file.

Cheers,
bzt
by bzt
Mon Dec 11, 2023 12:41 am
Forum: English
Topic: Installing KollibriOS
Replies: 2
Views: 2679

Re: Installing KollibriOS

I cannot find the HD_load folder and thus neither the HD_load\mtldr_installer.exe file either. You can download several different files. latest-raw.7z contains kolibri.raw and Rawrite32kos.exe (dd for Windows), while latest-distr.7z contains everything, including the HD_load folder. You have probab...
by bzt
Sat Dec 09, 2023 8:44 am
Forum: Kernel
Topic: Booting kernel
Replies: 14
Views: 224349

Booting kernel

Dear KolibriOS developers! First, sorry, I don't speak Russian. Second, I really like what you have done here. So much so, that I've decided to support it in my current project. I'm working on a FOSS, GPL'd boot manager Easyboot , which supports both BIOS and UEFI, and can already load several kerne...