Shutdown command behavior of i.MX6 linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shutdown command behavior of i.MX6 linux

634 Views
torus1000
Contributor V

Hi,

Shutdown command  (shutdown -h -P now) cause system boot if 5V still remained that is expected behavior.

I tried it was success at first time but it failed at 2nd time.

I cleared SRTC registers once for secure interrupt but nothing changed.

Why 2nd shutdown command ignored (no boot)?

Can anybody help me?

Labels (3)
Tags (2)
0 Kudos
2 Replies

393 Views
b36401
NXP Employee
NXP Employee

Please try to use "shutdown -r now" instead of "-h".

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

393 Views
torus1000
Contributor V

Dear Victor

Yes, -r works fine but actually what I like to want is "20sec delayed" wake up.

Finally I found hwclock command solved this problem as following.

WRONG:

# shutdown -h now

...

# shutdown -h now

CORRECT:

# shutdown -h now

...

# hwclock -w

# echo 0 > /sys/class/rtc/rtc0/wakealarm

# echo +20 > /sys/class/rtc/rtc0/wakealarm

# shutdown -h now

Just in case, could you explain why such command is need?

Thank you for your kindness.

BR

0 Kudos