This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"/dev/rtc not enabled for wakeup events" error in linux ti sdk 7

Dear All,

I am using beagle bone black with OS " Linux version 3.12.10-ti2013.12.01", I want to use rtcwake command, if I go and check in  "/sys/class/rtc/rtc0/" I culdn't see rtcwake over there.

Can any one please suggest me, how can I enable rtcwake in abobe kernel?

Thanks in advance,

  • Hi Pavan,

    Which SDK are you using ?

    Have you checked the following guide: processors.wiki.ti.com/.../AM335x_Power_Management_Standby_User%27s_Guide

    I tried the rtcwake command on my beaglebone (running SDK7 with kernel 3.12) & am335x starter kit (running sdk8 with kernel 3.14) and rtcwake runs ok on both platforms.

    Best Regards,
    Yordan
  • Thank you for your reply,

    I am using ti sdk -7(3.12 kernel). I checked the above mentioned link. But i am not seeing rtcwake command on the board . Can you please help me what should I do if I want to use "rtcwake" command.

    How did you got it enable in your kernel?

    Thanks in advance,
  • Hi,

    On my BBB i use the SDK7.0 (3.12 kernel) built as follows:

    x0155517@mms:~/Sitara/ti-sdk-am335x-evm-07.00.00.00/board-support/linux-3.12.10-ti2013.12.01$ make tisdk_am335x-evm_defconfig

    x0155517@mms:~/Sitara/ti-sdk-am335x-evm-07.00.00.00/board-support/linux-3.12.10-ti2013.12.01$ make -j4

    Device tree node is unmodified (located in am33xx.dtsi):

      rtc@44e3e000 {

                           compatible = "ti,da830-rtc";

                           reg = <0x44e3e000 0x1000>;

                           interrupts = <75

                                                   76>;

                           ti,hwmods = "rtc";

                           clocks = <&clk_32768_ck>;

                           clock-names = "fck";

     };

     

    On my Starter Kit, I use the SDK8.0 (kernel 3.14) prebuilt images.

    The rtcwake command is invoked as shown bellow:

    root@am335x-evm:~# rtcwake -d /dev/rtc0 -m <Standby mode: mem or standby> -s <number of seconds>

    Example:

    root@am335x-evm:~# rtcwake -d /dev/rtc0 -m mem -s 2                                                                

    wakeup from "mem" at Tue Apr  1 04:29:06 2014                                                                      

    [   78.031861] PM: Syncing filesystems ... done.                                                                  

    [   78.043226] Freezing user space processes ... (elapsed 0.001 seconds) done.                                    

    [   78.051742] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.                                

    [   78.060674] Suspending console(s) (use no_console_suspend to debug)                                            

    [   78.071081] PM: suspend of devices complete after 3.284 msecs                                                  

    [   78.071581] PM: late suspend of devices complete after 0.486 msecs                                              

    [   78.072209] PM: noirq suspend of devices complete after 0.611 msecs                                            

    [   78.072271] PM: Successfully put all powerdomains to target state                                              

    [   78.072271] PM: Wakeup source RTC Alarm                                                                        

    [   78.086415] PM: noirq resume of devices complete after 14.097 msecs                                            

    [   78.086906] PM: early resume of devices complete after 0.353 msecs                                              

    [   78.087405] net eth0: initializing cpsw version 1.12 (0)                                                        

    [   78.089518] net eth0: phy found : id is : 0x7c0f1                                                              

    [   78.197108] PM: resume of devices complete after 110.179 msecs                                                  

    [   78.256912] Restarting tasks ... done.                                                                          

    root@am335x-evm:~#

    Best Regards,

    Yordan  

  • Hi,

    Informing you that I am using beagle bone black, even though i am using default images, rtcwake node is not populating and still it's giving same error.


    Please check

  • Hi Yordan ,

    Thank you very much,

    It's working now, earlier it's not working because i was giving the command "rtcwake -m mem -s 100" instead of " rtcwake -d /dev/rtc0 -m mem -s 2". Both deepsleep and stand by commands are working.

    Thank you once again,