Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Allwinner RTC



Currently whenever I boot NetBSD on my Cubietruck after booting the
Android system in NAND the clock is exactly 70 years in the future.

I've looked at the linux-sunxi/drivers/rtc/rtc-sun4i.c code and it
appears than all RTCs supported by rtc-sun4i except the sun7i (A20)
implement a 63-year RTC based at 1970.  The sun7i uses a 255-year RTC
register layout and is based at 1900.

Comparing this to src/sys/arch/arm/allwinner/awin_rtc.c v1.6, I seem to
find that we only do as Linux on the A30 chips.

Does anyone have Linux/Android booting on a A10-based system to confirm
that it uses the 63-year 1970-based RTC?  I believe you would find that
that NetBSD would think it was 70 years earlier than Linux on A10.

	Jonathan Kollasch


Home | Main Index | Thread Index | Old Index