Re: initrd support.

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

 



moreau francis wrote:
> Hi,
> 
> I'm going to use initrd to mount my root fs, but I was
> wondering what its status...
> I have noticed in boot directory addinitrd program
> that seems to add an initrd image right after the
> kernel.
> But there's also a section in kernel/vmlinux.lds.S
> called
> .initrd that includes initrd image during kernel 
> compilation.
> 
> Why are there two different ways of using initrd ?

Actually, there are three:
- the generic initramfs method for compiled in initrds
- the addinitrd method to attach a initrd to a precompiled kernel
  image (which is old, and essentially unmaintained)
- the rd_start/rd_size method, which allows a bootloader to load both
  kernel and initrd images into memory and then tells the kernel via
  the rd_start/rd_size parameters where the initrd is located

> Which one I should use ?

Depends on your machine/bootloader and how much flexibility you want.


Thiemo


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux