cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp1 rtc uboot issue

Ara.1
Senior

Hi All,

In STM32MP1, i have following two problem related RTC

1. Kernel space

RTC is working fine for me only when i enter following command at every power up , else the default RTC date show local time.

hwclock --localtime --hctosys-- makes RTC works.

root@mp1som:~# date

Mon Sep 7 06:16:00 UTC 2020

root@mp1som:~# hwclock --localtime --hctosys

root@mp1som:~# date

Mon May 26 11:22:49 UTC 2014

2 , Uboot side always shows default RTC time. why this ?

following is uboot log:

U-Boot SPL 2018.11-stm32mp-r3 (Dec 18 2020 - 10:05:24 +0000)

Model: STMicroelectronics STM32MP157A-DK1 Discovery Board

RAM: DDR3-DDR3L 32bits 533000Khz

Trying to boot from MMC1

U-Boot 2018.11-stm32mp-r3 (Dec 18 2020 - 10:05:24 +0000)

CPU: STM32MP157CAA Rev.B

Model: STMicroelectronics STM32MP157A-DK1 Discovery Board

Board: stm32mp1 in basic mode (st,stm32mp157a-dk1)

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @Ara.1​ ,

I read "U-Boot SPL 2018.11-stm32mp-r3" which make me think you are trying to use "basic boot" mode on old V1.2 ecosystem.

Is it on purpose ?

You may be aware that this basic boot scheme is not recommended and even deprecated in V2.x version.

If not already done please read https://wiki.st.com/stm32mpu-ecosystem-v1/wiki/Boot_chains_overview#STM32MP_boot_chains

and related comment about basic.

I also read "root@mp1som".

I you confirm you are using a part from SOM maker integrating STM32MP1, please be aware that the SOM maker is your first and main support contact.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Ara.1
Senior

Hi

its working now.

as the distro uses default system time than local time.

this works by using

hwclock -s

at every power up