|
【Linux】
Linux经常启动停止,还经常报报错Kernel panic, hark lock on cpux
发表于 2021-1-7 14:01:39
浏览:9833
|
回复:1
打印
只看该作者
[复制链接]
楼主
本帖最后由 jeffwin2018 于 2021-1-8 12:36 编辑
各位,请教个问题,我们基于Firefly 3308开发版自己做了一块板子,唯一区别就是使用了RK816 PMIC (Firefly的板子用的是离散IC)。核心硬件(CPU/RAM/eMMC/SDMMC/SDIO等)跟Firefly基本相同,软件上也是跟Firefly的配置基本相同,eMMC看着也工作正常(从kernel log已经可以看到分区),偶尔也可以正常启动并且ADB也正常,但是问题是 1) Kernel启动后经常停在([ 1.141137] vendor storage:20160801 ret = 0这句后面)2) 有时候1)所说的情况停住之后再经过20多秒会报Kernel panic, hard lock on cpux,x表示哪个cpu都有可能,3)有些时候会报PMIC的I2C总线中断未响应(rk3x-i2c ff040000.i2c: timeout, ipd: 0x10, state: 1),I2C降速但是还是会偶尔报这个错误。目前还不知道这三个问题的原因,希望各位高手帮忙解答,或者从log中能看出什么问题。感谢!
有问题的Log:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.143 (jeff@jeff-VirtualBox) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #31 SMP PREEMPT
[ 0.000000] Boot CPU: AArch64 Processor [410fd042]
[ 0.000000] earlycon: Early serial console at MMIO32 0xff0c0000 (options '')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc01ff55000 s35992 r8192 d29544 u73728
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 128520
[ 0.000000] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.slot_suffix= androidboot.serialno=c3d9b8674f4b94f6 rootwait earlycon=uart8250,mmio32,0xff0c0000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=squashfs snd_aloop.index=7
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] software IO TLB [mem 0x1fe51000-0x1fe91000] (0MB) mapped at [ffffffc01fe51000-ffffffc01fe90fff]
[ 0.000000] Memory: 504440K/522240K available (4862K kernel code, 380K rwdata, 1680K rodata, 320K init, 467K bss, 17800K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] .init : 0xffffff80086f0000 - 0xffffff8008740000 ( 320 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008540000 ( 4864 KB)
[ 0.000000] .rodata : 0xffffff8008540000 - 0xffffff80086f0000 ( 1728 KB)
[ 0.000000] .data : 0xffffff8008740000 - 0xffffff800879f008 ( 381 KB)
[ 0.000000] fixed : 0xffffffbffe7fd000 - 0xffffffbffec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
[ 0.000000] memory : 0xffffffc000200000 - 0xffffffc020000000 ( 510 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.001785] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[ 0.002738] pid_max: default: 32768 minimum: 301
[ 0.003305] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.003914] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.005432] sched-energy: CPU device node has no sched-energy-costs
[ 0.006052] Invalid sched_group_energy for CPU0
[ 0.006470] CPU0: update cpu_capacity 1024
[ 0.006897] ASID allocator initialised with 65536 entries
[ 0.016637] Detected VIPT I-cache on CPU1
[ 0.016697] Invalid sched_group_energy for CPU1
[ 0.016702] CPU1: update cpu_capacity 1024
[ 0.016706] CPU1: Booted secondary processor [410fd042]
[ 0.019652] Detected VIPT I-cache on CPU2
[ 0.019691] Invalid sched_group_energy for CPU2
[ 0.019697] CPU2: update cpu_capacity 1024
[ 0.019701] CPU2: Booted secondary processor [410fd042]
[ 0.022698] Detected VIPT I-cache on CPU3
[ 0.022735] Invalid sched_group_energy for CPU3
[ 0.022740] CPU3: update cpu_capacity 1024
[ 0.022743] CPU3: Booted secondary processor [410fd042]
[ 0.022812] Brought up 4 CPUs
[ 0.028021] SMP: Total of 4 processors activated.
[ 0.028461] CPU: All CPU(s) started at EL2
[ 0.028965] Invalid sched_group_energy for CPU3
[ 0.029388] Invalid sched_group_energy for Cluster3
[ 0.029835] Invalid sched_group_energy for CPU2
[ 0.030264] Invalid sched_group_energy for Cluster2
[ 0.030712] Invalid sched_group_energy for CPU1
[ 0.031130] Invalid sched_group_energy for Cluster1
[ 0.031587] Invalid sched_group_energy for CPU0
[ 0.032005] Invalid sched_group_energy for Cluster0
[ 0.033036] devtmpfs: initialized
[ 0.051854] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.052775] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.053799] pinctrl core: initialized pinctrl subsystem
[ 0.055362] NET: Registered protocol family 16
[ 0.061875] cpuidle: using governor menu
[ 0.062276] Registered FIQ tty driver
[ 0.062877] vdso: 2 pages (1 code @ ffffff8008546000, 1 data @ ffffff8008744000)
[ 0.063587] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.064453] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.067306] console [pstore-1] enabled
[ 0.067659] pstore: Registered ramoops as persistent store backend
[ 0.068230] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[ 0.085440] fiq debugger fiq mode enabled
[[ 0.086252] console [ttyFIQ0] enabled
0.086252] console [ttyFIQ0] enabled
[ 0.086926] bootconsole [uart0] disabled
[ 0.086926] bootconsole [uart0] disabled
[ 0.087570] Registered fiq debugger ttyFIQ0
WARNING: suspend_mode_handler: Not support call: 0x4
[ 0.099824] vcc_phy supplying 0uV
[ 0.100617] vbus_host supplying 0uV
[ 0.100981] vcc_sys supplying 4000000uV
[ 0.101445] usbcore: registered new interface driver usbfs
[ 0.101550] usbcore: registered new interface driver hub
[ 0.101692] usbcore: registered new device driver usb
[ 0.102984] Advanced Linux Sound Architecture Driver Initialized.
[ 0.103725] Bluetooth: Core ver 2.21
[ 0.103795] NET: Registered protocol family 31
[ 0.103807] Bluetooth: HCI device and connection manager initialized
[ 0.103828] Bluetooth: HCI socket layer initialized
[ 0.103844] Bluetooth: L2CAP socket layer initialized
[ 0.103879] Bluetooth: SCO socket layer initialized
[ 0.105031] rockchip-cpuinfo cpuinfo: Serial : 50fcc4f0ffd11e12
[ 0.105581] clocksource: Switched to clocksource arch_sys_counter
[ 0.108122] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[ 0.108505] NET: Registered protocol family 2
[ 0.109246] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.109335] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.109432] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.109535] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.109604] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.109843] NET: Registered protocol family 1
[ 0.111000] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.122384] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.125602] io scheduler noop registered (default)
[ 0.126829] phy phy-ff008000.syscon:usb2-phy@100.0: Failed to get VBUS supply regulator
[ 0.131090] dma-pl330 ff2c0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.131146] dma-pl330 ff2c0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.133699] dma-pl330 ff2d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.133744] dma-pl330 ff2d0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 0.134119] rockchip-pvtm ff000000.grf:pmu-pvtm: failed to get rst 0 pmu
[ 0.134278] rockchip-pvtm ff00c000.syscon:pvtm: failed to get rst 0 core
[ 0.135087] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
[ 0.137443] ff0e0000.serial: ttyS4 at MMIO 0xff0e0000 (irq = 12, base_baud = 5078125) is a 16550A
[ 0.139389] [drm] Initialized drm 1.1.0 20060810
[ 0.139534] random: nonblocking pool is initialized
[ 0.141543] Unable to detect cache hierarchy for CPU 0
[ 0.142074] Rockchip WiFi SYS interface (V1.00) ...
[ 0.142486] ff400000.usb supply vusb_d not found, using dummy regulator
[ 0.142604] ff400000.usb supply vusb_a not found, using dummy regulator
[ 0.255648] dwc2 ff400000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[ 0.256230] dwc2 ff400000.usb: DWC OTG Controller
[ 0.256285] dwc2 ff400000.usb: new USB bus registered, assigned bus number 1
[ 0.256336] dwc2 ff400000.usb: irq 19, io mem 0xff400000
[ 0.257347] hub 1-0:1.0: USB hub found
[ 0.257401] hub 1-0:1.0: 1 port detected
[ 0.481069] phy phy-ff008000.syscon:usb2-phy@100.0: charger = USB_SDP_CHARGER
[ 0.481244] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.481274] ehci-platform: EHCI generic platform driver
[ 0.485123] ehci-platform ff440000.usb: EHCI Host Controller
[ 0.485179] ehci-platform ff440000.usb: new USB bus registered, assigned bus number 2
[ 0.485339] ehci-platform ff440000.usb: irq 20, io mem 0xff440000
[ 0.490616] ehci-platform ff440000.usb: USB 2.0 started, EHCI 1.00
[ 0.491619] hub 2-0:1.0: USB hub found
[ 0.491686] hub 2-0:1.0: 1 port detected
[ 0.492329] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.492396] ohci-platform: OHCI generic platform driver
[ 0.492869] ohci-platform ff450000.usb: Generic Platform OHCI controller
[ 0.492920] ohci-platform ff450000.usb: new USB bus registered, assigned bus number 3
[ 0.493070] ohci-platform ff450000.usb: irq 21, io mem 0xff450000
[ 0.548507] hub 3-0:1.0: USB hub found
[ 0.548596] hub 3-0:1.0: 1 port detected
[ 0.549908] i2c /dev entries driver
[ 0.552354] rk808 0-001a: Pmic Chip id: 0x8160
[ 0.553404] rk808 0-001a: source: on=0x40, off=0x00
[ 0.568187] rk808-regulator rk808-regulator: there is no dvs0 gpio
[ 0.568299] rk808-regulator rk808-regulator: there is no dvs1 gpio
[ 0.568543] DCDC_REG1: supplied by vcc_sys
[ 0.572114] DCDC_REG2: supplied by vcc_sys
[ 0.575509] DCDC_REG3: supplied by vcc_sys
[ 0.578632] DCDC_REG4: supplied by vcc_sys
[ 0.581323] LDO_REG1: supplied by vcc_io
[ 0.584558] LDO_REG2: supplied by vcc_io
[ 0.587849] LDO_REG3: supplied by vcc_io
[ 0.591247] LDO_REG4: supplied by vcc_sys
[ 0.592251] ldo4: Bringing 3300000uV into 1800000-1800000uV
[ 0.593648] LDO_REG5: supplied by vcc_sys
[ 0.595240] LDO_REG6: supplied by vcc_sys
[ 0.597099] rk816-battery rk816-battery: fb_temperature missing!
[ 0.597138] rk816-battery rk816-battery: energy_mode missing!
[ 0.597167] rk816-bat: not support dc
[ 0.598047] thermal thermal_zone2: power_allocator: sustainable_power will be estimated
[ 0.611998] rk816-bat: save fcc: 2750
[ 0.614755] rk816-bat: first on: dsoc=41, rsoc=41 cap=1139, fcc=2750, ov=3778
[ 0.634007] rk816-bat: receive extcon notifier event: OTG OFF...
[ 0.634028] rk816-bat: otg5v is off yet, ignore..
[ 0.634045] rk816-bat: receive extcon notifier event: USB...
[ 0.634059] rk816-bat: virtual power test mode, set max input current
[ 0.634083] rk816-bat: register extcon evt notifier
[ 0.635800] rk816-bat: set charger type: USB, current: input=2000, chrg=1800
[ 0.636263] rk816-bat: virtual power test mode, set max input current
[ 0.639459] rk816-bat: set charger type: NONE DC, current: input=2000, chrg=1800
[ 0.648675] rk816-bat: driver version 1.2
[ 0.654511] input: rk8xx_pwrkey as /devices/platform/ff040000.i2c/i2c-0/0-001a/input/input0
[ 0.664712] rk808-rtc rk808-rtc: rtc core: registered rk808-rtc as rtc0
[ 0.666428] rk3x-i2c ff040000.i2c: Initialized RK3xxx I2C bus at ffffff8008866000
[ 0.671951] rk_tsadcv2_temp_to_code: Invalid conversion table: code=4095, temperature=2147483647
[ 0.672213] rockchip-thermal ff1f0000.tsadc: tsadc is probed successfully!
[ 0.672694] Bluetooth: HCI UART driver ver 2.3
[ 0.672715] Bluetooth: HCI UART protocol H4 registered
[ 0.672734] Bluetooth: HCI UART protocol LL registered
[ 0.673015] cpu cpu0: leakage=19
[ 0.673636] cpu cpu0: Failed to get pvtm
[ 0.675860] cpu cpu0: l=0 h=55000 hyst=5000 l_limit=1200000000 h_limit=1008000000
[ 0.679225] Synopsys Designware Multimedia Card Interface Driver
[ 0.679864] dwmmc_rockchip ff490000.dwmmc: No default pinctrl state
[ 0.679895] dwmmc_rockchip ff490000.dwmmc: No off pinctrl state
[ 0.680024] dwmmc_rockchip ff490000.dwmmc: IDMAC supports 32-bit address mode.
[ 0.680072] dwmmc_rockchip ff490000.dwmmc: Using internal DMA controller.
[ 0.680096] dwmmc_rockchip ff490000.dwmmc: Version ID is 270a
[ 0.680175] dwmmc_rockchip ff490000.dwmmc: DW MMC controller at irq 22,32 bit host data width,256 deep fifo
[ 0.680264] dwmmc_rockchip ff490000.dwmmc: No vmmc regulator found
[ 0.680281] dwmmc_rockchip ff490000.dwmmc: No vqmmc regulator found
[ 0.691677] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.702708] dwmmc_rockchip ff490000.dwmmc: 1 slots initialized
[ 0.705613] usbcore: registered new interface driver usbhid
[ 0.705642] usbhid: USB HID core driver
[ 0.706150] rockchip-dmc dmc: failed to get the count of devfreq-event in /dmc node
[ 0.706906] rockchip-dmc dmc: Failed to get leakage
[ 0.707517] rockchip-dmc dmc: Failed to get pvtm
[ 0.707901] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[ 0.707931] rockchip-dmc dmc: don't add devfreq feature
[ 0.712560] rknandc_base v1.1 2017-01-11
[ 0.712906] rksfc_base v1.1 2016-01-08
[ 0.720113] NET: Registered protocol family 10
[ 0.721562] NET: Registered protocol family 17
[ 0.721696] NET: Registered protocol family 15
[ 0.721974] Bluetooth: RFCOMM TTY layer initialized
[ 0.722006] Bluetooth: RFCOMM socket layer initialized
[ 0.722079] Bluetooth: RFCOMM ver 1.11
[ 0.722109] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 0.722130] Bluetooth: HIDP socket layer initialized
[ 0.722154] [WLAN_RFKILL]: Enter rfkill_wlan_init
[ 0.722827] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[ 0.722887] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = cm390sm
[ 0.722904] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[ 0.722917] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[ 0.723029] [WLAN_RFKILL]: wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 18, flags = 0.
[ 0.723049] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[ 0.723061] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[ 0.723077] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[ 0.723189] [BT_RFKILL]: Enter rfkill_rk_init
[ 0.723737] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 135.
[ 0.723781] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,power_gpio = 139.
[ 0.723852] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 14.
[ 0.723869] [BT_RFKILL]: bluetooth_platdata_parse_dt: clk_get failed!!!.
[ 0.723954] [BT_RFKILL]: Request irq for bt wakeup host
[ 0.724036] [BT_RFKILL]: ** disable irq
[ 0.724260] [BT_RFKILL]: bt_default device registered.
[ 0.724674] flash vendor_init_thread!
[ 0.724705] flash vendor storage:20170308 ret = -1
[ 0.727017] input: adc-keys as /devices/platform/adc-keys/input/input1
[ 0.729691] rk808-rtc rk808-rtc: setting system clock to 2015-01-20 08:50:01 UTC (1421743801)
[ 0.739648] mmc0: MAN_BKOPS_EN bit is not set
[ 0.741044] mmc_host mmc0: Bus speed (slot 0) = 50176000Hz (slot req 52000000Hz, actual 50176000HZ div = 0)
[ 0.743244] mmc0: new high speed MMC card at address 0001
[ 0.744413] mmcblk0: mmc0:0001 Q2J54A 3.59 GiB
[ 0.744893] mmcblk0boot0: mmc0:0001 Q2J54A partition 1 16.0 MiB
[ 0.745306] mmcblk0boot1: mmc0:0001 Q2J54A partition 2 16.0 MiB
[ 0.745778] mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB
[ 0.751132] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 //看起来eMMC应该OK了,分区也对。我们的eMMC是3.3V供电,所以最高频率只有50M? (dts中设置最高频率是150M)
[ 1.228422] vendor storage:20160801 ret = 0
u▒ 1.753993] //经常会长期停在这里,串口发送命令也没有响应(因为文件系统没有正常mount还是什么别的原因?正常log中下一条应该是"ret 1024",也不知道这是哪里打出来的log,或者说停下来之后接下来按道理该执行什么了)
[ 6.666197] rk3x-i2c ff040000.i2c: timeout, ipd: 0x10, state: 1
[ 6.668557] rk816-battery rk816-battery: read reg:0xc5 failed
[ 7.670737] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 7.672609] rk816-battery rk816-battery: read reg:0xc4 failed
[ 8.677672] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 8.679617] rk816-battery rk816-battery: read reg:0xbd failed
[ 9.684559] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 9.686416] rk816-battery rk816-battery: read reg:0xbc failed
[ 10.691587] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 10.693388] rk816-battery rk816-battery: read reg:0xa0 failed
[ 11.698689] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 11.700585] rk816-battery rk816-battery: read reg:0xb1 failed
[ 12.705862] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 12.708155] rk816-battery rk816-battery: read reg:0xb8 failed
[ 13.715010] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 13.717161] rk816-battery rk816-battery: read reg:0xb9 failed
[ 14.720604] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 14.722377] rk816-battery rk816-battery: read reg:0xba failed
[ 15.724851] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 15.726727] rk816-battery rk816-battery: read reg:0xbb failed
[ 16.730797] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 16.732735] rk816-battery rk816-battery: read reg:0xb8 failed
[ 17.736746] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 17.738570] rk816-battery rk816-battery: read reg:0xb9 failed
[ 18.742568] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 18.744444] rk816-battery rk816-battery: read reg:0xba failed
[ 19.748807] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 19.750545] rk816-battery rk816-battery: read reg:0xbb failed
[ 20.754654] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 20.756680] rk816-battery rk816-battery: read reg:0x21 failed
[ 20.757651] rk816-bat: virtual power test mode, set max input current
[ 21.760757] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 21.762651] rk816-battery rk816-battery: read reg:0xa1 failed
[ 22.766600] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 22.768535] rk816-battery rk816-battery: i2c write reg: 0xa1 error
[ 23.772904] rk3x-i2c ff040000.i2c: timeout, ipd: 0x30, state: 1
[ 23.777626] rk816-battery rk816-battery: read reg:0xa1 failed
[ 24.031003] Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 0
[ 24.033569] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.4.143 #31
[ 24.035220] Hardware name: RK3308 board (DT)
[ 24.036789] Call trace:
[ 24.038431] [<ffffff800808731c>] dump_backtrace+0x0/0x1c4
[ 24.040157] [<ffffff80080874f4>] show_stack+0x14/0x1c
[ 24.041838] [<ffffff80081e65f4>] dump_stack+0x94/0xbc
[ 24.043600] [<ffffff800810a92c>] panic+0xdc/0x234
[ 24.045179] [<ffffff80080fbc1c>] watchdog+0x0/0x50
[ 24.046757] [<ffffff80080e27c4>] __hrtimer_run_queues+0xcc/0x130
[ 24.048490] [<ffffff80080e2c60>] hrtimer_interrupt+0xa0/0x1b0
[ 24.050284] [<ffffff80080ed430>] tick_handle_oneshot_broadcast+0x138/0x1a0
[ 24.052420] [<ffffff8008353990>] rk_timer_interrupt+0x3c/0x48
[ 24.054238] [<ffffff80080d2cf4>] handle_irq_event_percpu+0x98/0x128
[ 24.056020] [<ffffff80080d2dcc>] handle_irq_event+0x48/0x78
[ 24.057773] [<ffffff80080d60ec>] handle_fasteoi_irq+0xc0/0x128
[ 24.059514] [<ffffff80080d2374>] generic_handle_irq+0x18/0x2c
[ 24.061186] [<ffffff80080d26a4>] __handle_domain_irq+0xa8/0xac
[ 24.062888] [<ffffff8008080cfc>] gic_handle_irq+0x7c/0xa8
[ 24.064495] Exception stack(0xffffffc01e86fde0 to 0xffffffc01e86ff10)
[ 24.066393] fde0: 0000000000000000 ffffffc01e861580 0000000000000008 0000000000000008
[ 24.068592] fe00: 00ffffffffffffff 0000000023326144 00000000000007d0 0000000000000003
[ 24.070706] fe20: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 24.072892] fe40: 0000000034d5d91d 0000004017860000 ffffffc01e861580 0000000000000000
[ 24.075039] fe60: 0000000000000000 0000000000000000 0000000030d00800 0000000597cb507e
[ 24.077221] fe80: 0000000000000001 ffffffc01e574400 ffffff80087859d0 ffffff8008785a48
[ 24.079404] fea0: 0000000000000001 000000058a24879e 0000000000a17000 0000000000734234
[ 24.081599] fec0: 0000000000000000 ffffffc01e86ff10 ffffff80083372e8 ffffffc01e86ff10
[ 24.083839] fee0: ffffff80083372ec 0000000080000045 000000058a24879e 0000000000a17000
[ 24.085870] ff00: ffffffffffffffff ffffff80083372e8
[ 24.087375] [<ffffff80080827b4>] el1_irq+0xb4/0x128
[ 24.089072] [<ffffff80083372ec>] cpuidle_enter_state+0x118/0x16c
[ 24.090833] [<ffffff8008337378>] cpuidle_enter+0x18/0x20
[ 24.092521] [<ffffff80080c9e88>] call_cpuidle+0x48/0x50
[ 24.094109] [<ffffff80080ca084>] cpu_startup_entry+0x1f4/0x204
[ 24.095899] [<ffffff800808b66c>] secondary_start_kernel+0x1a0/0x1cc
[ 24.097694] [<0000000000734178>] 0x734178
[ 24.101067] CPU2: stopping
[ 24.102323] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.4.143 #31
[ 24.103937] Hardware name: RK3308 board (DT)
[ 24.105448] Call trace:
[ 24.106565] [<ffffff800808731c>] dump_backtrace+0x0/0x1c4
[ 24.108215] [<ffffff80080874f4>] show_stack+0x14/0x1c
[ 24.109836] [<ffffff80081e65f4>] dump_stack+0x94/0xbc
[ 24.111382] [<ffffff800808bb2c>] handle_IPI+0xe8/0x134
[ 24.112922] [<ffffff8008080d10>] gic_handle_irq+0x90/0xa8
[ 24.114468] Exception stack(0xffffffc01e86bde0 to 0xffffffc01e86bf10)
[ 24.116327] bde0: 0000000000000000 ffffffc01e860ac0 ffffff8008353b2c 0000000000000020
[ 24.118516] be00: 00ffffffffffffff 0000000023331cc4 00000000000007d2 0000000000000002
[ 24.120781] be20: 00000032b5593519 ffffff8008081800 0000000000001000 0000000000000000
[ 24.122896] be40: 0000000034d5d91d 000000401784e000 ffffffc01e860ac0 0000000000000000
[ 24.125123] be60: 0000000000000000 0000000000000000 0000000030d00800 000000059bfdd01c
[ 24.127314] be80: 0000000000000001 ffffffc01e574200 ffffff80087859d0 ffffff8008785a48
[ 24.129418] bea0: 0000000000000001 0000000597f129f2 0000000000a17000 0000000000734234
[ 24.131612] bec0: 0000000000000000 ffffffc01e86bf10 ffffff80083372e8 ffffffc01e86bf10
[ 24.133799] bee0: ffffff80083372ec 0000000040000045 0000000597f129f2 0000000000a17000
[ 24.135885] bf00: ffffffffffffffff ffffff80083372e8
[ 24.137375] [<ffffff80080827b4>] el1_irq+0xb4/0x128
[ 24.138960] [<ffffff80083372ec>] cpuidle_enter_state+0x118/0x16c
[ 24.140802] [<ffffff8008337378>] cpuidle_enter+0x18/0x20
[ 24.142404] [<ffff
[ 28.515717] SMP: failed to stop secondary CPUs
[ 28.517058] CRU:
[ 28.518474] 00000000: 0000ffff 00001081 00000000 00000007 0000ffff 00000000 00000000 00000000
[ 28.520960] 00000020: 0000ffff 00001046 00000000 00000007 0000ffff 00000000 00000000 00000000
[ 28.523532] 00000040: 0000ffff 00000042 004dd2f1 00000007 00007f00 00000000 00000000 00000000
[ 28.526102] 00000060: 0000104b 00000442 00439581 00000007 00007f00 00000000 00000000 00000000
[ 28.528663] 00000080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.531233] 000000a0: 00003955 00000000 00000000 00000000 00000064 00ff0000 00000000 00000000
[ 28.533872] 000000c0: 00000003 00003a98 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.536374] 000000e0: 00000080 00000000 0000030f 00000000 0000ffff 00001081 00001100 00000000
[ 28.539043] 00000100: 00001100 00000040 00000200 0040b71b 00007510 00000006 00000c0c 00004747
[ 28.541519] 00000120: 00000007 00000000 0000000f 0000000b 00000000 0000000f 0000000b 00000000
[ 28.544073] 00000140: 00008000 0000000b 00000000 0000000f 0000000b 00000000 0000000f 0000000b
[ 28.546629] 00000160: 00000000 00000005 00000005 00000005 00000005 0000000b 0000000b 0000000b
[ 28.549204] 00000180: 0000000b 000001df 00000017 0000001b 00000006 00000c0c 0000000d 0000001b
[ 28.551857] 000001a0: 00000003 00000208 0000000d 00008017 00000b9d 00000b0b 0000000f 00000000
[ 28.554340] 000001c0: 0000000f 00000000 00000003 00000000 00000111 00000000 00000013 00000000
[ 28.556988] 000001e0: 00000111 00000000 00000013 00000000 00000111 00000000 00000013 00000000
[ 28.559478] 00000200: 00000111 00000000 00000013 00000000 00000013 00000000 00000013 00000000
[ 28.562037] 00000220: 00000031 0000001f 0000000b 0000000b 00000000 00000000 00000000 00000000
[ 28.564591] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.567134] 00000260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.569690] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.572250] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.574885] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.577373] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.580036] 00000300: 00000000 00000030 00001200 00000182 00000000 00004084 0000d408 00000401
[ 28.582511] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.585076] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.587632] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.590199] 00000380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.592834] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.595326] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.597963] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.600449] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.603003] 00000420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.605553] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.608105] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.610663] 00000480: 00000004 00000000 00000004 00000000 00000004 00000000 00000000 00000000
[ 28.613216] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.615849] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.618333] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.620522] Kernel Offset: disabled
[ 28.621601] Memory Limit: none
[ 28.623032] rockchip-thermal ff1f0000.tsadc: channal 0: temperature(34 C)
[ 28.624959] rockchip-thermal ff1f0000.tsadc: channal 1: temperature(37 C)
[ 28.626648] THERMAL REGS:
[ 28.628000] 00000000: 00000200 00010133 00000303 00000000 00000000 00000000 00000000 00000000
[ 28.630568] 00000020: 000001b9 000001bb 00000000 000001bb 000001e5 0000024a 00000000 00000000
[ 28.633219] 00000040: 00000293 00000293 00000000 00000000 00000000 00000000 00000000 00000000
[ 28.635705] 00000060: 00000004 00000004 000000fa 00000032 00000000 00000000 00000000 00000000
[ 28.637990] 00000080: 00000000 00000000
[ 29.004639] Rebooting in 1 seconds..
正常的log:
[ 0.638220] flash vendor_init_thread!
[ 0.638253] flash vendor storage:20170308 ret = -1
[ 0.640713] input: adc-keys as /devices/platform/adc-keys/input/input1
[ 0.642640] rk808-rtc rk808-rtc: setting system clock to 2015-01-20 08:50:01 UTC (1421743801)
[ 0.660873] mmc0: MAN_BKOPS_EN bit is not set
[ 0.662277] mmc_host mmc0: Bus speed (slot 0) = 50176000Hz (slot req 52000000Hz, actual 50176000HZ div = 0)
[ 0.663935] mmc0: new high speed MMC card at address 0001
[ 0.664806] mmcblk0: mmc0:0001 Q2J54A 3.59 GiB
[ 0.665305] mmcblk0boot0: mmc0:0001 Q2J54A partition 1 16.0 MiB
[ 0.665762] mmcblk0boot1: mmc0:0001 Q2J54A partition 2 16.0 MiB
[ 0.666187] mmcblk0rpmb: mmc0:0001 Q2J54A partition 3 512 KiB
[ 0.671947] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[ 1.141137] vendor storage:20160801 ret = 0
[ 2.658972] ret 1024 //这是什么模块的log???
[ 2.667972] VFS: Mounted root (squashfs filesystem) readonly on device 179:6.
[ 2.671373] devtmpfs: mounted
[ 2.671747] Freeing unused kernel memory: 320K
mount: /misc: mount point does not exist.
mount: /oem: special device /dev/block/by-name/oem does not exist.
mount: /userdata: special device /dev/block/by-name/userdata does not exist.
Starting logging: OK
Set system time from hardware clock
Populating /dev using udev: [ 3.557317] udevd[146]: starting version 3.2.5
[ 3.595244] udevd[147]: starting eudev-3.2.5
done
read-only file system detected...done
Will now mount all partitions in /etc/fstab
Note: Create /.skip_fsck to skip fsck - The check might take a while if didn't shutdown properly!
Handling /dev/mmcblk0p6 / ext2 rw,noauto 1
Wrong fs type(ext2) for /dev/mmcblk0p6
Handling /dev/mmcblk0p3 /misc emmc defaults 0
Unsupported file system emmc for /dev/mmcblk0p3
Handling /dev/mmcblk0p7 /oem ext2 defaults 2
Checking /dev/mmcblk0p7(ext2)
e2fsck 1.43.9 (8-Feb-2018)
oem was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
oem: 23/3696 files (4.3% non-contiguous), 18821/131072 blocks
Mounting /dev/mmcblk0p7(ext2) on /oem
Handling /dev/mmcblk0p8 /userdata ext2 defaults 2
Checking /dev/mmcblk0p8(ext2)
e2fsck 1.43.9 (8-Feb-2018)
Superblock last write time is in the future.
(by less than a day, probably due to the hardware clock being incorrectly set)
userdata was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
[ 5.595352] rk816-bat: changed: dsoc=22, rsoc=22, v=4622, ov=3726 c=1, cap=613, f=2750, st=cc cv, hotdie=0
[ 5.595431] rk816-bat: dl=22, rl=0, v=3274, halt=0, halt_n=0, max=0, init=0, sw=0, calib=0, below0=0, force=0
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
userdata: 17/212992 files (0.0% non-contiguous), 14838/850427 blocks
Mounting /dev/mmcblk0p8(ext2) on /userdata
Log saved to /tmp/mountall.log
Starting system message bus: done
Starting network: ip: RTNETLINK answers: File exists
FAIL
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 482
Starting watch_ntpd.sh: OK
Starting pulseaudio: run ntpd once and watch it every 86400 seconds
20 Jan 16:50:08 ntpd[492]: ntpd 4.2.8p10@1.3728-o Sun Dec 6 07:08:57 UTC 2020 (1): Starting
20 Jan 16:50:08 ntpd[492]: Command line: ntpd -gq
W: [pulseaudio] main.c: Running in system mode, but --disallow-exit not set.
W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode.
20 Jan 16:50:08 ntpd[492]: proto: precision = 0.583 usec (-21)
E: [pulseaudio] main.c: Daemon startup failed.
20 Jan 16:50:08 ntpd[492]: Listen and drop on 0 v6wildcard [::]:123
20 Jan 16:50:08 ntpd[492]: Listen and drop on 1 v4wildcard 0.0.0.0:123
OK
20 Jan 16:50:08 ntpd[492]: Listen normally on 2 lo 127.0.0.1:123
20 Jan 16:50:08 ntpd[492]: Listen normally on 3 lo [::1]:123
20 Jan 16:50:08 ntpd[492]: Listening on routing socket on fd #20 for interface updates
[ 7.292893] file system registered
install_listener('tcp:5037','*smartsocket*')
[ 7.340049] read descriptors
[ 7.340102] read strings
[ 8.333909] dwc2 ff400000.usb: bound driver configfs-gadget
load wifi modules: /etc/init.d/S66load_wifi_modules: line 42: rk_wifi_init: not found
FAIL
wl: wl driver adapter not found
Starting dnsmasq: OK
[ 8.492896] dwc2 ff400000.usb: new device is high-speed
[ 8.525765] dwc2 ff400000.usb: new address 47
[ 8.545931] android_work: sent uevent USB_STATE=CONNECTED
WAKE_LOCK[open_file_descriptors] fatal error opening "/sys/power/wake_lock": No such file or directory
==========EQ/DRC process release version 1.23===============
ALSA lib pcm_hw.c:1806:(_snd_pcm_hw_open) Invalid value for card
Unable to open capture PCM device:
[ 8.670791] configfs-gadget gadget: high-speed config #1: b
[ 8.671003] android_work: sent uevent USB_STATE=CONFIGURED //ADB work
ALSA lib pcm_direct.c:1832:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
aplay: main:828: audio open error: No such file or directory
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
wlan0: Failed to initialize driver interface
amixer: Control default open error: No such file or directory
amixer: Control default open error: No such file or directory
amixer: Control default open error: No such file or directory
amixer: Control default open error: No such file or directory
/etc/init.d/S98_lunch_init: source: line 7: can't open '/data/cfg/rockchip_test/auto_reboot.sh'
Starting input-event-daemon: input-event-daemon: open(/dev/input/event2): No such file or directory
input-event-daemon: Exiting...
done
|
|