Port-RISCV archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Allwinner D1



On Sun, Jul 14, 2024 at 07:09:06AM +0000, John Klos wrote:
> Very nice! I bought one of these and look forward to running NetBSD on it.
> Happy to test.

It's coming soon. :)
Now I have trouble with attaching sunximmc which is from arm/sunxi/sunxi_mmc.c:
[   1.0000000] riscv_fdt_cpu_mpstart: kernel compiled without MULTIPROCESSOR
[   1.0000000] Loaded initial symtab at 0xffffffc000842978, strtab at 0xffffffc0008cf810, # entries 22823
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[   1.0000000]     2024
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 10.99.11 (SUN20I_D1) #36: Sun Jul 21 17:00:46 CST 2024
[   1.0000000]  rxg@picohive:/usr/builds/obj.riscv64/sys/arch/riscv/compile/SUN20I_D1
[   1.0000000] total memory = 1013 MB
[   1.0000000] avail memory = 980 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] simplebus0 at mainbus0: MangoPi MQ Pro
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] cpu0 at cpus0: T-HEAD 9-Series Processor (C9, E9 series) imp. 0
[   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (osc24M)
[   1.0000000] syscon0 at simplebus1: System Controller Registers
[   1.0000000] intc0 at cpu0: local interrupt controller
[   1.0000000] sun20id1ccu0 at simplebus1: D1 CCU
[   1.0000000] plic0 at simplebus1: RISC-V PLIC (176 IRQs)
[   1.0000000] sunxigpio0 at simplebus1: PIO
[   1.0000000] sunxigpio0: interrupting on plic0 irq 85
[   1.0000000] /vdd-cpu at simplebus0 not configured
[   1.0000000] /soc/mixer@5100000 at simplebus1 not configured
[   1.0000000] /soc/mixer@5200000 at simplebus1 not configured
[   1.0000000] /soc/temperature-sensor@2009400 at simplebus1 not configured
[   1.0000000] /soc/rtc@7090000 at simplebus1 not configured
[   1.0000000] /vcc-3v3 at simplebus0 not configured
[   1.0000000] /avdd2v8 at simplebus0 not configured
[   1.0000000] /soc/dma-controller@3002000 at simplebus1 not configured
[   1.0000000] /soc/efuse@3006000 at simplebus1 not configured
[   1.0000000] /soc/audio-codec@2030000/regulators@2030348 at syscon0 not configured
[   1.0000000] /wifi-pwrseq at simplebus0 not configured
[   1.0000000] /soc/phy@4100400 at simplebus1 not configured
[   1.0000000] /vcc at simplebus0 not configured
[   1.0000000] /soc/syscon@3000000 at simplebus1 not configured
[   1.0000000] /soc/clock-controller@5000000 at simplebus1 not configured
[   1.0000000] /soc/iommu@2010000 at simplebus1 not configured
[   1.0000000] /soc/tcon-top@5460000 at simplebus1 not configured
[   1.0000000] /soc/phy@5451000 at simplebus1 not configured
[   1.0000000] /soc/lcd-controller@5461000 at simplebus1 not configured
[   1.0000000] /soc/lcd-controller@5470000 at simplebus1 not configured
[   1.0000000] /soc/hdmi@5500000 at simplebus1 not configured
[   1.0000000] /soc/phy@5510000 at simplebus1 not configured
[   1.0000000] /connector at simplebus0 not configured
[   1.0000000] /soc/clock-controller@7010000 at simplebus1 not configured
[   1.0000000] /display-engine at simplebus0 not configured
[   1.0000000] /leds at simplebus0 not configured
[   1.0000000] /dvdd at simplebus0 not configured
[   1.0000000] /soc/timer@2050000 at simplebus1 not configured
[   1.0000000] com0 at simplebus1: DesignWare APB UART, no fifo
[   1.0000000] com0: console
[   1.0000000] com0: interrupting on plic0 irq 18
[   1.0000000] com1 at simplebus1: DesignWare APB UART, no fifo
[   1.0000000] com1: interrupting on plic0 irq 19
[   1.0000000] /soc/crypto@3040000 at simplebus1 not configured
[   1.0000000] sunximmc0 at simplebus1: SD/MMC controller
[   1.0000000] sunximmc0: interrupting on plic0 irq 56
[   1.0000000] sunximmc1 at simplebus1: SD/MMC controller
[   1.0000000] sunximmc1: interrupting on plic0 irq 57
[   1.0000000] /soc/usb@4100000 at simplebus1 not configured
[   1.0000000] /soc/usb@4200000 at simplebus1 not configured
[   1.0000000] /soc/usb@4200400 at simplebus1 not configured
[   1.0000000] /soc/watchdog@6011000 at simplebus1 not configured
[   1.0000030] sunximmc0: host reset
[   1.0000030] Trapframe @ 0xffffffc056a49ce0 (cause=13 (load page fault), status=0x1800120, pc=0xffffffc00000c4a8, va=0xffffffc005020000):
[   1.0000030]                         ra =0xffffffc00000536a  sp =0xffffffc056a49e00  gp =0xffffffc000933ac0
[   1.0000030] tp =                 0  t0 =               0x7  t1 =0xffffffc00001333c  t2 =             0x222
[   1.0000030] s0 =0xffffffc056a49e20  s1 =0xffffffe07fbac040  a0 =0xffffffc000805ea8  a1 =0xffffffc005020000
[   1.0000030] a2 =0xffffffc005020000  a3 =0xffffffc0008060c0  a4 =0xffffffc0008060c0  a5 =                 0
[   1.0000030] a6 =                 0  a7 =0xffffffc056a49be0  s2 =             0x3e7  s3 =               0x7
[   1.0000030] s4 =0xffffffe07fbb17c0  s5 =                 0  s6 =                 0  s7 =                 0
[   1.0000030] s8 =                 0  s9 =                 0  s10=                 0  s11=                 0
[   1.0000030] t3 =              0x64  t4 =                 0  t5 =              0x63  t6 =             0x7dc
[   1.0000030] panic: cpu_trap: fatal kernel trap
[   1.0000030] cpu0: Begin traceback...
[   1.0000030] have_addr: true
[   1.0000030] addr: ffffffc056a49b30
[   1.0000030] count: 65535
[   1.0000030] modif:
[   1.0000030] trace fp ffffffc056a49b30
[   1.0000030] fp ffffffc056a49b70 vpanic() at ffffffc000312bfa netbsd:vpanic+0x114
[   1.0000030] fp ffffffc056a49b90 panic() at ffffffc000312c9c netbsd:panic+0x24
[   1.0000030] fp ffffffc056a49ce0 cpu_trap() at ffffffc0000142a6 netbsd:cpu_trap+0x33e
[   1.0000030] tf ffffffc056a49ce0 exception_kernexit() at ffffffc00000dc0c netbsd:cpu_exception_handler+0x98
[   1.0000030] ---- trapframe 0xffffffc056a49ce0 (288 bytes) ----
[   1.0000030] Trapframe @ 0xffffffc056a49ce0 (cause=13 (load page fault), status=0x1800120, pc=0xffffffc00000c4a8, va=0xffffffc005020000):
[   1.0000030]                         ra =0xffffffc00000536a  sp =0xffffffc056a49e00  gp =0xffffffc000933ac0
[   1.0000030] tp =                 0  t0 =               0x7  t1 =0xffffffc00001333c  t2 =             0x222
[   1.0000030] s0 =0xffffffc056a49e20  s1 =0xffffffe07fbac040  a0 =0xffffffc000805ea8  a1 =0xffffffc005020000
[   1.0000030] a2 =0xffffffc005020000  a3 =0xffffffc0008060c0  a4 =0xffffffc0008060c0  a5 =                 0
[   1.0000030] a6 =                 0  a7 =0xffffffc056a49be0  s2 =             0x3e7  s3 =               0x7
[   1.0000030] s4 =0xffffffe07fbb17c0  s5 =                 0  s6 =                 0  s7 =                 0
[   1.0000030] s8 =                 0  s9 =                 0  s10=                 0  s11=                 0
[   1.0000030] t3 =              0x64  t4 =                 0  t5 =              0x63  t6 =             0x7dc
[   1.0000030] ------------------------------------------------
[   1.0000030] fp ffffffc056a49e20 generic_bs_r_4() at ffffffc00000c4a8 netbsd:generic_bs_r_4+0x8
[   1.0000030] fp ffffffc056a49ea0 sunxi_mmc_attach_i() at ffffffc000005fbc netbsd:sunxi_mmc_attach_i+0xc0
[   1.0000030] fp ffffffc056a49ee0 config_interrupts_thread() at ffffffc0002f8676 netbsd:config_interrupts_thread+0x8c
[   1.0000030] fp 0000000000000000 exception_kernexit() at ffffffc00000dc6a netbsd:exception_kernexit+0x5e
[   1.0000030] cpu0: End traceback...
[   1.0000030] Trapframe @ 0xffffffc056a49a10 (cause=3 (breakpoint), status=0x1800120, pc=0xffffffc000000430, va=0):
[   1.0000030]                         ra =0xffffffc000312bfe  sp =0xffffffc056a49b30  gp =0xffffffc000933ac0
[   1.0000030] tp =0xffffffc056a49b10  t0 =               0x7  t1 =0xffffffbfffffff80  t2 =             0x222
[   1.0000030] s0 =0xffffffc056a49b70  s1 =0xffffffc00065c990  a0 =                 0  a1 =             0x222
[   1.0000030] a2 =                 0  a3 =0xffffffc0008060c0  a4 =0xffffffc0008060c0  a5 =               0x1
[   1.0000030] a6 =              0x10  a7 =0xffffffc056a49af0  s2 =0xffffffc0009684d8  s3 =0xffffffc000968558
[   1.0000030] s4 =0xffffffc056a49b98  s5 =             0x104  s6 =0xffffffc00095d658  s7 =                 0
[   1.0000030] s8 =                 0  s9 =                 0  s10=0xffffffc000837540  s11=0xffffffc000953c58
[   1.0000030] t3 =              0x75  t4 =                 0  t5 =              0x63  t6 =             0x7dc
[   1.0000030] kernel: breakpoint
Stopped in pid 0.18 (system) at netbsd:clear_bss+0x10:  c.ebreak
db>

This panic is caused by a simple MMC_READ(), very quirky...

-rxg



Home | Main Index | Thread Index | Old Index