官方的Debian镜像无法启动

之前折腾了一下开发板,自己写入了自己编译的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                                                                                                                                                                                                                                                                                                   

由于帖子不能太长,所以分段贴一下

[    1.700051] NET: Registered PF_INET protocol family                                                                                                                                                     
[    1.706072] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)                                                                                                                        
[    1.720354] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 65536 bytes, linear)                                                                                                           
[    1.729816] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)                                                                                                                    
[    1.738355] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)                                                                                                                  
[    1.747462] TCP bind hash table entries: 32768 (order: 9, 2097152 bytes, linear)                                                                                                                        
[    1.758753] TCP: Hash tables configured (established 32768 bind 32768)                                                                                                                                  
[    1.766240] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)                                                                                                                               
[    1.773962] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)                                                                                                                          
[    1.782355] NET: Registered PF_UNIX/PF_LOCAL protocol family                                                                                                                                            
[    1.789270] RPC: Registered named UNIX socket transport module.                                                                                                                                         
[    1.795803] RPC: Registered udp transport module.                                                                                                                                                       
[    1.800982] RPC: Registered tcp transport module.                                                                                                                                                       
[    1.806147] RPC: Registered tcp-with-tls transport module.                                                                                                                                              
[    1.812186] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                                                                   
[    1.820793] PCI: CLS 0 bytes, default 64                                                                                                                                                                
[    1.825524] Unpacking initramfs...                                                                                                                                                                      
[    1.838689] Initialise system trusted keyrings                                                                                                                                                          
[    1.843847] workingset: timestamp_bits=62 max_order=20 bucket_order=0                                                                                                                                   
[    1.851611] NFS: Registering the id_resolver key type                                                                                                                                                   
[    1.857217] Key type id_resolver registered                                                                                                                                                             
[    1.861845] Key type id_legacy registered                                                                                                                                                               
[    1.866284] nfs4filelayout_init: NFSv4 File Layout Driver Registering...                                                                                                                                
[    1.873672] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...                                                                                                                        
[    1.881868] ntfs: driver 2.1.32 [Flags: R/W].                                                                                                                                                           
[    1.886711] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.                                                                                                                                        
[    1.898549] fuse: init (API version 7.39)                                                                                                                                                               
[    1.982691] NET: Registered PF_ALG protocol family                                                                                                                                                      
[    1.988011] Key type asymmetric registered                                                                                                                                                              
[    1.992546] Asymmetric key parser 'x509' registered                                                                                                                                                     
[    1.997987] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)                                                                                                                        
[    2.006146] io scheduler mq-deadline registered                                                                                                                                                         
[    2.011151] io scheduler kyber registered                                                                                                                                                               
[    2.015611] io scheduler bfq registered                                                                                                                                                                 
[    2.036494] starfive-jh7110-sys-pinctrl 13040000.gpio: error -ENOENT: could not get reset                                                                                                               
[    2.045520] starfive-jh7110-sys-pinctrl: probe of 13040000.gpio failed with error -2                                                                                                                    
[    2.111068] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled                                                                                                                                    
[    2.131538] loop: module loaded                                                                                                                                                                         
[    2.138195] CAN device driver interface                                                                                                                                                                 
[    2.142825] Intel(R) Wireless WiFi driver for Linux                                                                                                                                                     
[    2.148864] usbcore: registered new interface driver uas                                                                                                                                                
[    2.154775] usbcore: registered new interface driver usb-storage                                                                                                                                        
[    2.161897] i2c_dev: i2c /dev entries driver                                                                                                                                                            
[    2.166827] Error: Driver 'imx219' is already registered, aborting...                                                                                                                                   
[    2.173983] usbcore: registered new interface driver uvcvideo                                                                                                                                           
[    2.180976] cpu cpu0: OPP table can't be empty                                                                                                                                                          
[    2.186324] sdhci: Secure Digital Host Controller Interface driver                                                                                                                                      
[    2.193153] sdhci: Copyright(c) Pierre Ossman                                                                                                                                                           
[    2.197981] Synopsys Designware Multimedia Card Interface Driver                                                                                                                                        
[    2.204808] sdhci-pltfm: SDHCI platform and OF driver helper                                                                                                                                            
[    2.211790] usbcore: registered new interface driver usbhid                                                                                                                                             
[    2.217920] usbhid: USB HID core driver                                                                                                                                                                 
[    2.222268] SPI driver st-accel-spi has no spi_device_id for st,lis302dl-spi                                                                                                                            
[    2.230020] SPI driver st-accel-spi has no spi_device_id for st,lis3lv02dl-accel                                                                                                                        
[    2.238178] SPI driver st-accel-spi has no spi_device_id for st,lis3dh-accel                                                                                                                            
[    2.245964] SPI driver st-accel-spi has no spi_device_id for st,lsm330d-accel                                                                                                                           
[    2.253834] SPI driver st-accel-spi has no spi_device_id for st,lsm330dl-accel                                                                                                                          
[    2.261808] SPI driver st-accel-spi has no spi_device_id for st,lsm330dlc-accel                                                                                                                         
[    2.269854] SPI driver st-accel-spi has no spi_device_id for st,lis331dlh-accel                                                                                                                         
[    2.277925] SPI driver st-accel-spi has no spi_device_id for st,lsm330-accel                                                                                                                            
[    2.285690] SPI driver st-accel-spi has no spi_device_id for st,lsm303agr-accel                                                                                                                         
[    2.293740] SPI driver st-accel-spi has no spi_device_id for st,lis2dh12-accel                                                                                                                          
[    2.301705] SPI driver st-accel-spi has no spi_device_id for st,lng2dm-accel                                                                                                                            
[    2.309455] SPI driver st-accel-spi has no spi_device_id for st,h3lis331dl-accel                                                                                                                        
[    2.317611] SPI driver st-accel-spi has no spi_device_id for st,lis331dl-accel                                                                                                                          
[    2.325570] SPI driver st-accel-spi has no spi_device_id for st,lsm303c-accel                                                                                                                           
[    2.333761] riscv-pmu-sbi: SBI PMU extension is available                                                                                                                                               
[    2.339730] riscv-pmu-sbi: 16 firmware and 4 hardware counters                                                                                                                                          
[    2.346169] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available                                                                                                 
[    2.356966] usbcore: registered new interface driver snd-usb-audio                                                                                                                                      
[    2.366568] NET: Registered PF_INET6 protocol family                                                                                                                                                    
[    2.373131] Segment Routing with IPv6                                                                                                                                                                   
[    2.377229] In-situ OAM (IOAM) with IPv6                                                                                                                                                                
[    2.381707] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver                                                                                                                                         
[    2.388788] NET: Registered PF_PACKET protocol family                                                                                                                                                   
[    2.394378] can: controller area network core                                                                                                                                                           
[    2.399238] NET: Registered PF_CAN protocol family                                                                                                                                                      
[    2.404534] can: raw protocol                                                                                                                                                                           
[    2.407803] can: broadcast manager protocol                                                                                                                                                             
[    2.412430] can: netlink gateway - max_hops=1                                                                                                                                                           
[    2.417501] Bluetooth: RFCOMM TTY layer initialized                                                                                                                                                     
[    2.422908] Bluetooth: RFCOMM socket layer initialized                                                                                                                                                  
[    2.428576] Bluetooth: RFCOMM ver 1.11                                                                                                                                                                  
[    2.432730] Bluetooth: BNEP (Ethernet Emulation) ver 1.3                                                                                                                                                
[    2.438570] Bluetooth: BNEP filters: protocol multicast                                                                                                                                                 
[    2.444347] Bluetooth: BNEP socket layer initialized                                                                                                                                                    
[    2.449872] lib80211: common routines for IEEE802.11 drivers                                                                                                                                            
[    2.456207] 9pnet: Installing 9P2000 support                                                                                                                                                            
[    2.461061] Key type dns_resolver registered                                                                                                                                                            
[    2.481718] Loading compiled-in X.509 certificates                                                                                                                                                      
[    2.498781] of_cfs_init                                                                                                                                                                                 
[    2.501543] of_cfs_init: OK                                                                                                                                                                             
[    2.504697] cfg80211: Loading compiled-in X.509 certificates for regulatory database                                                                                                                    
[    3.434244] Freeing initrd memory: 14028K                                                                                                                                                               
[    3.440022] modprobe[74]: unhandled signal 4 code 0x1 at 0x0000003f9409ba70 in ld-linux-riscv64-lp64d.so.1[3f94087000+1c000]                                                                            
[    3.452405] CPU: 2 PID: 74 Comm: modprobe Tainted: G                T  6.6.20-starfive #41SF                                                                                                            
[    3.461679] Hardware name: StarFive VisionFive V2 (DT)                                                                                                                                                  
[    3.467322] epc : 0000003f9409ba70 ra : 0000003f94095e74 sp : 0000003fc49b8230                                                                                                                          
[    3.475257]  gp : ffffffff81915e98 tp : 0000000000000000 t0 : 000000000000000b                                                                                                                          
[    3.483192]  t1 : 0000003f94087cfc t2 : 0000000000000001 s0 : 0000003f940a5208                                                                                                                          
[    3.491126]  s1 : 0000000000000002 a0 : 0000003fc49b8268 a1 : 0000000000000000                                                                                                                          
[    3.499060]  a2 : 0000003fc49b8488 a3 : 0000000000000000 a4 : 0000000000000024                                                                                                                          
                                                                                          


[    3.506995]  a5 : 0000003fc49b8258 a6 : 7efefefefefefeff a7 : 4824150a4b570a40                                                                                                                          
[    3.514930]  s2 : 0000000000000000 s3 : 0000000000000001 s4 : 0000003f940a52b0                                                                                                                          
[    3.522864]  s5 : 0000002ac6d89090 s6 : 0000002ac6da6dd0 s7 : 0000000000000000                                                                                                                          
[    3.530798]  s8 : 0000000000000001 s9 : 0000003f940a3d48 s10: 0000000000000000                                                                                                                          
[    3.538732]  s11: 0000002ac6d8966a t3 : 0000003f94095e46 t4 : 0000000000000bfa                                                                                                                          
[    3.546666]  t5 : fffffffffffffffc t6 : 0000000001a0c23d                                                                                                                                                
[    3.552499] status: 0000000200000020 badaddr: 000000000000b920 cause: 0000000000000002                                                                                                                  
[    3.562275] modprobe[75]: unhandled signal 4 code 0x1 at 0x0000003f86e65a70 in ld-linux-riscv64-lp64d.so.1[3f86e51000+1c000]                                                                            
[    3.574646] CPU: 4 PID: 75 Comm: modprobe Tainted: G                T  6.6.20-starfive #41SF                                                                                                            
[    3.583919] Hardware name: StarFive VisionFive V2 (DT)                                                                                                                                                  
[    3.589560] epc : 0000003f86e65a70 ra : 0000003f86e5fe74 sp : 0000003fd6ada220                                                                                                                          
[    3.597495]  gp : ffffffff81915e98 tp : 0000000000000000 t0 : 000000000000000b                                                                                                                          
[    3.605429]  t1 : 0000003f86e51cfc t2 : 0000000000000001 s0 : 0000003f86e6f208                                                                                                                          
[    3.613364]  s1 : 0000000000000002 a0 : 0000003fd6ada258 a1 : 0000000000000000                                                                                                                          
[    3.621298]  a2 : 0000003fd6ada478 a3 : 0000000000000000 a4 : 0000000000000024                                                                                                                          
[    3.629232]  a5 : 0000003fd6ada248 a6 : 7efefefefefefeff a7 : 4824150a4b570a40                                                                                                                          
[    3.637166]  s2 : 0000000000000000 s3 : 0000000000000001 s4 : 0000003f86e6f2b0                                                                                                                          
[    3.645100]  s5 : 0000002aaab9a090 s6 : 0000002aaabb7dd0 s7 : 0000000000000000                                                                                                                          
[    3.653033]  s8 : 0000000000000001 s9 : 0000003f86e6dd48 s10: 0000000000000000                                                                                                                          
[    3.660967]  s11: 0000002aaab9a66a t3 : 0000003f86e5fe46 t4 : 0000000000000bfa                                                                                                                          
[    3.668901]  t5 : fffffffffffffffc t6 : 0000000001a0c23d                                                                                                                                                
[    3.674734] status: 0000000200000020 badaddr: 000000000000b920 cause: 0000000000000002                                                                                                                  
[    3.684795] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'                                                                                                                                            
[    3.691996] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'                                                                                                                          
[    3.700040] clk: Disabling unused clocks                                                                                                                                                                
[    3.704725] ALSA device list:                                                                                                                                                                           
[    3.707986]   No soundcards found.                                                                                                                                                                      
[    3.714035] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid                                                                                                                 
[    3.722286] Freeing unused kernel image (initmem) memory: 2212K                                                                                                                                         
[    3.770206] Run /init as init process                                                                                                                                                                   
[    3.775031] init[1]: unhandled signal 4 code 0x1 at 0x0000003fa4f63a70 in ld-linux-riscv64-lp64d.so.1[3fa4f4f000+1c000]                                                                                 
[    3.786926] CPU: 4 PID: 1 Comm: init Tainted: G                T  6.6.20-starfive #41SF                                                                                                                 
[    3.795721] Hardware name: StarFive VisionFive V2 (DT)                                                                                                                                                  
[    3.801362] epc : 0000003fa4f63a70 ra : 0000003fa4f5de74 sp : 0000003fe114a280                                                                                                                          
[    3.809297]  gp : ffffffff81915e98 tp : 0000000000000000 t0 : 000000000000000b                                                                                                                          
[    3.817231]  t1 : 0000003fa4f4fcfc t2 : 0000000000000001 s0 : 0000003fa4f6d208                                                                                                                          
[    3.825166]  s1 : 0000000000000002 a0 : 0000003fe114a2b8 a1 : 0000000000000000                                                                                                                          
[    3.833100]  a2 : 0000003fe114a4d8 a3 : 0000000000000000 a4 : 0000000000000024                                                                                                                          
[    3.841034]  a5 : 0000003fe114a2a8 a6 : 7efefefefefefeff a7 : 24160a4b570a5248                                                                                                                          
[    3.848968]  s2 : 0000000000000000 s3 : 0000000000000001 s4 : 0000003fa4f6d2b0                                                                                                                          
[    3.856902]  s5 : 0000002ad5782658 s6 : 0000002ad583adf0 s7 : 0000000000000000                                                                                                                          
[    3.864836]  s8 : 0000000000000001 s9 : 0000003fa4f6bd48 s10: 0000000000000000                                                                                                                          
[    3.872770]  s11: 0000002ad5783339 t3 : 0000003fa4f5de46 t4 : 0000000000000bfa                                                                                                                          
[    3.880703]  t5 : fffffffffffffffc t6 : 0000000001a0c23d                                                                                                                                                
[    3.886536] status: 0000000200000020 badaddr: 000000000000b920 cause: 0000000000000002                                                                                                                  
[    3.895287] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004                                                                                                                     
[    3.903700] CPU: 4 PID: 1 Comm: init Tainted: G                T  6.6.20-starfive #41SF                                                                                                                 
[    3.912495] Hardware name: StarFive VisionFive V2 (DT)                                                                                                                                                  
[    3.918136] Call Trace:                                                                                                                                                                                 
[    3.920821] [<ffffffff80005748>] dump_backtrace+0x1c/0x24                                                                                                                                               
[    3.926760] [<ffffffff80b33ce2>] show_stack+0x2c/0x38                                                                                                                                                   
[    3.932315] [<ffffffff80b46d36>] dump_stack_lvl+0x3c/0x54                                                                                                                                               
[    3.938249] [<ffffffff80b46d62>] dump_stack+0x14/0x1c                                                                                                                                                   
[    3.943799] [<ffffffff80b33fc0>] panic+0xfa/0x292                                                                                                                                                       
[    3.948969] [<ffffffff80015610>] do_exit+0x786/0x78c                                                                                                                                                    
[    3.954429] [<ffffffff80015776>] do_group_exit+0x24/0x70                                                                                                                                                
[    3.960268] [<ffffffff800204a0>] get_signal+0x6e6/0x73e                                                                                                                                                 
[    3.966014] [<ffffffff80004764>] arch_do_signal_or_restart+0x3a/0x4e8                                                                                                                                   
[    3.973092] [<ffffffff80085386>] exit_to_user_mode_prepare+0x6a/0x94                                                                                                                                    
[    3.980076] [<ffffffff80b47ac6>] irqentry_exit_to_user_mode+0x10/0x18                                                                                                                                   
[    3.987154] [<ffffffff80b47090>] do_trap_insn_illegal+0x36/0xea                                                                                                                                         
[    3.993659] [<ffffffff80b4ef84>] ret_from_exception+0x0/0x64                                                                                                                                            
[    3.999879] SMP: stopping secondary CPUs                                                                                                                                                                
[    4.004198] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---                                                                                                       


终于!!!!找到问题了。
这个问题是我自己的锅,对uboot实在是太不熟悉了,是之间在使用uboot的时候,使用了env save这条命令,当时是想着换一个设备树试试。当时这个fdt_file这个变量值被我改成其他的值了。后面使用官方的那个烧写flash的固件是不会把这个存变量的区域清空的。所以这之后启动的时候都是传入的一个不存在的设备树文件,所以启动过程会报错。
进入uboot使用env erase命令即可。

1 Like

按我玩VF2几年的经验,如果是需要频繁更换不同的系统TF卡启动,VF2上的启动开关最好是选择从TF启动(而不是选从flash),这样每次启动都是从TF卡第一第二分区引导。

哈哈哈,好像是把VF2的帖子发到了VF1中文论坛里,修改回复时,我在VF2中文论坛里没找到这个帖子,就跑去问论坛管理员,论坛管理员告诉我,帖子发错地方了。。。。。。。。。。。。。。。。

1 Like