Shutdown command behavior of i.MX6 linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Shutdown command behavior of i.MX6 linux

656件の閲覧回数
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 返答(返信)

415件の閲覧回数
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 件の賞賛

415件の閲覧回数
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 件の賞賛