cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP15 ECO 5.0.0 U-boot error for pmic functions with legacy powered board device tree

debugging
Lead

$ make stm32mp15_trusted_defconfig
$ make menuconfig
# disable PMIC power and enable legacy power in device drivers => power
$ save
make DEVICETREE=stm32mp157a-board-mx clean
make DEVICETREE=stm32mp157a-board-mx all

Why the code needs pmic when pmic is disabled ?

LD u-boot
arm-ostl-linux-gnueabi-ld.bfd: drivers/power/power_core.o: in function `pmic_dump':
/media/user/H3D2P1/Tools/STM32MP1/STM_ECO_5.0.0/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mp1-v23.06.21/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-v2022.10-stm32mp-r1-r0/u-boot-tm32mp-v2022.10-stm32mp-r1/drivers/power/power_core.c:95: undefined reference to `pmic_reg_read'
arm-ostl-linux-gnueabi-ld.bfd: drivers/power/power_core.o: in function `do_pmic':
/media/user/H3D2P1/Tools/STM32MP1/STM_ECO_5.0.0/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mp1-v23.06.21/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-v2022.10-stm32mp-r1-r0/u-boot-stm32mp-v2022.10-stm32mp-r1/drivers/power/power_core.c:163: undefined reference to `pmic_reg_read'
arm-ostl-linux-gnueabi-ld.bfd: /media/user/H3D2P1/Tools/STM32MP1/STM_ECO_5.0.0/Developer-Package/stm32mp1-openstlinux-6.1-yocto-mickledore-mp1-v23.06.21/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-v2022.10-stm32mp-r1-r0/u-boot-stm32mp-v2022.10-stm32mp-r1/drivers/power/power_core.c:179: undefined reference to `pmic_reg_write'
make: *** [Makefile:1786: u-boot] Error 1

1 ACCEPTED SOLUTION

Accepted Solutions
debugging
Lead

So far no issues when not changing the config after using the defconfig.

Now using  stm32mp15_defconfig in the make command.

 

 

View solution in original post

2 REPLIES 2
debugging
Lead

Could circumvent this issue by not changing the .config but use the default config from STM. Though would this cause a problem as the board does not support PMIC ?

 

debugging
Lead

So far no issues when not changing the config after using the defconfig.

Now using  stm32mp15_defconfig in the make command.