Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * U-Boot additions |
| 4 | * |
| 5 | * Copyright (C) 2020 Intel Corporation <www.intel.com> |
| 6 | */ |
| 7 | |
| 8 | #if defined(CONFIG_FIT) |
| 9 | |
| 10 | / { |
| 11 | binman: binman { |
| 12 | multiple-images; |
| 13 | }; |
| 14 | }; |
| 15 | |
| 16 | &binman { |
| 17 | u-boot { |
| 18 | filename = "u-boot.itb"; |
| 19 | fit { |
| 20 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
| 21 | description = "FIT with firmware and bootloader"; |
| 22 | #address-cells = <1>; |
| 23 | |
| 24 | images { |
| 25 | uboot { |
| 26 | description = "U-Boot SoC64"; |
| 27 | type = "standalone"; |
| 28 | os = "U-Boot"; |
| 29 | arch = "arm64"; |
| 30 | compression = "none"; |
| 31 | load = <0x00200000>; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 32 | uboot_blob: blob-ext { |
| 33 | filename = "u-boot-nodtb.bin"; |
| 34 | }; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 35 | hash { |
| 36 | algo = "crc32"; |
| 37 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | atf { |
| 41 | description = "ARM Trusted Firmware"; |
| 42 | type = "firmware"; |
| 43 | os = "arm-trusted-firmware"; |
| 44 | arch = "arm64"; |
| 45 | compression = "none"; |
| 46 | load = <0x00001000>; |
| 47 | entry = <0x00001000>; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 48 | atf_blob: blob-ext { |
| 49 | filename = "bl31.bin"; |
| 50 | }; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 51 | hash { |
| 52 | algo = "crc32"; |
| 53 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | fdt { |
| 57 | description = "U-Boot SoC64 flat device-tree"; |
| 58 | type = "flat_dt"; |
| 59 | compression = "none"; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 60 | uboot_fdt_blob: blob-ext { |
| 61 | filename = "u-boot.dtb"; |
| 62 | }; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 63 | hash { |
| 64 | algo = "crc32"; |
| 65 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 66 | }; |
| 67 | }; |
| 68 | |
| 69 | configurations { |
| 70 | default = "conf"; |
| 71 | conf { |
| 72 | description = "Intel SoC64 FPGA"; |
| 73 | firmware = "atf"; |
| 74 | loadables = "uboot"; |
| 75 | fdt = "fdt"; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 76 | signature { |
| 77 | algo = "crc32"; |
| 78 | key-name-hint = "dev"; |
| 79 | sign-images = "atf", "fdt", "uboot"; |
| 80 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 81 | }; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | kernel { |
| 87 | filename = "kernel.itb"; |
| 88 | fit { |
| 89 | description = "FIT with Linux kernel image and FDT blob"; |
| 90 | #address-cells = <1>; |
| 91 | |
| 92 | images { |
| 93 | kernel { |
| 94 | description = "Linux Kernel"; |
| 95 | type = "kernel"; |
| 96 | arch = "arm64"; |
| 97 | os = "linux"; |
| 98 | compression = "none"; |
| 99 | load = <0x4080000>; |
| 100 | entry = <0x4080000>; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 101 | kernel_blob: blob-ext { |
| 102 | filename = "Image"; |
| 103 | }; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 104 | hash { |
| 105 | algo = "crc32"; |
| 106 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 107 | }; |
| 108 | |
| 109 | fdt { |
| 110 | description = "Linux DTB"; |
| 111 | type = "flat_dt"; |
| 112 | arch = "arm64"; |
| 113 | compression = "none"; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 114 | kernel_fdt_blob: blob-ext { |
| 115 | filename = "linux.dtb"; |
| 116 | }; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 117 | hash { |
| 118 | algo = "crc32"; |
| 119 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 120 | }; |
| 121 | }; |
| 122 | |
| 123 | configurations { |
| 124 | default = "conf"; |
| 125 | conf { |
| 126 | description = "Intel SoC64 FPGA"; |
| 127 | kernel = "kernel"; |
| 128 | fdt = "fdt"; |
Siew Chin Lim | b130efa | 2021-03-24 23:56:37 +0800 | [diff] [blame] | 129 | signature { |
| 130 | algo = "crc32"; |
| 131 | key-name-hint = "dev"; |
| 132 | sign-images = "fdt", "kernel"; |
| 133 | }; |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | |
Siew Chin Lim | 851083e | 2021-03-01 20:04:13 +0800 | [diff] [blame] | 140 | #if defined(CONFIG_SOCFPGA_SECURE_VAB_AUTH) |
| 141 | &uboot_blob { |
| 142 | filename = "signed-u-boot-nodtb.bin"; |
| 143 | }; |
| 144 | |
| 145 | &atf_blob { |
| 146 | filename = "signed-bl31.bin"; |
| 147 | }; |
| 148 | |
| 149 | &uboot_fdt_blob { |
| 150 | filename = "signed-u-boot.dtb"; |
| 151 | }; |
| 152 | |
| 153 | &kernel_blob { |
| 154 | filename = "signed-Image"; |
| 155 | }; |
| 156 | |
| 157 | &kernel_fdt_blob { |
| 158 | filename = "signed-linux.dtb"; |
| 159 | }; |
| 160 | #endif |
| 161 | |
Siew Chin Lim | 9fe3a01 | 2020-12-24 18:21:11 +0800 | [diff] [blame] | 162 | #endif |