Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 1 | /* |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 2 | * Simple U-Boot uImage source file containing a single kernel |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 3 | */ |
Ira W. Snyder | 824d829 | 2009-11-04 13:37:59 -0800 | [diff] [blame] | 4 | |
| 5 | /dts-v1/; |
| 6 | |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 7 | / { |
| 8 | description = "Simple image with single Linux kernel"; |
| 9 | #address-cells = <1>; |
| 10 | |
| 11 | images { |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 12 | kernel { |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 13 | description = "Vanilla Linux kernel"; |
| 14 | data = /incbin/("./vmlinux.bin.gz"); |
| 15 | type = "kernel"; |
| 16 | arch = "ppc"; |
| 17 | os = "linux"; |
| 18 | compression = "gzip"; |
| 19 | load = <00000000>; |
| 20 | entry = <00000000>; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 21 | hash-1 { |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 22 | algo = "crc32"; |
| 23 | }; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 24 | hash-2 { |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 25 | algo = "sha1"; |
| 26 | }; |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | configurations { |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 31 | default = "config-1"; |
| 32 | config-1 { |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 33 | description = "Boot Linux kernel"; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 34 | kernel = "kernel"; |
Marian Balakowicz | 3310c54 | 2008-03-12 12:13:13 +0100 | [diff] [blame] | 35 | }; |
| 36 | }; |
| 37 | }; |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 38 | |
| 39 | |
| 40 | |
| 41 | For x86 a setup node is also required: see x86-fit-boot.txt. |
| 42 | |
| 43 | /dts-v1/; |
| 44 | |
| 45 | / { |
| 46 | description = "Simple image with single Linux kernel on x86"; |
| 47 | #address-cells = <1>; |
| 48 | |
| 49 | images { |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 50 | kernel { |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 51 | description = "Vanilla Linux kernel"; |
| 52 | data = /incbin/("./image.bin.lzo"); |
| 53 | type = "kernel"; |
| 54 | arch = "x86"; |
| 55 | os = "linux"; |
| 56 | compression = "lzo"; |
| 57 | load = <0x01000000>; |
| 58 | entry = <0x00000000>; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 59 | hash-2 { |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 60 | algo = "sha1"; |
| 61 | }; |
| 62 | }; |
| 63 | |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 64 | setup { |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 65 | description = "Linux setup.bin"; |
| 66 | data = /incbin/("./setup.bin"); |
| 67 | type = "x86_setup"; |
| 68 | arch = "x86"; |
| 69 | os = "linux"; |
| 70 | compression = "none"; |
| 71 | load = <0x00090000>; |
| 72 | entry = <0x00090000>; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 73 | hash-2 { |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 74 | algo = "sha1"; |
| 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | configurations { |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 80 | default = "config-1"; |
| 81 | config-1 { |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 82 | description = "Boot Linux kernel"; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 83 | kernel = "kernel"; |
| 84 | setup = "setup"; |
Simon Glass | 90268b8 | 2014-10-19 21:11:24 -0600 | [diff] [blame] | 85 | }; |
| 86 | }; |
| 87 | }; |
Simon Glass | dc39621 | 2016-07-17 01:22:41 -0600 | [diff] [blame] | 88 | |
| 89 | Note: the above assumes a 32-bit kernel. To directly boot a 64-bit kernel, |
| 90 | change both arch values to "x86_64". U-Boot will then change to 64-bit mode |
| 91 | before booting the kernel (see boot_linux_kernel()). |