1/*
2 * Example FIT image description file demonstrating the usage of the
3 * bootm command to launch UEFI binaries.
4 *
5 * Two boot configurations are available to enable booting GRUB2 on QEMU,
6 * the former uses a FDT blob contained in the FIT image, while the later
7 * relies on the FDT provided by the board emulator.
8 */
9
10/dts-v1/;
11
12/ {
13	description = "GRUB2 EFI and QEMU FDT blob";
14	#address-cells = <1>;
15
16	images {
17		efi-grub {
18			description = "GRUB EFI Firmware";
19			data = /incbin/("bootarm.efi");
20			type = "kernel_noload";
21			arch = "arm";
22			os = "efi";
23			compression = "none";
24			load = <0x0>;
25			entry = <0x0>;
26			hash-1 {
27				algo = "sha256";
28			};
29		};
30
31		fdt-qemu {
32			description = "QEMU DTB";
33			data = /incbin/("qemu-arm.dtb");
34			type = "flat_dt";
35			arch = "arm";
36			compression = "none";
37			hash-1 {
38				algo = "sha256";
39			};
40		};
41	};
42
43	configurations {
44		default = "config-grub-fdt";
45
46		config-grub-fdt {
47			description = "GRUB EFI Boot w/ FDT";
48			kernel = "efi-grub";
49			fdt = "fdt-qemu";
50			signature-1 {
51				algo = "sha256,rsa2048";
52				key-name-hint = "dev";
53				sign-images = "kernel", "fdt";
54			};
55		};
56
57		config-grub-nofdt {
58			description = "GRUB EFI Boot w/o FDT";
59			kernel = "efi-grub";
60			signature-1 {
61				algo = "sha256,rsa2048";
62				key-name-hint = "dev";
63				sign-images = "kernel";
64			};
65		};
66	};
67};
68