之前折腾了一下开发板,自己写入了自己编译的spl和uboot固件,启动ubuntu-24.10-preinstalled-server-riscv64+visionfive2.img
这个镜像是没问题的,后面想装回官方的系统Debian启动总是有报kernel panic,重新按照Recovering the Bootloader 附录刷入了官方payload和uboot也不行
以下是我的环境
- visionfive2 开发板1.3b版本
- 系统是starfive-jh7110-202409-SD-minimal-desktop-wayland.img,那几个启动的小拨片几种模式我都试过了,发现是相同的问题。
- uboot和payload是从这个地方下载的 https://github.com/starfive-tech/VisionFive2/releases的最新版本
- 恢复固件用的这个jh7110-recovery-20230322.bin
- 烧录软件是使用bacher,将.img.bz2解压后传到windows烧录的。
uboot成功进入了,也进入grub可以选择linux版本,但是几个选项都是相同的问题。
以下是报错信息
clk u0_mipitx_dphy_clk_txesc already disabled
[ 0.000000] Linux version 6.6.20-starfive (root@leo-virtual-machine) (riscv64-unknown-linux-gnu-gcc (g2ee5e430018) 12.2.0, GNU ld (GNU Binutils) 2.40.0.20230214) #41SF SMP Fri Sep 20 17:48:26 CST 2024
[ 0.000000] Machine model: StarFive VisionFive V2
[ 0.000000] SBI specification v1.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10002
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200')
[ 0.000000] printk: bootconsole [uart0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] OF: reserved mem: 0x0000000040000000..0x000000004007ffff (512 KiB) nomap non-reusable opensbi
[ 0.000000] cma: Reserved 16 MiB at 0x00000000fe200000 on node -1
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000013fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x000000004007ffff]
[ 0.000000] node 0: [mem 0x0000000040080000-0x000000013fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[ 0.000000] SBI HSM extension detected
[ 0.000000] Falling back to deprecated "riscv,isa"
[ 0.000000] riscv: base ISA extensions acim
[ 0.000000] riscv: ELF capabilities acim
[ 0.000000] percpu: Embedded 19 pages/cpu s39864 r8192 d29768 u77824
[ 0.000000] Kernel command line: root=/dev/mmcblk1p4 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[ 0.000000] Unknown kernel command line parameters "selinux=0", 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: 1034240
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 8.
[ 0.000000] software IO TLB: mapped [mem 0x00000000fa200000-0x00000000fe200000] (64MB)
[ 0.000000] Memory: 4006292K/4194304K available (11572K kernel code, 5046K rwdata, 6144K rodata, 2213K init, 764K bss, 171628K reserved, 16384K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=5, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=5.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=5
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 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: 0x1d854df40, max_idle_ns: 881590404240 ns
[ 0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[ 0.009008] Console: colour dummy device 80x25
[ 0.013885] printk: console [tty0] enabled
[ 0.018874] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[ 0.030070] pid_max: default: 32768 minimum: 301
[ 0.035356] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.043576] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.054295] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1.
[ 0.062727] riscv: ELF compat mode unsupported
[ 0.062737] ASID allocator disabled (0 bits)
[ 0.072449] rcu: Hierarchical SRCU implementation.
[ 0.077725] rcu: Max phase no-delay instances is 1000.
[ 0.083742] EFI services will not be available.
[ 0.089181] smp: Bringing up secondary CPUs ...
sbi_trap_error: hart0: trap handler failed (error -2)
sbi_trap_error: hart0: mcause=0x0000000000000005 mtval=0x0000000040061068
sbi_trap_error: hart0: mepc=0x000000004000537e mstatus=0x0000000200001800
sbi_trap_error: hart0: ra=0x000000004000abf0 sp=0x0000000040060ee0
sbi_trap_error: hart0: gp=0x0000000000000000 tp=0x0000000040061000
sbi_trap_error: hart0: s0=0x0000000040060ef0 s1=0x0000000040061000
sbi_trap_error: hart0: a0=0x0000000040061068 a1=0x0000000000000002
sbi_trap_error: hart0: a2=0x0000000000000000 a3=0x0000000000000019
sbi_trap_error: hart0: a4=0x0000000000000001 a5=0x0000000040061068
sbi_trap_error: hart0: a6=0x00000000400610b8 a7=0x0000000000000004
sbi_trap_error: hart0: s2=0x0000000040061068 s3=0x0000000000000000
sbi_trap_error: hart0: s4=0x0000000000000000 s5=0x0000000040042020
sbi_trap_error: hart0: s6=0x0000000000000000 s7=0xfffffffffffffffe
sbi_trap_error: hart0: s8=0x0000000000002000 s9=0x000000004004eac0
sbi_trap_error: hart0: s10=0x0000000000000000 s11=0x0000000000000000
sbi_trap_error: hart0: t0=0x0000000000000022 t1=0x0000000000000000
sbi_trap_error: hart0: t2=0x0000000000000000 t3=0x0000000000002000
sbi_trap_error: hart0: t4=0x0000000000000000 t5=0x0000000000000000
sbi_trap_error: hart0: t6=0x0000000000000000
[ 1.139144] CPU1: failed to come online
[ 1.199164] cpu2: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[ 1.269200] cpu3: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[ 1.339235] cpu4: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[ 1.349854] smp: Brought up 1 node, 4 CPUs
[ 1.356155] devtmpfs: initialized
[ 1.365855] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 1.376700] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 1.384943] pinctrl core: initialized pinctrl subsystem
[ 1.391774] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 1.399321] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 1.407210] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 1.416342] thermal_sys: Registered thermal governor 'step_wise'
[ 1.416387] cpuidle: using governor menu
[ 1.483028] cpu0: Ratio of byte access time to unaligned word access is 0.01, unaligned accesses are slow
[ 1.493957] CCACHE: DataError @ 0x00000000.08040110
[ 1.499390] CCACHE: DataFail @ 0x00000000.08040270
[ 1.504780] CCACHE: 8 banks, 16 ways, sets/bank=256, bytes/block=64
[ 1.511668] CCACHE: max_line=2047, 64 bytes/line, 131072 bytes/way
[ 1.518468] CCACHE: Index of the largest way enabled: 15
[ 1.524302] pL2CACHE_PMU: perfmon-counters: 64 for CPU 0
[ 1.530277] pL2CACHE_PMU: perfmon-counters: 64 for CPU 1
[ 1.536239] pL2CACHE_PMU: perfmon-counters: 64 for CPU 2
[ 1.542215] pL2CACHE_PMU: perfmon-counters: 64 for CPU 3
[ 1.548176] pL2CACHE_PMU: perfmon-counters: 64 for CPU 4
[ 1.557897] platform soc: Fixed dependency cycle(s) with /soc/plic@c000000
[ 1.572838] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 1.580325] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 1.587209] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 1.594679] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 1.602646] SCSI subsystem initialized
[ 1.607144] usbcore: registered new interface driver usbfs
[ 1.613196] usbcore: registered new interface driver hub
[ 1.619079] usbcore: registered new device driver usb
[ 1.624834] mc: Linux media interface: v0.10
[ 1.629578] videodev: Linux video capture interface: v2.00
[ 1.636022] Advanced Linux Sound Architecture Driver Initialized.
[ 1.643260] Bluetooth: Core ver 2.22
[ 1.647214] NET: Registered PF_BLUETOOTH protocol family
[ 1.653060] Bluetooth: HCI device and connection manager initialized
[ 1.660044] Bluetooth: HCI socket layer initialized
[ 1.665416] Bluetooth: L2CAP socket layer initialized
[ 1.670975] Bluetooth: SCO socket layer initialized
[ 1.676849] vgaarb: loaded
[ 1.680147] clocksource: Switched to clocksource riscv_clocksource
[ 1.687259] FS-Cache: Loaded
由于帖子不能太长,所以分段贴一下