Commit 0506113
Patrice Chotard
stm32mp1: Update fwu_mdata node accordingly to boot device
Update dynamically fwu_mdata node properties accordingly to boot device.
Depending of boot device, fwu_mdata node's properties must be updated
to allow to EFI framework to get access to metadata.
This fixes the following EFI error message "FWU metadata read failed".
By default, the fwu-mdata node in stm32mp1***-u-boot.dtsi indicates
that metadata are located on sdmmc1. This is used by default, in this
case boot device is sdcard :
fwu-mdata {
compatible = "u-boot,fwu-mdata-gpt";
fwu-mdata-store = <&sdmmc1>;
};
For emmc boot, the compatible and fwu-mdata-store properties must be
updated as following :
fwu-mdata {
compatible = "u-boot,fwu-mdata-gpt";
fwu-mdata-store = <&sdmmc2>;
};
For nor boot, the fwu-mdata-store and compatible properties must be
updated as following:
fwu-mdata {
compatible = "u-boot,fwu-mdata-mtd";
fwu-mdata-store = <&flash0>;
};
For nand boot, the fwu-mdata-store and compatible properties must be
updated as following:
fwu-mdata {
compatible = "u-boot,fwu-mdata-mtd";
fwu-mdata-store = <&nand0>;
};
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I35d01c8601f2489ccd4ace3fc42271b56f6cb682
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/382101
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>1 parent e678412 commit 0506113
1 file changed
Lines changed: 86 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1220 | 1306 | | |
1221 | 1307 | | |
1222 | 1308 | | |
| |||
0 commit comments