narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
ballerburg9005 has quit [Ping timeout: 246 seconds]
warpme_ has quit [Quit: Connection closed for inactivity]
buzzmarshall has joined #linux-amlogic
asdf28 has quit [Ping timeout: 240 seconds]
kaspter has joined #linux-amlogic
chewitt_ has joined #linux-amlogic
chewitt has joined #linux-amlogic
chewitt_ has quit [Ping timeout: 256 seconds]
<BlueMatt> narmstrong: thanks!
buzzmarshall has quit [Quit: Leaving]
ballerburg9005 has joined #linux-amlogic
Barada has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 264 seconds]
vagrantc has quit [Quit: leaving]
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
chewitt has quit [Quit: Adios!]
asdf28 has joined #linux-amlogic
cmeerw has joined #linux-amlogic
Barada has quit [Quit: Barada]
Tony_mac32 has joined #linux-amlogic
Tonymac32 has quit [Ping timeout: 264 seconds]
cmeerw has quit [Ping timeout: 265 seconds]
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
kaspter has quit [Ping timeout: 265 seconds]
kaspter has joined #linux-amlogic
ldevulder__ is now known as ldevulder
ballerburg9005 has quit [Ping timeout: 256 seconds]
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 265 seconds]
sputnik__ has quit [Ping timeout: 256 seconds]
<benoitm974> Anyone succeeded in using the RTC clock ? I get timeout when I try to read or write to it with hwclock?
kaspter has quit [Ping timeout: 265 seconds]
camus1 has joined #linux-amlogic
camus1 is now known as kaspter
warpme_ has joined #linux-amlogic
montjoie has joined #linux-amlogic
<narmstrong> benoitm974: I don’t see what you’re speaking about
sputnik_ has joined #linux-amlogic
psydruid has quit [Quit: Bridge terminating on SIGTERM]
l-as has quit [Quit: Bridge terminating on SIGTERM]
l-as has joined #linux-amlogic
asdf28 has quit [Ping timeout: 246 seconds]
psydruid has joined #linux-amlogic
asdf28 has joined #linux-amlogic
trem has joined #linux-amlogic
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 240 seconds]
sputnik_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 240 seconds]
trem has quit [Remote host closed the connection]
sputnik__ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 260 seconds]
sputnik__ has quit [Remote host closed the connection]
asdf28 has quit [Ping timeout: 265 seconds]
chewitt has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 260 seconds]
<benoitm974> narmstrong: The dtb define a realtime clock using module meson-vrtc (it is also in the android the dtb dump) but it when you try to set or get time it fails.
<benoitm974> android dts:
<benoitm974> linux mainline:
<narmstrong> benoitm974: the vrtc is a "Virtual RTC" only used for suspend wakeup
<narmstrong> is uses the system time, so you can't write anything to it
<benoitm974> but even reading timeout
<benoitm974> I have an issue on debian the systemd-timdated try to sync with it and timeout
<narmstrong> should not
<narmstrong> did you try with hwclock tool ?
<benoitm974> If it was virtual and working I would understand that doing a hwclock read should read the system time ... but it just timeout
<narmstrong> let me try on another system
<benoitm974> even cat on /sys/class return old date
<narmstrong> hmm, maybe the API has changed
asdf28 has joined #linux-amlogic
<chewitt> I moved vrtc to /dev/rtc1 on boards that have a proper rtc chip else you see the same issue
<chewitt> most scripts/tooling assume /dev/rtc0 is a proper clocl
<chewitt> clock
<chewitt> I'm wondering if tooling is dumb enough to not-use /dev/rtc1 if /dev/rtc0 doesn't exist
<benoitm974> it tries rtc0, rtc and misc/rtc only
<chewitt> at least it doesn't find 'the wrong clock' .. probably better than trying to use one that isn't a clock
GNUtoo has quit [Quit: Lost terminal]
<narmstrong> oh I understand, hwclock uses select to wait for a clock tick, so yeah it can't work
<narmstrong> I wonder how this works on chips where the irq is not connected
<benoitm974> at least moving rtc0 to rtc1 allow debian systemd-timedated to ntp sync
<narmstrong> benoitm974: can you check CONFIG_RTC_INTF_DEV_UIE_EMUL is enabled in your kernel ?
<benoitm974> otherwise I was force to install chrony to sync time on top
<chewitt> in my kernel # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
<benoitm974> I'm not sure you want to have a code reading your "virtual" clock multiple time per second just to offer ioctl in the correct RTC_UIE right ?
<narmstrong> well, it's the same if the physical RTC doesn't have an interrupt line connected to the SoC, there is no way to have a regular time update
cmeerw has joined #linux-amlogic
vagrantc has joined #linux-amlogic
GNUtoo has joined #linux-amlogic
<benoitm974> quickly tested with the kernel option to 'y' same result:
Lyude has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-amlogic
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 264 seconds]
ldevulder has quit [Ping timeout: 256 seconds]
ldevulder__ has quit [Remote host closed the connection]
ldevulder__ has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
Lyude has joined #linux-amlogic
ldevulder__ is now known as ldevulder
asdf28 has quit [Ping timeout: 256 seconds]
asdf28 has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
chewitt has quit [Quit: Zzz..]
ballerburg9005 has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 256 seconds]
Elpaulo has quit [Quit: Elpaulo]
Darkmatter66 has joined #linux-amlogic
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
cmeerw has quit [Ping timeout: 264 seconds]
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
TheAssass1n has joined #linux-amlogic
TheAssassin has quit [Remote host closed the connection]