rtc set time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

rtc set time

511 Views
carmilili
Contributor III

Hello everyone,

I want to set the RTC time.But the kernel code of "rtc-test.c"do not achieve functional.The function  test_rtc_set_time() and test_rtc_set_mmss() do not achieve functional.

The BSP is LTIB.My board is MCIMX6Q-SDB.Now I can read the time throw the node of “/dev/rtc0”.

How can I finish the above two function?

Labels (3)
0 Kudos
1 Reply

379 Views
AnsonHuang
NXP Employee
NXP Employee

Hi, Carmili

     I think you can refer to Documentation/rtc.txt, there are many IOCTLs that you can use from userspace, just write an app to call them, if you are using L3.0.35, maybe you can just use the rtc unit test in /unit_tests/mxc_rtc_...

0 Kudos