Shutdown command behavior of i.MX6 linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Shutdown command behavior of i.MX6 linux

1,257 次查看
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?

标签 (3)
标记 (2)
0 项奖励
回复
2 回复数

1,016 次查看
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 项奖励
回复

1,016 次查看
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 项奖励
回复