Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [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 fpga before Kernel"; |
| 10 | #address-cells = <1>; |
| 11 | |
| 12 | images { |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 13 | fdt-1 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 14 | description = "zc706"; |
| 15 | data = /incbin/("/tftpboot/devicetree.dtb"); |
| 16 | type = "flat_dt"; |
| 17 | arch = "arm"; |
| 18 | compression = "none"; |
| 19 | load = <0x10000000>; |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 20 | hash-1 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 21 | algo = "md5"; |
| 22 | }; |
| 23 | }; |
| 24 | |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 25 | fpga { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 26 | description = "FPGA"; |
| 27 | data = /incbin/("/tftpboot/download.bit"); |
| 28 | type = "fpga"; |
| 29 | arch = "arm"; |
| 30 | compression = "none"; |
| 31 | load = <0x30000000>; |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 32 | hash-1 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 33 | algo = "md5"; |
| 34 | }; |
| 35 | }; |
| 36 | |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 37 | linux_kernel { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 38 | description = "Linux"; |
| 39 | data = /incbin/("/tftpboot/zImage"); |
| 40 | type = "kernel"; |
| 41 | arch = "arm"; |
| 42 | os = "linux"; |
| 43 | compression = "none"; |
| 44 | load = <0x8000>; |
| 45 | entry = <0x8000>; |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 46 | hash-1 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 47 | algo = "md5"; |
| 48 | }; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | configurations { |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 53 | default = "config-2"; |
| 54 | config-1 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 55 | description = "Linux"; |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 56 | kernel = "linux_kernel"; |
| 57 | fdt = "fdt-1"; |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 60 | config-2 { |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 61 | description = "Linux with fpga"; |
Andre Przywara | 9b22b6d | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 62 | kernel = "linux_kernel"; |
| 63 | fdt = "fdt-1"; |
| 64 | fpga = "fpga"; |
Michal Simek | 0a130b1 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 65 | }; |
| 66 | }; |
| 67 | }; |