Michal Simek | ed0cea7 | 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 | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 13 | fdt-1 { |
Michal Simek | ed0cea7 | 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 | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 20 | hash-1 { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 21 | algo = "md5"; |
| 22 | }; |
| 23 | }; |
| 24 | |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 25 | fpga { |
Michal Simek | ed0cea7 | 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>; |
Alexandru Gagniuc | 6795c75 | 2021-03-29 12:05:16 -0500 | [diff] [blame] | 32 | compatible = "u-boot,fpga-legacy" |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 33 | hash-1 { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 34 | algo = "md5"; |
| 35 | }; |
| 36 | }; |
| 37 | |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 38 | linux_kernel { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 39 | description = "Linux"; |
| 40 | data = /incbin/("/tftpboot/zImage"); |
| 41 | type = "kernel"; |
| 42 | arch = "arm"; |
| 43 | os = "linux"; |
| 44 | compression = "none"; |
| 45 | load = <0x8000>; |
| 46 | entry = <0x8000>; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 47 | hash-1 { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 48 | algo = "md5"; |
| 49 | }; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | configurations { |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 54 | default = "config-2"; |
| 55 | config-1 { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 56 | description = "Linux"; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 57 | kernel = "linux_kernel"; |
| 58 | fdt = "fdt-1"; |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 59 | }; |
| 60 | |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 61 | config-2 { |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 62 | description = "Linux with fpga"; |
Andre Przywara | b8790eb | 2017-12-04 02:05:08 +0000 | [diff] [blame] | 63 | kernel = "linux_kernel"; |
| 64 | fdt = "fdt-1"; |
Alexandru Gagniuc | 6795c75 | 2021-03-29 12:05:16 -0500 | [diff] [blame] | 65 | loadables = "fpga"; |
Michal Simek | ed0cea7 | 2016-05-17 13:58:44 +0200 | [diff] [blame] | 66 | }; |
| 67 | }; |
| 68 | }; |