按照官方给的png内的步骤走了一遍之后没有出现问题
重启机器,前面一段内核的输出正常,但系统在进入systemd初始化阶段后,一直反复在HDMI和串口终端输出以下内容
1;-1fdone.
Begin: Mounting root file system … Begin: Running /scripts/local-top … done.
Begin: Running /scripts/local-premount … done.
Begin: Will now check root file system … fsck from util-linux 2.40.2
\[/sbin/fsck.ext4 (1) – /dev/mmcblk0p4\] fsck.ext4 -a -C0 /dev/mmcblk0p4
root: clean, 243868/6679840 files, 2578425/27177984 blocks
done.
done.
Begin: Running /scripts/local-bottom … done.
Begin: Running /scripts/init-bottom … done.
p
Welcome to Debian GNU/Linux trixie/sid!
\[ OK \] Created slice system-getty.slice - Slice /system/getty.
\[ OK \] Created slice system-modprobe.slice - Slice /system/modprobe.
\[ OK \] Created slice user.slice - User and Session Slice.
\[ OK \] Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
\[ OK \] Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
\[ OK \] Reached target cryptsetup.target - Local Encrypted Volumes.
\[ OK \] Reached target integritysetup.target - Local Integrity Protected Volumes.
\[ OK \] Reached target nss-user-lookup.target - User and Group Name Lookups.
\[ OK \] Reached target paths.target - Path Units.
\[ OK \] Reached target remote-fs.target - Remote File Systems.
\[ OK \] Reached target slices.target - Slice Units.
\[ OK \] Reached target swap.target - Swaps.
\[ OK \] Reached target veritysetup.target - Local Verity Protected Volumes.
\[ OK \] Listening on systemd-creds.socket - Credential Encryption/Decryption.
\[ OK \] Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
\[ OK \] Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
\[ OK \] Listening on systemd-journald.socket - Journal Sockets.
\[ OK \] Listening on systemd-udevd-control.socket - udev Control Socket.
\[ OK \] Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
Mounting dev-hugepages.mount - Huge Pages File System…
Mounting dev-mqueue.mount - POSIX Message Queue File System…
Mounting run-lock.mount - Legacy Locks Directory /run/lock…
Mounting sys-kernel-debug.mount - Kernel Debug File System…
Mounting tmp.mount - Temporary Directory /tmp…
Starting kmod-static-nodes.service - Create List of Static Device Nodes…
Starting modprobe@configfs.service - Load Kernel Module configfs…
Starting modprobe@drm.service - Load Kernel Module drm…
Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore…
Starting modprobe@fuse.service - Load Kernel Module fuse…
Starting systemd-journald.service - Journal Service…
Starting systemd-modules-load.service - Load Kernel Modules…
Starting systemd-remount-fs.service - Remount Root and Kernel File Systems…
Starting systemd-udev-load-credentials.service - Load udev Rules from Credentials…
Starting systemd-udev-trigger.service - Coldplug All udev Devices…
\[ OK \] Mounted dev-hugepages.mount - Huge Pages File System.
\[ OK \] Mounted dev-mqueue.mount - POSIX Message Queue File System.
\[ OK \] Mounted run-lock.mount - Legacy Locks Directory /run/lock.
\[ OK \] Mounted sys-kernel-debug.mount - Kernel Debug File System.
\[ OK \] Mounted tmp.mount - Temporary Directory /tmp.
\[ OK \] Finished kmod-static-nodes.service - Create List of Static Device Nodes.
\[ OK \] Finished modprobe@configfs.service - Load Kernel Module configfs.
\[ OK \] Finished modprobe@drm.service - Load Kernel Module drm.
\[ OK \] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
\[ OK \] Finished modprobe@fuse.service - Load Kernel Module fuse.
\[ OK \] Finished systemd-modules-load.service - Load Kernel Modules.
\[ OK \] Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
\[ OK \] Finished systemd-udev-load-credentials.service - Load udev Rules from Credentials.
Mounting sys-fs-fuse-connections.mount - FUSE Control File System…
Mounting sys-kernel-config.mount - Kernel Configuration File System…
Starting systemd-random-seed.service - Load/Save OS Random Seed…
Starting systemd-sysctl.service - Apply Kernel Variables…
Starting systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully…
\[ OK \] Started systemd-journald.service - Journal Service.
\[ OK \] Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
\[ OK \] Mounted sys-kernel-config.mount - Kernel Configuration File System.
\[ OK \] Finished systemd-random-seed.service - Load/Save OS Random Seed.
Starting systemd-journal-flush.service - Flush Journal to Persistent Storage…
\[ OK \] Finished systemd-sysctl.service - Apply Kernel Variables.
\[ OK \] Finished systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev…
\[ OK \] Finished systemd-journal-flush.service - Flush Journal to Persistent Storage.
\[ OK \] Finished systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
\[ OK \] Reached target local-fs-pre.target - Preparation for Local File Systems.
\[ OK \] Reached target local-fs.target - Local File Systems.
\[ OK \] Listening on systemd-sysext.socket - System Extension Image Management.
Starting plymouth-read-write.service - Tell Plymouth To Write Out Runtime Data…
Starting restart-iwlwifi.service - Trigger PCIe Rescan for Intel AX200 Wi-Fi…
Starting systemd-binfmt.service - Set Up Additional Binary Formats…
Starting systemd-tmpfiles-setup.service - Create System Files and Directories…
Starting systemd-udevd.service - Rule-based Manager for Device Events and Files…
Mounting proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System…
\[ OK \] Finished systemd-udev-trigger.service - Coldplug All udev Devices.
Starting ifupdown-pre.service - Helper to synchronize boot up for ifupdown…
\[ OK \] Mounted proc-sys-fs-binfmt_misc.mount - Arbitrary Executable File Formats File System.
\[ OK \] Finished systemd-binfmt.service - Set Up Additional Binary Formats.
\[ OK \] Finished systemd-tmpfiles-setup.service - Create System Files and Directories.
\[ OK \] Finished ifupdown-pre.service - Helper to synchronize boot up for ifupdown.
\[ OK \] Started systemd-udevd.service - Rule-based Manager for Device Events and Files.
Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore…
Starting networking.service - Raise network interfaces…
Starting systemd-timesyncd.service - Network Time Synchronization…
\[ OK \] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
\[ OK \] Started systemd-timesyncd.service
我的/boot/extlinux/extlinux.conf内容
## /extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update
default l0
menu title U-Boot menu
prompt 1
timeout 50
label l0
menu label Debian GNU/Linux trixie/sid 6.12.5-starfive
linux /vmlinuz-6.12.5-starfive
initrd /initrd.img-6.12.5-starfive
fdt /dtbs/6.12.5-starfive/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
append root=/dev/mmcblk0p4 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
label l0r
menu label Debian GNU/Linux trixie/sid 6.12.5-starfive (rescue target)
linux /vmlinuz-6.12.5-starfive
initrd /initrd.img-6.12.5-starfive
fdtdir /dtbs/6.12.5-starfive
append root=/dev/mmcblk0p4 ro single
我的/etc/fstab内容
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/mmcblk0p4 / ext4 noatime,commit=60,nobarrier,errors=remount-ro 0 1
/dev/mmcblk0p3 /boot vfat noauto,nofail,rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
补充:我使用emmc装载并启动系统,启动模式为spi,uboot启动日志如下
U-Boot SPL 2026.04-dirty (Jul 16 2026 - 23:50:35 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
U-Boot 2026.04-dirty (Jul 16 2026 - 23:50:35 +0800)
CPU: sifive,u74-mc
Model: Milk-V Mars
DRAM: 8 GiB
Core: 158 devices, 30 uclasses, devicetree: board
WDT: Not starting watchdog@13070000
MMC: mmc@16010000: 0, mmc@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
OK
StarFive EEPROM format v2
--------EEPROM INFO--------
Vendor : MILK-V
Product full SN: MARS-V11-2340-D008E000-00000B06
data version: 0x2
PCB revision: 0xc1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:8b:63
Ethernet MAC1 address: 6c:cf:39:00:8b:64
--------EEPROM INFO--------
In: serial@10000000
Out: serial@10000000
Err: serial@10000000
Net: eth0: ethernet@16030000
starting USB...
USB XHCI 1.00
USB XHCI 1.00
Bus usb@0: 1 USB Device(s) found
Bus xhci_pci: 3 USB Device(s) found
我能确定设备树的选择上没有问题,因为我在尝试更新之前也是使用的visionfive2的设备树