Vim3板子上ubuntu系统异常重启

QT+opencv图像处理,软件+算法一起跑。

我的软件在RK3399上跑了几个月,从来没有出现这种问题。

上面的log太少了,看不出来是什么原因。
可以先调整一下内核打印等级,然后在运行你的程序抓一下log。

$ echo 8 4 1 7 | sudo tee /proc/sys/kernel/printk

好的,已经在terminal上运行了这行指令,但是没看懂这行指令具体是啥意思?

[ 6775.636941@0] IPVS: Creating netns size=1928 id=6
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.?,K褏潟}スパ?x01
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: 389112

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: 000637d6
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==58 ps 6
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==67 ps 7
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==26
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==97 ps 10
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==24
TrainedVREFDQ_A1==24
VrefDac_Margin_A0==28
DeviceVref_Margin_A0==24
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 00000029 00000028 00000027 00000027 00000026 00000027 00000028 00000028 00000027 0000002a 00000028 00000029 00000027 00000029 00000027 00000026 00000027 00000028 00000029 00000029 00000029 00000026 00000028 00000029 00000028 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

100bdlr_step_size ps== 409
result report
boot times 0Enable 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

[0.018961 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=cold_boot
[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:::: cold_boot

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 67 ms (15.4 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 on
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: 0x2268, 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 4 ms (2.4 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e61ce0 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 8 ms (42 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 9 ms (23.4 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: 5527972 us
[ 0.358176@2] codec_mm_module_init
[ 0.364931@2] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[ 0.545382@4] dmi: Firmware registration failed.
[ 0.549252@4] lcd: error: failed to get null
[ 0.549272@4] lcd: error: Out of clock range, reset to default setting
[ 0.549351@4] lcd: error: lcd_debug_info_if is null
[ 0.756956@3] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.778521@2] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 0.780076@2] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 0.781653@2] ff803000.serial: clock gate not found
[ 0.837131@2] meson-remote ff808040.rc: don’t find the node <led_blink>
[ 0.838115@2] meson-remote ff808040.rc: don’t find the node <led_blink_frq>
[ 0.845614@2] efuse efuse: open efuse clk gate error!!
[ 0.877572@3] meson-fb meson-fb: create ion_client ffffffc09b11db40, handle=ffffffc09bbfc440
[ 0.877576@3] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB
[ 0.990158@0] di_get_vpu_clkb: get clk vpu error.
[ 0.991289@0] get fclk_div5 err
[ 0.992342@0] vdin_drv_probe: vdin cannot get msr clk !!!
[ 0.998207@0] get fclk_div5 err
[ 1.000860@0] vdin_drv_probe: vdin cannot get msr clk !!!
[ 1.009190@0] amlvideo2 probe called
[ 1.010021@0] amlvideo2 probe called
[ 1.013955@0] Reserved memory: failed to init DMA memory pool at 0x00000000e3000000, size 0 MiB
[ 1.024983@3] meson-mmc: >>>>>>>>hostbase ffffff80088f6000, dmode
[ 1.082334@1] meson-mmc: >>>>>>>>hostbase ffffff8008a82000, dmode
[ 1.123251@2] meson-mmc: >>>>>>>>hostbase ffffff8008b0c000, dmode
[ 1.162989@1] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend not report pw status
[ 1.162989@1]
[ 1.168029@2] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a
[ 1.173939@2] cectx ff80023c.aocec: cecb_ver:0x1
[ 1.178526@2] cectx ff80023c.aocec: line_reg:0x1
[ 1.183119@2] cectx ff80023c.aocec: line_bit:0x3
[ 1.187709@2] cectx ff80023c.aocec: ee_to_ao:0x1
[ 1.192441@3] cectx ff80023c.aocec: not find ‘port_num’
[ 1.197530@3] cectx ff80023c.aocec: using cec:1
[ 1.202039@3] cectx ff80023c.aocec: no hdmirx regs
[ 1.206793@3] cectx ff80023c.aocec: no hhi regs
[ 1.211283@3] cectx ff80023c.aocec: not find ‘output’
[ 1.217756@3] cectx ff80023c.aocec: irq cnt:2
[ 1.220754@3] cectx ff80023c.aocec: wakeup_reason:0x0
[ 1.225732@3] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[ 1.231232@3] cectx ff80023c.aocec: aml_cec_probe success end
[ 1.255234@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.256920@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.267428@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.271326@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.282818@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.290005@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.297172@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.304290@0] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.307323@0] meson-mmc: Tuning transfer error: nmatch=1 tuning_err:0xffffffac
[ 1.683872@3] defendkey ff630218.defendkey: Reserved memory is not enough!
[ 1.897800@3] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 1.899898@3] snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK: -16
[ 1.907273@3] aml_dai_tdm_probe, failed add snd tdm controls
[ 1.912909@3] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 1.920617@3] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK: -16
[ 1.927986@3] aml_dai_tdm_probe, failed add snd tdm controls
[ 2.297959@3] edt_ft5x06 3-0038: touchscreen probe failed
e2fsck 1.45.5 (07-Jan-2020)
ROOTFS: recovering journal
Clearing orphaned inode 259658 (uid=1000, gid=1000, mode=0100664, size=32768)
Clearing orphaned inode 259656 (uid=1000, gid=1000, mode=0100600, size=64)
Setting free inodes count to 1712369 (was 1712371)
Setting free blocks count to 5828025 (was 5828131)
ROOTFS: clean, 165903/1878272 files, 1759815/7587840 blocks
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.32: No such file or directory
[ 10.537923@0] cgroup: cgroup2: unknown option “nsdelegate”
[ 11.703448@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 11.704424@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 11.711882@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 11.717424@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 11.728440@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 11.730424@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 11.927108@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 11.942417@2] meson-mmc: Tuning transfer error: nmatch=1 tuning_err:0xffffffac
[ 12.089074@2] out of value, fixed it
[ 12.415241@3] meson-fb meson-fb: create ion_client ffffffc09b11db40, handle=ffffffc09a3d1540
[ 12.418102@3] meson-fb meson-fb: ion memory(1): created fb at 0x00000000ea400000, size 1 MiB
[ 12.422135@2] No find node.
[ 12.438411@4] meson-fb meson-fb: create ion_client ffffffc09b11db40, handle=ffffffc0999552c0
[ 12.441213@4] meson-fb meson-fb: ion memory(2): created fb at 0x00000000ea500000, size 1 MiB
[ 12.470556@2] meson-fb meson-fb: create ion_client ffffffc09b11db40, handle=ffffffc088a0e7c0
[ 12.473364@2] meson-fb meson-fb: ion memory(3): created fb at 0x00000000ea600000, size 8 MiB
[ 12.474824@5] Amlogic A/V streaming port init
[ 12.582234@5] iq name from dts config is ----> os08a10
[ 12.591872@5] config sensor os08a10 driver.
[ 12.594104@5] pwr_enable: get_named_gpio power-enable fail
[ 12.595873@5] set power fail
[ 12.609614@5] arm_sensor_i2c_probe: start to probe
[ 12.609987@5] system_i2c_init:success to add i2c driver
[ 12.614459@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.620786@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.627462@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.656846@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.658048@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.665277@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.823718@0] meson-remote ff808040.rc: remote_ioctl invalid user space pointer
[ 13.025854@0] out of value, fixed it
[ 14.781936@4] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 14.798462@0] meson-mmc: Tuning transfer error: nmatch=17 tuning_err:0xffffffac
[ 15.140504@4] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
[ 17.257860] rc.local[4022]: /usr/sbin/lightdm

Ubuntu 20.04.2 LTS Khadas ttyS0

Khadas login:

以上是我在ubuntu上运行软件,ubuntu系统异常重启信息打印。

: [ 432.112914@0] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[ 432.115572@0] pgd = ffffffc08dde2000
[ 432.119094@0] [0000000000000004] *pgd=0000000000000000, *pud=0000000000000000
[ 432.126203@0] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 432.131922@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 iv009_isp mali_kbase zram dhd btrfs xor raid6_pq
[ 432.172309@0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.241 #13
[ 432.178546@0] Hardware name: Khadas VIM3 (DT)
[ 432.182880@0] task: ffffff800aa79b40 task.stack: ffffff800aa60000
[ 432.188954@0] PC is at _find_next_bit.part.0+0x10/0x70
[ 432.194060@0] LR is at find_next_bit+0x24/0x30
[ 432.198479@0] pc : [] lr : [] pstate: 800001c5
[ 432.206019@0] sp : ffffffc0a02f6c60
[ 432.209486@0] x29: ffffffc0a02f6c60 x28: 00000000ffffffff
[ 432.214945@0] x27: ffffffc08da42a00 x26: ffffff800a601000
[ 432.220405@0] x25: ffffffc09ba6c960 x24: ffffff800aa6ac64
[ 432.225865@0] x23: 00000000ffffffff x22: ffffff800aa6b000
[ 432.231325@0] x21: 0000000000000000 x20: 0000000000000000
[ 432.236785@0] x19: 0000000000000000 x18: ffffffc0a0300b10
[ 432.242246@0] x17: ffffff800aa63ef0 x16: ffffff8009141458
[ 432.247705@0] x15: 0000580dfdfb9e60 x14: ffffffc0a0300b10
[ 432.253165@0] x13: ffffff8009085fec x12: ffffff800aa63ef0
[ 432.258625@0] x11: ffffff800aa69000 x10: 0000000000000001
[ 432.264085@0] x9 : 0000000000000040 x8 : 0000000000000000
[ 432.269545@0] x7 : 000000000003cd48 x6 : 0000000000000261
[ 432.275005@0] x5 : 0000000000000000 x4 : fffffffffffffff0
[ 432.280465@0] x3 : 0000000000000000 x2 : 0000000000000000
[ 432.285925@0] x1 : 0000000000000008 x0 : 0000000000000004
[ 432.291386@0]
[ 432.291386@0] SP: 0xffffffc0a02f6be0:
[ 432.296672@0] 6be0 0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6c960 ffffffc0
[ 432.304992@0] 6c00 0a601000 ffffff80 8da42a00 ffffffc0 ffffffff 00000000 a02f6c60 ffffffc0
[ 432.313312@0] 6c20 095036dc ffffff80 a02f6c60 ffffffc0 09503658 ffffff80 800001c5 00000000
[ 432.321632@0] 6c40 00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[ 432.329952@0] 6c60 a02f6c70 ffffffc0 090f2460 ffffff80 a02f6d80 ffffffc0 090db89c ffffff80
[ 432.338272@0] 6c80 8da42a00 ffffffc0 a0301a00 ffffffc0 8da431f4 ffffffc0 00000000 00000000
[ 432.346592@0] 6ca0 000001c0 00000000 0aa6b000 ffffff80 0a601000 ffffff80 8da42e10 ffffffc0
[ 432.354912@0] 6cc0 0912b938 ffffff80 0aa79b40 ffffff80 9ae81c00 ffffffc0 00000001 00000002
[ 432.363235@0]
[ 432.363235@0] X14: 0xffffffc0a0300a90:
[ 432.368605@0] 0a90 0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6c960 ffffffc0
[ 432.376925@0] 0ab0 0a601000 ffffff80 8da42a00 ffffffc0 ffffffff 00000000 a02f6c60 ffffffc0
[ 432.385245@0] 0ad0 095036dc ffffff80 a0300b10 ffffffc0 09503658 ffffff80 800001c5 00000000
[ 432.393565@0] 0af0 00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[ 432.401885@0] 0b10 00000000 00000000 00000000 00000000 00000000 00000000 00000032 00000000
[ 432.410205@0] 0b30 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.418525@0] 0b50 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.426845@0] 0b70 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.435166@0]
[ 432.435166@0] X18: 0xffffffc0a0300a90:
[ 432.440539@0] 0a90 0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6c960 ffffffc0
[ 432.448858@0] 0ab0 0a601000 ffffff80 8da42a00 ffffffc0 ffffffff 00000000 a02f6c60 ffffffc0
[ 432.457178@0] 0ad0 095036dc ffffff80 a0300b10 ffffffc0 09503658 ffffff80 800001c5 00000000
[ 432.465498@0] 0af0 00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[ 432.473818@0] 0b10 00000000 00000000 00000000 00000000 00000000 00000000 00000032 00000000
[ 432.482138@0] 0b30 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.490458@0] 0b50 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.498778@0] 0b70 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.507100@0]
[ 432.507100@0] X25: 0xffffffc09ba6c8e0:
[ 432.512472@0] c8e0 00008158 00000001 00000000 00000000 000000ff 00000000 00000000 00000000
[ 432.520792@0] c900 756f7267 ff003170 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.529112@0] c920 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.537432@0] c940 9ba6ca00 ffffffc0 00000001 00000001 9ba6c980 ffffffc0 9b8a9580 ffffffc0
[ 432.545752@0] c960 00000010 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.554072@0] c980 00000001 00000000 000004a8 00000000 000004a8 00000000 000004a8 00000000
[ 432.562392@0] c9a0 00008141 00000001 00000000 00000000 000000ff 00000000 00000000 00000000
[ 432.570712@0] c9c0 72656e65 ff007967 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.579033@0]
[ 432.579033@0] X27: 0xffffffc08da42980:
[ 432.584405@0] 2980 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.592725@0] 29a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.601045@0] 29c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.609365@0] 29e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 432.617685@0] 2a00 00000000 00000000 ffffffff 0000007f 00000002 00000000 00000100 00000000
[ 432.626005@0] 2a20 20780000 ffffff80 00000002 40404040 00000000 00000000 00000000 00000000
[ 432.634325@0] 2a40 00000000 00000000 00000005 00000000 000080c0 00000001 8c3a8e00 ffffffc0
[ 432.642645@0] 2a60 00000000 00000000 00000078 00000078 00000078 00000000 09f29468 ffffff80
[ 432.650966@0]
[ 432.650966@0] X29: 0xffffffc0a02f6be0:
[ 432.656338@0] 6be0 0aa6b000 ffffff80 ffffffff 00000000 0aa6ac64 ffffff80 9ba6c960 ffffffc0
[ 432.664658@0] 6c00 0a601000 ffffff80 8da42a00[ 432.668264@1] sensors 4-000e: sensor_delaywork_func: Get data failed
[ 432.675232@0] ffffffc0
[ 432.677659@0] ffffffff 00000000 a02f6c60 ffffffc0
[ 432.682425@0] 6c20 095036dc ffffff80 a02f6c60 ffffffc0 09503658 ffffff80 800001c5 00000000
[ 432.690745@0] 6c40 00000000 00000000 00000000 00000000 ffffffff 0000007f 00000000 00000000
[ 432.699065@0] 6c60 a02f6c70 ffffffc0 090f2460 ffffff80 a02f6d80 ffffffc0 090db89c ffffff80
[ 432.707385@0] 6c80 8da42a00 ffffffc0 a0301a00 ffffffc0 8da431f4 ffffffc0 00000000 00000000
[ 432.715705@0] 6ca0 000001c0 00000000 0aa6b000 ffffff80 0a601000 ffffff80 8da42e10 ffffffc0
[ 432.724025@0] 6cc0 0912b938 ffffff80 0aa79b40 ffffff80 9ae81c00 ffffffc0 00000001 00000002
[ 432.732345@0]
[ 432.733993@0] Process swapper/0 (pid: 0, stack limit = 0xffffff800aa60000)
[ 432.740840@0] Stack: (0xffffffc0a02f6c60 to 0xffffff800aa64000)
[ 432.746733@0] Call trace:
[ 432.749333@0] Exception stack(0xffffffc0a02f6b10 to 0xffffffc0a02f6c40)
[ 432.755920@0] 6b00: 0000000000000000 0000007fffffffff
[ 432.763893@0] 6b20: ffffffc0a0300b10 ffffff80095036dc 0000000000000004 0000000000000008
[ 432.771867@0] 6b40: 0000000000000000 0000000000000000 fffffffffffffff0 0000000000000000
[ 432.779840@0] 6b60: 0000000000000261 000000000003cd48 0000000000000000 0000000000000040
[ 432.787813@0] 6b80: 0000000000000001 ffffff800aa69000 ffffff800aa63ef0 ffffff8009085fec
[ 432.795787@0] 6ba0: ffffffc0a0300b10 0000580dfdfb9e60 ffffff8009141458 ffffff800aa63ef0
[ 432.803760@0] 6bc0: ffffffc0a0300b10 0000000000000000 0000000000000000 0000000000000000
[ 432.811733@0] 6be0: ffffff800aa6b000 00000000ffffffff ffffff800aa6ac64 ffffffc09ba6c960
[ 432.819707@0] 6c00: ffffff800a601000 ffffffc08da42a00 00000000ffffffff ffffffc0a02f6c60
[ 432.827680@0] 6c20: ffffff80095036dc ffffffc0a02f6c60 ffffff8009503658 00000000800001c5
[ 432.835655@0] [ffffffc0a02f6c60+ 16][] _find_next_bit.part.0+0x10/0x70
[ 432.843802@0] [ffffffc0a02f6c70+ 272][] select_task_rq_fair+0x380/0x1320
[ 432.852035@0] [ffffffc0a02f6d80+ 112][] try_to_wake_up+0x154/0x3f0
[ 432.859747@0] [ffffffc0a02f6df0+ 32][] wake_up_process+0x28/0x38
[ 432.867376@0] [ffffffc0a02f6e10+ 32][] hrtimer_wakeup+0x28/0x38
[ 432.874915@0] [ffffffc0a02f6e30+ 112][] __hrtimer_run_queues+0xd8/0x360
[ 432.883061@0] [ffffffc0a02f6ea0+ 96][] hrtimer_interrupt+0xb4/0x1e8
[ 432.890950@0] [ffffffc0a02f6f00+ 32][] arch_timer_handler_phys+0x38/0x58
[ 432.899268@0] [ffffffc0a02f6f20+ 96][] handle_percpu_devid_irq+0xc0/0x2f0
[ 432.907676@0] [ffffffc0a02f6f80+ 32][] generic_handle_irq+0x34/0x50
[ 432.915561@0] [ffffffc0a02f6fa0+ 96][] __handle_domain_irq+0x8c/0xf8
[ 432.923535@0] [ffffffc0a02f7000+ 64][] gic_handle_irq+0x5c/0xb0
[ 432.931073@0] Exception stack(0xffffff800aa63dc0 to 0xffffff800aa63ef0)
[ 432.937660@0] 3dc0: 0000000000000000 ffffff800ad96978 0000000000000000 0000000000000001
[ 432.945633@0] 3de0: 0000004095d00000 00ffffffffffffff 000000000688f0f5 000000649bc6cab4
[ 432.953607@0] 3e00: ffffff800aa7a5b0 ffffff800aa63e70 0000000000000a10 0000000000000277
[ 432.961580@0] 3e20: 0000000000000000 0000000000000005 002e8c3a7b123571 0000580dfdfb9e60
[ 432.969553@0] 3e40: ffffff8009141458 0000007f80bfb0c8 00a3d70a3d70a3d6 ffffff800aa69af8
[ 432.977527@0] 3e60: 0000000000000000 ffffff800aa69ba4 0000000000000000 0000000000000000
[ 432.985500@0] 3e80: ffffff800a5fc7b0 ffffff800a4185b8 ffffff800ac1a8a0 0000000000000001
[ 432.993473@0] 3ea0: ffffff800aa69000 ffffff800aa63ef0 ffffff8009085fec ffffff800aa63ef0
[ 433.001447@0] 3ec0: ffffff8009085ff0 0000000040000145 0000000000000000 0000000000000000
[ 433.009419@0] 3ee0: ffffffffffffffff 0000000000000000
[ 433.014447@0] [ffffffc0a02f7040+ 0][] el1_irq+0x104/0x178
[ 433.021556@0] [ffffff800aa63ef0+ 32][] arch_cpu_idle+0x30/0x1b0
[ 433.029096@0] [ffffff800aa63f10+ 16][] default_idle_call+0x24/0x40
[ 433.036896@0] [ffffff800aa63f20+ 96][] cpu_startup_entry+0x1a4/0x200
[ 433.044867@0] [ffffff800aa63f80+ 32][] rest_init+0x84/0x90
[ 433.051976@0] [ffffff800aa63fa0+ 80][] start_kernel+0x388/0x3a0
[ 433.059514@0] [ffffff800aa63ff0+ 0][] __primary_switched+0x7c/0x90
[ 433.067401@0] Code: d346fc45 92800004 9ac22084 927ae442 (f8657805)
[ 433.073643@0] —[ end trace a4fc85e8cdc5f3b4 ]—
[ 433.083857@0] Kernel panic - not syncing: Fatal exception in interrupt
[ 433.084908@0] SMP: stopping secondary CPUs
[ 433.088985@0] Kernel Offset: disabled
[ 433.092619@0] Memory Limit: none
[ 433.101231@0] Rebooting in 5 seconds…
[ 438.101256@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.?,K褏潟}スパ?x01
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: 324649

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: 00053c06
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==67 ps 7
TxDqDly_Margin_A1==97 ps 10
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==24
TrainedVREFDQ_A1==24
VrefDac_Margin_A0==28
DeviceVref_Margin_A0==24
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 00000026 00000027 00000028 00000028 00000029 00000029 00000027 00000027 00000029 00000028 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== 409
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.125484 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 on
boot wol: disable
port mode is usb3.0
Hit Enter or space or Ctrl+C key to stop autoboot – : 1 0
pll tsensor avg: 0x2219, u_efuse: 0x8158
temp1: 50
ddr tsensor avg: 0x221c, u_efuse: 0x80d2
temp2: 52
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 318 ms (33.4 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 6 ms (684.6 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 7 ms (30.3 KiB/s)
Apply dtbo i2s
3330 bytes read in 8 ms (406.3 KiB/s)
Apply dtbo os08a10
1072 bytes read in 8 ms (130.9 KiB/s)
Apply dtbo watchdog
222 bytes read in 9 ms (23.4 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: 5496431 us
[ 0.358213@2] codec_mm_module_init
[ 0.365149@2] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[ 0.537382@2] dmi: Firmware registration failed.
[ 0.541076@2] lcd: error: failed to get null
[ 0.541097@2] lcd: error: Out of clock range, reset to default setting
[ 0.541176@2] lcd: error: lcd_debug_info_if is null
[ 0.748842@4] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 0.770866@4] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 0.772419@4] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 0.774032@4] ff803000.serial: clock gate not found
[ 0.829531@4] meson-remote ff808040.rc: don’t find the node <led_blink>
[ 0.830500@4] meson-remote ff808040.rc: don’t find the node <led_blink_frq>
[ 0.838011@4] efuse efuse: open efuse clk gate error!!
[ 0.869784@4] meson-fb meson-fb: create ion_client ffffffc099c96840, handle=ffffffc099c97740
[ 0.869788@4] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB
[ 0.973176@0] di_get_vpu_clkb: get clk vpu error.
[ 0.974329@0] get fclk_div5 err
[ 0.975361@0] vdin_drv_probe: vdin cannot get msr clk !!!
[ 0.981179@0] get fclk_div5 err
[ 0.983914@0] vdin_drv_probe: vdin cannot get msr clk !!!
[ 0.992252@0] amlvideo2 probe called
[ 0.993002@0] amlvideo2 probe called
[ 0.996959@0] Reserved memory: failed to init DMA memory pool at 0x00000000e3000000, size 0 MiB
[ 1.007998@2] meson-mmc: >>>>>>>>hostbase ffffff80088f6000, dmode
[ 1.050659@1] meson-mmc: >>>>>>>>hostbase ffffff8008a82000, dmode
[ 1.091165@1] meson-mmc: >>>>>>>>hostbase ffffff8008b0c000, dmode
[ 1.100841@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.102676@2] meson-mmc: Tuning transfer error: nmatch=7 tuning_err:0xffffffac
[ 1.112331@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.116906@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.127590@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.130102@4] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend not report pw status
[ 1.130102@4]
[ 1.130203@4] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a
[ 1.130205@4] cectx ff80023c.aocec: cecb_ver:0x1
[ 1.130206@4] cectx ff80023c.aocec: line_reg:0x1
[ 1.130208@4] cectx ff80023c.aocec: line_bit:0x3
[ 1.130209@4] cectx ff80023c.aocec: ee_to_ao:0x1
[ 1.130337@4] cectx ff80023c.aocec: not find ‘port_num’
[ 1.130339@4] cectx ff80023c.aocec: using cec:1
[ 1.130349@4] cectx ff80023c.aocec: no hdmirx regs
[ 1.130350@4] cectx ff80023c.aocec: no hhi regs
[ 1.130354@4] cectx ff80023c.aocec: not find ‘output’
[ 1.131800@4] cectx ff80023c.aocec: irq cnt:2
[ 1.131923@3] cectx ff80023c.aocec: wakeup_reason:0x0
[ 1.131974@3] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[ 1.131976@3] cectx ff80023c.aocec: aml_cec_probe success end
[ 1.214609@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.221618@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.228948@2] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 1.232575@2] meson-mmc: Tuning transfer error: nmatch=6 tuning_err:0xffffffac
[ 1.601561@1] defendkey ff630218.defendkey: Reserved memory is not enough!
[ 1.825500@2] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 1.827598@2] snd_tdm ff642000.audiobus:tdmb: ASoC: Failed to add I2SIn CLK: -16
[ 1.834979@2] aml_dai_tdm_probe, failed add snd tdm controls
[ 1.840601@2] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 1.848314@2] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK: -16
[ 1.855678@2] aml_dai_tdm_probe, failed add snd tdm controls
[ 2.233615@3] edt_ft5x06 3-0038: touchscreen probe failed
e2fsck 1.45.5 (07-Jan-2020)
ROOTFS: recovering journal
Setting free inodes count to 1712366 (was 1712367)
Setting free blocks count to 5827554 (was 5827702)
ROOTFS: clean, 165906/1878272 files, 1760286/7587840 blocks
SELinux: Could not open policy file <= /etc/selinux/targeted/policy/policy.32: No such file or directory
[ 10.349360@0] cgroup: cgroup2: unknown option “nsdelegate”
[ 11.526754@0] meson-mmc: sdio: resp_timeout,vstat:0x9dff0800,virqc:3fff
[ 11.527741@0] meson-mmc: sdio: err: wait for desc write back, bus_fsm:0x7
[ 11.535670@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 11.541083@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 11.552075@0] meson-mmc: sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[ 11.554084@0] meson-mmc: sdio: err: wait for irq service, bus_fsm:0x8
[ 11.612498@5] out of value, fixed it
[ 11.750487@5] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 11.764220@5] meson-mmc: Tuning transfer error: nmatch=9 tuning_err:0xffffffac
[ 12.090193@4] No find node.
[ 12.129966@4] Amlogic A/V streaming port init
[ 12.133173@2] meson-fb meson-fb: create ion_client ffffffc099c96840, handle=ffffffc097e54f00
[ 12.137168@2] meson-fb meson-fb: ion memory(1): created fb at 0x00000000ea400000, size 1 MiB
[ 12.151259@4] meson-fb meson-fb: create ion_client ffffffc099c96840, handle=ffffffc098ec5340
[ 12.154079@4] meson-fb meson-fb: ion memory(2): created fb at 0x00000000ea500000, size 1 MiB
[ 12.169970@4] meson-fb meson-fb: create ion_client ffffffc099c96840, handle=ffffffc088176e40
[ 12.172768@4] meson-fb meson-fb: ion memory(3): created fb at 0x00000000ea600000, size 8 MiB
[ 12.220034@5] iq name from dts config is ----> os08a10
[ 12.229302@5] config sensor os08a10 driver.
[ 12.232081@5] pwr_enable: get_named_gpio power-enable fail
[ 12.233301@5] set power fail
[ 12.247577@5] arm_sensor_i2c_probe: start to probe
[ 12.247869@5] system_i2c_init:success to add i2c driver
[ 12.252114@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.258747@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.265413@5] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.296697@2] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.297965@2] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.304628@2] system_i2c_read:failed to read reg data: rc -6, saddr 0x36
[ 12.452767@4] meson-remote ff808040.rc: remote_ioctl invalid user space pointer
[ 12.646291@4] out of value, fixed it
[ 14.352848@5] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 14.372345@3] meson-mmc: Tuning transfer error: nmatch=0 tuning_err:0xffffffac
[ 14.682371@3] CONFIG-ERROR) dhd_conf_set_intiovar: txbf setting failed -23
[ 16.770855] rc.local[4019]: /usr/sbin/lightdm

Ubuntu 20.04.2 LTS Khadas ttyS0

Khadas login:

经过多次测试,不加辅助风扇散热,跑软件,非常容易异常重启。

外在加风扇辅助散热,跑软件,ubuntu系统出现异常重启比较少!

加这行指令:echo 8 4 1 7 | sudo tee /proc/sys/kernel/printk,异常启动信息貌似差不多;如果不外加辅助风扇,cat /sys/class/thermal/thermal_zone0/temp和cat /sys/class/thermal/thermal_zone1/temp得到数值经过转换会去到70-76度左右,然后ubuntu系统会很容易异常重启;如果加上辅助风扇散热,cat /sys/class/thermal/thermal_zone0/temp和cat /sys/class/thermal/thermal_zone1/temp数值经过转换大概温度在60度左右,在ubuntu上跑软件不容易出现ubuntu系统异常重启。

麻烦将CPU和GPU温控阈值设置在80度,eth0的mtu数值能修改到9000以上,发一个ubuntu的emmc固件包给我,谢谢。

系统过热保护的温度是110度,而且上面报错的原因也不是温度过高,为什么要设置这个?

设置MTU的方法之前说过了,需要你自己去设置,这种定制化的东西我们提供不了固件。当然你也可以自己去修改编译固件。

你的意思是修改9000以上要自己去改,然后编译,是吧?

测试下来,跟温控有关系,所以有提出这个要求。

我们没有做过这方面的修改,所以你可能需要自己去该驱动,然后更新内核。

参考:
https://docs.khadas.com/zh-cn/vim3/HowToUpgradeTheKernel.html

目前配置的已经很高了,不需要修改。如果你怀疑是温度过高,那么你可以在增加外部散热,比如再用外部风扇或空调对着吹等。

我怀疑是使用了超频,导致系统不稳定。之前A53和A72全部是在超频上运行。后面我改成默认主频上运行,软件跑了一上午,就是用配套的散热片和风扇散热,没有出现任何不正常问题。

之前在超频上运行,软件跑起来,ubuntu系统顶多能坚持1个小时左右,就重启了。

那这些前提条件你要先说明清楚。超频并不是所有的芯片都可以稳定工作的,这个文档上有说明。这个与芯片差异性很大,所以要想稳定运行还是使用默认频率。

基本上可以确定是超频导致系统不稳定。你的意思是CPU跑超频,系统不稳定是正常的?有没有什么方法可以进行优化?

那是肯定的,芯片保证能稳定运行的最高频率就是datasheet上面说明的频率。你超频运行虽然可能跑,但是稳定性没有保障,这个没有优化的可能性。