Port-RISCV archive

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

Star64 boot log with errors



I am not sure if this is the right place for this, but I flashed a recent image of the nightly build, put the sd card into my star64, connected the UART adapter and I get the log below.

I am aware the star64 is not offically supported, however I did see that there were people running it in the replies of "Contributing to RISCV port" from the 9th of Feburary 2025. The u-boot seems pretty old, but I have no idea if that is the cause of the failure as the bootmenu does appear. Telemetry should always be helpful.

If more details are needed, I am happy to give them.

-------------------------------------

U-Boot SPL 2021.10 (Jan 19 2023 - 04:09:41 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

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

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : jh7110-hsm
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Firmware Base             : 0x40000000
Firmware Size             : 288 KB
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109

  \\-__,------,___.
   \\        __,---`  NetBSD/riscv efiboot (riscv64)
    \\       `---,_.  Revision 2.15 (Tue Jan 13 14:09:02 UTC 2026)
     \\-,_____,.---`
      \\
       \\
        \\

Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.
4750092+2074216+1488172+608980 [588384+358711]=0xae7c80
clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled

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

sp:      0x0000_0000_fd60_3000
pc:      0x0000_0000_fce0_0080
hart:    0x0000_0000_0000_0001
dtb:     0x0000_0000_fda0_0000
vendor:  0x0000_0000_0000_0489
l1:      0x0000_0000_fd60_c000
l2:      0x0000_0000_fd60_b000
uspace:  0x0000_0000_fd60_1000
bootstk: 0x0000_0000_fd60_3000
vtopdiff:0xffff_ffbf_0320_0000

bss:     0x0000_0000_fd76_b52c - 0x0000_0000_fd60_d000

l2pde:   0x0000_0000_fd60_b800:  0x0000_0000_3f58_3001

kern:    0x0000_0000_fd60_c000:  0x0000_0000_3f38_00ef
kern:    0x0000_0000_fd60_c008:  0x0000_0000_3f40_00ef
kern:    0x0000_0000_fd60_c010:  0x0000_0000_3f48_00ef
kern:    0x0000_0000_fd60_c018:  0x0000_0000_3f50_00ef
kern:    0x0000_0000_fd60_c020:  0x0000_0000_3f58_00ef
kern:    0x0000_0000_fd60_c028:  0x0000_0000_3f60_00ef
kern:    0x0000_0000_fd60_c030:  0x0000_0000_3f68_00ef
kern:    0x0000_0000_fd60_c038:  0x0000_0000_3f70_00ef
kern:    0x0000_0000_fd60_c040:  0x0000_0000_3f78_00ef
kern:    0x0000_0000_fd60_c048:  0x0000_0000_3f80_00ef
kern:    0x0000_0000_fd60_c050:  0x0000_0000_3f88_00ef
kern:    0x0000_0000_fd60_c058:  0x0000_0000_3f90_00ef
kern:    0x0000_0000_fd60_c060:  0x0000_0000_3f98_00ef
kern:    0x0000_0000_fd60_c068:  0x0000_0000_3fa0_00ef
kern:    0x0000_0000_fd60_c070:  0x0000_0000_3fa8_00ef
kern:    0x0000_0000_fd60_c078:  0x0000_0000_3fb0_00ef
dtb:     0x0000_0000_fd60_c080:  0x0000_0000_3f68_00e7
PM
[   1.0000000] FDT<0xffffffc002000000>
[   1.0000000] devmap 0xffffffc00082f610
[   1.0000000] bootstrap
[   1.0000000] stdout
[   1.0000000] fdt size a000/96fd
[   1.0000000] consinit ok
[   1.0000000] NetBSD/riscv (fdt) booting ...
[   1.0000000] FDT /memory @ 0x40000000 size 0x7ef2000
[   1.0000000] FDT /memory @ 0x47f0e000 size 0xb5fda000
[   1.0000000] FDT /memory @ 0xfdeec000 size 0x835000
[   1.0000000] FDT /memory @ 0xfe722000 size 0x3000
[   1.0000000] FDT /memory @ 0xfe72d000 size 0x1819000
[   1.0000000] FDT /memory @ 0xfff47000 size 0x1400b9000
[   1.0000000] init_riscv: memory start 40000000 end 240000000 (len 200000000)
[   1.0000000] cpu_kernel_vm_init: kernel phys start 0xfce00000 end 0xfd800000
[   1.0000000] dm:   0xffffffc00080bc08 :  0x100000e7
[   1.0000000] dm:   0xffffffc00080bc10 :  0x200000e7
[   1.0000000] dm:   0xffffffc00080bc18 :  0x300000e7
[   1.0000000] dm:   0xffffffc00080bc20 :  0x400000e7
[   1.0000000] dm:   0xffffffc00080bc28 :  0x500000e7
[   1.0000000] dm:   0xffffffc00080bc30 :  0x600000e7
[   1.0000000] dm:   0xffffffc00080bc38 :  0x700000e7
[   1.0000000] dm:   0xffffffc00080bc40 :  0x800000e7
[   1.0000000] bootargs: console=ttyS0,115200  debug rootwait  earlycon=sbi
[   1.0000000] msgbufaddr = 0xffffffe23fff0000
[   1.0000000] ------------------------------------------
[   1.0000000]            kern_vtopdiff = 0xffffffbf03200000
[   1.0000000]             memory_start = 0x        40000000
[   1.0000000]               memory_end = 0x       240000000
[   1.0000000]              memory_size = 0x       200000000
[   1.0000000]           kernstart_phys = 0x        fce00000
[   1.0000000]             kernend_phys = 0x        fd800000
[   1.0000000]               msgbufaddr = 0xffffffe23fff0000
[   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       0x40000000 -       0x47ef2000  to freelist 0
[   1.0000000] adding       0x47f0e000 -       0xfce00000  to freelist 0
[   1.0000000] adding       0xfd800000 -       0xfda00000  to freelist 0
[   1.0000000] adding       0xfda0a000 -       0xfdee8000  to freelist 0
[   1.0000000] adding       0xfdeec000 -       0xfe721000  to freelist 0
[   1.0000000] adding       0xfe722000 -       0xfe725000  to freelist 0
[   1.0000000] adding       0xfe72d000 -       0xfff46000  to freelist 0
[   1.0000000] adding       0xfff47000 -      0x23fff0000  to freelist 0
[   1.0000000] common cpusets bs_pde 0xffffffc00080b000 ASID max 0 kcpusets nkmempages limits: ffffffc00
[   1.0000000] kva   : ffffffc004000000 - ffffffc28ac00000
[   1.0000000] mpstart
sbi_trap_error: hart0: trap handler failed (error -2)
sbi_trap_error: hart0: mcause=0x0000000000000005 mtval=0x0000000040047060
sbi_trap_error: hart0: mepc=0x0000000040004cac mstatus=0x0000000200001800
sbi_trap_error: hart0: ra=0x0000000040009ee2 sp=0x0000000040046f10
sbi_trap_error: hart0: gp=0x0000000000000000 tp=0x0000000040047000
sbi_trap_error: hart0: s0=0x0000000040046f20 s1=0x0000000040047000
sbi_trap_error: hart0: a0=0x0000000040047060 a1=0x0000000000000002
sbi_trap_error: hart0: a2=0x0000000000000000 a3=0x0000000000000019
sbi_trap_error: hart0: a4=0x0000000000000001 a5=0x0000000040047060
sbi_trap_error: hart0: a6=0x00000000400470a8 a7=0x0000000000000004
sbi_trap_error: hart0: s2=0x00000000400241a8 s3=0x0000000000000000
sbi_trap_error: hart0: s4=0x0000000000000000 s5=0x0000000040028000
sbi_trap_error: hart0: s6=0x0000000040028020 s7=0x0000000000000000
sbi_trap_error: hart0: s8=0x000000000000001c s9=0x0000000040034ab0
sbi_trap_error: hart0: s10=0x0000000000000000 s11=0x0000000000000000
sbi_trap_error: hart0: t0=0x0000000000000000 t1=0x0000000000000000
sbi_trap_error: hart0: t2=0x0000000000000000 t3=0x0000000000002000
sbi_trap_error: hart0: t4=0x0000000000000000 t5=0x0000000000000000
sbi_trap_error: hart0: t6=0x0000000000000000
hart0: WARNING: AP 1 failed to start
[   1.0000000] AP startup problems
[   1.0000000] Loaded initial symtab at 0xffffffc000869b90, strtab at 0xffffffc0008f95f0, # entries 2441
[   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, 2026
[   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.4 (GENERIC64) #0: Tue Jan 13 14:09:02 UTC 2026
[   1.0000000]  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/riscv/compile/GENERIC64
[   1.0000000] total memory = 8181 MB
[   1.0000000] avail memory = 7914 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] simplebus0 at mainbus0: StarFive VisionFive V2
[   1.0000000] simplebus1 at simplebus0
[   1.0000000] cpus0 at simplebus0
[   1.0000000] simplebus2 at simplebus0
[   1.0000000] cpu0 at cpus0: disabled (unresponsive)
[   1.0000000] cpu1 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[   1.0000000] cpu2 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[   1.0000000] cpu3 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[   1.0000000] cpu4 at cpus0: SiFive 7-Series Processor (E7, S7, U7 series) imp. 4210427
[   1.0000000] intc0 at cpu0: local interrupt controller
[   1.0000000] intc1 at cpu1: local interrupt controller
[   1.0000000] intc2 at cpu2: local interrupt controller
[   1.0000000] intc3 at cpu3: local interrupt controller
[   1.0000000] intc4 at cpu4: local interrupt controller
[   1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (osc)
[   1.0000000] fclock1 at simplebus0: 50000000 Hz fixed clock (gmac1_rmii_refin)
[   1.0000000] fclock2 at simplebus0: 51200000 Hz fixed clock (stg_apb)
[   1.0000000] fclock3 at simplebus0: 50000000 Hz fixed clock (gmac0_rmii_refin)
[   1.0000000] fclock4 at simplebus0: 297000000 Hz fixed clock (hdmitx0_pixelclk)
[   1.0000000] fclock5 at simplebus0: 10000000 Hz fixed clock (mipitx_dphy_rxesc)
[   1.0000000] fclock6 at simplebus0: 297000000 Hz fixed clock (mipitx_dphy_txbytehs)
[   1.0000000] syscon0 at simplebus1: System Controller Registers
[   1.0000000] syscon1 at simplebus1: System Controller Registers
[   1.0000000] syscon2 at simplebus1: System Controller Registers
[   1.0000000] fclock7 at simplebus0: 125000000 Hz fixed clock (gmac1_rgmii_rxin)
[   1.0000000] fclock8 at simplebus0: 12288000 Hz fixed clock (i2stx_bclk_ext)
[   1.0000000] fclock9 at simplebus0: 192000 Hz fixed clock (i2stx_lrck_ext)
[   1.0000000] fclock10 at simplebus0: 12288000 Hz fixed clock (i2srx_bclk_ext)
[   1.0000000] fclock11 at simplebus0: 192000 Hz fixed clock (i2srx_lrck_ext)
[   1.0000000] fclock12 at simplebus0: 49152000 Hz fixed clock (tdm_ext)
[   1.0000000] fclock13 at simplebus0: 49152000 Hz fixed clock (mclk_ext)
[   1.0000000] fclock14 at simplebus0: 50000000 Hz fixed clock (jtag_tck_inner)
[   1.0000000] fclock15 at simplebus0: 50000000 Hz fixed clock (bist_apb)
[   1.0000000] fclock16 at simplebus0: 125000000 Hz fixed clock (gmac0_rgmii_rxin)
[   1.0000000] fclock17 at simplebus0: 32768 Hz fixed clock (clk_rtc)
[   1.0000000] syscon3 at simplebus1: System Controller Registers
[   1.0000000] plic0 at simplebus1: RISC-V PLIC (136 IRQs)
[   1.0000000] jh7110pinctrl0 at simplebus1: Pin Controller
[   1.0000000] ccache0 at simplebus1: L2 cache controller. 2048 KiB/64B 16-way (2048 set).
[   1.0000000] /soc/clock-controller at simplebus1 not configured
[   1.0000000] /soc/reset-controller at simplebus1 not configured
[   1.0000000] /soc/snd-card at simplebus1 not configured
[   1.0000000] /soc/clint@2000000 at simplebus1 not configured
[   1.0000000] /soc/spi@13010000 at simplebus1 not configured
[   1.0000000] /soc/otp@17050000 at simplebus1 not configured
[   1.0000000] /soc/usbdrd at simplebus1 not configured
[   1.0000000] /soc/rtc@17040000 at simplebus1 not configured
[   1.0000000] /soc/pmu@17030000 at simplebus1 not configured
[   1.0000000] com0 at simplebus1: couldn't get clock
[   1.0000000] dwiic0 at simplebus1: missing clock
[   1.0000000] dwcmmc0 at simplebus1: couldn't get clock biu
[   1.0000000] dwcmmc1 at simplebus1: couldn't get clock biu
[   1.0000000] /soc/ethernet@16030000 at simplebus1 not configured
[   1.0000000] /soc/ethernet@16040000 at simplebus1 not configured
[   1.0000000] /soc/dmc@100b0000 at simplebus1 not configured
[   1.0000000] /soc/pmu at simplebus1 not configured
[   1.0000000] WARNING: system needs entropy for security; see entropy(7)
[   1.3899957] cpu_boot_secondary_processors: starting secondary processors
[   1.4052452] cpu_boot_secondary_processors: secondary processors hatched. 3 running
[   1.4127812] panic: kernel diagnostic assertion "pmap != pmap_kernel() || !pmap_md_direct_mapped_vadd0
[   1.4314142] cpu0: Begin traceback...
[   1.4314142] have_addr: true
[   1.4314142] addr: ffffffc0008028d0
[   1.4411210] count: 65535
[   1.4411210] modif:
[   1.4411210] trace fp ffffffc0008028d0
[   1.4499945] fp ffffffc000802910 vpanic() at ffffffc00035c960 netbsd:vpanic+0x140
[   1.4499945] fp ffffffc000802930 kern_assert() at ffffffc00048721a netbsd:kern_assert+0x3a
[   1.4643360] fp ffffffc0008029a0 pmap_pte_lookup() at ffffffc00001c1a8 netbsd:pmap_pte_lookup+0xd6
[   1.4734562] fp ffffffc000802ab0 cpu_trap() at ffffffc000016566 netbsd:cpu_trap+0x74
[   1.4823010] tf ffffffc000802ab0 exception_kernexit() at ffffffc00000f824 netbsd:cpu_exception_handle8
[   1.4914007] ---- trapframe 0xffffffc000802ab0 (288 bytes) ----
[   1.5006867] Trapframe @ 0xffffffc000802ab0 (cause=7 (store), status=0x120, pc=0xffffffc000358bfc, va:
[   1.5116057]                         ra =0xffffffc00035899c  sp =0xffffffc000802bd0  gp =0xffffffc000
[   1.5212260] tp =               0x2  t0 =0xffffffe23fb714b0  t1 =                 0  t2 =
[   1.5310187] s0 =0xffffffc000802c30  s1 =               0x1  a0 =               0x1  a1 =
[   1.5408120] a2 =0xffffffc00085d700  a3 =                 0  a4 = 0x400000000000000  a5 =
[   1.5506052] a6 =           0x40000  a7 =               0x1  s2 =0xffffffe23fb71400  s3 =0xffffffe040
[   1.5603992] s4 =0xffffffe04001a000  s5 =               0x1  s6 =              0x40  s7 =
[   1.5701920] s8 =0xffffffc00034074c  s9 =0xffffffc292b25000  s10=0xffffffc00085d978  s11=
[   1.5801585] t3 =                 0  t4 =               0x1  t5 =              0x3e  t6 =0xffffffc000
[   1.5801585] ------------------------------------------------
[   1.5955852] fp ffffffc000802c30 pool_grow() at ffffffc000358bfc netbsd:pool_grow+0x2e4
[   1.6024507] fp ffffffc000802c90 pool_get() at ffffffc000358120 netbsd:pool_get+0x78
[   1.6112147] fp ffffffc000802cf0 pool_cache_get_slow() at ffffffc000359006 netbsd:pool_cache_get_slowc
[   1.6207457] fp ffffffc000802d40 pool_cache_get_paddr() at ffffffc00035a464 netbsd:pool_cache_get_padc
[   1.6313997] fp ffffffc000802dc0 lwp_create() at ffffffc00031317c netbsd:lwp_create+0x3c4
[   1.6410472] fp ffffffc000802e50 kthread_create() at ffffffc00030bad6 netbsd:kthread_create+0x98
[   1.6501725] fp ffffffc000802e80 config_create_interruptthreads() at ffffffc00033ea6e netbsd:config_c8
[   1.6609530] fp ffffffc000802ee0 main() at ffffffc0004876b8 netbsd:main+0x49a
[   1.6708857] fp 0000000000000000 start() at ffffffc000000476 netbsd:start+0x476
[   1.6803100] cpu0: End traceback...
[   1.6803100] Trapframe @ 0xffffffc0008027b0 (cause=3 (breakpoint), status=0x120, pc=0xffffffc00000062:
[   1.6937415]                         ra =0xffffffc00035c964  sp =0xffffffc0008028d0  gp =0xffffffc000
[   1.7012815] tp =0xff30ffc00035aa46  t0 =               0x7  t1 =0xffffffbfffffffa6  t2 =
[   1.7110745] s0 =0xffffffc000802910  s1 =0xffffffc000665bb8  a0 =                 0  a1 =
[   1.7208682] a2 =                 0  a3 =0xffffffc00081bbc0  a4 =0xffffffc00081bbc0  a5 =
[   1.7306612] a6 =0xfffffffffffffffe  a7 =               0x5  s2 =0xffffffc0009a04b8  s3 =0xffffffc000
[   1.7404547] s4 =             0x104  s5 =0xffffffc000995558  s6 =              0x40  s7 =0xffffffe040
[   1.7502480] s8 =0xffffffc00034074c  s9 =0xffffffc00082c5d8  s10=0xffffffc00098bb58  s11=
[   1.7600412] t3 =0xfffffffffffffffe  t4 =               0x1  t5 =               0x4  t6 =0xffffffc000
[   1.7719145] kernel: breakpoint
Stopped in pid 0.0 (system) at  netbsd:clear_bss+0x10:  c.ebreak
db{1}>


Home | Main Index | Thread Index | Old Index