Port-RISCV archive

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

Re: Allwinner D1



> On Oct 8, 2025, at 8:45 AM, Jason Thorpe <thorpej%me.com@localhost> wrote:
> 
> 
> 
>> On Oct 8, 2025, at 6:22 AM, Rui-Xiang Guo <rxg%lavabit.com@localhost> wrote:
>> 
>> On Wed, Feb 05, 2025 at 07:09:58PM +0000, Nick Hudson wrote:
>>> On 05/02/2025 03:44, Rui-Xiang Guo wrote:
> 
>> I tried adding the following patches, but they did not help.
> 
> More than this is needed.  I have a D1 Nezha board that I’m playing with and made progress on this past weekend, but I’m not going to be able to get back to it for a couple of days.  Stay tuned.

Ok, made some progress today.  I have it booting to the root device prompt (there’s a bunch of not-yet-supported devices, but AFAIK they’re mostly compatible with the Allwinner ARM SoC device cores, so this should be pretty easy).

But while it’s there waiting for me to type something, after a few seconds it resets, so I guess SBI or u-boot has enabled a watchdog timer or something?  Gotta figure that one out.

Anyway, there’s still some cleanup I need to do before I’ll post this first round of patches.  But first, it’s nice outside, so I’m going for a hike :-)

  \\-__,------,___.
   \\        __,---`  NetBSD/riscv efiboot (riscv64)
    \\       `---,_.  Revision 2.15 (Sun Oct  5 04:42:16 UTC 2025)
     \\-,_____,.---`
      \\
       \\
        \\

Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.     
4649894+1892256+1483916+613236 [585600+357515]=0xae6c98

------------
NetBSD start

sp:      0x0000_0000_7dc0_3000
pc:      0x0000_0000_7d40_0080
hart:    0x0000_0000_0000_0000
dtb:     0x0000_0000_7e00_0000
l1:      0x0000_0000_7dc0_c000
l2:      0x0000_0000_7dc0_b000
uspace:  0x0000_0000_7dc0_1000
bootstk: 0x0000_0000_7dc0_3000
vtopdiff:0xffff_ffbf_82c0_0000

bss:     0x0000_0000_7dd6_a48c - 0x0000_0000_7dc0_d000

l2pde:   0x0000_0000_7dc0_b800:  0x0000_0000_1f70_3001

kern:    0x0000_0000_7dc0_c000:  0x7000_0000_1f50_00ef
kern:    0x0000_0000_7dc0_c008:  0x7000_0000_1f58_00ef
kern:    0x0000_0000_7dc0_c010:  0x7000_0000_1f60_00ef
kern:    0x0000_0000_7dc0_c018:  0x7000_0000_1f68_00ef
kern:    0x0000_0000_7dc0_c020:  0x7000_0000_1f70_00ef
kern:    0x0000_0000_7dc0_c028:  0x7000_0000_1f78_00ef
kern:    0x0000_0000_7dc0_c030:  0x7000_0000_1f80_00ef
kern:    0x0000_0000_7dc0_c038:  0x7000_0000_1f88_00ef
kern:    0x0000_0000_7dc0_c040:  0x7000_0000_1f90_00ef
kern:    0x0000_0000_7dc0_c048:  0x7000_0000_1f98_00ef
kern:    0x0000_0000_7dc0_c050:  0x7000_0000_1fa0_00ef
kern:    0x0000_0000_7dc0_c058:  0x7000_0000_1fa8_00ef
kern:    0x0000_0000_7dc0_c060:  0x7000_0000_1fb0_00ef
kern:    0x0000_0000_7dc0_c068:  0x7000_0000_1fb8_00ef
kern:    0x0000_0000_7dc0_c070:  0x7000_0000_1fc0_00ef
kern:    0x0000_0000_7dc0_c078:  0x7000_0000_1fc8_00ef
dtb:     0x0000_0000_7dc0_c080:  0x7000_0000_1f80_00e7
PM
[   1.0000000] FDT<0xffffffc002000000>
[   1.0000000] devmap 0xffffffc00082f650
[   1.0000000] bootstrap
[   1.0000000] stdout
[   1.0000000] fdt size 8000/76ad
[   1.0000000] consinit ok
[   1.0000000] NetBSD/riscv (fdt) booting ...
[   1.0000000] FDT /memory @ 0x40060000 size 0x3e455000
[   1.0000000] FDT /memory @ 0x7e4b9000 size 0x830000
[   1.0000000] FDT /memory @ 0x7ecf4000 size 0x4000
[   1.0000000] FDT /memory @ 0x7ed03000 size 0x4000
[   1.0000000] FDT /memory @ 0x7ed1c000 size 0x1023000
[   1.0000000] FDT /memory @ 0x7fd40000 size 0x220000
[   1.0000000] FDT /memory @ 0x7ff61000 size 0x9f000
[   1.0000000] init_riscv: memory start 40060000 end 80000000 (len 3ffa0000)
[   1.0000000] cpu_kernel_vm_init: kernel phys start 0x7d400000 end 0x7de00000
[   1.0000000] dm:   0xffffffc00080bc08 :  0x70000000100000e7
[   1.0000000] bootargs: 
[   1.0000000] msgbufaddr = 0xffffffe07fff0000
[   1.0000000] ------------------------------------------
[   1.0000000]            kern_vtopdiff = 0xffffffbf82c00000
[   1.0000000]             memory_start = 0x        40060000
[   1.0000000]               memory_end = 0x        80000000
[   1.0000000]              memory_size = 0x        3ffa0000
[   1.0000000]           kernstart_phys = 0x        7d400000
[   1.0000000]             kernend_phys = 0x        7de00000
[   1.0000000]               msgbufaddr = 0xffffffe07fff0000
[   1.0000000]    VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
[   1.0000000]           kernstart_mega = 0xffffffc000000000
[   1.0000000]                kernstart = 0xffffffc000000000
[   1.0000000]                  kernend = 0xffffffc000a00000
[   1.0000000]             kernend_mega = 0xffffffc000a00000
[   1.0000000]    VM_MAX_KERNEL_ADDRESS = 0xffffffd000000000
[   1.0000000]         pmap_direct_base = 0xffffffe000000000
[   1.0000000] ------------------------------------------
[   1.0000000] adding       0x40060000 -       0x7d400000  to freelist 0
[   1.0000000] adding       0x7de00000 -       0x7e000000  to freelist 0
[   1.0000000] adding       0x7e008000 -       0x7e4b5000  to freelist 0
[   1.0000000] adding       0x7e4b9000 -       0x7ece9000  to freelist 0
[   1.0000000] adding       0x7ecf4000 -       0x7ecf8000  to freelist 0
[   1.0000000] adding       0x7ed03000 -       0x7ed07000  to freelist 0
[   1.0000000] adding       0x7ed1c000 -       0x7fd3f000  to freelist 0
[   1.0000000] adding       0x7fd40000 -       0x7ff60000  to freelist 0
[   1.0000000] adding       0x7ff61000 -       0x7fff0000  to freelist 0
[   1.0000000] common cpusets bs_pde 0xffffffc00080b000 ASID max ffff kcpusets nkmempages limits: ffffffc004000000 - ffffffd000000000
[   1.0000000] kva   : ffffffc004000000 - ffffffc055c00000
[   1.0000000] mpstart
[   1.0000000] Loaded initial symtab at 0xffffffc000869bc0, strtab at 0xffffffc0008f8b40, # entries 24376
[   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, 2025
[   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 11.99.3 (GENERIC64) #28: Sat Oct 11 13:51:44 PDT 2025
[   1.0000000]  thorpej@the-ripe-vessel:/home/nbsd/src/sys/arch/riscv/compile/GENERIC64
[   1.0000000] total memory = 1013 MB
[   1.0000000] avail memory = 980 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] simplebus0 at mainbus0: Allwinner D1 Nezha
[   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 (dcxo)
[   1.0000000] intc0 at cpu0: local interrupt controller
[   1.0000000] plic0 at simplebus1: RISC-V PLIC (175 IRQs)
[   1.0000000] sun20id1ccu0 at simplebus1: D1 CCU
[   1.0000000] sunxigpio0 at simplebus1: PIO
[   1.0000000] gpio0 at sunxigpio0: 88 pins
[   1.0000000] sunxigpio0: interrupting on plic0 irq 85
[   1.0000000] fregulator0 at simplebus0: vcc-3v3
[   1.0000000] sun6idma0 at simplebus1: DMA controller (16 channels)
[   1.0000000] sun6idma0: interrupting on plic0 irq 66
[   1.0000000] fregulator1 at simplebus0: usbvbus
[   1.0000000] fregulator2 at simplebus0: vcc
[   1.0000000] fregulator3 at simplebus0: vdd-cpu
[   1.0000000] sunxisid0 at simplebus1: Security ID EFUSE
[   1.0000000] /soc/mixer@5100000 at simplebus1 not configured
[   1.0000000] /soc/mixer@5200000 at simplebus1 not configured
[   1.0000000] /soc/rtc@7090000 at simplebus1 not configured
[   1.0000000] /wifi-pwrseq at simplebus0 not configured
[   1.0000000] sunxiusbphy0 at simplebus1: USB PHY
[   1.0000000] /soc/syscon@3000000 at simplebus1 not configured
[   1.0000000] emac0 at simplebus1: EMAC
[   1.0000000] emac0: unable to acquire syscon
[   1.0000000] emac0: cannot allocate resources for device
[   1.0000000] /soc/clock-controller@5000000 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/clock-controller@7010000 at simplebus1 not configured
[   1.0000000] /opp-table-cpu 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/i2c@2502800 at simplebus1 not configured
[   1.0000000] /soc/crypto@3040000 at simplebus1 not configured
[   1.0000000] /soc/dram-controller@3102000 at simplebus1 not configured
[   1.0000000] /soc/mmc@4020000 at simplebus1 not configured
[   1.0000000] /soc/mmc@4021000 at simplebus1 not configured
[   1.0000000] /soc/usb@4100000 at simplebus1 not configured
[   1.0000000] /soc/usb@4101000 at simplebus1 not configured
[   1.0000000] /soc/usb@4101400 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/power-controller@7001000 at simplebus1 not configured
[   1.0000000] /soc/watchdog@6011000 at simplebus1 not configured
[   1.0000000] /pmu at simplebus0 not configured
[   1.0000000] WARNING: system needs entropy for security; see entropy(7)
[   1.0000030] cpu_boot_secondary_processors: starting secondary processors
[   1.0000030] cpu_boot_secondary_processors: secondary processors hatched. 1 running
[   1.0000030] swwdog0: software watchdog initialized
[   1.0000030] WARNING: 2 errors while detecting hardware; check system log.
[   1.0000030] boot device: <unknown>
[   1.0000030] root device: 

-- thorpej



Home | Main Index | Thread Index | Old Index