Skip to contentSkip to conversation

How to include initrd.cpio to image

DISCUSSION Gmane Admin 1 participant 2 messages May 3, 2020 – May 24, 2020 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Op 30-04-2020 om 23:33 schreef Gmane Admin:

Quoted 9 lines

I am generating core-image-minimal-initramfs-edison.cpio.gz which is found in the deploy-core-image-minimal-initramfs-image-complete/ directory.

When I build my image edison-image initrd gets included and deployed in edison-image-edison.hddimg. But I am not using that.

I also generate edison-image-edison.ext4 which has bzImage kernel in /boot. But by Zeus, I have no idea how to get edison-image to install a file from the other recipe's deploy.

To me it doesn't make sense to include bzImage without initrd, kernel will not be able to load the rootfs without.

I know I can bundle the initramfs, and that has worked fine before. Until kernel + initrd grew above 15MB, now U-Boot won't load it. I have now kernel = 10MB + initrd = 10MB which boot fine when I copy initrd to /boot manually.

Gmane is crazy. It's me, Ferry.

I'm still stick here. Any ideas?

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Op 03-05-2020 om 13:42 schreef Gmane Admin:

Quoted 7 lines

Op 30-04-2020 om 23:33 schreef Gmane Admin:

Quoted 6 lines

I am generating core-image-minimal-initramfs-edison.cpio.gz which is found in the deploy-core-image-minimal-initramfs-image-complete/ directory.

When I build my image edison-image initrd gets included and deployed in edison-image-edison.hddimg. But I am not using that.

I also generate edison-image-edison.ext4 which has bzImage kernel in /boot. But by Zeus, I have no idea how to get edison-image to install a file from the other recipe's deploy.

Quoted 7 lines
Quoted 3 lines

To me it doesn't make sense to include bzImage without initrd, kernel will not be able to load the rootfs without.

I know I can bundle the initramfs, and that has worked fine before. Until kernel + initrd grew above 15MB, now U-Boot won't load it. I have now kernel = 10MB + initrd = 10MB which boot fine when I copy initrd to /boot manually.

Gmane is crazy. It's me, Ferry.

I'm still stuck here. Any ideas?

Self answering, I added this to my image recipe:

ROOTFS_POSTPROCESS_COMMAND += "install_initrd; "

install_initrd() {
bbnote "Adding initrd to image ${IMAGE_ROOTFS}" install -d {IMAGE_ROOTFS}/boot
bbnote "from
${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-edison.cpio.gz"

    install -m 0755 

${DEPLOY_DIR_IMAGE}/core-image-minimal-initramfs-edison.cpio.gz ${IMAGE_ROOTFS}/boot/initrd }

Quoted 2 lines