Andrew Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 1 | # Hafnium RAM disk |
| 2 | |
| 3 | Hafnium expects to find the following files in the root directory of its RAM |
| 4 | disk: |
| 5 | |
David Brazdil | a2358d4 | 2020-01-27 18:51:38 +0000 | [diff] [blame] | 6 | * `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 Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 9 | |
| 10 | Follow the [preparing Linux](PreparingLinux.md) instructions to produce |
| 11 | `vmlinuz` and `initrd.img` for a basic Linux primary VM. |
| 12 | |
Andrew Scull | 2304204 | 2018-08-22 17:44:56 +0100 | [diff] [blame] | 13 | ## Create a RAM disk for Hafnium |
| 14 | |
| 15 | Assuming that a subdirectory called `initrd` contains the files listed in the |
| 16 | previous section, we can build `initrd.img` with the following command: |
| 17 | |
| 18 | ```shell |
| 19 | cd initrd; find . | cpio -o > ../initrd.img; cd - |
| 20 | ``` |