Commit cce9bd3
Patrice Chotard
stm32mp2: 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: I8232e1037aac9908caeef5906e78a6ac00c221a8
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/382102
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>1 parent 0506113 commit cce9bd3
1 file changed
Lines changed: 83 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
0 commit comments