2023-05-08 12:01 AM
Hi,
I upgraded the image for our custom board to 4.1 last week. After fixing the sw issues
concerning the recipe syntax changes i have now problems to boot the new image.
Info: Our board does not use PMIC but static voltage configuration:
/ {
model = "DEWETRON NEXDAQ tf-a";
compatible = "st,stm32mp157f-nexio", "st,stm32mp157";
aliases {
serial0 = &uart4;
serial1 = &usart1;
serial2 = &usart2;
};
chosen {
stdout-path = "serial0:115200n8";
};
/* Supply Voltages */
vddcore: vddcore {
regulator-name = "vddcore";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1350000>;
regulator-always-on;
};
vdd: vdd {
regulator-name = "vdd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
v3v3: v3v3 {
regulator-name = "v3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
vdd_usb: vdd_usb {
regulator-name = "vdd_usb";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
};
With this coniguration the boot fails with these messages:
NOTICE: CPU: STM32MP157FAC Rev.Z
NOTICE: Model: DEWETRON NEXDAQ tf-a
WARNING: regulator_get_by_phandle: phandle 10 not found
WARNING: VDD unknown
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using SDMMC
INFO: Instance 1
INFO: Boot used partition fsbl1
WARNING: regulator_get_by_phandle: phandle 14 not found
NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f)
NOTICE: BL2: Built : 13:14:26, Nov 23 2021
ERROR: Unable to find a metadata partition
WARNING: Failed to set reference to image id=12 (-2)
WARNING: loading of FWU-Metadata failed, using Bkup-FWU-Metadata
ERROR: Unable to find a metadata partition
WARNING: Failed to set reference to image id=13 (-2)
ERROR: loading of Bkup-FWU-Metadata failed
PANIC at PC : 0x2ffea21b
With 3.1 and tf-a 2.6 the boot log was this:
NOTICE: CPU: STM32MP157FAC Rev.Z
NOTICE: Model: DEWETRON NEXDAQ tf-a
WARNING: regulator_get_by_phandle: phandle 17 not found
WARNING: VDD unknown
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000
INFO: FCONF: Reading firmware configuration information for: stm32mp_io
INFO: Using EMMC
INFO: Instance 2
INFO: Boot used partition fsbl1
WARNING: regulator_get_by_phandle: phandle 21 not found
NOTICE: BL2: v2.4-r2.0(debug):v2.4-dirty
NOTICE: BL2: Built : 16:43:51, Nov 17 2020
INFO: BL2: Doing platform setup
INFO: RAM: DDR3-DDR3L 16bits 533000kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2: Loading image id 31
INFO: Loading image id=31 at address 0x2ffff000
INFO: Image id=31 loaded: 0x2ffff000 - 0x2ffff226
INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000
INFO: FCONF: Reading firmware configuration information for: dyn_cfg
INFO: FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffc5000
INFO: Image id=4 loaded: 0x2ffc5000 - 0x2ffd97ec
WARNING: Not a known TEE, use default loading options.
INFO: BL2: Skip loading image id 21
INFO: BL2: Skip loading image id 22
INFO: BL2: Loading image id 23
INFO: Loading image id=23 at address 0xc0500000
INFO: Image id=23 loaded: 0xc0500000 - 0xc051cbba
INFO: BL2: Loading image id 26
INFO: Loading image id=26 at address 0x2ffc0000
INFO: Image id=26 loaded: 0x2ffc0000 - 0x2ffc3cb9
INFO: BL2: Loading image id 5
INFO: Loading image id=5 at address 0xc0100000
INFO: Image id=5 loaded: 0xc0100000 - 0xc01d3ee8
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffc5000
INFO: SPSR = 0x1d3
NOTICE: SP_MIN: v2.4-r2.0(debug):v2.4-dirty
NOTICE: SP_MIN: Built : 16:43:51, Nov 17 2020
INFO: ARM GICv2 driver initialized
INFO: Set calibration timer to 44 sec
INFO: stm32mp1 IWDG1 is secure
INFO: SP_MIN: Initializing runtime services
INFO: SP_MIN: Preparing exit to normal world
U-Boot 2020.10-stm32mp-r2 (Oct 05 2020 - 15:15:32 +0000)
(Yes this is eMMC but thats selected by the dip switches)
Does anyone has an idea what I can do?
Currently studying:
https://community.st.com/s/article/FAQ-STM32MP1-bring-up-troubleshooting-guide
Bye Gunther
Solved! Go to Solution.
2023-05-08 01:06 AM
Found:
As I am using a custom tsv file, no tool mentioned a missing metadata.bin.
2023-05-08 01:06 AM
Found:
As I am using a custom tsv file, no tool mentioned a missing metadata.bin.
2023-05-08 02:56 AM
The missing metadata.bin was the issue.