OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:39 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: General Master Boot Record
PostPosted: Tue Oct 10, 2017 10:36 am 
Offline
Member
Member

Joined: Thu Jul 05, 2012 5:12 am
Posts: 923
Location: Finland
Here is my new release (but it is not stable).

**** MBR (GPT) ****

  • GPT supported.
  • TPM supported.
  • Good support for different block sizes.
  • Defensive programming taken very seriously.

This this is quite complex but assembly programmers may find some interesting tricks. TPM support was new for me and I would like to hear some comments about its implementation.

_________________
Undefined behavior since 2012


Top
 Profile  
 
 Post subject: Re: General Master Boot Record
PostPosted: Wed Oct 11, 2017 1:34 am 
Offline
Member
Member

Joined: Thu Jul 05, 2012 5:12 am
Posts: 923
Location: Finland
This is the last post from me in a row on this topic.

I don't have a clear opinion on the "hybrid El-Torito CD / HD image" but it sounds a bit scary. However, if that is a de-facto standard, the MBR (GPT) can be "misused" like this:

Code:
    Hybrid El-Torito CD / HD image

0x0000_0000 to 0x0000_01FF      MBR (GPT)
0x0000_1000 to 0x0000_1FFF      GPT (HEADER)
0x0000_2000 to 0x0000_7FFF      GPT (PARTITION ENTRIES)
0x0000_8000 to 0x????_????      "IS0 9660 + El Torito" structures
0x????_???? to <end of media>   GPT (PARTITION ENTRIES + HEADER)

    The MBR (GPT) can be started like this (at 0x00007C00):

- HD image, sector sizes 512, 1024, 2048 or 4096. Alternate GPT structures are probably at wrong location but MBR code supports this.
- El-Torito, reads LBA 0, hd-emulation, e.g. sector size 512.
- El-Torito, reads LBA 0, no-emulation, e.g. sector size 2048.


The nice thing is that the boot manager is always started. For HD images, one feature is that perhaps other operating systems don't see "the hack" because for them the HD is a "legacy disk with one unknown partition covering everything."

This is not a good solution but please compare it to the "things that are already done" in the Linux world. Also, please note that all this has nothing to do with MBR's ability to work for its intended purpose. This hybrid El Torito discussion is a side track. Most likely I will not implement Hybrid El-Torito CD / HD image.

_________________
Undefined behavior since 2012


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

All times are UTC - 6 hours


Who is online

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