Skip to content

Instantly share code, notes, and snippets.

@pdp7
Last active September 3, 2023 22:30
Show Gist options
  • Save pdp7/b585a6dad5134fc8773e53ad48600fef to your computer and use it in GitHub Desktop.
Save pdp7/b585a6dad5134fc8773e53ad48600fef to your computer and use it in GitHub Desktop.
beaglev ahead boot with th1520-clk probe failure
50340 bytes read in 2 ms (24 MiB/s)
15748 bytes read in 1 ms (15 MiB/s)
138368 bytes read in 1 ms (132 MiB/s)
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
310 bytes read in 0 ms
1: Linux eMMC
Retrieving file: /Image
26464768 bytes read in 71 ms (355.5 MiB/s)
append: root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait loglevel=8 console=ttyS0,115200 earlycon clk_ignore_unused net.ifnames=0 ftrace=function_graph ffftrace_dump_on_oops ftrace_filter=*sdhci*,*mmc*,*dma*,*dwc*,*blk*
Retrieving file: /light-beagle.dtb
9322 bytes read in 1 ms (8.9 MiB/s)
## Flattened Device Tree blob at 46000000
Booting using the fdt blob at 0x46000000
Using Device Tree in place at 0000000046000000, end 0000000046005469
Starting kernel ...
OpenSBI v1.3-31-g0ad866067d78
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : BeagleV Ahead
Platform Features : medeleg
Platform HART Count : 4
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 3000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : ---
Platform Shutdown Device : ---
Platform Suspend Device : ---
Platform CPPC Device : ---
Firmware Base : 0x0
Firmware Size : 224 KB
Firmware RW Offset : 0x20000
Firmware RW Size : 96 KB
Firmware Heap Offset : 0x2e000
Firmware Heap Size : 40 KB (total), 2 KB (reserved), 9 KB (used), 28 KB (free)
Firmware Scratch Size : 4096 B (total), 760 B (used), 3336 B (free)
Runtime SBI Version : 1.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*,1*,2*,3*
Domain0 Region00 : 0x000000ffdc008000-0x000000ffdc00bfff M: (I,R,W) S/U: ()
Domain0 Region01 : 0x000000ffdc000000-0x000000ffdc007fff M: (I,R,W) S/U: ()
Domain0 Region02 : 0x0000000000000000-0x000000000001ffff M: (R,X) S/U: ()
Domain0 Region03 : 0x0000000000020000-0x000000000003ffff M: (R,W) S/U: ()
Domain0 Region04 : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address : 0x0000000040200000
Domain0 Next Arg1 : 0x0000000046000000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Domain0 SysSuspend : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.11
Boot HART Base ISA : rv64imafdcvx
Boot HART ISA Extensions : zicntr,zihpm
Boot HART PMP Count : 0
Boot HART PMP Granularity : 0
Boot HART PMP Address Bits: 0
Boot HART MHPM Count : 16
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
[ 0.000000] Linux version 6.5.0-rc3-r20230801-0757-00031-g363e004743e3-dirty (pdp7@x1) (riscv64-linux-gnu-gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #227 SMP Sun Sep 3 15:28:21 PDT 2023
[ 0.000000] Machine model: BeagleV Ahead
[ 0.000000] SBI specification v1.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10003
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] earlycon: uart0 at MMIO32 0x000000ffe7014000 (options '115200n8')
[ 0.000000] printk: bootconsole [uart0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: node linux,cma compatible matching fail
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000001ffff (128 KiB) nomap non-reusable mmode_resv0@0
[ 0.000000] OF: reserved mem: 0x0000000000020000..0x000000000003ffff (128 KiB) nomap non-reusable mmode_resv1@20000
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000003ffff]
[ 0.000000] node 0: [mem 0x0000000000040000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 28 pages/cpu s75240 r8192 d31256 u114688
[ 0.000000] pcpu-alloc: s75240 r8192 d31256 u114688 alloc=28*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Kernel command line: root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait loglevel=8 console=ttyS0,115200 earlycon clk_ignore_unused net.ifnames=0 ftrace=function_graph ffftrace_dump_on_oops ftrace_filter=*sdhci*,*mmc*,*dma*,*dwc*,*blk*
[ 0.000000] Unknown kernel command line parameters "ffftrace_dump_on_oops", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1032192
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 4078684K/4194304K available (6624K kernel code, 5040K rwdata, 2048K rodata, 10564K init, 333K bss, 115620K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 24778 entries in 97 pages
[ 0.000000] ftrace: allocated 97 pages with 3 groups
[ 0.000000]
[ 0.000000] **********************************************************
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] ** **
[ 0.000000] ** trace_printk() being used. Allocating extra memory. **
[ 0.000000] ** **
[ 0.000000] ** This means that this is a DEBUG kernel and it is **
[ 0.000000] ** unsafe for production use. **
[ 0.000000] ** **
[ 0.000000] ** If you see this message and you are not debugging **
[ 0.000000] ** the kernel, report this immediately to your vendor! **
[ 0.000000] ** **
[ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **
[ 0.000000] **********************************************************
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: interrupt-controller@ffd8000000: mapped 240 interrupts with 4 handlers for 8 contexts.
[ 0.000000] riscv: providing IPIs using SBI IPI extension
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 881590404476 ns
[ 0.000001] sched_clock: 64 bits at 3000kHz, resolution 333ns, wraps every 4398046511097ns
[ 0.008673] Console: colour dummy device 80x25
[ 0.013328] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=12000)
[ 0.023596] pid_max: default: 32768 minimum: 301
[ 0.028489] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.036030] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.046819] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.054547] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.062330] riscv: ELF compat mode unsupported
[ 0.062393] ASID allocator using 16 bits (65536 entries)
[ 0.072478] rcu: Hierarchical SRCU implementation.
[ 0.077351] rcu: Max phase no-delay instances is 1000.
[ 0.083285] EFI services will not be available.
[ 0.088349] smp: Bringing up secondary CPUs ...
[ 1.098871] CPU1: failed to come online
[ 2.124851] CPU2: failed to come online
[ 3.150979] CPU3: failed to come online
[ 3.154891] smp: Brought up 1 node, 1 CPU
[ 3.160729] devtmpfs: initialized
[ 3.168975] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 3.178807] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 3.185866] Starting tracer 'function_graph'
[ 3.213315] pinctrl core: initialized pinctrl subsystem
[ 3.219971] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 3.227101] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 3.234371] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 3.242530] audit: initializing netlink subsys (disabled)
[ 3.248730] cpuidle: using governor menu
[ 3.252848] audit: type=2000 audit(3.156:1): state=initialized audit_enabled=0 res=1
[ 3.262509] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@ffd8000000
[ 3.306984] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 3.313926] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 3.322651] clocksource: Switched to clocksource riscv_clocksource
[ 3.384653] NET: Registered PF_INET protocol family
[ 3.389973] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 3.405025] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 3.413671] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 3.421591] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 3.429750] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[ 3.438515] TCP: Hash tables configured (established 32768 bind 32768)
[ 3.445235] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 3.452039] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 3.459443] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 3.555270] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 3.567286] NET: Registered PF_ALG protocol family
[ 3.572220] io scheduler mq-deadline registered
[ 3.576798] io scheduler kyber registered
[ 3.580888] io scheduler bfq registered
[ 3.620651] DEBUG th1520_clock_probe(): call devm_platform_ioremap_resource
[ 3.620705] DEBUG th1520_clock_probe(): regs=ffffffc800015000
[ 3.627877] DEBUG th1520_clock_probe(): call devm_regmap_init_mmio
[ 3.633758] DEBUG th1520_clock_probe(): map=ffffffd80131c800
[ 3.639995] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-cpu0)
[ 3.645719] DEBUG th1520_clock_probe(): ret=0
[ 3.652717] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-cpu1)
[ 3.657127] DEBUG th1520_clock_probe(): ret=0
[ 3.664148] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-gmac)
[ 3.668554] DEBUG th1520_clock_probe(): ret=0
[ 3.675550] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-video)
[ 3.679963] DEBUG th1520_clock_probe(): ret=0
[ 3.687061] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-dpu0)
[ 3.691454] DEBUG th1520_clock_probe(): ret=0
[ 3.698448] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-dpu1)
[ 3.702843] DEBUG th1520_clock_probe(): ret=0
[ 3.709852] DEBUG th1520_clock_probe(): call devm_clk_hw_register(pll-tee)
[ 3.714264] DEBUG th1520_clock_probe(): ret=0
[ 3.721200] DEBUG th1520_clock_probe(): call devm_clk_hw_register(c910-i0)
[ 3.725610] DEBUG th1520_clock_probe(): ret=0
[ 3.732528] DEBUG th1520_clock_probe(): call devm_clk_hw_register(c910)
[ 3.736924] DEBUG th1520_clock_probe(): ret=0
[ 3.743587] DEBUG th1520_clock_probe(): call devm_clk_hw_register(brom)
[ 3.747983] DEBUG th1520_clock_probe(): ret=0
[ 3.754637] DEBUG th1520_clock_probe(): call devm_clk_hw_register(bmu)
[ 3.759044] DEBUG th1520_clock_probe(): ret=0
[ 3.765612] DEBUG th1520_clock_probe(): call devm_clk_hw_register(ahb2)
[ 3.770006] __clk_core_init: ahb2 must implement .set_parent & .determine_rate
[ 3.783914] DEBUG th1520_clock_probe(): ret=-22
[ 3.783926] th1520-clk: probe of ffef010000.clock-controller failed with error -22
[ 3.979552] dw_axi_dmac_platform ffefc00000.dma-controller: WARN: Device release is not defined so it is not safe to unbind this driver while in use
[ 3.993576] dw_axi_dmac_platform ffefc00000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 4.187910] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 4.206886] printk: console [ttyS0] disabled
[ 4.211898] ffe7014000.serial: ttyS0 at MMIO 0xffe7014000 (irq = 13, base_baud = 6250000) is a 16550A
[ 4.221593] printk: console [ttyS0] enabled
[ 4.221593] printk: console [ttyS0] enabled
[ 4.230123] printk: bootconsole [uart0] disabled
[ 4.230123] printk: bootconsole [uart0] disabled
[ 4.303687] loop: module loaded
[ 4.310820] mousedev: PS/2 mouse device common for all mice
[ 4.317406] Synopsys Designware Multimedia Card Interface Driver
[ 4.323849] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.329949] riscv-pmu-sbi: SBI PMU extension is available
[ 4.335445] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[ 4.376861] NET: Registered PF_INET6 protocol family
[ 4.396409] Segment Routing with IPv6
[ 4.400311] In-situ OAM (IOAM) with IPv6
[ 4.404382] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 4.411335] NET: Registered PF_PACKET protocol family
[ 4.416437] start plist test
[ 4.428285] end plist test
[ 4.461882] mmc0: new HS400 MMC card at address 0001
[ 4.476202] mmcblk0: mmc0:0001 TB2916 14.6 GiB
[ 4.502006] mmcblk0: p1 p2 p3
[ 4.512828] mmcblk0boot0: mmc0:0001 TB2916 4.00 MiB
[ 4.538693] mmcblk0boot1: mmc0:0001 TB2916 4.00 MiB
[ 4.545567] clk: Not disabling unused clocks
[ 4.552149] mmcblk0rpmb: mmc0:0001 TB2916 4.00 MiB, chardev (251:0)
[ 4.558786] dw-apb-uart ffe7014000.serial: forbid DMA for kernel console
[ 4.574598] Freeing unused kernel image (initmem) memory: 10564K
[ 4.580708] Run /init as init process
[ 4.584405] with arguments:
[ 4.587403] /init
[ 4.589689] ffftrace_dump_on_oops
[ 4.593384] with environment:
[ 4.596555] HOME=/
[ 4.598943] TERM=linux
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Saving 256 bits of non-creditable seed for next boot
Welcome to Buildroot
buildroot login:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment