Hello,

First.
Thanks fo Ori Idan and Guy Keren (which answered as a mulix replacement);
Second:
Idan said:

The bootloader loads the initrd file from disk to memory so it knows
exactly where it starts and it knows the end of it which is the start
address + size of file. The boot loader puts this information into PARAM block which is a block
of memory the kernel reads when it loads.

1) First , from looking a bit at the code , I assume that the PARAM block Idan talks about is : (in the case of i386) unsigned char __initdata boot_params[PARAM_SIZE]; from arch/i386/kernel/setup.c can you verify it ?

2) Regarding to use or not use initrd : I understand that in this array there
is the start and end address of initrd (in case
there is initrd entry in grub.conf) ; is there something in the boot_params
array which says to use or not to use initrd?


Regards,
Dan




From: Ori Idan <[EMAIL PROTECTED]>
To: guy keren <[EMAIL PROTECTED]>
CC: Dan Kaspi <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: Initrd entry in grub.conf and loading initrd in the kernel code
Date: Fri, 17 Dec 2004 10:09:54 +0200



4. the question that remans - how does the boot loader know where to find
initrd_start and initrd_end? does it look their location directly in the
kernel's elf file and updates their contents? naah... this is done in the
architecture-specific code (e.g. for i386, in arch/i386/kernel/setup.c -
look for initrd_start there).

follow the yellow-break road....



The bootloader loads the initrd file from disk to memory so it knows exactly where it starts and it knows the end of it which is the start address + size of file.

The boot loader puts this information into PARAM block which is a block of memory the kernel reads when it loads. In other architectures this usualy passed to the processor via registers (R3 in case of PPC).

--

Ori Idan



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/



================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to