|
Edited by shooreg at 2016-12-1 12:13
In Android, after the initial su command you gain persistent root priveledges, so no need to type su again in that session. The # mark at command prompt indicates than you are root.
Now, let's see (the following is only IMHO, since I'm not an Android builder/developer):
- if your kernel has built-in rtc support (it should) then there must be a folder named /sys/class/rtc. If no such - either no rtc support or no rtc kernel drivers loaded.
- i2cdetect is a linux util, not sure there is one in android, it scans I2C bus for all devices (just to make sure that kernel I2C support is enabled and RTC device is properly connected). -y is an auto-confirm option 0 is a I2C bus number if there are several.
- inside /sys/class/rtc there should be subfolders named like rtcN - one for each RTC device your system recognized.
So, for now questions are: does your android kernel support I2C bus, and does it recognize internal sunxi-rtc as rtc0?
What is pin conectors for battery for local rtc in OPI perhaps only to restart and keeping the correct time.
- there are no pins, but pad on the PCB, labeled rtc. However it is not a good idea to apply a battery voltage (3.3v) there - due to some schematic problems (guess) it powers not only rtc in SoC, so there are isuues with poweroff and battery drains quickly. That is, as I know, for H3 based OPI PC, OPI plus and OPI one.
|
|