Re: bootloader-bios interaction

From: Craig Bergren (cbergren_at_tvbox.bergren.us)
Date: 11/24/04

  • Next message: kugle: "ppc kernel kernel access of bad area problem"
    Date: Wed, 24 Nov 2004 22:54:10 GMT
    
    

    On Sun, 21 Nov 2004 21:11:27 +0800, du wrote:

    >
    > "Uday Mullangi" <udaymullangi@lucent.com>
    >> Hi,
    >>
    >> I am looking for the boot sequence for Linux OS (Intel P4 processor) In
    >> particular, where the BIOS finisies the POST and jumps to the
    > predefined
    >> location where the bootloader code is executed. I believe while the BIOS
    > is
    >> running the processor is configured in real mode. So when the bootloader
    >> code is executing, will the processor switch to protected mode?( i am
    >> not
    >

    For a description of the boot process, see this file in the kernel source
    distribution "linux/Documentation/i386/boot.txt". You can download a copy
    from kernel.org.

    > No,bootloader running in real mode then it do not load the whole kernel
    > image.
    > Bootloader only load part of kernel,and jump to it. In the kernel ,there
    > is a asm function named setup() switch the processor to protected mode and
    > call startup_32().The startup_32 do something and load other
    > part of kernel image

    I think this is the sequence for Windoze. I've never seen setup() and
    setup_32() in Linux.

    >> Could anyone give me some pointers about this execution ??

    Look in "linux/arch/i386/boot/setup.S" this is where the bios calls in
    real mode and the switch to protected happens.

    >>


  • Next message: kugle: "ppc kernel kernel access of bad area problem"

    Relevant Pages

    • Re: bootloader-bios interaction
      ... > location where the bootloader code is executed. ... > code is executing, will the processor switch to protected mode?(i am not ... No,bootloader running in real mode then it do not load the whole kernel ...
      (comp.os.linux.embedded)
    • Re: Bios-Bootloader details
      ... where the BIOS finisies the POST and jumps to the ... > predefined location where the bootloader code is executed. ... > the BIOS is running the processor is configured in real mode. ... > bootloader code is executing, will the processor switch to protected ...
      (comp.os.linux.development.system)
    • Re: bootloader-bios interaction
      ... > location where the bootloader code is executed. ... I believe while the BIOS is ... > code is executing, will the processor switch to protected mode?(i am not ... If you have a kernel up to 2.4.x with sources, ...
      (comp.os.linux.embedded)
    • Re: WinCE 5.0 Problems at BootUp x86 HDD
      ... Your Bootloader obviously has support for Ethernet booloading ("Microsoft ... Controller that KITL will use, ... Bootloader code with your NK.BIN code: if you disable KITL in your image ...
      (microsoft.public.windowsce.platbuilder)
    • Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
      ... whereas an ELF file will typically be entered in protected ... quite possibly using the C calling convention to pass the command line as ... that is used after the real mode code has been run. ... it doesn't help if what you end up with for some bootloader is a nonfunctioning kernel. ...
      (Linux-Kernel)