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

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

 



Hi,

> I am wondering how does the kernel get to know the address at which
> the initrd is loaded by boot loader?

u-boot can pass the initrd location and size as argument to the kernel.

Which kernel command line argument is that? I could only find
"initrd=<PATH>". My understanding is that  the u-boot loads the
ramdisk image from flash to RAM and needs to pass the ADDRESS (in
memory) & SIZE of ramdisk. Whereas the "initrd=" option is used to
pass a initrd file location on a filesystem?


initrd documentation:
http://lxr.linux.no/source/Documentation/initrd.txt

> Any code references will be appreciated.

I think it is setup.S (arch/<architecture>/boot) where it is assigned:
http://lxr.linux.no/source/arch/i386/boot/setup.S

Any MIPS info?

Thanks,

Rajat

SK

--
Shakthi Kannan
http://www.shakthimaan.com


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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