blob: e56017985b2ace2240dd937be61b0e21852df3f6 [file] [log] [blame]
Simon Glassc44aa612023-06-23 13:22:04 +01001.. SPDX-License-Identifier: GPL-2.0+
2
3Single 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 {
Sean Anderson72a09cc2023-12-02 14:33:14 -050028 algo = "sha256";
Simon Glassc44aa612023-06-23 13:22:04 +010029 };
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
43For 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 {
Sean Anderson72a09cc2023-12-02 14:33:14 -050062 algo = "sha256";
Simon Glassc44aa612023-06-23 13:22:04 +010063 };
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 {
Sean Anderson72a09cc2023-12-02 14:33:14 -050076 algo = "sha256";
Simon Glassc44aa612023-06-23 13:22:04 +010077 };
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
91Note: the above assumes a 32-bit kernel. To directly boot a 64-bit kernel,
92change both arch values to "x86_64". U-Boot will then change to 64-bit mode
93before booting the kernel (see boot_linux_kernel()).