Greetings.
For a month now I have been tormented by this question, but there is no information anywhere (at least I did not find it).
I am doing something similar to CosmosOS but in a different programming language. But I do it all on Windows. I could use WSL (if there was a 10 version of Windows) or another Linux emulation, but this negates the entire cross-platform of my "analog" CosmosOS.
If anyone is not difficult, I would like to see a "minimal guide" with syslinux: all you need is the bootloader code, a small kernel, and the command to compile them.
Very grateful in advance.
osdev with syslinux?
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: osdev with syslinux?
Follow these instructions to install it.
Follow these instructions to configure it.
Use any Multiboot kernel. Here's one you can use.
Follow these instructions to configure it.
Use any Multiboot kernel. Here's one you can use.
You can still install Windows 10 as a free upgrade to Windows 7 or 8, as long as your hardware is compatible. (Back up your files first!)Timofeyka wrote:I could use WSL (if there was a 10 version of Windows)
Re: osdev with syslinux?
Unfortunately I can not. The hardware is not compatible. But thank you for your help!Octocontrabass wrote:Follow these instructions to install it.
Follow these instructions to configure it.
Use any Multiboot kernel. Here's one you can use.
You can still install Windows 10 as a free upgrade to Windows 7 or 8, as long as your hardware is compatible. (Back up your files first!)Timofeyka wrote:I could use WSL (if there was a 10 version of Windows)
Re: osdev with syslinux?
Syslinux uses the Linux x86 boot protocol. To support it, you need to place some specific values at specified offsets in your kernel file, that's all. There's no special command (save the one that installs syslinux of course).Timofeyka wrote:If anyone is not difficult, I would like to see a "minimal guide" with syslinux: all you need is the bootloader code, a small kernel, and the command to compile them.
Code: Select all
syslinux.exe --mbr --active --directory /boot/syslinux/ --install z:
Cheers,
bzt
Re: osdev with syslinux?
Thanks to.bzt wrote:Syslinux uses the Linux x86 boot protocol. To support it, you need to place some specific values at specified offsets in your kernel file, that's all. There's no special command (save the one that installs syslinux of course).Timofeyka wrote:If anyone is not difficult, I would like to see a "minimal guide" with syslinux: all you need is the bootloader code, a small kernel, and the command to compile them.(native Windows app, no need for WSL).Code: Select all
syslinux.exe --mbr --active --directory /boot/syslinux/ --install z:
Cheers,
bzt
I hate to sound selfish, but could you provide a minimal example with syslinux?
Re: osdev with syslinux?
I don't think there's any. I'm afraid you'll have to write that yourself. But read carefully the links I've given, it shouldn't be hard.Timofeyka wrote:I hate to sound selfish, but could you provide a minimal example with syslinux?
You can take a look at my implementation. It is just a 127 bytes long struct at offset 0x1F1. (My loader is not a simple tutorial, but cutting out the linux boot protocol part should be simple. I just set the starting address right after the struct, and then it jumps to the same address other protocols use.)
Cheers,
bzt