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