AnsweredAssumed Answered

Linux using ramdisk for rootfs on p2020rdb

Question asked by Matt T on Nov 12, 2018
Latest reply on Nov 15, 2018 by Matt T

Hi all,

I have some questions about loading rootfs into RAM on p2020rdb. After some investigation, it seems there are mainly two ways to do this: One is using initrd, the other one is using initramfs.

Questions I have:

1. How to create the cpio archive for initramfs (either manually or by Yocto build core-image-minimal)?

2. What is the Linux kernel command line like if we use initramfs rather than initrd?

I am not sure how Linux kernel decides to use initrd or initramfs. My guess is passing in different parameters decides which method to use.

If this is the case, what are the command lines for these two cases?

If this is not the case, can someone explain how to tell kernel to use initramfs?


Thank you.