|
【技术讨论】
RK3308内核不能启动
发表于 2020-12-2 11:02:13
浏览:8596
|
回复:5
打印
只看该作者
[复制链接]
楼主
本帖最后由 YOFOYO 于 2020-12-2 11:07 编辑
使用RK3308自研的板子,内核启动卡在同一个位置,反复重启偶尔会成功启动,哪位大神知道这是什么原因导致的,打印如下:
DDR Version V1.29 20190730
REG2C: 0x00000032, 0x00000032
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
msch:1
OUT
Boot1 Release Time: Oct 28 2019 20:02:13, version: 1.19
chip_id:330800,0
ChipType = 0x13, 35790965
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
DPLL = 1300 MHz
...nandc_flash_init enter...
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
DPLL = 1300 MHz
NeedKHz=18000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=48000KHz,clock=650000KHz
mmc2:cmd19,100
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=3728MB
FwPartOffset=2000 , 2000
SdmmcInit=0 NOT PRESENT
StorageInit ok = 35778177
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT part: 0, name: uboot, start:0x2000, size:0x1000
GPT part: 1, name: trust, start:0x3000, size:0x1000
GPT part: 2, name:
GPT part: 3, name: recovery, start:0x4800, size:0x6000
GPT part: 4, name: boot, start:0xa800, size:0x4800
GPT part: 5, name: rootfs, start:0xf000, size:0x80000
GPT part: 6, name: oem, start:0x8f000, size:0x20000
GPT part: 7, name: userdata, start:0xaf000, size:0x698fdf
find part:uboot OK. first_lba:0x2000.
find part:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xa7154
RunBL31 0x40000 @ 35738410 us
INFO: Preloader serial: 2
NOTICE: BL31: v1.3(release):30f1405
NOTICE: BL31: Built : 17:08:28, Sep 23 2019
INFO: Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe b
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x600000
INFO: SPSR = 0x3c9
U-Boot 2017.09 (Nov 30 2020 - 12:56:30 +0800)
Model: Rockchip RK3308 EVB
PreSerial: 2
DRAM: 510 MiB
Sysmem: init
Relocation Offset is: 1f90b000
Using default environment
dwmmc@ff480000: 1, dwmmc@ff490000: 0
Bootdev(atags): mmc 0
MMC0: High Speed, 52Mhz
PartType: EFI
boot mode: recovery (misc)
Found DTB in recovery part
DTB: rk-kernel.dtb
vdd_core init 1015000 uV
DVFS: cpu: low=0.0'c, high=55.0'c, Vmax=1340000uV, tz_temp=55.0'c, h_repeat=0, l_repeat=0
DVFS: 30.909'c
Model: Firefly RK3308 roc cc digital-pdm mic board
CLK: (uboot. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
apll 816000 KHz
dpll 1300000 KHz
vpll0 1177823 KHz
vpll1 901583 KHz
aclk_bus 185714 KHz
hclk_bus 100000 KHz
pclk_bus 100000 KHz
aclk_peri 185714 KHz
hclk_peri 100000 KHz
pclk_peri 100000 KHz
hclk_audio 98151 KHz
pclk_audio 98151 KHz
Net: eth0: ethernet@ff4e0000
DVFS: cpu 30.454'c, 816000000 Hz, 1015000 uV
Hit key to stop autoboot('CTRL+C'): 0
ANDROID: reboot reason: "recovery"
Fdt Ramdisk skip relocation
Booting LZ4 kernel at 0x02480000(Uncompress to 0x00280000) with fdt at 0x1f00000...
## Booting Android Image at 0x0247f800 ...
Kernel load addr 0x00280000 size 3890 KiB
RAM disk load addr 0x04000000 size 6041 KiB
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Uncompressing Kernel Image ... OK
Using Device Tree in place at 0000000001f00000, end 0000000001f151ed
Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000)
Total: 590.826 ms
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.14 (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #26 SMP PREEMPT Mon Nov 30 10:24:42 CST 2020
[ 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 19 pages/cpu @ffffffc01ff47000 s40088 r8192 d29544 u77824
[ 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 earlycon=uart8250,mmio32,0xff0c0000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext4 nd_aloop.index=7 snd_aloop.use_raw_jiffies=1
[ 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 0x1fe43000-0x1fe83000] (0MB) mapped at [ffffffc01fe43000-ffffffc01fe82fff]
[ 0.000000] Memory: 498308K/522240K available (4734K kernel code, 398K rwdata, 1804K rodata, 320K init, 468K bss, 23932K 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 - 0xffffff8008520000 ( 4736 KB)
[ 0.000000] .rodata : 0xffffff8008520000 - 0xffffff80086f0000 ( 1856 KB)
[ 0.000000] .data : 0xffffff8008740000 - 0xffffff80087a3808 ( 399 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.001929] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[ 0.002881] pid_max: default: 32768 minimum: 301
[ 0.003458] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.004069] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.005604] sched-energy: CPU device node has no sched-energy-costs
[ 0.006230] Invalid sched_group_energy for CPU0
[ 0.006648] CPU0: update cpu_capacity 1024
[ 0.007074] ASID allocator initialised with 65536 entries
[ 0.016824] Detected VIPT I-cache on CPU1
[ 0.016882] Invalid sched_group_energy for CPU1
[ 0.016887] CPU1: update cpu_capacity 1024
[ 0.016891] CPU1: Booted secondary processor [410fd042]
[ 0.019847] Detected VIPT I-cache on CPU2
[ 0.019885] Invalid sched_group_energy for CPU2
[ 0.019889] CPU2: update cpu_capacity 1024
[ 0.019893] CPU2: Booted secondary processor [410fd042]
[ 0.022889] Detected VIPT I-cache on CPU3
[ 0.022925] Invalid sched_group_energy for CPU3
[ 0.022930] CPU3: update cpu_capacity 1024
[ 0.022934] CPU3: Booted secondary processor [410fd042]
[ 0.023005] Brought up 4 CPUs
[ 0.028217] SMP: Total of 4 processors activated.
[ 0.028657] CPU: All CPU(s) started at EL2
[ 0.029170] Invalid sched_group_energy for CPU3
[ 0.029593] Invalid sched_group_energy for Cluster3
[ 0.030054] Invalid sched_group_energy for CPU2
[ 0.030472] Invalid sched_group_energy for Cluster2
[ 0.030919] Invalid sched_group_energy for CPU1
[ 0.031347] Invalid sched_group_energy for Cluster1
[ 0.031796] Invalid sched_group_energy for CPU0
[ 0.032212] Invalid sched_group_energy for Cluster0
[ 0.033228] devtmpfs: initialized
[ 0.054091] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.055028] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.056074] pinctrl core: initialized pinctrl subsystem
[ 0.057702] NET: Registered protocol family 16
[ 0.063211] cpuidle: using governor menu
[ 0.063606] Registered FIQ tty driver
[ 0.064218] vdso: 2 pages (1 code @ ffffff8008526000, 1 data @ ffffff8008744000)
[ 0.064929] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.065784] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.070716] console [pstore-1] enabled
[ 0.071069] pstore: Registered ramoops as persistent store backend
[ 0.071651] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[ 0.090030] fiq debugger fiq mode enabled
[[ 0.090810] console [ttyFIQ0] enabled
0.090810] console [ttyFIQ0] enabled
[ 0.091509] bootconsole [uart0] disabled
[ 0.091509] bootconsole [uart0] disabled
[ 0.092159] Registered fiq debugger ttyFIQ0
WARNING: suspend_mode_handler: Not support call: 0x4
[ 0.106096] vcc_1v8: regulator get failed, ret=-517
[ 0.107023] vcc_1v8_codec: regulator get failed, ret=-517
[ 0.107970] vcc_1v8: supplied by vcc_io
[ 0.108088] vcc_1v8_codec: supplied by vcc_io
[ 0.110624] SCSI subsystem initialized
[ 0.110939] usbcore: registered new interface driver usbfs
[ 0.111055] usbcore: registered new interface driver hub
[ 0.111198] usbcore: registered new device driver usb
[ 0.111338] pps_core: LinuxPPS API ver. 1 registered
[ 0.111352] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.111388] PTP clock support registered
[ 0.113529] rockchip-cpuinfo cpuinfo: Serial : b88bfdbfb98a15fc
[ 0.114083] clocksource: Switched to clocksource arch_sys_counter
[ 0.116640] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[ 0.116962] NET: Registered protocol family 2
[ 0.117664] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.117750] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.117849] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.117949] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.117983] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.118278] NET: Registered protocol family 1
[ 0.118964] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.132295] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.132634] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.133026] Key type big_key registered
[ 0.133082]
[ 0.133082] TEE Core Framework initialization (ver 1:0.1)
[ 0.133134] TEE armv7 Driver initialization
[ 0.133554] tz_tee_probe: name="armv7sec", id=0, pdev_name="armv7sec.0"
[ 0.133578] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[ 0.133881] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=63)
[ 0.137239] io scheduler noop registered (default)
[ 0.140610] dma-pl330 ff2c0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.140659] dma-pl330 ff2c0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.143248] dma-pl330 ff2d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.143291] dma-pl330 ff2d0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 0.143654] rockchip-pvtm ff000000.grf:pmu-pvtm: failed to get rst 0 pmu
[ 0.143817] rockchip-pvtm ff00c000.syscon:pvtm: failed to get rst 0 core
[ 0.145343] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
[ 0.148499] [drm] Initialized drm 1.1.0 20060810
[ 0.148687] random: nonblocking pool is initialized
[ 0.150965] Unable to detect cache hierarchy for CPU 0
[ 0.158512] loop: module loaded
[ 0.158909] SCSI Media Changer driver v0.25
[ 0.160885] rk_gmac-dwmac ff4e0000.ethernet: clock input or output? (output).
[ 0.160932] rk_gmac-dwmac ff4e0000.ethernet: Can not read property: tx_delay.
[ 0.160949] rk_gmac-dwmac ff4e0000.ethernet: set tx_delay to 0x30
[ 0.160969] rk_gmac-dwmac ff4e0000.ethernet: Can not read property: rx_delay.
[ 0.160985] rk_gmac-dwmac ff4e0000.ethernet: set rx_delay to 0x10
[ 0.161009] rk_gmac-dwmac ff4e0000.ethernet: integrated PHY? (no).
[ 0.166353] rk_gmac-dwmac ff4e0000.ethernet: init for RMII
[ 0.166515] stmmac - user ID: 0x10, Synopsys ID: 0x35
[ 0.166532] Ring mode enabled
[ 0.166542] DMA HW capability register supported
[ 0.166551] Normal descriptors
[ 0.166562] RX Checksum Offload Engine supported (type 2)
[ 0.166573] TX Checksum insertion supported
[ 0.166582] Wake-Up On Lan supported
[ 0.166647] Enable RX Mitigation via HW Watchdog Timer
[ 0.271469] libphy: stmmac: probed
[ 0.271506] eth%d: PHY ID 001cc816 at 0 IRQ POLL (stmmac-0:00) active
[ 0.271521] eth%d: PHY ID 001cc816 at 1 IRQ POLL (stmmac-0:01)
[ 0.273171] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.273216] ehci-platform: EHCI generic platform driver
[ 0.273580] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.273679] ohci-platform: OHCI generic platform driver
[ 0.274035] usbcore: registered new interface driver uas
[ 0.274186] usbcore: registered new interface driver usb-storage
[ 0.274250] usbcore: registered new interface driver ums-alauda
[ 0.274307] usbcore: registered new interface driver ums-cypress
[ 0.274364] usbcore: registered new interface driver ums-datafab
[ 0.274428] usbcore: registered new interface driver ums_eneub6250
[ 0.274491] usbcore: registered new interface driver ums-freecom
[ 0.274549] usbcore: registered new interface driver ums-isd200
[ 0.274611] usbcore: registered new interface driver ums-jumpshot
[ 0.274670] usbcore: registered new interface driver ums-karma
[ 0.274728] usbcore: registered new interface driver ums-onetouch
[ 0.274785] usbcore: registered new interface driver ums-sddr09
[ 0.274850] usbcore: registered new interface driver ums-sddr55
[ 0.274905] usbcore: registered new interface driver ums-usbat
[ 0.275490] i2c /dev entries driver
[ 0.276659] rk3x-i2c ff050000.i2c: Initialized RK3xxx I2C bus at ffffff800883e000
[ 0.279451] rk_tsadcv2_temp_to_code: Invalid conversion table: code=4095, temperature=2147483647
[ 0.279707] rockchip-thermal ff1f0000.tsadc: tsadc is probed successfully!
[ 0.280495] cpu cpu0: leakage=5
[ 0.280791] cpu cpu0: Failed to get pvtm
[ 0.282218] cpu cpu0: l=0 h=55000 hyst=5000 l_limit=1200000000 h_limit=1008000000
[ 0.283759] Synopsys Designware Multimedia Card Interface Driver
[ 0.284391] dwmmc_rockchip ff490000.dwmmc: No default pinctrl state
[ 0.284424] dwmmc_rockchip ff490000.dwmmc: No off pinctrl state
[ 0.284556] dwmmc_rockchip ff490000.dwmmc: IDMAC supports 32-bit address mode.
[ 0.284601] dwmmc_rockchip ff490000.dwmmc: Using internal DMA controller.
[ 0.284624] dwmmc_rockchip ff490000.dwmmc: Version ID is 270a
[ 0.284697] dwmmc_rockchip ff490000.dwmmc: DW MMC controller at irq 21,32 bit host data width,256 deep fifo
[ 0.284782] dwmmc_rockchip ff490000.dwmmc: No vmmc regulator found
[ 0.284798] dwmmc_rockchip ff490000.dwmmc: No vqmmc regulator found
[ 0.296163] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.307175] dwmmc_rockchip ff490000.dwmmc: 1 slots initialized
[ 0.308507] usbcore: registered new interface driver usbhid
[ 0.308541] usbhid: USB HID core driver
[ 0.310865] rknandc_base v1.1 2017-01-11
[ 0.311161] rksfc_base v1.1 2016-01-08
[ 0.312386] NET: Registered protocol family 10
[ 0.314118] NET: Registered protocol family 17
[ 0.314215] NET: Registered protocol family 15
[ 0.314657] flash vendor_init_thread!
[ 0.314681] flash vendor storage:20170308 ret = -1
[ 0.317411] Key type encrypted registered
[ 0.319348] input: adc-keys as /devices/platform/adc-keys/input/input0
[ 0.321211] hctosys: unable to open rtc device (rtc0)
[ 0.335838] vcc_sd: disabling
[ 0.335893] vbus_host: disabling
[ 0.335906] vccio_sd: disabling
[ 0.343639] mmc0: MAN_BKOPS_EN bit is not set
[ 0.347612] mmc_host mmc0: Bus speed (slot 0) = 147456000Hz (slot req 150000000Hz, actual 147456000HZ div = 0)
[ 0.984933] dwmmc_rockchip ff490000.dwmmc: Successfully tuned phase to 247
[ 0.985292] mmc0: new HS200 MMC card at address 0001
[ 0.986789] mmcblk0: mmc0:0001 4FTE4R 3.64 GiB
[ 0.987658] mmcblk0boot0: mmc0:0001 4FTE4R partition 1 4.00 MiB
[ 0.988512] mmcblk0boot1: mmc0:0001 4FTE4R partition 2 4.00 MiB
[ 0.989370] mmcblk0rpmb: mmc0:0001 4FTE4R partition 3 512 KiB
[ 0.994751] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
u 1.339325]
[ 1.339359] vendor storage:20160801 ret = 0 |
|