Re: How does boot loader tell the kernel, the location of initrd?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Rajat Jain wrote:
> Hi,
> 
> 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?
> 
> Any code references will be appreciated.

Perhaps lib_mips/mips_linux.c in the U-Boot tree is what you are looking for.
That code sets up environment parameters that are parsed by the Linux kernel
later on (see rd_start_early() and friends in arch/mips/kernel/setup.c in the
Linux tree).

Hope that helps,
Thierry

> Thanks,
> 
> Rajat
> 
> PS: I am not using initramfs (emebedding root filesystem into kernel image).

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux