My RK3399 is not booting
I recently updated my firefly rk3399 board with android 7 industry version , first i get the boot logo , then i get erasing screen, again the board will reboot, after reboot the board is stuck at boot logo, we can put the board in to loader mode and maskrom mode. i also flashed the board with rockchip batch tool 1.8 by putting the board in to maskrom mode.the result after flashing is same, that is i get the firefly logo, then i get erasing screen after that the board will reboot and it will freeze at boot logo. below is the log message
DDR Version 1.17 20190115
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg = 0x32817281, stride = 0x9
OUT
Boot1: 2017-06-09, version: 1.09
CPUId = 0x0
ChipType = 0x10, 1827
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
SdmmcInit=0 20
StorageInit ok = 66753
LoadTrustBL
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0x7a274
RunBL31 0x10000
NOTICE:BL31: v1.3(debug):2bb878d
NOTICE:BL31: Built : 11:57:30, Jan4 2019
NOTICE:BL31: Rockchip release version: v1.1
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1181): pd status 3e
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
INF TEE-CORE:init_primary_helper:337: Initializing (1.1.0-195-g8f090d20 #6 Fri Dec7 06:11:20 UTC 2018 aarch64)
INF TEE-CORE:init_primary_helper:338: Release version: 1.2
INF TEE-CORE:init_teecore:83: teecore inits done
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2014.10-RK3399-06 (Sep 19 2019 - 17:08:57)
CPU: rk3399
cpu version = 0
CPU's clock information:
aplll = 816000000HZ
apllb = 24000000HZ
gpll = 800000000HZ
aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
cpll = 800000000HZ
dpll = 800000000HZ
vpll = 24000000HZ
npll = 24000000HZ
ppll = 676000000HZ
Board:Rockchip platform Board
Uboot as second level loader
DRAM:Found dram banks: 1
Adding bank:0000000000200000(000000007fe00000)
Reserve memory for trust os.
dram reserve bank: base = 0x08400000, size = 0x01e00000
128 MiB
SdmmcInit = 0 20
storage init OK!
Using default environment
GetParam
remotectl v0.1
pwm freq=0xb8320
pwm_freq_nstime=0x52d
Load FDT from resource image.
power key: bank-0 pin-5
can't find dts node for fixed
I2C Send Start Bit Timeout
No pmic detect.
can't find dts node for pwm1
set pwm voltage ok,pwm_id =2 vol=1000000,pwm_value=66
CPU's clock information:
aplll = 816000000HZ
apllb = 24000000HZ
gpll = 800000000HZ
aclk_periph_h = 133333333HZ, hclk_periph_h = 66666666HZ, pclk_periph_h = 33333333HZ
aclk_periph_l0 = 100000000HZ, hclk_periph_l0 = 100000000HZ, pclk_periph_l0 = 50000000HZ
hclk_periph_l1 = 100000000HZ, pclk_periph_l1 = 50000000HZ
cpll = 800000000HZ
dpll = 800000000HZ
vpll = 24000000HZ
npll = 24000000HZ
ppll = 676000000HZ
SecureBootEn = 0, SecureBootLock = 0
#Boot ver: 2019-09-19#1.09
empty serial no.
normal boot.
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
failed to find phy node
failed to find panel driver
read logo on state from dts
no fuel gauge found
can't find dts node for deviceinfo
dw_rk_hdmi_register:fail to read deviceinfo
hdmi baseparamer 0x0@0-0
It is aCEA 861 Series Extension.
no baseparametr,find best edid mode,vic=16
hdmi_dev->video.vic is 4
rk lcdc - 0 dclk set: dclk = 74250000HZ, pll select = 0, div = 1
rockchip_panel_prepare: failed to find panel prepare funcs
hdmi_dev_config_video vic 4 color_output 3 color_output_depth 8
pixel clk is 74250000 tmds clk is 74250000
hsync_pol 1 vsync_pol 1
sucess output HDMI.
PHY PLL not locked: PCLK_ON=1,TMDSCLK_ON=0
rockchip_panel_enable: failed to find panel prepare funcs
ERROR: : Cannot find logo_kernel.bmp!
failed to display kernel logo
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
Hit any key to stop autoboot:0
load fdt from resouce.
vendor read error!
Set oem_unlocked=0Secure Boot state: 0
kernel @ 0x00280000 (0x0125a008)
ramdisk@ 0x04bf0000 (0x001adadc)
bootrk: do_bootm_linux...
Loading Device Tree to 0000000004600000, end 0000000004616560 ... OK
Add bank:0000000000200000, 0000000008200000
Add bank:000000000a200000, 0000000075e00000
WARNING: could not set reg FDT_ERR_BADOFFSET.
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Initializing cgroup subsys schedtune
[ 0.000000] Linux version 4.4.103 (chengd@tchipserver2) (gcc version 4.9 20150123 (prerelease) (GCC) ) #67 SMP PREEMPT Thu Sep 19 17:10:50 CST 2019
[ 0.000000] Boot CPU: AArch64 Processor
[ 0.000000] earlycon: Early serial console at MMIO32 0xff1a0000 (options '')
[ 0.000000] bootconsole enabled
[ 0.000000] hdmi init vic is -1
[ 0.000000] Reserved memory: failed to reserve memory for node 'stb-devinfo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[ 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: Trusted OS migration not required
[ 0.000000] PERCPU: Embedded 21 pages/cpu @ffffffc07eef9000 s45504 r8192 d32320 u86016
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.Total pages: 507912
[ 0.000000] Kernel command line: earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 androidboot.baseband=N/A androidboot.selinux=permissive androidboot.hardware=rk30boa0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] software IO TLB (0MB) mapped at
[ 0.000000] Memory: 1988592K/2064384K available (11006K kernel code, 1640K rwdata, 5260K rodata, 832K init, 1073K bss, 59408K reserved, 16384K 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 : 0xffffff8009070000 - 0xffffff8009140000 ( 832 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008b40000 ( 11008 KB)
[ 0.000000] .rodata : 0xffffff8008b40000 - 0xffffff8009070000 (5312 KB)
[ 0.000000] .data : 0xffffff8009140000 - 0xffffff80092da008 (1641 KB)
[ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
[ 0.000000] 0xffffffbdc0008000 - 0xffffffbdc2000000 ( 31 MB actual)
[ 0.000000] fixed : 0xffffffbffe7fd000 - 0xffffffbffec00000 (4108 KB)
[ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
[ 0.000000] memory: 0xffffffc000200000 - 0xffffffc080000000 (2046 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000]Build-time adjustment of leaf fanout to 64.
[ 0.000000]RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] ITS: /interrupt-controller@fee00000/interrupt-controller@fee20000
[ 0.000000] ITS: allocated 65536 Devices @a200000 (psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GIC: using LPI property table @0x000000000a280000
[ 0.000000] ITS: Allocated 1792 chunks for LPIs
[ 0.000000] CPU0: found redistributor 0 region 0:0x00000000fef00000
[ 0.000000] CPU0: using LPI pending table @0x000000000a290000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] GIC: PPI partition interrupt-partition-0 { /cpus/cpu@0 /cpus/cpu@1 /cpus/cpu@2 /cpus/cpu@3 }
[ 0.000000] GIC: PPI partition interrupt-partition-1 { /cpus/cpu@100 /cpus/cpu@101 }
[ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac as parent of dclk_vop0, rate changes may not work
[ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac as parent of dclk_vop1, rate changes may not work
[ 0.000000] rockchip_cpuclk_pre_rate_change: limiting alt-divider 33 to 31
[ 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.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.001959] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[ 0.002949] pid_max: default: 32768 minimum: 301
[ 0.003477] Security Framework initialized
[ 0.003877] SELinux:Initializing.
[ 0.004298] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.004945] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.006392] Initializing cgroup subsys freezer
[ 0.006831] Initializing cgroup subsys debug
[ 0.008143] sched-energy: Sched-energy-costs installed from DT
[ 0.008706] CPU0: update cpu_capacity 401
[ 0.009173] ASID allocator initialised with 65536 entries
[ 0.026002] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
[ 0.027285] Platform MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
[ 0.039397] Detected VIPT I-cache on CPU1
[ 0.039428] CPU1: found redistributor 1 region 0:0x00000000fef20000
[ 0.039463] CPU1: using LPI pending table @0x000000000a3f0000
[ 0.039505] CPU1: update cpu_capacity 401
[ 0.039509] CPU1: Booted secondary processor
[ 0.049390] Detected VIPT I-cache on CPU2
[ 0.049410] CPU2: found redistributor 2 region 0:0x00000000fef40000
[ 0.049442] CPU2: using LPI pending table @0x000000007c020000
[ 0.049471] CPU2: update cpu_capacity 401
[ 0.049474] CPU2: Booted secondary processor
[ 0.059429] Detected VIPT I-cache on CPU3
[ 0.059448] CPU3: found redistributor 3 region 0:0x00000000fef60000
[ 0.059481] CPU3: using LPI pending table @0x000000007c060000
[ 0.059508] CPU3: update cpu_capacity 401
[ 0.059511] CPU3: Booted secondary processor
[ 0.069478] Detected PIPT I-cache on CPU4
[ 0.069507] CPU4: found redistributor 100 region 0:0x00000000fef80000
[ 0.069546] CPU4: using LPI pending table @0x000000007c0a0000
[ 0.069586] CPU4: update cpu_capacity 1024
[ 0.069589] CPU4: Booted secondary processor
[ 0.079500] Detected PIPT I-cache on CPU5
[ 0.079517] CPU5: found redistributor 101 region 0:0x00000000fefa0000
[ 0.079554] CPU5: using LPI pending table @0x000000007c0e0000
[ 0.079581] CPU5: update cpu_capacity 1024
[ 0.079584] CPU5: Booted secondary processor
[ 0.079669] Brought up 6 CPUs
[ 0.092098] SMP: Total of 6 processors activated.
[ 0.092553] CPU features: detected feature: GIC system register CPU interface
[ 0.093241] CPU: All CPU(s) started at EL2
[ 0.093673] alternatives: patching kernel code
[ 0.095768] devtmpfs: initialized
[ 0.116262] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[ 0.117207] futex hash table entries: 2048 (order: 5, 131072 bytes)
[ 0.118516] pinctrl core: initialized pinctrl subsystem
[ 0.120571] Failed to find legacy iommu devices
[ 0.121382] NET: Registered protocol family 16
[ 0.122148] schedtune: init normalization constants...
[ 0.122635] schedtune: CLUSTER min_pwr: 56 max_pwr: 222
[ 0.123249] schedtune: CPU min_pwr: 0 max_pwr: 222
[ 0.123862] schedtune: CPU min_pwr: 0 max_pwr: 222
[ 0.124487] schedtune: CPU min_pwr: 0 max_pwr: 222
[ 0.125099] schedtune: CPU min_pwr: 0 max_pwr: 222
[ 0.125712] schedtune: CLUSTER min_pwr: 65 max_pwr:1108
[ 0.126325] schedtune: CPU min_pwr: 0 max_pwr:1108
[ 0.126937] schedtune: CPU min_pwr: 0 max_pwr:1108
[ 0.127549] schedtune: SYSTEM min_pwr: 121 max_pwr:4434
[ 0.128167] schedtune: using normalization constants mul: 3862781856 sh1: 1 sh2: 12
[ 0.128885] schedtune: verify normalization constants...
[ 0.129384] schedtune: max_pwr/2^0: 4313 => norm_pwr:1024
[ 0.129908] schedtune: max_pwr/2^1: 2156 => norm_pwr: 511
[ 0.130431] schedtune: max_pwr/2^2: 1078 => norm_pwr: 255
[ 0.130955] schedtune: max_pwr/2^3:539 => norm_pwr: 127
[ 0.131478] schedtune: max_pwr/2^4:269 => norm_pwr: 63
[ 0.132006] schedtune: max_pwr/2^5:134 => norm_pwr: 31
[ 0.132530] schedtune: configured to support 5 boost groups
[ 0.142043] cpuidle: using governor ladder
[ 0.152047] cpuidle: using governor menu
[ 0.152429] Registered FIQ tty driver
[ 0.153093] vdso: 2 pages (1 code @ ffffff8008b46000, 1 data @ ffffff8009144000)
[ 0.153814] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.155849] DMA: preallocated 2048 KiB pool for atomic allocations
[ 0.176903] console enabled
[ 0.177480] pstore: Registered ramoops as persistent store backend
[ 0.178065] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[ 0.180784] fiq debugger fiq mode enabled
[ [ 0.181422] console enabled
0.181422] console enabled
[[ 0.182096] bootconsole disabled
0.182096] bootconsole disabled
[ 0.183009] Registered fiq debugger ttyFIQ0
[ 0.213965] Rockchip hdmi driver version 2.0
.
[ 0.216285] iommu: Adding device ff650000.vpu_service to group 0
[ 0.216363] iommu: Adding device ff660000.rkvdec to group 1
[ 0.216428] iommu: Adding device ff670000.iep to group 2
[ 0.216522] iommu: Adding device ff8f0000.vop to group 3
[ 0.216597] iommu: Adding device ff900000.vop to group 4
[ 0.216705] iommu: Adding device ff910000.isp to group 5
[ 0.216785] iommu: Adding device ff920000.isp to group 6
[ 0.217499] rk_iommu ff670800.iommu: can't get aclk
[ 0.217520] rk_iommu ff670800.iommu: can't get hclk
[ 0.218382] SCSI subsystem initialized
[ 0.218722] usbcore: registered new interface driver usbfs
[ 0.218771] usbcore: registered new interface driver hub
[ 0.218850] usbcore: registered new device driver usb
[ 0.219251] media: Linux media interface: v0.10
[ 0.219292] Linux video capture interface: v2.00
[ 0.219425] pps_core: LinuxPPS API ver. 1 registered
[ 0.219438] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.219464] PTP clock support registered
[ 0.221029] Advanced Linux Sound Architecture Driver Initialized.
[ 0.221547] Bluetooth: Core ver 2.21
[ 0.221581] NET: Registered protocol family 31
[ 0.221593] Bluetooth: HCI device and connection manager initialized
[ 0.221610] Bluetooth: HCI socket layer initialized
[ 0.221627] Bluetooth: L2CAP socket layer initialized
[ 0.221656] Bluetooth: SCO socket layer initialized
[ 0.222692] rockchip-cpuinfo cpuinfo: Serial : f4b0799a58def9f8
[ 0.223192] clocksource: Switched to clocksource arch_sys_counter
[ 0.267242] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[ 0.267499] NET: Registered protocol family 2
[ 0.267942] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.268083] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.268361] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.268440] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.268502] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.268673] NET: Registered protocol family 1
[ 0.269187] Trying to unpack rootfs image as initramfs...
[ 0.358236] Freeing initrd memory: 1716K
[ 0.358757] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.358849] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 0.361438] audit: initializing netlink subsys (disabled)
[ 0.361507] audit: type=2000 audit(0.356:1): initialized
[ 0.366605] VFS: Disk quotas dquot_6.6.0
[ 0.366731] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.368115] fuse init (API version 7.23)
[ 0.369234]
[ 0.369234] TEE Core Framework initialization (ver 1:0.1)
[ 0.369266] TEE armv7 Driver initialization
[ 0.369636] tz_tee_probe: name="armv7sec", id=0, pdev_name="armv7sec.0"
[ 0.369655] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[ 0.369832] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=62)
[ 0.373688] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.373714] io scheduler noop registered
[ 0.373884] io scheduler cfq registered (default)
[ 0.375167] rockchip-usb2phy ff770000.syscon:usb2-phy@e460: vbus_drv is not assigned
[ 0.380320] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
[ 0.380348] rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found
[ 0.380371] rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found
[ 0.903261] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[ 0.904002] rockchip-pcie: probe of f8000000.pcie failed with error -110
[ 0.905967] iep: failed to find iep power down clock source.
[ 0.907053] IEP Power ON
[ 0.907509] IEP Power OFF
[ 0.907842] IEP Driver loaded succesfully
[ 0.908473] Module initialized.
[ 0.909101] rk-vcodec ff650000.vpu_service: probe device
[ 0.909157] rk-vcodec ff650000.vpu_service: vpu mmu dec ffffffc07c2fa410
[ 0.909320] rk-vcodec ff650000.vpu_service: allocator is drm
[ 0.909374] rk-vcodec ff650000.vpu_service: checking hw id 0
[ 0.909885] rk-vcodec ff650000.vpu_service: init success
[ 0.910505] rk-vcodec ff660000.rkvdec: probe device
[ 0.910552] rk-vcodec ff660000.rkvdec: vpu mmu dec ffffffc07c2fac10
[ 0.910691] rk-vcodec ff660000.rkvdec: allocator is drm
[ 0.910749] rk-vcodec ff660000.rkvdec: checking hw id 6876
[ 0.911081] rk-vcodec ff660000.rkvdec: init success
[ 0.912774] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.912793] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.914146] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.914165] dma-pl330 ff6e0000.dma-controller: