Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | Kernel and multiple compressed FDT blobs |
| 4 | ======================================== |
| 5 | |
| 6 | Since the FDTs are compressed, configurations must provide a compatible |
| 7 | string to match directly. |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | /dts-v1/; |
| 12 | |
| 13 | / { |
| 14 | description = "Image with single Linux kernel and compressed FDT blobs"; |
| 15 | #address-cells = <1>; |
| 16 | |
| 17 | images { |
| 18 | kernel { |
| 19 | description = "Vanilla Linux kernel"; |
| 20 | data = /incbin/("./vmlinux.bin.gz"); |
| 21 | type = "kernel"; |
| 22 | arch = "ppc"; |
| 23 | os = "linux"; |
| 24 | compression = "gzip"; |
| 25 | load = <00000000>; |
| 26 | entry = <00000000>; |
| 27 | hash-1 { |
| 28 | algo = "crc32"; |
| 29 | }; |
| 30 | hash-2 { |
| 31 | algo = "sha1"; |
| 32 | }; |
| 33 | }; |
| 34 | fdt@1 { |
| 35 | description = "Flattened Device Tree blob 1"; |
| 36 | data = /incbin/("./myboard-var1.dtb"); |
| 37 | type = "flat_dt"; |
| 38 | arch = "ppc"; |
| 39 | compression = "gzip"; |
| 40 | hash-1 { |
| 41 | algo = "crc32"; |
| 42 | }; |
| 43 | hash-2 { |
| 44 | algo = "sha1"; |
| 45 | }; |
| 46 | }; |
| 47 | fdt@2 { |
| 48 | description = "Flattened Device Tree blob 2"; |
| 49 | data = /incbin/("./myboard-var2.dtb"); |
| 50 | type = "flat_dt"; |
| 51 | arch = "ppc"; |
| 52 | compression = "lzma"; |
| 53 | hash-1 { |
| 54 | algo = "crc32"; |
| 55 | }; |
| 56 | hash-2 { |
| 57 | algo = "sha1"; |
| 58 | }; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | configurations { |
| 63 | default = "conf@1"; |
| 64 | conf@1 { |
| 65 | description = "Boot Linux kernel with FDT blob 1"; |
| 66 | kernel = "kernel"; |
| 67 | fdt = "fdt@1"; |
| 68 | compatible = "myvendor,myboard-variant1"; |
| 69 | }; |
| 70 | conf@2 { |
| 71 | description = "Boot Linux kernel with FDT blob 2"; |
| 72 | kernel = "kernel"; |
| 73 | fdt = "fdt@2"; |
| 74 | compatible = "myvendor,myboard-variant2"; |
| 75 | }; |
| 76 | }; |
| 77 | }; |