kendryte / k230_sdk

Kendryte K230 SDK
BSD 2-Clause "Simplified" License
165 stars 35 forks source link

[Help]: how to poweroff CanMV-k230 device #24

Closed yf13 closed 1 month ago

yf13 commented 10 months ago

Help

I am wondering how can one shutdown CanMV-k230 gracefully?

I typed poweroff within Linux console but got:

The system is going down NOW!                                                   
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system poweroff
[  539.298757] <ipcm>
[  539.298764] ##message recv thread exit
[  539.300876]
[  539.314795] <ipcm>
[  539.314802] Nodes discovery thread quit!
[  539.316923]
[  539.322608] ------------[ cut here ]------------
[  539.327309] WARNING: CPU: 0 PID: 213 at lib/devres.c:110 devm_iounmap+0x3c/0x52 
[  539.334649] Modules linked in: k_ipcm(O) bcmdhd vg_lite
[  539.339916] CPU: 0 PID: 213 Comm: init Tainted: G           O      5.10.4 #2 
[  539.346982] epc: ffffffe0005e9950 ra : ffffffe0005e993a sp : ffffffe000033bd0
[  539.354133]  gp : ffffffe0013b7a88 tp : ffffffe0041a1800 t0 : 0000000000000040
[  539.361368]  t1 : 0000000000000000 t2 : ffffffe000c018ec s0 : ffffffe000033bf0
[  539.368606]  s1 : ffffffd005310000 a0 : fffffffffffffffe a1 : 0000000000000002
[  539.375849]  a2 : ffffffd005310000 a3 : 0000000000000001 a4 : 0000000000000000
[  539.383089]  a5 : 0000000000000000 a6 : 0000000000000000 a7 : ffffffe00684e270
[  539.390322]  s2 : 0000000000000000 s3 : ffffffe003ffcc10 s4 : ffffffdf8185e368
[  539.397557]  s5 : ffffffe003ffcc90 s6 : ffffffe003ffcc10 s7 : ffffffe004038c90
[  539.404793]  s8 : 0000000000000000 s9 : 0000000000000000 s10: 0000000000000000
[  539.412026]  s11: 0000000000000000 t3 : 0000000000000002 t4 : 0000000000000402
[  539.419262]  t5 : ffffffe003ed1010 t6 : ffffffe003ed1018
[  539.424584] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[  539.432513] ---[ end trace 3da9ded4107fff70 ]---
[  539.437312] reboot: Power down

Meanwhile, the big core demo app seems still working even if little core is shutdown. Is this expected behavior?

wangjianxin-canaan commented 10 months ago

We know this problem, we will Fix this issue in a future release

wangjianxin-canaan commented 7 months ago

The latest version has been modified.

wuwentao commented 1 month ago

issue has been fixed and not receive any respone for a long time. so we will close this issue. if you still found this issue, just reopen and post the detail with latest code result