OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 11:39 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New boot-loader for RDOS that handles USB discs
PostPosted: Sun Dec 02, 2012 1:30 pm 
Online
Member
Member

Joined: Wed Oct 01, 2008 1:55 pm
Posts: 3193
I just rewrote one of the ancient parts of RDOS (the custom bootloader). Previously, this loader ignored BIOS and attempted to boot from an IDE-drive with IO-port accesses. This was ok before, but now with USB discs and similar, it's just bad design. The new version uses the BIOS LBA interface to boot. This also means I can now boot from USB-discs, which would be handy for producing production CF discs without using Partition magic or Windows. I could create a special application that is embedded in the OS image that creates a bootable disk on a new CF disc without user intervention.


Top
 Profile  
 
 Post subject: Re: New boot-loader for RDOS that handles USB discs
PostPosted: Sat Feb 02, 2013 1:14 pm 
Online
Member
Member

Joined: Wed Oct 01, 2008 1:55 pm
Posts: 3193
I just solved another problem in the custom boot-loader. The custom boot-loader used it's own memory detection, and this does work on the production systems since ACPI is not used, and thus corrupting ACPI-tables doesn't matter. On the new Intel Atom based hardware this no longer works, and RDOS refuses to boot.

I solved the issue by using BIOS for the memory map, and let the boot-loader convert it to a GRUB-compatible map (not a big deal). Thus, now both the GRUB boot-method and the custom boot-loader delivers memory information in the same way.

I also discovered that the GRUB boot method marks the pages in the boot-image as free, potentially allowing them to be allocated (and so does the new custom boot-loader). This is solved early in the kernel by modifying the GRUB-compatible memory information. It seems better to do this in the kernel rather than in the boot-loader. The kernel also gets the base and size of the OS image passed to it, so it can do this quite easily.


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

All times are UTC - 6 hours


Who is online

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