Simon Glass | c44aa61 | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | Single kernel |
| 4 | ============= |
| 5 | |
| 6 | :: |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
| 11 | description = "Simple image with single Linux kernel"; |
| 12 | #address-cells = <1>; |
| 13 | |
| 14 | images { |
| 15 | kernel { |
| 16 | description = "Vanilla Linux kernel"; |
| 17 | data = /incbin/("./vmlinux.bin.gz"); |
| 18 | type = "kernel"; |
| 19 | arch = "ppc"; |
| 20 | os = "linux"; |
| 21 | compression = "gzip"; |
| 22 | load = <00000000>; |
| 23 | entry = <00000000>; |
| 24 | hash-1 { |
| 25 | algo = "crc32"; |
| 26 | }; |
| 27 | hash-2 { |
| 28 | algo = "sha1"; |
| 29 | }; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | configurations { |
| 34 | default = "config-1"; |
| 35 | config-1 { |
| 36 | description = "Boot Linux kernel"; |
| 37 | kernel = "kernel"; |
| 38 | }; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | |
| 43 | For x86 a setup node is also required: see x86-fit-boot:: |
| 44 | |
| 45 | /dts-v1/; |
| 46 | |
| 47 | / { |
| 48 | description = "Simple image with single Linux kernel on x86"; |
| 49 | #address-cells = <1>; |
| 50 | |
| 51 | images { |
| 52 | kernel { |
| 53 | description = "Vanilla Linux kernel"; |
| 54 | data = /incbin/("./image.bin.lzo"); |
| 55 | type = "kernel"; |
| 56 | arch = "x86"; |
| 57 | os = "linux"; |
| 58 | compression = "lzo"; |
| 59 | load = <0x01000000>; |
| 60 | entry = <0x00000000>; |
| 61 | hash-2 { |
| 62 | algo = "sha1"; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | setup { |
| 67 | description = "Linux setup.bin"; |
| 68 | data = /incbin/("./setup.bin"); |
| 69 | type = "x86_setup"; |
| 70 | arch = "x86"; |
| 71 | os = "linux"; |
| 72 | compression = "none"; |
| 73 | load = <0x00090000>; |
| 74 | entry = <0x00090000>; |
| 75 | hash-2 { |
| 76 | algo = "sha1"; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | configurations { |
| 82 | default = "config-1"; |
| 83 | config-1 { |
| 84 | description = "Boot Linux kernel"; |
| 85 | kernel = "kernel"; |
| 86 | setup = "setup"; |
| 87 | }; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | Note: the above assumes a 32-bit kernel. To directly boot a 64-bit kernel, |
| 92 | change both arch values to "x86_64". U-Boot will then change to 64-bit mode |
| 93 | before booting the kernel (see boot_linux_kernel()). |