blob: c09568d3eff5effa98d88bcea8b816957d30cc00 [file] [log] [blame] [view]
Andrew Scull23042042018-08-22 17:44:56 +01001# Hafnium RAM disk
2
3Hafnium expects to find the following files in the root directory of its RAM
4disk:
5
Andrew Walbran6f8fd4c2019-08-05 13:28:17 +01006* `vmlinuz` -- the kernel of the primary VM.
7* `initrd.img` -- the initial ramdisk of the primary VM.
David Brazdil7a462ec2019-08-15 12:27:47 +01008* kernels for the secondary VMs, whose names are described in the manifest.
Andrew Scull23042042018-08-22 17:44:56 +01009
10Follow the [preparing Linux](PreparingLinux.md) instructions to produce
11`vmlinuz` and `initrd.img` for a basic Linux primary VM.
12
Andrew Scull23042042018-08-22 17:44:56 +010013## Create a RAM disk for Hafnium
14
15Assuming that a subdirectory called `initrd` contains the files listed in the
16previous section, we can build `initrd.img` with the following command:
17
18```shell
19cd initrd; find . | cpio -o > ../initrd.img; cd -
20```