OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 3:50 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Sortix 0.9
PostPosted: Mon Jan 05, 2015 6:15 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
KemyLand wrote:
Just don't do what Linux does (decompress itself with a stub :roll: ). That would make debugging impossible, and would require a lot of black magic and games with the ELF format.

I believe it would be better if the bootloader did the decompression. This is a nice separation of duties.
KemyLand wrote:
Personally, (although you didn't said anything about it) I prefer to have only drivers and executables on the ramdisk, and assets and that kind of stuff somewhere in a ext* filesystem 8)

I actually prefer to not take a stance on this. The ramdisk contains an initial filesystem. It can be as minimal as it wants: It could just contain an init and ext2 driver, which is used to locate and mount the real root filesystem. Or, it can be a fully fledged environment as in Sortix 0.9. The kernel doesn't and shouldn't care.


Top
 Profile  
 
 Post subject: Re: Sortix 0.9
PostPosted: Mon Jan 05, 2015 6:42 pm 
Offline
Member
Member
User avatar

Joined: Mon Jun 16, 2014 5:33 pm
Posts: 213
Location: Costa Rica
sortie wrote:
KemyLand wrote:
Personally, (although you didn't said anything about it) I prefer to have only drivers and executables on the ramdisk, and assets and that kind of stuff somewhere in a ext* filesystem 8)

I actually prefer to not take a stance on this. The ramdisk contains an initial filesystem. It can be as minimal as it wants: It could just contain an init and ext2 driver, which is used to locate and mount the real root filesystem. Or, it can be a fully fledged environment as in Sortix 0.9. The kernel doesn't and shouldn't care.

Any rational kernel won't care about these things. Anyway, a big RD is just not my model 8) .

_________________
Happy New Code!
Hello World in Brainfuck :D:
Code:
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.


Top
 Profile  
 
 Post subject: Re: Sortix 0.9
PostPosted: Mon Jan 05, 2015 7:06 pm 
Offline
Member
Member
User avatar

Joined: Wed Mar 21, 2012 3:01 pm
Posts: 930
Do note that I don't expect actual Sortix installations that use permanent root filesystems to have large ramdisk. My few such installations use a minimal ramdisk containing an init, mbr and ext2 drivers, and configuration that tells init to look for a partition containing an ext2 filesystem with the desired UUID, which is to be mounted and chroot'd into, and the next init be run. Such a ramdisk is at most a megabyte.

The key point here is that the ramdisk can be any size and used for any purpose. The ramdisk environment is not a second class citizen, it's an actual fully fledged instance of my operating system.

In happier news, I've discovered the xzio GRUB module. I can use this to transparently decompress the kernel and initrd upon boot. With fast multithreaded xz compression and high compression ratios, I think that's a pretty good trade-off, for a bit higher boot times and that users don't have to decompress iso files themselves.


Top
 Profile  
 
 Post subject: Re: Sortix 0.9
PostPosted: Thu Jan 08, 2015 3:21 am 
Offline
Member
Member
User avatar

Joined: Sat Dec 27, 2014 9:11 am
Posts: 901
Location: Maadi, Cairo, Egypt
Wow! Great work Sortie! Now I'm jealous.. Only kidding! :D
Keep it up!

_________________
You know your OS is advanced when you stop using the Intel programming guide as a reference.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 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