CPIO Kernel Image Build Order for initramfs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Charles,
Quoted 6 lines · Charles Lohr
(Forgive me if this list isn't for questions, please direct me to the right place. This is my first message to the list)
I want to build full executable images, with the rootfs built into the kernel without compression, so I'm using CPIO. But, buildroot doesn't seem to like this when starting from a clean slate.
You can enable this under 'Filesystem images' -> 'Initial RAM filesystem linked into Linux kernel' (BR2_TARGET_ROOTFS_INITRAMFS). This will execute the steps you now perform manually.
Quoted 6 lines
It wants to build the kernel before the image, but if I do that, I get this error.
make[4]: *** No rule to make target '../../images/rootfs.cpio', needed by '
usr/initramfs_inc_data'. Stop.
Quoted 6 lines
Right now, my process is: touch an empty images/rootfs.cpio file, compile, touch the kernel config, recompile and this works but it's yucky.
What is the "right" answer?
Charles
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thank you!
Quoted 28 lines · On Thu, Nov 24, 2022, 04:00 Andreas Ziegler <[email protected]> wrote:
Hi Charles,
Quoted 8 lines · Charles Lohr
(Forgive me if this list isn't for questions, please direct me to the right
place. This is my first message to the list)I want to build full executable images, with the rootfs built into the kernel without compression, so I'm using CPIO. But, buildroot doesn't seem
to like this when starting from a clean slate.You can enable this under 'Filesystem images' -> 'Initial RAM filesystem linked into Linux kernel' (
BR2_TARGET_ROOTFS_INITRAMFS). This will execute the steps you now perform manually.Quoted 12 lines
It wants to build the kernel before the image, but if I do that, I get this
error.make[4]: *** No rule to make target '../../images/rootfs.cpio', needed by
'usr/initramfs_inc_data'. Stop.Right now, my process is: touch an empty images/rootfs.cpio file, compile,
touch the kernel config, recompile and this works but it's yucky.
Quoted 7 lines
Quoted 3 lines
What is the "right" answer?
Charles
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot