Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | Multiple kernels, ramdisks and FDT blobs with Xen |
| 4 | ================================================= |
| 5 | |
| 6 | This example makes use of the 'loadables' field:: |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
| 11 | description = "Configuration to load a Xen Kernel"; |
| 12 | #address-cells = <1>; |
| 13 | |
| 14 | images { |
| 15 | xen_kernel { |
| 16 | description = "xen binary"; |
| 17 | data = /incbin/("./xen"); |
| 18 | type = "kernel"; |
| 19 | arch = "arm"; |
| 20 | os = "linux"; |
| 21 | compression = "none"; |
| 22 | load = <0xa0000000>; |
| 23 | entry = <0xa0000000>; |
| 24 | hash-1 { |
Sean Anderson | 72a09cc | 2023-12-02 14:33:14 -0500 | [diff] [blame] | 25 | algo = "sha256"; |
Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 26 | }; |
| 27 | }; |
| 28 | |
| 29 | fdt-1 { |
| 30 | description = "xexpress-ca15 tree blob"; |
| 31 | data = /incbin/("./vexpress-v2p-ca15-tc1.dtb"); |
| 32 | type = "flat_dt"; |
| 33 | arch = "arm"; |
| 34 | compression = "none"; |
| 35 | load = <0xb0000000>; |
| 36 | hash-1 { |
Sean Anderson | 72a09cc | 2023-12-02 14:33:14 -0500 | [diff] [blame] | 37 | algo = "sha256"; |
Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 38 | }; |
| 39 | }; |
| 40 | |
| 41 | fdt-2 { |
| 42 | description = "xexpress-ca15 tree blob"; |
| 43 | data = /incbin/("./vexpress-v2p-ca15-tc1.dtb"); |
| 44 | type = "flat_dt"; |
| 45 | arch = "arm"; |
| 46 | compression = "none"; |
| 47 | load = <0xb0400000>; |
| 48 | hash-1 { |
Sean Anderson | 72a09cc | 2023-12-02 14:33:14 -0500 | [diff] [blame] | 49 | algo = "sha256"; |
Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 50 | }; |
| 51 | }; |
| 52 | |
| 53 | linux_kernel { |
| 54 | description = "Linux Image"; |
| 55 | data = /incbin/("./Image"); |
| 56 | type = "kernel"; |
| 57 | arch = "arm"; |
| 58 | os = "linux"; |
| 59 | compression = "none"; |
| 60 | load = <0xa0000000>; |
| 61 | entry = <0xa0000000>; |
| 62 | hash-1 { |
Sean Anderson | 72a09cc | 2023-12-02 14:33:14 -0500 | [diff] [blame] | 63 | algo = "sha256"; |
Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 64 | }; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | configurations { |
| 69 | default = "config-2"; |
| 70 | |
| 71 | config-1 { |
| 72 | description = "Just plain Linux"; |
| 73 | kernel = "linux_kernel"; |
| 74 | fdt = "fdt-1"; |
| 75 | }; |
| 76 | |
| 77 | config-2 { |
| 78 | description = "Xen one loadable"; |
| 79 | kernel = "xen_kernel"; |
| 80 | fdt = "fdt-1"; |
| 81 | loadables = "linux_kernel"; |
| 82 | }; |
| 83 | |
| 84 | config-3 { |
| 85 | description = "Xen two loadables"; |
| 86 | kernel = "xen_kernel"; |
| 87 | fdt = "fdt-1"; |
| 88 | loadables = "linux_kernel", "fdt-2"; |
| 89 | }; |
| 90 | }; |
| 91 | }; |