* How does boot loader pass initrd address / size to kernel?
@ 2007-03-15 8:43 Rajat Jain
2007-03-15 13:39 ` Thiemo Seufer
0 siblings, 1 reply; 4+ messages in thread
From: Rajat Jain @ 2007-03-15 8:43 UTC (permalink / raw)
To: linux-mips
Hi,
I'm running an ancient Linux kernel 2.4.20 (please don't ask me why
:-( ) on a MIPS 4KEC. I am experimenting with initrd and my initrd
fails to mount. My bootloader (U-BOOT) coorectly loads the initrd into
RAM as I can see.
I am wondering how does the kernel get to know the address at which
the initrd is loaded by boot loader? How does the boot loader
communicate this to the kernel?
I can see that when emebedding root filesystem into kernel image, the
symbols __rd_start and __rd_end are defined by the linker script and
hence the kernel gets to know. However, how does this happen when
bootloader loads the ramdisk and needs to tell the kernel?
Any code references will be appreciated.
Thanks,
Rajat
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does boot loader pass initrd address / size to kernel?
2007-03-15 8:43 How does boot loader pass initrd address / size to kernel? Rajat Jain
@ 2007-03-15 13:39 ` Thiemo Seufer
2007-03-15 13:43 ` Thiemo Seufer
0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2007-03-15 13:39 UTC (permalink / raw)
To: Rajat Jain; +Cc: linux-mips
Rajat Jain wrote:
> Hi,
>
> I'm running an ancient Linux kernel 2.4.20 (please don't ask me why
> :-( ) on a MIPS 4KEC. I am experimenting with initrd and my initrd
> fails to mount. My bootloader (U-BOOT) coorectly loads the initrd into
> RAM as I can see.
>
> I am wondering how does the kernel get to know the address at which
> the initrd is loaded by boot loader? How does the boot loader
> communicate this to the kernel?
>
> I can see that when emebedding root filesystem into kernel image, the
> symbols __rd_start and __rd_end are defined by the linker script and
> hence the kernel gets to know. However, how does this happen when
> bootloader loads the ramdisk and needs to tell the kernel?
http://www.linux-mips.org/wiki/Kernel_Command_Line_Arguments mentions
rd_start and rd_size which are used for this purpose.
Thiemo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does boot loader pass initrd address / size to kernel?
2007-03-15 13:39 ` Thiemo Seufer
@ 2007-03-15 13:43 ` Thiemo Seufer
2007-03-16 5:08 ` Rajat Jain
0 siblings, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2007-03-15 13:43 UTC (permalink / raw)
To: Rajat Jain; +Cc: linux-mips
Thiemo Seufer wrote:
> Rajat Jain wrote:
> > Hi,
> >
> > I'm running an ancient Linux kernel 2.4.20 (please don't ask me why
> > :-( ) on a MIPS 4KEC. I am experimenting with initrd and my initrd
> > fails to mount. My bootloader (U-BOOT) coorectly loads the initrd into
> > RAM as I can see.
> >
> > I am wondering how does the kernel get to know the address at which
> > the initrd is loaded by boot loader? How does the boot loader
> > communicate this to the kernel?
> >
> > I can see that when emebedding root filesystem into kernel image, the
> > symbols __rd_start and __rd_end are defined by the linker script and
> > hence the kernel gets to know. However, how does this happen when
> > bootloader loads the ramdisk and needs to tell the kernel?
>
> http://www.linux-mips.org/wiki/Kernel_Command_Line_Arguments mentions
> rd_start and rd_size which are used for this purpose.
... and they IIRC didn't exist in 2.4.20, but e.g. Debian's 2.4 mips
kernels carry a patch to add such support.
Thiemo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does boot loader pass initrd address / size to kernel?
2007-03-15 13:43 ` Thiemo Seufer
@ 2007-03-16 5:08 ` Rajat Jain
0 siblings, 0 replies; 4+ messages in thread
From: Rajat Jain @ 2007-03-16 5:08 UTC (permalink / raw)
To: Thiemo Seufer; +Cc: linux-mips
On 3/15/07, Thiemo Seufer <ths@networkno.de> wrote:
> Thiemo Seufer wrote:
> > Rajat Jain wrote:
> > > Hi,
> > >
> > > I'm running an ancient Linux kernel 2.4.20 (please don't ask me why
> > > :-( ) on a MIPS 4KEC. I am experimenting with initrd and my initrd
> > > fails to mount. My bootloader (U-BOOT) coorectly loads the initrd into
> > > RAM as I can see.
> > >
> > > I am wondering how does the kernel get to know the address at which
> > > the initrd is loaded by boot loader? How does the boot loader
> > > communicate this to the kernel?
> > >
> > > I can see that when emebedding root filesystem into kernel image, the
> > > symbols __rd_start and __rd_end are defined by the linker script and
> > > hence the kernel gets to know. However, how does this happen when
> > > bootloader loads the ramdisk and needs to tell the kernel?
> >
> > http://www.linux-mips.org/wiki/Kernel_Command_Line_Arguments mentions
> > rd_start and rd_size which are used for this purpose.
Ah thanks a lot ... this is what I was looking for.
Rajat
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-16 5:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 8:43 How does boot loader pass initrd address / size to kernel? Rajat Jain
2007-03-15 13:39 ` Thiemo Seufer
2007-03-15 13:43 ` Thiemo Seufer
2007-03-16 5:08 ` Rajat Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox