Skip to main content.

14.3.19. Combining a Kernel and a Ramdisk into a Multi-File Image

I used to build a zImage.initrd file which combined the Linux kernel with a ramdisk image. Can I do something similar with U-Boot?

Yes, you can create "Multi-File Images" which contain several images, typically an OS (Linux) kernel image and one or more data images like RAMDisks. This construct is useful for instance when you want to boot over the network using BOOTP etc., where the boot server provides just a single image file, but you want to get for instance an OS kernel and a RAMDisk image.
The typical way to build such an image is:
bash$ mkimage -A ppc -O Linux -T multi -C gzip \
-n 'Linux Multiboot-Image' -e 0 -a 0 \
-d vmlinux.gz:ramdisk_image.gz pMulti
See also the usage message you get when you call "mkimage" without arguments.
14.3.18. Ramdisk Greater than 4 MB Causes Problems 1. Abstract 14.3.20. Adding Files to Ramdisk is Non Persistent
Prev Home Next