Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created September 4, 2023 17:11
Show Gist options
  • Save pdp7/6d27c57f8280fe1ae35e585d66e73f61 to your computer and use it in GitHub Desktop.
Save pdp7/6d27c57f8280fe1ae35e585d66e73f61 to your computer and use it in GitHub Desktop.
dmesg-th1520-emmc-sdma.txt
buildroot login: root
# dmesg
[ 0.000000] Linux version 6.5.0-r20230801-0757-11334-g253be168dd50-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) #232 SMP Sun Sep 3 18:02:57 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: 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] Falling back to deprecated "riscv,isa"
[ 0.000000] riscv: base ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 28 pages/cpu s75816 r8192 d30680 u114688
[ 0.000000] pcpu-alloc: s75816 r8192 d30680 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: 4078688K/4194304K available (6674K kernel code, 5026K rwdata, 2048K rodata, 10568K init, 334K bss, 115616K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 25191 entries in 99 pages
[ 0.000000] ftrace: allocated 99 pages with 4 groups
[ 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.008752] Console: colour dummy device 80x25
[ 0.013432] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=12000)
[ 0.023910] pid_max: default: 32768 minimum: 301
[ 0.028943] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.036580] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.047650] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.055548] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.063551] riscv: ELF compat mode unsupported
[ 0.063601] ASID allocator using 16 bits (65536 entries)
[ 0.073852] rcu: Hierarchical SRCU implementation.
[ 0.078803] rcu: Max phase no-delay instances is 1000.
[ 0.084786] EFI services will not be available.
[ 0.089981] smp: Bringing up secondary CPUs ...
[ 1.100551] CPU1: failed to come online
[ 2.126575] CPU2: failed to come online
[ 3.152595] CPU3: failed to come online
[ 3.156620] smp: Brought up 1 node, 1 CPU
[ 3.162623] devtmpfs: initialized
[ 3.170965] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 3.180980] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 3.188144] Starting tracer 'function_graph'
[ 3.216420] pinctrl core: initialized pinctrl subsystem
[ 3.223145] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 3.230408] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 3.237810] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 3.245999] audit: initializing netlink subsys (disabled)
[ 3.252300] audit: type=2000 audit(3.160:1): state=initialized audit_enabled=0 res=1
[ 3.260517] cpuidle: using governor menu
[ 3.266378] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@ffd8000000
[ 3.311740] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 3.318772] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 3.327771] clocksource: Switched to clocksource riscv_clocksource
[ 3.360046] NET: Registered PF_INET protocol family
[ 3.365414] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 3.380433] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 3.389258] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 3.397210] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 3.405492] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[ 3.414422] TCP: Hash tables configured (established 32768 bind 32768)
[ 3.421285] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 3.428228] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 3.435829] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 3.456314] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 3.468706] NET: Registered PF_ALG protocol family
[ 3.473750] io scheduler mq-deadline registered
[ 3.478477] io scheduler kyber registered
[ 3.482624] io scheduler bfq registered
[ 3.513821] 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.528192] dw_axi_dmac_platform ffefc00000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[ 3.760319] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 3.783136] printk: console [ttyS0] disabled
[ 3.788297] ffe7014000.serial: ttyS0 at MMIO 0xffe7014000 (irq = 13, base_baud = 6250000) is a 16550A
[ 3.797776] printk: console [ttyS0] enabled
[ 3.806274] printk: bootconsole [uart0] disabled
[ 3.856867] loop: module loaded
[ 3.864291] mousedev: PS/2 mouse device common for all mice
[ 3.870796] sdhci: Secure Digital Host Controller Interface driver
[ 3.877033] sdhci: Copyright(c) Pierre Ossman
[ 3.881488] Synopsys Designware Multimedia Card Interface Driver
[ 3.887923] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.894013] riscv-pmu-sbi: SBI PMU extension is available
[ 3.899505] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[ 3.916903] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[ 3.936480] NET: Registered PF_INET6 protocol family
[ 3.952246] Segment Routing with IPv6
[ 3.956059] In-situ OAM (IOAM) with IPv6
[ 3.960140] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.967128] NET: Registered PF_PACKET protocol family
[ 3.972233] start plist test
[ 3.981258] end plist test
[ 4.013475] mmc0: SDHCI controller on ffe7080000.mmc [ffe7080000.mmc] using DMA
[ 4.032792] clk: Not disabling unused clocks
[ 4.085854] mmc0: new HS400 MMC card at address 0001
[ 4.097125] mmcblk0: mmc0:0001 TB2916 14.6 GiB
[ 4.122243] mmcblk0: p1 p2 p3
[ 4.134287] mmcblk0boot0: mmc0:0001 TB2916 4.00 MiB
[ 4.150689] mmcblk0boot1: mmc0:0001 TB2916 4.00 MiB
[ 4.168393] mmcblk0rpmb: mmc0:0001 TB2916 4.00 MiB, chardev (251:0)
[ 4.379402] dw-apb-uart ffe7014000.serial: forbid DMA for kernel console
[ 4.394448] Freeing unused kernel image (initmem) memory: 10568K
[ 4.407857] Run /init as init process
[ 4.411540] with arguments:
[ 4.414542] /init
[ 4.416848] ffftrace_dump_on_oops
[ 4.420538] with environment:
[ 4.423691] HOME=/
[ 4.426085] TERM=linux
# mount /^C
# mkdir /mnt/p2
# mkdir /mnt/p3
# mount /dev/mmcblk0p
mmcblk0p1 mmcblk0p2 mmcblk0p3
# mount /dev/mmcblk0p
mmcblk0p1 mmcblk0p2 mmcblk0p3
# mount /dev/mmcblk0p2 /mnt/p
p2/ p3/
# mount /dev/mmcblk0p2 /mnt/p2
[ 41.684899] EXT4-fs (mmcblk0p2): mounted filesystem 6ea98ccf-2178-48a9-a1ad-0eb454f57268 r/w with ordered data mode. Quota mode: disabled.
# ls -la /mnt/p2
total 22696
drwxr-xr-x 5 root root 4096 Sep 4 2023 .
drwxr-xr-x 4 root root 0 Jan 1 00:00 ..
-rw-rw-r-- 1 1000 1000 26455552 Sep 4 2023 Image
drwxr-xr-x 2 root root 4096 Jul 29 2023 extlinux
-rw-r--r-- 1 1000 1000 59514 Jul 28 2023 fire-emu-crash.dtb
-rw-r--r-- 1 1000 1000 59036 Jul 28 2023 fire-emu-gpu-dpu-dsi0.dtb
-rw-r--r-- 1 1000 1000 59178 Jul 28 2023 fire-emu-soc-base.dtb
-rw-r--r-- 1 1000 1000 58640 Jul 28 2023 fire-emu-soc-c910x4.dtb
-rw-r--r-- 1 1000 1000 58604 Jul 28 2023 fire-emu-vi-dsp-vo.dtb
-rw-r--r-- 1 1000 1000 59020 Jul 28 2023 fire-emu-vi-vp-vo.dtb
-rw-r--r-- 1 1000 1000 58652 Jul 28 2023 fire-emu.dtb
-rwxr-xr-x 1 root root 138368 Sep 4 2023 fw_dynamic.bin
-rw-r--r-- 1 1000 1000 7569 Jul 28 2023 ice.dtb
-rw-r--r-- 1 1000 1000 53108 Jul 28 2023 light-a-product.dtb
-rw-r--r-- 1 1000 1000 72953 Jul 28 2023 light-a-ref-dsi0-hdmi.dtb
-rw-r--r-- 1 1000 1000 72973 Jul 28 2023 light-a-ref-dsi0.dtb
-rw-r--r-- 1 1000 1000 72392 Jul 28 2023 light-a-ref.dtb
-rw-r--r-- 1 1000 1000 74105 Jul 28 2023 light-a-val-android.dtb
-rw-r--r-- 1 1000 1000 72873 Jul 28 2023 light-a-val-audio-hdmi.dtb
-rw-r--r-- 1 1000 1000 72745 Jul 28 2023 light-a-val-audio.dtb
-rw-r--r-- 1 1000 1000 61266 Jul 28 2023 light-a-val-crash.dtb
-rw-r--r-- 1 1000 1000 72444 Jul 28 2023 light-a-val-ddr1G.dtb
-rw-r--r-- 1 1000 1000 72444 Jul 28 2023 light-a-val-ddr2G.dtb
-rw-r--r-- 1 1000 1000 72784 Jul 28 2023 light-a-val-dpi0-dpi1.dtb
-rw-r--r-- 1 1000 1000 72584 Jul 28 2023 light-a-val-dpi0.dtb
-rw-r--r-- 1 1000 1000 73485 Jul 28 2023 light-a-val-dsi0-dsi1.dtb
-rw-r--r-- 1 1000 1000 72953 Jul 28 2023 light-a-val-dsi0-hdmi.dtb
-rw-r--r-- 1 1000 1000 72973 Jul 28 2023 light-a-val-dsi0.dtb
-rw-r--r-- 1 1000 1000 72973 Jul 28 2023 light-a-val-dsi1.dtb
-rw-r--r-- 1 1000 1000 73262 Jul 28 2023 light-a-val-full.dtb
-rw-r--r-- 1 1000 1000 72412 Jul 28 2023 light-a-val-gpio-keys.dtb
-rw-r--r-- 1 1000 1000 72545 Jul 28 2023 light-a-val-hdmi.dtb
-rw-r--r-- 1 1000 1000 72388 Jul 28 2023 light-a-val-iso7816.dtb
-rw-r--r-- 1 1000 1000 72476 Jul 28 2023 light-a-val-khv.dtb
-rw-r--r-- 1 1000 1000 72689 Jul 28 2023 light-a-val-miniapp-hdmi.dtb
-rw-r--r-- 1 1000 1000 72384 Jul 28 2023 light-a-val-nand.dtb
-rw-r--r-- 1 1000 1000 72416 Jul 28 2023 light-a-val-npu-fce.dtb
-rw-r--r-- 1 1000 1000 72977 Jul 28 2023 light-a-val-sec.dtb
-rw-r--r-- 1 1000 1000 84928 Jul 28 2023 light-a-val-sv.dtb
-rw-r--r-- 1 1000 1000 72380 Jul 28 2023 light-a-val-wcn.dtb
-rw-r--r-- 1 1000 1000 72392 Jul 28 2023 light-a-val.dtb
-rw-r--r-- 1 1000 1000 61206 Jul 28 2023 light-ant-discrete-crash.dtb
-rw-r--r-- 1 1000 1000 72194 Jul 28 2023 light-ant-discrete.dtb
-rw-r--r-- 1 1000 1000 61206 Jul 28 2023 light-ant-ref-crash.dtb
-rw-r--r-- 1 1000 1000 73510 Jul 28 2023 light-ant-ref.dtb
-rw-r--r-- 1 1000 1000 74018 Jul 28 2023 light-b-power.dtb
-rw-r--r-- 1 1000 1000 61198 Jul 28 2023 light-b-product-crash.dtb
-rw-r--r-- 1 1000 1000 74094 Jul 28 2023 light-b-product-ddr1G.dtb
-rw-r--r-- 1 1000 1000 74074 Jul 28 2023 light-b-product-miniapp-hdmi.dtb
-rw-r--r-- 1 1000 1000 74042 Jul 28 2023 light-b-product.dtb
-rw-r--r-- 1 1000 1000 74018 Jul 28 2023 light-b-ref.dtb
-rw-r--r-- 1 1000 1000 8929 Sep 4 2023 light-beagle.dtb
-rw-r--r-- 1 1000 1000 31983 Jul 28 2023 light-fm-emu-audio.dtb
-rw-r--r-- 1 1000 1000 32435 Jul 28 2023 light-fm-emu-dsi0-hdmi.dtb
-rw-r--r-- 1 1000 1000 32046 Jul 28 2023 light-fm-emu-dsp.dtb
-rw-r--r-- 1 1000 1000 31979 Jul 28 2023 light-fm-emu-gpu.dtb
-rw-r--r-- 1 1000 1000 32015 Jul 28 2023 light-fm-emu-hdmi.dtb
-rw-r--r-- 1 1000 1000 32100 Jul 28 2023 light-fm-emu-npu-fce.dtb
-rw-r--r-- 1 1000 1000 31975 Jul 28 2023 light-fm-emu.dtb
-rw-r--r-- 1 1000 1000 69202 Jul 28 2023 light-lpi4a-ddr2G.dtb
-rw-rw-r-- 1 1000 1000 8701 Jul 28 2023 light-lpi4a.dtb
-rwxr-xr-x 1 root root 50340 Sep 4 2023 light_aon_fpga.bin
-rwxr-xr-x 1 root root 15748 Sep 4 2023 light_c906_audio.bin
-rw-r--r-- 1 1000 1000 5253 Jul 28 2023 light_mpw.dtb
drwx------ 2 root root 16384 Sep 4 2023 lost+found
drwxr-xr-x 2 root root 4096 Jul 12 2023 overlays
-rw-rw-r-- 1 1000 1000 957632 Jul 28 2023 u-boot-with-spl.bin
# umount /mnt/p2
[ 52.101003] EXT4-fs (mmcblk0p2): unmounting filesystem 6ea98ccf-2178-48a9-a1ad-0eb454f57268.
# mount /dev/mmcblk0p2 /mnt/p2
[ 58.826078] JBD2: no valid journal superblock found
[ 58.831041] EXT4-fs (mmcblk0p2): Could not load journal inode
mount: mounting /dev/mmcblk0p2 on /mnt/p2 failed: Invalid argument
# umount /mnt/p2
umount: can't unmount /mnt/p2: Invalid argument
# mount /dev/mmcblk0p3 /mnt/p3
[ 72.045166] EXT4-fs error (device mmcblk0p3): ext4_init_orphan_info:611: comm mount: orphan file block 0: bad magic
[ 72.056442] EXT4-fs (mmcblk0p3): mount failed
mount: mounting /dev/mmcblk0p3 on /mnt/p3 failed: Invalid argument
# ls /mnt/p3
# fdisk /dev/mmcblk0
Found valid GPT with protective MBR; using GPT
Command (m for help): p
Disk /dev/mmcblk0: 30621696 sectors, 2664M
Logical sector size: 512
Disk identifier (GUID): 968db736-94ec-4027-ad40-7c7c31d84a7b
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 30621662
Number Start (sector) End (sector) Size Name
1 34 4095 2031K table
2 4096 413695 200M boot
3 413696 30621662 14.4G root
Command (m for help): q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment