2023-09-05 03:49 AM
$ 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
Solved! Go to Solution.
2023-09-15 10:30 PM
So far no issues when not changing the config after using the defconfig.
Now using stm32mp15_defconfig in the make command.
2023-09-05 06:21 AM
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 ?
2023-09-15 10:30 PM
So far no issues when not changing the config after using the defconfig.
Now using stm32mp15_defconfig in the make command.