Shutdown command behavior of i.MX6 linux

cancel
Showing results for 
Search instead for 
Did you mean: 

Shutdown command behavior of i.MX6 linux

301 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

60 Views
b36401
NXP TechSupport
NXP TechSupport

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

60 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