I have a questions here. How do I set hardware clock via command line? In linux, I use hwclock tools but it's not avaiable in Android. Can you show me a solutions for this? Set hardware clock and sync it to system clock in Android? Thanks for your reading???
Vào 18:33:30 UTC+7 Thứ năm, ngày 20 tháng sáu năm 2013, kavitha đã viết: > > yes Disable the RTC of the chip in the defconfig then the PMIC RTC becomes > the default rtc0 > Or changing the order of the drivers in the Makefile should reverse > pmic rtc->rtc0 > chip rtc ->rtc1 > > Usually hwclock opens you open the /dev/rtc0 > > > Thanks, > Kavitha > > > > On Thu, Jun 20, 2013 at 4:44 PM, Vishveshwar <[email protected] > <javascript:>> wrote: > >> On Monday, June 17, 2013 2:51:50 AM UTC+5:30, [email protected] wrote: >>> >>> Hi All, >>> I'm working on porting* android (2.3.3)* to some arm device and on that >>> device I have two different *Real Time Clocks (RTCs)*. First one comes >>> from processor and the second comes from PMIC. >>> In my system I see them in the path* /sys/class/rtc/rtc0* and* >>> /sys/class/rtc/rtc1*. >>> >>> On default Android system time is taken from the first RTC (rtc0). What >>> is more, setting time and date in Android Settings changes exactly that >>> clock. >>> >>> I want to switch it to the second clock. I know how to do it from one >>> direction - how to set system time from rtc1 (compile parameter for >>> kernel), but I don't know how to change RTC standing behind* Settings >>> -> Change Date and Time* option in user interface. In other words, I >>> want to change time and date from user interface of second RTC (rtc1, not >>> rtc0 as in default). >>> >> >> Is it not possible to disable the processor RTC in kernel config? That >> way the PMIC RTC becomes default. >> >> -Vishveshwar >> >>> >>> How can I do it? >>> >>> Thanks for help. >>> >>> chaqi >>> >>> -- >> -- >> unsubscribe: [email protected] <javascript:> >> website: http://groups.google.com/group/android-porting >> >> --- >> You received this message because you are subscribed to the Google Groups >> "android-porting" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
