blob: 6bd9c4f464f6dfaac2303f9b372725d9ca00ce46 [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
David Brazdila2358d42020-01-27 18:51:38 +00006* `manifest.dtb` -- configuration file in DeviceTree format (required)
7* kernels for the VMs, whose names are described in the manifest (optional)
8* initrd of the primary VM, whose name is described in the manifest (optional)
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```