Vim3板子上ubuntu系统异常重启

大家好!我的软件部署到vim3的ubuntu上运行,大概运行半个小时左右,系统自动重启,软件运行时,非常耗CPU,所以怀疑是CPU运转温度过高,引发系统重启。我不清楚温度过高,引发系统重启的配置在哪里,请指导一下,怎么修改这种限制?谢谢。还有我在terminal上用命令行cat /sys/class/thermal/thermal_zone0/temp,得到的数值是5200左右,请问如何实时查看当前cpu温度?谢谢。

首先你需要使用我们的TypeC适配器供电,先排除供电问题。

如果你怀疑过热重启,你可以写个脚本把cpu温度实时打印出来看看。

是使用type-C供电的。我测试了,如果风扇设置为auto,10多分钟就重启了,程序跑了1分钟不到,明显处理速度降低了。后面我把风扇速度设置为high,另外在加一个小风扇对着板子吹,程序跑了40分钟左右,处理速度明显变低了,在运行半个小时系统就重启了。

可能有两个原因:

  • 重置看门狗计时器
  • 安装了Display Manager和Desktop环境时,通过SSH终端运行

您可以尝试 “禁用看门狗计时器”

禁用睡眠:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sync
reboot

@A311D_LINUX 你这边确认过CPU的温度么

从软件运行情况来看,就是降频了,这还不明显吗?

除了温控会降频,还有其他情况会降低CPU运行主频吗?

你用的哪个固件?即使降频也不会导致板子重启。你能接串口吗?最好接上串口抓一下log。

VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530,但是根据论坛回复,做了升级。

没有买板子对应的USB转TTL,请问其它的可以用吗?

比如RK3399板子的USB转TTL串口,可以接A311D的相应接口吗?

在此固件基础之上,做了如下操作sudo apt update && sudo apt upgrade && do-fenix-full-upgrade && sync && sudo reboot

没有看明白你的回复,这跟禁用睡眠有什么关系吗?谢谢

可以用。

哪个固件?

同时提供下如下信息:

$ uname -a
$ cat /etc/fenix-release 

就是这个固件:VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530

可以。那你先把串口接上抓log,然后在运行你的程序,如果重启了,就把全部完整的log发出来。

Khadas login: [  426.079386@0] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  426.082004@0] pgd = ffffffc08da77000
[  426.085552@0] [0000000000000000] *pgd=0000000000000000, *pud=0000000000000000
[  426.092660@0] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[  426.098385@0] Modules linked in: cpufreq_conservative cpufreq_powersave cpufreq_userspace cpufreq_ondemand iv009_isp_sensor iv009_isp_lens iv009_isp_iq galcore vpu encoder amvdec_avs2 amvdec_vp9 amvdec_vc1 amvdec_real amvdec_mmpeg4 amvdec_mpeg4 amvdec_mmpeg12 amvdec_mpeg12 amvdec_mmjpeg amvdec_mjpeg amvdec_h265 amvdec_h264mvc amvdec_mh264 amvdec_h264 amvdec_avs stream_input decoder_common firmware media_clock mali_kbase iv009_isp zram dhd btrfs xor raid6_pq
[  426.138770@0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.241 #13
[  426.145006@0] Hardware name: Khadas VIM3 (DT)
[  426.149343@0] task: ffffff800aa79b40 task.stack: ffffff800aa60000
[  426.155427@0] PC is at _find_next_bit.part.0+0x10/0x70
[  426.160529@0] LR is at find_next_bit+0x24/0x30
[  426.164940@0] pc : [<ffffff8009503658>] lr : [<ffffff80095036dc>] pstate: 800001c5
[  426.172478@0] sp : ffffffc0a02f6c00
[  426.175945@0] x29: ffffffc0a02f6c00 x28: 00000000ffffffff 
[  426.181404@0] x27: ffffffc09b956200 x26: ffffff800a601000 
[  426.186864@0] x25: ffffffc09ba6cae0 x24: ffffff800aa6ac64 
[  426.192324@0] x23: 00000000ffffffff x22: ffffff800aa6b000 
[  426.197784@0] x21: 0000000000000000 x20: 0000000000000000 
[  426.203244@0] x19: 0000000000000000 x18: ffffffc0a0300b10 
[  426.208704@0] x17: ffffff800aa63ef0 x16: ffffff8009141458 
[  426.214164@0] x15: 0000490a56ca2a9e x14: ffffffc0a0300b10 
[  426.219624@0] x13: 0000000000000000 x12: 0000000000000000 
[  426.225084@0] x11: 0000000000000001 x10: ffffffc0a02f6ea0 
[  426.230544@0] x9 : 0000200c10400000 x8 : ffffff800aa69ba8 
[  426.236004@0] x7 : 0000000000002770 x6 : 0000000000000380 
[  426.241464@0] x5 : 0000000000000000 x4 : ffffffffffffffff 
[  426.246924@0] x3 : 0000000000000000 x2 : 0000000000000000 
[  426.252384@0] x1 : 0000000000000008 x0 : 0000000000000000 
[  426.257845@0] 
[  426.257845@0] SP: 0xffffffc0a02f6b80:
[  426.263131@0] 6b80  0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6cae0 ffffffc0
[  426.271451@0] 6ba0  0a601000 ffffff80 9b956200 ffffffc0 ffffffff 00000000 a02f6c00 ffffffc0
[  426.279771@0] 6bc0  095036dc ffffff80 a02f6c00 ffffffc0 09503658 ffffff80 800001c5 00000000
[  426.288091@0] 6be0  00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[  426.296411@0] 6c00  a02f6c10 ffffffc0 090f2460 ffffff80 a02f6d20 ffffffc0 090db89c ffffff80
[  426.304731@0] 6c20  9b956200 ffffffc0 a0301a00 ffffffc0 9b9569f4 ffffffc0 00000000 00000000
[  426.313051@0] 6c40  00000140 00000000 0aa6b000 ffffff80 0a601000 ffffff80 9b956610 ffffffc0
[  426.321371@0] 6c60  00000000 00000000 00000002 00000000 00000009 00000000 00000000 ffffffff
[  426.329693@0] 
[  426.329693@0] X10: 0xffffffc0a02f6e20:
[  426.335064@0] 6e20  ffffffff 00000000 a02f7c40 ffffffc0 0aa67000 ffffff80 0aa6b000 ffffff80
[  426.343384@0] 6e40  00000010 00000000 00000101 00000000 00000001 00000000 0aa660c0 ffffff80
[  426.351704@0] 6e60  a02f6ee0 ffffffc0 09081974 ffffff80 0aa660c8 ffffff80 00000001 00000000
[  426.360024@0] 6e80  00000282 00000000 0aa660c0 ffffff80 a02f6f78 ffffffc0 00000000 00000000
[  426.368344@0] 6ea0  00000282 00000000 0aa660c0 ffffff80 00000010 00000000 00000101 00000000
[  426.376664@0] 6ec0  a02f6ee0 ffffffc0 09081968 ffffff80 0aa660c8 ffffff80 09081958 ffffff80
[  426.384984@0] 6ee0  a02f6f80 ffffffc0 090ad900 ffffff80 0ac36ec0 ffffff80 00000000 00000000
[  426.393304@0] 6f00  00000003 00000000 0a418000 ffffff80 0a418000 ffffff80 00000000 00000000
[  426.401625@0] 
[  426.401625@0] X14: 0xffffffc0a0300a90:
[  426.406997@0] 0a90  0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6cae0 ffffffc0
[  426.415317@0] 0ab0  0a601000 ffffff80 9b956200 ffffffc0 ffffffff 00000000 a02f6c00 ffffffc0
[  426.423637@0] 0ad0  095036dc ffffff80 a0300b10 ffffffc0 09503658 ffffff80 800001c5 00000000
[  426.431957@0] 0af0  00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[  426.440277@0] 0b10  00000000 00000000 00000000 00000000 00000000 00000000 00000083 00000000
[  426.448597@0] 0b30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.456917@0] 0b50  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.465237@0] 0b70  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.473558@0] 
[  426.473558@0] X18: 0xffffffc0a0300a90:
[  426.478931@0] 0a90  0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6cae0 ffffffc0
[  426.487251@0] 0ab0  0a601000 ffffff80 9b956200 ffffffc0 ffffffff 00000000 a02f6c00 ffffffc0
[  426.495571@0] 0ad0  095036dc ffffff80 a0300b10 ffffffc0 09503658 ffffff80 800001c5 00000000
[  426.503891@0] 0af0  00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[  426.512211@0] 0b10  00000000 00000000 00000000 00000000 00000000 00000000 00000083 00000000
[  426.520531@0] 0b30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.528851@0] 0b50  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.537171@0] 0b70  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.545492@0] 
[  426.545492@0] X25: 0xffffffc09ba6ca60:
[  426.550864@0] ca60  00007a59 00000001 00000000 00000000 000000ff 00000000 00000000 00000000
[  426.559184@0] ca80  756f7267 ff003070 00000000 00000000 00000000 00000000 00000000 00000000
[  426.567504@0] caa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.575824@0] cac0  9ba6cc40 ffffffc0 00000002 00000002 9ba6cb00 ffffffc0 9b8a9200 ffffffc0
[  426.584144@0] cae0  00000003 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.592464@0] cb00  00000001 00000000 0000047e 00000000 0000023f 00000000 0000023f 00000000
[  426.600784@0] cb20  00007afa 00000001 00000000 00000000 000000ff 00000000 00000000 00000000
[  426.609104@0] cb40  616d6f64 00306e69 00000000 00000000 00000000 00000000 00000000 00000000
[  426.617425@0] 
[  426.617425@0] X27: 0xffffffc09b956180:
[  426.622797@0] 6180  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.631117@0] 61a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.639437@0] 61c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.647757@0] 61e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  426.656077@0] 6200  00000000 00000000 ffffffff ffffffff 00000002 00000000 00000100 00000000
[  426.664397@0] 6220  2001c000 ffffff80 00000002 00208040 00000000 00000000 00000000 00000000
[  426.672717@0] 6240  00000000 00000000 00000002 00000000 00005cd9 00000001 8d958e00 ffffffc0
[  426.681037@0] 6260  00000000 00000000 00000078 00000078 00000078 00000000 09f29468 ffffff80
[  426.689358@0] 
[  426.689358@0] X29: 0xffffffc0a02f6b80:
[  426.694731@0] 6b80  0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6cae0 ffffffc0
[  426.703051@0] 6ba0  0a601000 ffffff80 9b956200 ffffffc0 ffffffff 00000000 a02f6c00 ffffffc0
[  426.711370@0] 6bc0  095036dc ffffff80 a02f6c00 ffffffc0 09503658 ffffff80 800001c5 00000000
[  426.719691@0] 6be0  00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[  426.728011@0] 6c00  a02f6c10 ffffffc0 090f2460 ffffff80 a02f6d20 ffffffc0 090db89c ffffff80
[  426.736330@0] 6c20  9b956200 ffffffc0 a0301a00 ffffffc0 9b9569f4 ffffffc0 00000000 00000000
[  426.744651@0] 6c40  00000140 00000000 0aa6b000 ffffff80 0a601000 ffffff80 9b956610 ffffffc0
[  426.752971@0] 6c60  00000000 00000000 00000002 00000000 00000009 00000000 00000000 ffffffff
[  426.761291@0] 
[  426.762938@0] Process swapper/0 (pid: 0, stack limit = 0xffffff800aa60000)
[  426.769785@0] Stack: (0xffffffc0a02f6c00 to 0xffffff800aa64000)
[  426.775678@0] Call trace:
[  426.778279@0] Exception stack(0xffffffc0a02f6ab0 to 0xffffffc0a02f6be0)
[  426.784866@0] 6aa0:                                   0000000000000000 0000007fffffffff
[  426.792839@0] 6ac0: ffffffc0a0300b10 ffffff80095036dc 0000000000000000 0000000000000008
[  426.800812@0] 6ae0: 0000000000000000 0000000000000000 ffffffffffffffff 0000000000000000
[  426.808785@0] 6b00: 0000000000000380 0000000000002770 ffffff800aa69ba8 0000200c10400000
[  426.816759@0] 6b20: ffffffc0a02f6ea0 0000000000000001 0000000000000000 0000000000000000
[  426.824732@0] 6b40: ffffffc0a0300b10 0000490a56ca2a9e ffffff8009141458 ffffff800aa63ef0
[  426.832705@0] 6b60: ffffffc0a0300b10 0000000000000000 0000000000000000 0000000000000000
[  426.840679@0] 6b80: ffffff800aa6b000 00000000ffffffff ffffff800aa6ac64 ffffffc09ba6cae0
[  426.848652@0] 6ba0: ffffff800a601000 ffffffc09b956200 00000000ffffffff ffffffc0a02f6c00
[  426.856626@0] 6bc0: ffffff80095036dc ffffffc0a02f6c00 ffffff8009503658 00000000800001c5
[  426.864603@0] [ffffffc0a02f6c00+  16][<ffffff8009503658>] _find_next_bit.part.0+0x10/0x70
[  426.872748@0] [ffffffc0a02f6c10+ 272][<ffffff80090f2460>] select_task_rq_fair+0x380/0x1320
[  426.880981@0] [ffffffc0a02f6d20+ 112][<ffffff80090db89c>] try_to_wake_up+0x154/0x3f0
[  426.888693@0] [ffffffc0a02f6d90+  32][<ffffff80090dbb60>] wake_up_process+0x28/0x38
[  426.896321@0] [ffffffc0a02f6db0+  32][<ffffff8009129b30>] process_timeout+0x20/0x30
[  426.903947@0] [ffffffc0a02f6dd0+  64][<ffffff8009129968>] call_timer_fn+0x38/0x1e0
[  426.911486@0] [ffffffc0a02f6e10+  80][<ffffff8009129c84>] expire_timers+0x144/0x188
[  426.919113@0] [ffffffc0a02f6e60+ 128][<ffffff8009129d9c>] run_timer_softirq+0xd4/0x190
[  426.927000@0] [ffffffc0a02f6ee0+ 160][<ffffff8009081974>] __do_softirq+0x13c/0x3b8
[  426.934541@0] [ffffffc0a02f6f80+  32][<ffffff80090ad900>] irq_exit+0xc0/0xf8
[  426.941562@0] [ffffffc0a02f6fa0+  96][<ffffff8009113800>] __handle_domain_irq+0x90/0xf8
[  426.949533@0] [ffffffc0a02f7000+  64][<ffffff8009081664>] gic_handle_irq+0x5c/0xb0
[  426.957071@0] Exception stack(0xffffff800aa63dc0 to 0xffffff800aa63ef0)
[  426.963659@0] 3dc0: 0000000000000000 ffffff800ad96978 0000000000000000 0000000000000001
[  426.971632@0] 3de0: 0000004095d00000 00ffffffffffffff 0000000006b644a1 00000063344dd6ef
[  426.979606@0] 3e00: ffffff800aa7a5b0 ffffff800aa63e70 0000000000000a10 0000000000000277
[  426.987579@0] 3e20: 0000000000000018 00000003e8000000 001ccc4ecc018f19 0000490a56ca2a9e
[  426.995553@0] 3e40: ffffff8009141458 0000007faa6850c8 00a3d70a3d70a3d6 ffffff800aa69af8
[  427.003525@0] 3e60: 0000000000000000 ffffff800aa69ba4 0000000000000000 0000000000000000
[  427.011499@0] 3e80: ffffff800a5fc7b0 ffffff800a4185b8 ffffff800ac1a8a0 0000000000000001
[  427.019472@0] 3ea0: ffffff800aa69000 ffffff800aa63ef0 ffffff8009085fec ffffff800aa63ef0
[  427.027446@0] 3ec0: ffffff8009085ff0 0000000040000145 0000000000000000 0000000000000000
[  427.035418@0] 3ee0: ffffffffffffffff 0000000000000000
[  427.040446@0] [ffffffc0a02f7040+   0][<ffffff8009083284>] el1_irq+0x104/0x178
[  427.047554@0] [ffffff800aa63ef0+  32][<ffffff8009085ff0>] arch_cpu_idle+0x30/0x1b0
[  427.055095@0] [ffffff800aa63f10+  16][<ffffff8009f08b8c>] default_idle_call+0x24/0x40
[  427.062895@0] [ffffff800aa63f20+  96][<ffffff80090fe89c>] cpu_startup_entry+0x1a4/0x200
[  427.070867@0] [ffffff800aa63f80+  32][<ffffff8009f029bc>] rest_init+0x84/0x90
[  427.077975@0] [ffffff800aa63fa0+  80][<ffffff800a500b6c>] start_kernel+0x388/0x3a0
[  427.085513@0] [ffffff800aa63ff0+   0][<ffffff800a500200>] __primary_switched+0x7c/0x90
[  427.093400@0] Code: d346fc45 92800004 9ac22084 927ae442 (f8657805) 
[  427.099643@0] ---[ end trace 634c34cc8033bdc6 ]---
[  427.109839@0] Kernel panic - not syncing: Fatal exception in interrupt
[  427.110907@0] SMP: stopping secondary CPUs
[  428.156647@0] SMP: failed to stop secondary CPUs 0,5
[  428.156666@0] Kernel Offset: disabled
[  428.159606@0] Memory Limit: none
[  428.168247@0] Rebooting in 5 seconds..
[  433.168270@0] SMP: stopping secondary CPUs
[  434.209956@0] SMP: failed to stop secondary CPUs 0,5
[  434.209975@0] reboot reason 12
bl31 reboot reason: 0xd
bl31 reboot reason: 0xc
system cmd  1.

G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180

TE: 259519

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-sz

Board ID = 7
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00043d9d
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 7
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==77 ps 8
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==27
VrefDac_Margin_A0==29
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==30
DeviceVref_Margin_A1==26


channel==1
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==25
TrainedVREFDQ_A1==24
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==25
VrefDac_Margin_A1==28
DeviceVref_Margin_A1==24

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 

soc_vref_reg_value 0x 00000028 00000027 00000029 00000027 00000028 00000028 00000027 00000028 00000028 00000027 00000027 00000026 00000027 00000028 00000028 00000027 0000002a 00000028 00000029 00000027 00000029 00000027 00000027 00000027 00000028 00000028 00000029 00000029 00000027 00000027 00000029 00000029 dram_vref_reg_value 0x 00000013
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 414
result report
boot times 3Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0

MVN_1=0x00000000

MVN_2=0x00000000

[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]

OPS=0x10

ring efuse init

chipver efuse init

29 0b 10 00 01 22 1f 00 00 0f 35 38 53 42 56 50 

[1.060442 Inits done]

secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):4fc40b1
NOTICE:  BL31: Built : 15:58:17, May 22 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (May 20 2021 - 10:56:28)

DRAM:  3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39210
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x03
MCU version is to low! Doesn't support froce boot from SD card.
MMC:   aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
get_partition_from_dts() 91: ret 0
parts: 3
00:      logo	0000000000800000 1
01:   ramdisk	0000000002000000 1
02:    rootfs	ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x6c00000 
In:    serial
Out:   serial
Err:   serial
reboot_mode=kernel_panic
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc f21e973d, store f21e973d
_verify_dtb_checksum()-3477: calc f21e973d, store f21e973d
dtb_read()-3694: total valid 2
update_old_dtb()-3675: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0

amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_0
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net:   dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:1f:22:01(from chipid)

upgrade_step=0
reboot_mode:::: kernel_panic

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:71:27:62
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is 1080p60hz[16]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
edid extension block number : 2
Dump EDID Rawdata
00ffffffffffff004c2d450b42475a5a0d1d010380341d782a7dd1a45650a128
0f5054bfef80714f81c0810081809500a9c0b3000101023a801871382d40582c
450009252100001e011d007251d01e206e28550009252100001e000000fd0032
4b1e5111000a202020202020000000fc00533234443330300a20202020200185
020311b14690041f13120365030c001000011d00bc52d01e20b8285540092521
00001e8c0ad090204031200c4055000925210000188c0ad08a20e02d10103e96
0009252100001800000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000051
Manufacturer: SAM Model b45 Serial Number 1515865922
EDID version: 1.3
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@56Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
  1280x1024@75Hz
  1152x870@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x720@60Hz
  1280x800@60Hz
  1280x1024@60Hz
  1440x900@60Hz
  1600x900@60Hz
  1680x1050@60Hz
Detailed mode (1) : Clock 148 MHz, 521 mm x 293 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 74 MHz, 521 mm x 293 mm
               1280 1390 1430 1650 hborder 0
                720  725  730  750 vborder 0
               +hsync +vsync 
Monitor ranges (GTF): 50-75Hz V, 30-81kHz H, max dotclock 170MHz
Monitor name: S24D300
Has 1 extension blocks
Checksum: 0x85 (valid)

CEA extension block
Extension version: 3
13 bytes of CEA data
    VIC  16 1920x1080@60Hz (native)
    VIC   4 1280x720@60Hz 
    VIC  31 1920x1080@50Hz 
    VIC  19 1280x720@50Hz 
    VIC  18 720x576@50Hz 
    VIC   3 720x480@60Hz 
  Vendor-specific data block, OUI 000c03 (HDMI)
Detailed mode (1) : Clock 74 MHz, 521 mm x 293 mm
               1280 1720 1760 1980 hborder 0
                720  725  730  750 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 27 MHz, 521 mm x 293 mm
                720  732  796  864 hborder 0
                576  581  586  625 vborder 0
               -hsync -vsync 
Detailed mode (1) : Clock 27 MHz, 521 mm x 293 mm
                720  736  798  858 hborder 0
                480  489  495  525 vborder 0
               -hsync -vsync 
Checksum: 0x51 (valid)

khadas_support_mode 1080p60hz
bestmode is 1080p60hz, IEEEOUI 0x000c03
HDMI Mode
hpd_state=1
[OSD]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=5760, height=2160
card out
** Bad device mmc 0 **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
1080138 bytes read in 66 ms (15.6 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx: set enc for VIC: 16
hdmitx phy setting done
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:71:27:62
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x285, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power off
boot wol: disable
port mode is usb3.0
Hit Enter or space or Ctrl+C key to stop autoboot -- :  1  0 
pll tsensor avg: 0x2263, u_efuse: 0x8158
temp1: 52
ddr tsensor avg: 0x2266, u_efuse: 0x80d2
temp2: 54
device cool done
cfgload: start ...
cfgload: reading /boot.ini from mmc 0:1 ...
card out
** Bad device mmc 0 **
cfgload: no /boot.ini or empty file on mmc 0:1
cfgload: reading /boot/boot.ini from mmc 0:1 ...
card out
** Bad device mmc 0 **
cfgload: no /boot/boot.ini or empty file on mmc 0:1
cfgload: reading /boot.ini from mmc 1:1 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
cfgload: no /boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:1 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
cfgload: no /boot/boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:5 ...
10005 bytes read in 5 ms (1.9 MiB/s)
cfgload: applying boot.ini...
[#] Script a:d3e3a1a0 l:9985 c:0 s:0 - run
Starting boot.ini...
saradc: 0x285, hw_ver: 0x32 (VIM3.V12)
uboot type: vendor
Scanning mmc 0:1...
card out
** Bad device mmc 0 **
Scanning mmc 0:5...
card out
** Bad device mmc 0 **
Scanning mmc 1:1...
** Unrecognized filesystem type **
Scanning mmc 1:5...
11121305 bytes read in 319 ms (33.2 MiB/s)
29043200 bytes read in 823 ms (33.7 MiB/s)
88835 bytes read in 9 ms (9.4 MiB/s)
4210 bytes read in 5 ms (822.3 KiB/s)
Import env.txt
Can not get u-boot part UUID, set to NULL
Booting legacy kernel...
port mode is usb3.0
Apply dtbo uart3
225 bytes read in 9 ms (24.4 KiB/s)
Apply dtbo pwm_f
345 bytes read in 9 ms (37.1 KiB/s)
Apply dtbo i2c3
223 bytes read in 8 ms (26.4 KiB/s)
Apply dtbo i2s
3330 bytes read in 8 ms (406.3 KiB/s)
Apply dtbo os08a10
1072 bytes read in 9 ms (116.2 KiB/s)
Apply dtbo watchdog
222 bytes read in 10 ms (21.5 KiB/s)
HDMI: Autodetect: 1080p60hz
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    11121241 Bytes = 10.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   reserving fdt memory region: addr=1000000 size=16000
   Loading Ramdisk to 7ed64000, end 7f7ff259 ... OK
   Loading Device Tree to 000000001ffe7000, end 000000001fffffff ... OK

Starting kernel ...
uboot time: 5416560 us
[    0.358246@2] codec_mm_module_init
[    0.365206@2] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[    0.541358@2] dmi: Firmware registration failed.
[    0.545193@4] lcd: error: failed to get null
[    0.545214@4] lcd: error: Out of clock range, reset to default setting
[    0.545297@4] lcd: error: lcd_debug_info_if is null
[    0.753168@5] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.774928@5] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
[    0.776497@5] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
[    0.778088@5] ff803000.serial: clock gate not found
[    0.833557@5] meson-remote ff808040.rc: don't find the node <led_blink>
[    0.834540@5] meson-remote ff808040.rc: don't find the node <led_blink_frq>
[    0.842052@5] efuse efuse:  open efuse clk gate error!!
[    0.873802@5] meson-fb meson-fb: create ion_client ffffffc0987f7480, handle=ffffffc09ac2a2c0
[    0.873805@5] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB
[    0.987647@0] di_get_vpu_clkb: get clk vpu error.
[    0.988742@0] get fclk_div5 err
[    0.989849@0] vdin_drv_probe: vdin cannot get msr clk !!!
[    0.995728@1] get fclk_div5 err
[    0.998348@1] vdin_drv_probe: vdin cannot get msr clk !!!
[    1.005011@2] amlvideo2 probe called
[    1.007381@2] amlvideo2 probe called
[    1.011054@2] Reserved memory: failed to init DMA memory pool at 0x00000000e3000000, size 0 MiB
[    1.022277@2] meson-mmc: >>>>>>>>hostbase ffffff80088f6000, dmode 
[    1.082140@3] meson-mmc: >>>>>>>>hostbase ffffff8008a82000, dmode 
[    1.117306@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.118992@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.126944@1] meson-mmc: >>>>>>>>hostbase ffffff8008b0c000, dmode 
[    1.135675@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.140502@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.150779@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.158126@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.165270@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.170513@4] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend not report pw status
[    1.170513@4] 
[    1.172465@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.172492@1] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[    1.193100@4] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a
[    1.199134@4] cectx ff80023c.aocec: cecb_ver:0x1
[    1.203728@4] cectx ff80023c.aocec: line_reg:0x1
[    1.208319@4] cectx ff80023c.aocec: line_bit:0x3
[    1.212913@4] cectx ff80023c.aocec: ee_to_ao:0x1
[    1.217630@4] cectx ff80023c.aocec: not find 'port_num'
[    1.222711@4] cectx ff80023c.aocec: using cec:1
[    1.227229@4] cectx ff80023c.aocec: no hdmirx regs
[    1.231981@4] cectx ff80023c.aocec: no hhi regs
[    1.236488@4] cectx ff80023c.aocec: not find 'output'
[    1.242963@4] cectx ff80023c.aocec: irq cnt:2
[    1.245959@4] cectx ff80023c.aocec: wakeup_reason:0x0
[    1.250925@4] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[    1.256420@4] cectx ff80023c.aocec: aml_cec_probe success end
[    1.709403@0] defendkey ff630218.defendkey: Reserved memory is not enough!
[    1.933961@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[    1.936061@0] snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK: -16
[    1.943492@0] aml_dai_tdm_probe, failed add snd tdm controls
[    1.949080@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[    1.956801@0] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK: -16
[    1.964178@2] aml_dai_tdm_probe, failed add snd tdm controls
[    2.329987@5] edt_ft5x06 3-0038: touchscreen probe failed
e2fsck 1.45.5 (07-Jan-2020)
ROOTFS: recovering journal
Clearing orphaned inode 259721 (uid=1000, gid=1000, mode=0100664, size=32768)
Clearing orphaned inode 259654 (uid=1000, gid=1000, mode=0100600, size=64)
Setting free inodes count to 1712369 (was 1712389)
Setting free blocks count to 5828122 (was 5828332)
ROOTFS: clean, 165903/1878272 files, 1759718/7587840 blocks
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.32:  No such file or directory
[   10.501411@0] cgroup: cgroup2: unknown option "nsdelegate"
[   11.630988@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[   11.631962@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[   11.639419@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[   11.644963@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[   11.655949@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[   11.657966@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[   11.823916@5] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[   11.854956@5] meson-mmc: Tuning transfer error: nmatch=30 tuning_err:0xffffffac
[   12.216202@3] No find node.
[   12.273926@5] out of value, fixed it
[   12.296590@4] Amlogic A/V streaming port init
[   12.562652@2] iq name from dts config is ----> os08a10
[   12.574696@2] config sensor os08a10 driver.
[   12.577842@4] pwr_enable: get_named_gpio power-enable fail
[   12.578700@4] set power fail
[   12.597029@4] arm_sensor_i2c_probe: start to probe
[   12.597425@4] system_i2c_init:success to add i2c driver
[   12.610322@4] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.612333@4] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.620925@4] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.647733@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.651383@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.656321@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[   12.681110@4] meson-fb meson-fb: create ion_client ffffffc0987f7480, handle=ffffffc08911fc80
[   12.683954@4] meson-fb meson-fb: ion memory(1): created fb at 0x00000000ea400000, size 1 MiB
[   12.699682@4] meson-fb meson-fb: create ion_client ffffffc0987f7480, handle=ffffffc098f49500
[   12.702659@4] meson-fb meson-fb: ion memory(2): created fb at 0x00000000ea500000, size 1 MiB
[   12.717999@4] meson-fb meson-fb: create ion_client ffffffc0987f7480, handle=ffffffc098f49080
[   12.720792@4] meson-fb meson-fb: ion memory(3): created fb at 0x00000000ea600000, size 8 MiB
[   12.985976@2] meson-remote ff808040.rc: remote_ioctl invalid user space pointer
[   13.172213@5] out of value, fixed it
[   14.912009@4] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[   14.930958@5] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[   15.256007@3] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
[   17.741433] rc.local[4002]: /usr/sbin/lightdm


Ubuntu 20.04.2 LTS Khadas ttyS0

Khadas login:

不好意思哈,现在没有权限上传文件,只能这样贴!好像是内核指针错误!

我们论坛是支持markdown的,你可以去看下makedown的用法,上面的log我给你修改成markdown的方式了。

你跑的什么程序?怎么把内核都搞挂了。