OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 3:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: osdev with syslinux?
PostPosted: Sun Aug 15, 2021 10:29 am 
Offline

Joined: Sat Aug 07, 2021 6:46 am
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: osdev with syslinux?
PostPosted: Mon Aug 16, 2021 8:19 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5103
Follow these instructions to install it.

Follow these instructions to configure it.

Use any Multiboot kernel. Here's one you can use.

Timofeyka wrote:
I could use WSL (if there was a 10 version of Windows)

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!)


Top
 Profile  
 
 Post subject: Re: osdev with syslinux?
PostPosted: Tue Aug 17, 2021 2:13 am 
Offline

Joined: Sat Aug 07, 2021 6:46 am
Posts: 4
Octocontrabass wrote:
Follow these instructions to install it.

Follow these instructions to configure it.

Use any Multiboot kernel. Here's one you can use.

Timofeyka wrote:
I could use WSL (if there was a 10 version of Windows)

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!)


Unfortunately I can not. The hardware is not compatible. But thank you for your help!


Top
 Profile  
 
 Post subject: Re: osdev with syslinux?
PostPosted: Tue Aug 17, 2021 7:54 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
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.
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).
Code:
syslinux.exe --mbr --active --directory /boot/syslinux/ --install z:
(native Windows app, no need for WSL).

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: osdev with syslinux?
PostPosted: Tue Aug 17, 2021 12:10 pm 
Offline

Joined: Sat Aug 07, 2021 6:46 am
Posts: 4
bzt wrote:
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.
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).
Code:
syslinux.exe --mbr --active --directory /boot/syslinux/ --install z:
(native Windows app, no need for WSL).

Cheers,
bzt

Thanks to.

I hate to sound selfish, but could you provide a minimal example with syslinux?


Top
 Profile  
 
 Post subject: Re: osdev with syslinux?
PostPosted: Wed Aug 18, 2021 8:26 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
Timofeyka wrote:
I hate to sound selfish, but could you provide a minimal example 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.
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], Majestic-12 [Bot] and 121 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group