NSA310S rtcwake
March 30, 2020 09:37AM
It is possible u use rtcwake?
When:
# rtcwake -s 60 -m mem
or
# rtcwake -s 60
get this:
rtcwake: cannot open /sys/class/rtc/rtc0/device/power/wakeup: No such file or directory
rtcwake: /dev/rtc0 not enabled for wakeup events
I'm pretty sure that this was worked some time earler. Kernel 3.x or so.
Current kernel Linux NAS 5.5.1-kirkwood-tld-1 #1.0 PREEMPT Sat Feb 1 22:28:36 PST 2020 armv5tel bye the way.
Re: NSA310S rtcwake
March 30, 2020 06:10PM
alex512,

Indeed, I cannot find /sys/class/rtc/rtc0/device/power/wakeup on my box either. RTC seems to work fine, though.

I need to find out why, I have not used rtcwake for this box at all.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA310S rtcwake
March 30, 2020 06:48PM
All other Kirkwood boxes with RTC clock still have rtcwake.

Except this NSA310S. This box uses a specific Holtek chip ht1382. So perhaps there was some mainline changes in the RTC driver that affected this specific one.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/30/2020 06:54PM by bodhi.
Re: NSA310S rtcwake
March 30, 2020 08:41PM
This Holtek HT1382 driver was developed by chrlee, and we have modified it very slightly in the patch that I used to build the kernel.

Quote

* Based on
* Copyright (C) 2015 Karoly Pocsi <chrlee @ chrlee.net>
*
* Based on bq32k driver by Semihalf and Pavel Machek

Yes. Looks like there was some binding change in RTC device since 2015 to present.

So in the next kernel release 5.6.x, I will get this driver up to date.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: