Skip to content

Instantly share code, notes, and snippets.

@DeeEighch
Created May 7, 2024 11:43
Show Gist options
  • Save DeeEighch/7cad67f5d5723998a6b1a0015b447d6e to your computer and use it in GitHub Desktop.
Save DeeEighch/7cad67f5d5723998a6b1a0015b447d6e to your computer and use it in GitHub Desktop.
SOEDGE SDCard Boot Kernel Panic (uart6) Miniloader + U-Boot (Firefly SDK)
DDR 4d116dc75c huan.he 24/01/17-11:17:17,fwver: v1.06
Dram:1x trefi
DDR4
933MHz
BW=32 Col=10 Bk=4 BG=2 CS0 Row=16 CS=1 Die BW=16 Size=2048MB
out
Boot1 Release Time: Dec 9 2019 18:18:13, version: 1.05
chip_id:524b188,0
ChipType = 0x14, 10265
sfc nor id: ff ff ff
sfc_nand id: ff ff ff
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd1,20
NeedKHz=200KHz,clock=12000KHz
emmc reinit
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd1,20
NeedKHz=200KHz,clock=12000KHz
emmc reinit
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd1,20
NeedKHz=200KHz,clock=12000KHz
SdmmcInit=2 1
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
mmc0:cmd5,20
NeedKHz=24000KHz,clock=192000KHz
NeedKHz=40000KHz,clock=192000KHz
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 39059
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: loader1, start:0x40, size:0x1f40
GPT part: 1, name: loader2, start:0x4000, size:0x2000
GPT part: 2, name: trust, start:0x6000, size:0x2000
GPT part: 3, name: boot, start:0x8000, size:0x38000
GPT part: 4, name: rootfs, start:0x40000, size:0x1d6cbdf
no find partition:uboot.
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0xc8d00
RunBL31 0x40000 @ 157844 us
NOTICE: BL31: v1.3(release):56fe57e2a, fwver: v1.15
NOTICE: BL31: Built : 14:09:29, Jan 17 2024
NOTICE: BL31: Rockchip release version: v1.0
INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO: not boot from ram
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: plat_rockchip_pmu_init(1813): pd status 8002
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-g68137697c1-dirty #vm (May 06 2024 - 01:12:20 +0300)
Model: Rockchip RK1808 EVB
PreSerial: 6
DRAM: 2 GiB
Sysmem: init
Relocation Offset: 7d7fa000, fdt: 7bdeee58
Using default environment
no mmc device at slot 1
Found IDB in SDcard
dwmmc@ffcf0000: 1 (SD), dwmmc@ffd00000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 50Mhz
PartType: EFI
rockchip_get_boot_mode: Could not found misc partition
boot mode: None
No resource partition
Failed to load DTB
Failed to get kernel dtb, ret=-19
Model: Rockchip RK1808 EVB
CLK: (sync kernel. arm: enter 1200000 KHz, init 1200000 KHz, kernel 0N/A)
apll 1200000 KHz
dpll 462000 KHz
cpll 24000 KHz
gpll 384000 KHz
npll 24000 KHz
ppll 24000 KHz
hsclk_bus 96000 KHz
msclk_bus 32000 KHz
lsclk_bus 64000 KHz
msclk_peri 64000 KHz
lsclk_peri 48000 KHz
Net: No ethernet found.
Hit key to stop autoboot('CTRL+C'): 0
Could not find misc partition
ANDROID: reboot reason: "(none)"
** Invalid Android Image header **
Android image load failed
Android boot failed, error -1.
## Booting Rockchip Format Image
Could not find kernel partition, ret=-1
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:4...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
74 bytes read in 3 ms (23.4 KiB/s)
1:kernel-4.4
Retrieving file: /Image
reading /Image
9728008 bytes read in 425 ms (21.8 MiB/s)
Retrieving file: /rk1808-compute-stick-emmc.dtb
reading /rk1808-compute-stick-emmc.dtb
78113 bytes read in 6 ms (12.4 MiB/s)
Fdt Ramdisk skip relocation
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
'reserved-memory' region@110000: addr=110000 size=f0000
Using Device Tree in place at 0000000001f00000, end 0000000001f16120
Adding bank: 0x00200000 - 0x80000000 (size: 0x7fe00000)
Total: 562.16 ms
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.194 (vm@ubuntu) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #1 SMP PREEMPT Sun May 5 17:04:52 EEST 2024
[ 0.000000] Boot CPU: AArch64 Processor [410fd042]
[ 0.000000] debug: skip boot console de-registration.
[ 0.000000] earlycon: Early serial console at MMIO32 0xff5b0000 (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 @ffffffc07ff67000 s40152 r8192 d29480 u77824
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515592
[ 0.000000] Kernel command line: sdfwupdate storagemedia=sd androidboot.storagemedia=sd androidboot.mode=normal verbose keep_bootcon rootwait loglevel=7 earlycon=uart8250,mmio32,0xff5b0000 panic=1 oops=panic INIT_VERBOSE=yes root=PARTUUID=B921B045-1DF0-41C3-AF44-4C6F280D3FAE rootfstype=ext4 swiotlb=1 kpti=0 snd_aloop.index=7
[ 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: mapped [mem 0x7fe1f000-0x7fe5f000] (0MB)
[ 0.000000] Memory: 2047024K/2095104K available (6206K kernel code, 604K rwdata, 2252K rodata, 384K init, 1703K bss, 48080K 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 : 0xffffff80088d0000 - 0xffffff8008930000 ( 384 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008690000 ( 6208 KB)
[ 0.000000] .rodata : 0xffffff8008690000 - 0xffffff80088d0000 ( 2304 KB)
[ 0.000000] .data : 0xffffff8008930000 - 0xffffff80089c7008 ( 605 KB)
[ 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=2, 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] ITS: /interrupt-controller@ff100000/interrupt-controller@ff120000
[ 0.000000] ITS: allocated 65536 Devices @7d400000 (psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GIC: using LPI property table @0x0000000000220000
[ 0.000000] ITS: Allocated 1792 chunks for LPIs
[ 0.000000] CPU0: found redistributor 0 region 0:0x00000000ff140000
[ 0.000000] CPU0: using LPI pending table @0x0000000000230000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.001838] Console: colour dummy device 80x25
[ 0.002260] console [tty0] enabled
[ 0.002603] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[ 0.003590] pid_max: default: 32768 minimum: 301
[ 0.004141] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.004793] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.006240] sched-energy: CPU device node has no sched-energy-costs
[ 0.006882] Invalid sched_group_energy for CPU0
[ 0.007314] CPU0: update cpu_capacity 1024
[ 0.007746] ASID allocator initialised with 65536 entries
[ 0.013502] PCI/MSI: /interrupt-controller@ff100000/interrupt-controller@ff120000 domain created
[ 0.014688] Platform MSI: /interrupt-controller@ff100000/interrupt-controller@ff120000 domain created
[ 0.019996] Detected VIPT I-cache on CPU1
[ 0.020026] CPU1: found redistributor 1 region 0:0x00000000ff160000
[ 0.020052] CPU1: using LPI pending table @0x000000007d560000
[ 0.020086] Invalid sched_group_energy for CPU1
[ 0.020091] CPU1: update cpu_capacity 1024
[ 0.020095] CPU1: Booted secondary processor [410fd042]
[ 0.020182] Brought up 2 CPUs
[ 0.023318] SMP: Total of 2 processors activated.
[ 0.023777] CPU features: detected feature: GIC system register CPU interface
[ 0.024453] CPU features: detected feature: 32-bit EL0 Support
[ 0.025017] CPU: All CPU(s) started at EL2
[ 0.025539] Invalid sched_group_energy for CPU1
[ 0.025992] Invalid sched_group_energy for Cluster1
[ 0.026486] Invalid sched_group_energy for CPU0
[ 0.026934] Invalid sched_group_energy for Cluster0
[ 0.027845] devtmpfs: initialized
[ 0.047665] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.048661] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.049587] pinctrl core: initialized pinctrl subsystem
[ 0.051208] NET: Registered protocol family 16
[ 0.057235] cpuidle: using governor menu
[ 0.057667] Registered FIQ tty driver
[ 0.058512] vdso: 2 pages (1 code @ ffffff8008696000, 1 data @ ffffff8008934000)
[ 0.059294] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.060076] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.081313] console [pstore-1] enabled
[ 0.081696] pstore: Registered ramoops as persistent store backend
[ 0.082311] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[ 24.146373] Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 1
[ 24.147112] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.194 #1
[ 24.147699] Hardware name: Rockchip RK1808 toybrick compute stick V10 Board (DT)
[ 24.148430] Call trace:
[ 24.148697] [<ffffff80080873c4>] dump_backtrace+0x0/0x1cc
[ 24.149234] [<ffffff80080875a4>] show_stack+0x14/0x1c
[ 24.149738] [<ffffff800823a5b4>] dump_stack+0x94/0xbc
[ 24.150240] [<ffffff800810af70>] panic+0xdc/0x234
[ 24.150712] [<ffffff80080fc210>] watchdog+0x0/0x50
[ 24.151190] [<ffffff80080e2b60>] __hrtimer_run_queues+0xcc/0x130
[ 24.151780] [<ffffff80080e3344>] hrtimer_run_queues+0xc0/0xcc
[ 24.152349] [<ffffff80080e23e4>] run_local_timers+0xc/0x1c
[ 24.152893] [<ffffff80080e2418>] update_process_times+0x24/0x54
[ 24.153476] [<ffffff80080ecc50>] tick_periodic+0x9c/0xb0
[ 24.154002] [<ffffff80080ecc94>] tick_handle_periodic+0x30/0x98
[ 24.154589] [<ffffff800849cf2c>] arch_timer_handler_phys+0x28/0x3c
[ 24.155199] [<ffffff80080d6124>] handle_percpu_devid_irq+0x78/0x9c
[ 24.155807] [<ffffff80080d2064>] generic_handle_irq+0x18/0x2c
[ 24.156373] [<ffffff80080d2394>] __handle_domain_irq+0xa8/0xac
[ 24.156950] [<ffffff8008080d98>] gic_handle_irq+0x78/0x144
[ 24.157491] Exception stack(0xffffff8008933e00 to 0xffffff8008933f30)
[ 24.158125] 3e00: 0000000000000000 0000000000000000 0000000000000000 ffffff8008936bf0
[ 24.158901] 3e20: 00000000000000c0 0100000000000000 0000000000009c5e 0000000001449f48
[ 24.159679] 3e40: ffffff800893c380 ffffff8008933eb0 00000000000006e0 0000000000000000
[ 24.160456] 3e60: 0000000000000348 0000000000000001 0000000000000001 ffffffffffffffff
[ 24.161231] 3e80: 0000000000000010 0000000000000188 0000000000001000 0000000000000000
[ 24.162008] 3ea0: ffffff800893bc40 0000000000000000 ffffff8008935000 ffffff80089355d8
[ 24.162785] 3ec0: ffffff80088fbfb8 0000000000d71000 0000000000d74000 000000000088b23c
[ 24.163562] 3ee0: 0000000000ad001c ffffff8008933f30 ffffff8008084914 ffffff8008933f30
[ 24.164338] 3f00: ffffff8008084918 0000000000000045 0000000000d71000 0000000000d74000
[ 24.165114] 3f20: ffffffffffffffff ffffff80080ef3d0
[ 24.165600] [<ffffff80080827b4>] el1_irq+0xb4/0x128
[ 24.166087] [<ffffff8008084918>] arch_cpu_idle+0x10/0x18
[ 24.166615] [<ffffff80080c9888>] default_idle_call+0x20/0x28
[ 24.167172] [<ffffff80080c9a4c>] cpu_startup_entry+0x16c/0x204
[ 24.167750] [<ffffff8008683ef8>] rest_init+0x80/0x8c
[ 24.168244] [<ffffff80088d0c00>] start_kernel+0x410/0x434
[ 24.168779] [<ffffff80088d01c4>] __primary_switched+0x30/0x6c
[ 25.336012] SMP: failed to stop secondary CPUs
[ 25.336453] CRU:
[ 25.336667] 00000000: 00002044 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[ 25.337516] 00000020: 0000404d 00001441 00000001 00000007 00007f00 00000000 00000000 00000000
[ 25.338367] 00000040: 000020fa 00001443 00000001 00000007 00007f00 00000000 00000000 00000000
[ 25.339215] 00000060: 00002063 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[ 25.340065] 00000080: 000020c8 00001443 00000001 00000007 00007f00 00000000 00000000 00000000
[ 25.340913] 000000a0: 00000055 00000000 00000010 00000000 3a982ee0 000f0000 00000000 00000000
[ 25.341761] 000000c0: 000000c3 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.342610] 000000e0: 00000080 00000000 0000030f 00000000 00002044 00001441 00001300 00000000
[ 25.343459] 00000100: 00001300 00000011 00000711 00000b00 00000103 00000403 00040050 00000407
[ 25.344310] 00000120: 00040050 0000003c 00000203 00000202 00000503 00000000 00000063 00003023
[ 25.345158] 00000140: 00000103 00000303 00001305 00000b05 00000003 00000007 00000007 00000007
[ 25.346008] 00000160: 0000c01d 00000007 00000707 00000302 00000b05 00000305 0000000b 00040050
[ 25.346856] 00000180: 0000000b 00040050 0000000b 00040050 0000000b 00040050 0000000b 0000c00b
[ 25.347705] 000001a0: 00040050 0000000b 0000c00b 00040050 0000000b 0000c00b 00040050 0000000b
[ 25.348553] 000001c0: 0000c00b 00040050 0000000b 0000c00b 00040050 0000000b 0000c00b 00040050
[ 25.349402] 000001e0: 0000000b 0000c00b 00040050 00000505 00000305 00000b0b 0000001f 00000017
[ 25.350251] 00000200: 00000b0b 00000001 00000001 00000001 00000001 00000b0b 0000000b 00000505
[ 25.351100] 00000220: 00001f00 00000000 00000000 00000000 00000000 00000000 00000000 00000036
[ 25.351950] 00000240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00005500
[ 25.352798] 00000260: 00005555 00000005 00008000 00000000 0000f000 00003600 00000033 00000000
[ 25.353648] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.354495] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.355343] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.356191] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.357039] 00000300: 00000000 00000000 00000000 00000010 00000000 00000000 00000000 00000000
[ 25.357889] 00000320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.358736] 00000340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.359586] 00000360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.360433] 00000380: 00000004 00000000 00000004 00000000 00000004 00000000 00000000 00000000
[ 25.361282] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.362130] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.362978] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.363827] 00000400: 00040020 00000000 00040020 00000000 00040020 00000000 00040020 00000000
[ 25.364676] 00000420: 00040020 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.365525] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.366372] 00000460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.367223] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.368069] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.368918] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.369766] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.370621] 00000000: 00006096 00001581 00000000 00000007 00007f00 00000000 00000000 00000000
[ 25.371478] 00000020: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.372332] 00000040: 00000009 0bb8ea60 00003131 00000009 0000c009 00040050 00000001 00000403
[ 25.373188] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.374041] 00000080: 00000040 00000005 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.374895] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.375750] 000000c0: 00040020 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.376604] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.377442] PMU:
[ 25.377659] 00000000: 00000000 00000000 00000000 00000000 00000000 00000000 00008000 00000000
[ 25.378514] 00000020: 00008000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.379369] 00000040: 00000000 40010000 00000000 00000000 00000000 00000000 00000000 00000000
[ 25.380224] 00000060: 00000000 00000000 00000000 02040204 0060000f 00000000 00005dc0 00000000
[ 25.381079] 00000080: 00005dc0 00000000 00005dc0 00000000 00005dc0 00000000 00005dc0 00000000
[ 25.381937] 000000a0: 00005dc0 00000000 00000003 00000000 00000000 00000000 00000000 00000000
[ 25.382790] 000000c0: 00000000 00000000 00000000 00005dc0 00000000 00005dc0 00000000 00005dc0
[ 25.383646] 000000e0: 00000000 00005dc0 00000000 00005dc0 00005dc0 00000000 00000000 00000000
[ 25.389472] Rebooting in 1 seconds..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment