Simon Glass | ba399ce | 2023-06-23 13:22:04 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | Multiple kernels, ramdisks and FDT blobs with FPGA |
| 4 | ================================================== |
| 5 | |
| 6 | This example makes use of the 'loadables' field:: |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
| 11 | description = "Configuration to load fpga before Kernel"; |
| 12 | #address-cells = <1>; |
| 13 | |
| 14 | images { |
| 15 | fdt-1 { |
| 16 | description = "zc706"; |
| 17 | data = /incbin/("/tftpboot/devicetree.dtb"); |
| 18 | type = "flat_dt"; |
| 19 | arch = "arm"; |
| 20 | compression = "none"; |
| 21 | load = <0x10000000>; |
| 22 | hash-1 { |
| 23 | algo = "md5"; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | fpga { |
| 28 | description = "FPGA"; |
| 29 | data = /incbin/("/tftpboot/download.bit"); |
| 30 | type = "fpga"; |
| 31 | arch = "arm"; |
| 32 | compression = "none"; |
| 33 | load = <0x30000000>; |
| 34 | compatible = "u-boot,fpga-legacy" |
| 35 | hash-1 { |
| 36 | algo = "md5"; |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | linux_kernel { |
| 41 | description = "Linux"; |
| 42 | data = /incbin/("/tftpboot/zImage"); |
| 43 | type = "kernel"; |
| 44 | arch = "arm"; |
| 45 | os = "linux"; |
| 46 | compression = "none"; |
| 47 | load = <0x8000>; |
| 48 | entry = <0x8000>; |
| 49 | hash-1 { |
| 50 | algo = "md5"; |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | configurations { |
| 56 | default = "config-2"; |
| 57 | config-1 { |
| 58 | description = "Linux"; |
| 59 | kernel = "linux_kernel"; |
| 60 | fdt = "fdt-1"; |
| 61 | }; |
| 62 | |
| 63 | config-2 { |
| 64 | description = "Linux with fpga"; |
| 65 | kernel = "linux_kernel"; |
| 66 | fdt = "fdt-1"; |
| 67 | loadables = "fpga"; |
| 68 | }; |
| 69 | }; |
| 70 | }; |