Port-RISCV archive

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

NetBSD on Allwinner D1 / Mango Pi MQ-Pro



Hi,

I've got NetBSD booting on a Mango Pi MQ-Pro, which has the Allwinner D1. In spite of the ARM Allwinner support, most things are not configured. What needs to be done to fix this?

John


U-Boot SPL 2022.10 (Mar 14 2025 - 00:32:03 +0000)
sunxi_ram_probe: dram-controller@3102000: probing
DRAM only have internal ZQ!!
ddr_efuse_type: 0x0
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0x0
[AUTO DEBUG] rank 0 row = 16
[AUTO DEBUG] rank 0 bank = 8
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC ZQ value: 0x7b7bfb
DRAM ODT value: 0x42.
ddr_efuse_type: 0x0
DRAM SIZE =1024 M
DRAM simple test OK.
mxstatus=0xc0408000 mhcr=0x00000109 mcor=0x00000003 mhint=0x00004000
Trying to boot from MMC1
PLL reg = 0xf8216300, freq = 1200000000
SPL size = 81920, sector = 160
sunxi_ram_get_info: dram-controller@3102000: getting info

OpenSBI v1.4
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name             : MangoPi MQ Pro
Platform Features         : medeleg
Platform HART Count       : 1
Platform IPI Device       : ---
Platform Timer Device     : --- @ 0Hz
Platform Console Device   : uart8250
Platform HSM Device       : sun20i-d1-ppu
Platform PMU Device       : thead,c900-pmu
Platform Reboot Device    : sunxi-wdt-reset
Platform Shutdown Device  : ---
Platform Suspend Device   : ---
Platform CPPC Device      : ---
Firmware Base             : 0x40000000
Firmware Size             : 323 KB
Firmware RW Offset        : 0x40000
Firmware RW Size          : 67 KB
Firmware Heap Offset      : 0x48000
Firmware Heap Size : 35 KB (total), 2 KB (reserved), 9 KB (used), 24 KB (free)
Firmware Scratch Size     : 4096 B (total), 312 B (used), 3784 B (free)
Runtime SBI Version       : 2.0

Domain0 Name              : root
Domain0 Boot HART         : 0
Domain0 HARTs             : 0*
Domain0 Region00 : 0x0000000002500000-0x0000000002500fff M: (I,R,W) S/U: (R,W) Domain0 Region01 : 0x0000000040040000-0x000000004005ffff M: (R,W) S/U: () Domain0 Region02 : 0x0000000040000000-0x000000004003ffff M: (R,X) S/U: () Domain0 Region03 : 0x0000000010000000-0x0000000013ffffff M: (I,R,W) S/U: (R,W) Domain0 Region04 : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address      : 0x0000000042e00000
Domain0 Next Arg1         : 0x0000000042e86f80
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       : 8
Boot HART PMP Granularity : 11 bits
Boot HART PMP Address Bits: 38
Boot HART MHPM Info       : 12 (0x0003e3f8)
Boot HART MIDELEG         : 0x0000000000020222
Boot HART MEDELEG         : 0x000000000000b109
sunxi_set_gate: (CLK#24) unhandled


U-Boot 2022.10 (Mar 14 2025 - 00:32:03 +0000) Allwinner Technology

DRAM:  1 GiB
sunxi_set_gate: (CLK#24) unhandled
Core:  46 devices, 19 uclasses, devicetree: separate
WDT:   Started watchdog@6011000 with servicing every 1000ms (16s timeout)
MMC:   mmc@4020000: 0, mmc@4021000: 1
Loading Environment from FAT... PLL reg = 0xf8216300, freq = 1200000000
Unable to read "uboot.env" from mmc0:1...
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   No ethernet found.
starting USB...
Bus usb@4200000: USB EHCI 1.00
Bus usb@4200400: USB OHCI 1.0
scanning bus usb@4200000 for devices... 3 USB Device(s) found
scanning bus usb@4200400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=>
=> boot
PLL reg = 0xf8216300, freq = 1200000000
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Card did not respond to voltage select! : -110
** Unable to read file ubootefi.var **
Failed to load EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootriscv64.efi
185024 bytes read in 35 ms (5 MiB/s)
Booting /efi\boot\bootriscv64.efi







  \\-__,------,___.
   \\        __,---`  NetBSD/riscv efiboot (riscv64)
    \\       `---,_.  Revision 2.15 (Wed Mar 12 14:13:57 UTC 2025)
     \\-,_____,.---`
      \\
       \\
        \\

Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.
4561146+1848632+1465828+631324 [575640+350904]=0xae2bd8

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

sp:      0x0000_0000_7de0_3000
pc:      0x0000_0000_7d60_0080
hart:    0x0000_0000_0000_0000
dtb:     0x0000_0000_7e20_0000
l1:      0x0000_0000_7de0_c000
l2:      0x0000_0000_7de0_b000
uspace:  0x0000_0000_7de0_1000
bootstk: 0x0000_0000_7de0_3000
vtopdiff:0xffff_ffbf_82a0_0000

bss:     0x0000_0000_7df6_5de4 - 0x0000_0000_7de0_d000

l2pde:   0x0000_0000_7de0_b800:  0x0000_0000_1f78_3001

kern:    0x0000_0000_7de0_c000:  0x0000_0000_1f58_00ef
kern:    0x0000_0000_7de0_c008:  0x0000_0000_1f60_00ef
kern:    0x0000_0000_7de0_c010:  0x0000_0000_1f68_00ef
kern:    0x0000_0000_7de0_c018:  0x0000_0000_1f70_00ef
kern:    0x0000_0000_7de0_c020:  0x0000_0000_1f78_00ef
kern:    0x0000_0000_7de0_c028:  0x0000_0000_1f80_00ef
kern:    0x0000_0000_7de0_c030:  0x0000_0000_1f88_00ef
kern:    0x0000_0000_7de0_c038:  0x0000_0000_1f90_00ef
kern:    0x0000_0000_7de0_c040:  0x0000_0000_1f98_00ef
kern:    0x0000_0000_7de0_c048:  0x0000_0000_1fa0_00ef
kern:    0x0000_0000_7de0_c050:  0x0000_0000_1fa8_00ef
kern:    0x0000_0000_7de0_c058:  0x0000_0000_1fb0_00ef
kern:    0x0000_0000_7de0_c060:  0x0000_0000_1fb8_00ef
kern:    0x0000_0000_7de0_c068:  0x0000_0000_1fc0_00ef
kern:    0x0000_0000_7de0_c070:  0x0000_0000_1fc8_00ef
kern:    0x0000_0000_7de0_c078:  0x0000_0000_1fd0_00ef
dtb:     0x0000_0000_7de0_c080:  0x0000_0000_1f88_00e7
PM
[   1.0000000] FDT<0xffffffc002000000>
[   1.0000000] devmap 0xffffffc00082f610
[   1.0000000] bootstrap
[   1.0000000] stdout
[   1.0000000] fdt size 8000/7cc6
[   1.0000000] consinit ok
[   1.0000000] NetBSD/riscv (fdt) booting ...
[   1.0000000] FDT /memory @ 0x40060000 size 0x7e92000
[   1.0000000] FDT /memory @ 0x47f0e000 size 0x365ea000
[   1.0000000] FDT /memory @ 0x7e4fc000 size 0x834000
[   1.0000000] FDT /memory @ 0x7ed3a000 size 0x1234000
[   1.0000000] FDT /memory @ 0x7ff6f000 size 0x91000
[ 1.0000000] init_riscv: memory start 40060000 end 80000000 (len 3ffa0000) [ 1.0000000] cpu_kernel_vm_init: kernel phys start 0x7d600000 end 0x7e000000
[   1.0000000] dm:   0xffffffc00080bc08 :  0x100000e7
[   1.0000000] bootargs:
[   1.0000000] msgbufaddr = 0xffffffe07fff0000
[   1.0000000] ------------------------------------------
[   1.0000000]            kern_vtopdiff = 0xffffffbf82a00000
[   1.0000000]             memory_start = 0x        40060000
[   1.0000000]               memory_end = 0x        80000000
[   1.0000000]              memory_size = 0x        3ffa0000
[   1.0000000]           kernstart_phys = 0x        7d600000
[   1.0000000]             kernend_phys = 0x        7e000000
[   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 -       0x47ef2000  to freelist 0
[   1.0000000] adding       0x47f0e000 -       0x7d600000  to freelist 0
[   1.0000000] adding       0x7e000000 -       0x7e200000  to freelist 0
[   1.0000000] adding       0x7e208000 -       0x7e4f8000  to freelist 0
[   1.0000000] adding       0x7e4fc000 -       0x7ed30000  to freelist 0
[   1.0000000] adding       0x7ed3a000 -       0x7ff6e000  to freelist 0
[   1.0000000] adding       0x7ff6f000 -       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 0xffffffc000869688, strtab at 0xffffffc0008f5f20, # entries 23961 [ 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 10.99.12 (GENERIC64) #0: Wed Mar 12 14:13:57 UTC 2025 [ 1.0000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/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: 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] gpio0 at sunxigpio0: 88 pins
[   1.0000000] sunxigpio0: interrupting on plic0 irq 85
[   1.0000000] fregulator0 at simplebus0: vdd-cpu
[   1.0000000] fregulator1 at simplebus0: vcc-3v3
[   1.0000000] fregulator2 at simplebus0: avdd2v8
[   1.0000000] sun6idma0 at simplebus1: DMA controller (16 channels)
[   1.0000000] sun6idma0: interrupting on plic0 irq 66
[   1.0000000] sunxisid0 at simplebus1: Security ID EFUSE
[   1.0000000] fregulator3 at simplebus0: vcc
[   1.0000000] fregulator4 at simplebus0: dvdd
[   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] /soc/audio-codec@2030000/regulators@2030348 at syscon0 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] /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] /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] /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@4200000 at simplebus1 not configured
[   1.0000000] /soc/usb@4200400 at simplebus1 not configured
[   1.0000000] /soc/watchdog@6011000 at simplebus1 not configured
[   1.0000000] /leds 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] boot device: <unknown>
[   1.0000030] root device:





Home | Main Index | Thread Index | Old Index