lkml.org 
[lkml]   [2012]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [question] x86/x86_64 boot process
On 06/12/2012 02:14 PM, Brandon Falk wrote:
> All I really see related to the post-setup stage is:
>
> 'The 32-bit (non-real-mode) kernel starts at offset (setup_sects+1)*512
> in the kernel file (again, if setup_sects == 0 the real value is 4.)
> It should be loaded at address 0x10000 for Image/zImage kernels and
> 0x100000 for bzImage kernels.'
>
> I've read this document a few times, and it doesn't seem to mention if
> the kernel assists in loading. Do I have to load up the whole
> protected-mode kernel? Just the first few sectors? I guess that's what
> I'm trying to figure out, and I feel the boot.txt has not answered
> that for me.
>

I would also strongly discourage you from writing a new bootloader if
you can avoid it. You *certainly* want to avoid the use of the fixed
0x90000 address, that is a decade obsolete.

-hpa



\
 
 \ /
  Last update: 2012-06-13 00:02    [W:0.057 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site