Solved "Mounting from ufs:/dev/da0s1a failed with error 19. " after using the new kernel

I've compile the kernel with this conf in vmware workstation,

Code:
[root@FreeBSD14 ~]# cat SEC
cpu             HAMMER
device          acpi
device          aesni                   # AES-NI OpenCrypto module
device          bpf                     # Berkeley packet filter
device          ch                      # SCSI media changers
device          aacp                    # SCSI Passthrough interface (optional, CAM required)
device          crypto                  # core crypto support
device          ether                   # Ethernet support
device          kvm_clock               # KVM paravirtual clock driver
device          loop                    # Network loopback
device          pass                    # Passthrough device (direct ATA/SCSI access)
device          pci
device          rdrand_rng              # Intel Bull Mountain RNG
device          sc
device          scbus                   # SCSI bus (required for ATA/SCSI)
device          ses                     # Enclosure Services (SES and SAF-TE)
device          vga                     # VGA video card driver
device          vt
device          vt_vga

device          ether                   # Ethernet support
device          miibus
device          firmware                # firmware assist module
#device          re                      # RealTek 8139C+/8169/8169S/8110S
#device          rl                      # RealTek 8129/8139
device          vt_efifb

ident           SEC
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options         CAPABILITIES            # Capsicum capabilities
options         CAPABILITY_MODE         # Capsicum capability mode
options         EARLY_AP_STARTUP
options         FFS                     # Berkeley Fast Filesystem
options         HWPMC_HOOKS             # Necessary kernel hooks for hwpmc(4)
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options         INET                    # InterNETworking
options         IOMMU
options         NUMA                    # Non-Uniform Memory Architecture support
options         PRINTF_BUFR_SIZE=128    # Prevent printf output being interspersed.
options         SC_PIXEL_MODE           # add support for the raster text mode
options         SCHED_ULE               # ULE scheduler
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         SMP                     # Symmetric MultiProcessor Kernel
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         SYSVSHM                 # SYSV-style shared memory
options         TCP_OFFLOAD             # TCP offload
options         UFS_GJOURNAL            # Enable gjournal-based UFS journaling


# Bus support.
device          smbios
options         EFIRT


device          ahci                    # AHCI-compatible SATA controllers
device          ata                     # Legacy ATA/SATA controllers
device          scbus                   # SCSI bus (required for ATA/SCSI)
device          da                      # Direct Access (disks)
device          pass                    # Passthrough device (direct ATA/SCSI access)
device          umass                   # Disks/Mass storage - Requires scbus and da


# USB support 
device          uhci                    # UHCI PCI->USB interface
device          ohci                    # OHCI PCI->USB interface
device          ehci                    # EHCI PCI->USB interface (USB 2.0)
device          xhci                    # XHCI PCI->USB interface (USB 3.0)
device          usb                     # USB Bus (required)
##device          ukbd                    # Keyboard
#device          umass                   # Disks/Mass storage - Requires scbus and da

#for vmware eth
device          iflib
device          em                      # Intel PRO/1000 Gigabit Ethernet Family
device            vmx             # VMware VMXNET3 Ethernet
device          pvscsi                  # VMware PVSCSI

The pciconf -lv output:

Code:
[root@FreeBSD14 ~]# pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x7190 subvendor=0x15ad subdevice=0x1976
    vendor     = 'Intel Corporation'
    device     = '440BX/ZX/DX - 82443BX/ZX/DX Host bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 rev=0x01 hdr=0x01 vendor=0x8086 device=0x7191 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Intel Corporation'
    device     = '440BX/ZX/DX - 82443BX/ZX/DX AGP bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:7:0:       class=0x060100 rev=0x08 hdr=0x00 vendor=0x8086 device=0x7110 subvendor=0x15ad subdevice=0x1976
    vendor     = 'Intel Corporation'
    device     = '82371AB/EB/MB PIIX4 ISA'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:7:1:     class=0x01018a rev=0x01 hdr=0x00 vendor=0x8086 device=0x7111 subvendor=0x15ad subdevice=0x1976
    vendor     = 'Intel Corporation'
    device     = '82371AB/EB/MB PIIX4 IDE'
    class      = mass storage
    subclass   = ATA
intsmb0@pci0:0:7:3:     class=0x068000 rev=0x08 hdr=0x00 vendor=0x8086 device=0x7113 subvendor=0x15ad subdevice=0x1976
    vendor     = 'Intel Corporation'
    device     = '82371AB/EB/MB PIIX4 ACPI'
    class      = bridge
vmci0@pci0:0:7:7:       class=0x088000 rev=0x10 hdr=0x00 vendor=0x15ad device=0x0740 subvendor=0x15ad subdevice=0x0740
    vendor     = 'VMware'
    device     = 'Virtual Machine Communication Interface'
    class      = base peripheral
vgapci0@pci0:0:15:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x15ad device=0x0405 subvendor=0x15ad subdevice=0x0405
    vendor     = 'VMware'
    device     = 'SVGA II Adapter'
    class      = display
    subclass   = VGA
mpt0@pci0:0:16:0:       class=0x010000 rev=0x01 hdr=0x00 vendor=0x1000 device=0x0030 subvendor=0x15ad subdevice=0x1976
    vendor     = 'Broadcom / LSI'
    device     = '53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI'
    class      = mass storage
    subclass   = SCSI
pcib2@pci0:0:17:0:      class=0x060401 rev=0x02 hdr=0x01 vendor=0x15ad device=0x0790 subvendor=0x15ad subdevice=0x0790
    vendor     = 'VMware'
    device     = 'PCI bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:21:0:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:21:1:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib5@pci0:0:21:2:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:0:21:3:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:0:21:4:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib8@pci0:0:21:5:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib9@pci0:0:21:6:      class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib10@pci0:0:21:7:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib11@pci0:0:22:0:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib12@pci0:0:22:1:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib13@pci0:0:22:2:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib14@pci0:0:22:3:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib15@pci0:0:22:4:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib16@pci0:0:22:5:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib17@pci0:0:22:6:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib18@pci0:0:22:7:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib19@pci0:0:23:0:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib20@pci0:0:23:1:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib21@pci0:0:23:2:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib22@pci0:0:23:3:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib23@pci0:0:23:4:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib24@pci0:0:23:5:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib25@pci0:0:23:6:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib26@pci0:0:23:7:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib27@pci0:0:24:0:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib28@pci0:0:24:1:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib29@pci0:0:24:2:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib30@pci0:0:24:3:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib31@pci0:0:24:4:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib32@pci0:0:24:5:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib33@pci0:0:24:6:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib34@pci0:0:24:7:     class=0x060400 rev=0x01 hdr=0x01 vendor=0x15ad device=0x07a0 subvendor=0x15ad subdevice=0x07a0
    vendor     = 'VMware'
    device     = 'PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
em0@pci0:2:1:0: class=0x020000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x100f subvendor=0x15ad subdevice=0x0750
    vendor     = 'Intel Corporation'
    device     = '82545EM Gigabit Ethernet Controller (Copper)'
    class      = network
    subclass   = ethernet

When I use the new kernel,it seems that the disk can not be mount.

Code:
---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-RELEASE-p3 #3: Tue Dec 19 04:56:34 CST 2023
    root@FreeBSD14:/usr/obj/usr/src/amd64.amd64/sys/SEC amd64
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
VT(vga): text 80x25
CPU: AMD Ryzen 7 5800H with Radeon Graphics          (3215.01-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xa50f00  Family=0x19  Model=0x50  Stepping=0
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0xfef83203<SSE3,PCLMULQDQ,SSSE3,FMA,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x4003fb<LAHF,CMP,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,Topology>
  Structured Extended Features=0x219c07a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
  Structured Extended Features2=0x40069c<UMIP,PKU,OSPKE,VAES,VPCLMULQDQ,RDPID>
  Structured Extended Features3=0x10<FSRM>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  AMD Extended Feature Extensions ID EBX=0x110c5201<CLZERO,WBNOINVD,IBPB,IBRS,PREFER_IBRS,SSBD>
  TSC: P-state invariant
Hypervisor: Origin = "VMwareVMware"
real memory  = 8589934592 (8192 MB)
avail memory = 8297238528 (7912 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <PTLTD          APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 4 package(s) x 4 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 2.0> irqs 0-23
Launching APs: 8 2 15 14 7 11 6 3 12 10 4 13 1 5 9
random: entropy device external interface
vtvga0: <VT VGA driver>
smbios0: <System Management BIOS> at iomem 0xf69b0-0xf69ce
smbios0: Version: 2.7
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <INTEL 440BX>
acpi0: Power Button (fixed)
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
cpu0: <ACPI CPU> numa-domain 0 on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1060-0x106f at device 7.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pci0: <bridge> at device 7.3 (no driver attached)
vgapci0: <VGA-compatible display> port 0x1070-0x107f mem 0xe8000000-0xefffffff,0xfe000000-0xfe7fffff irq 16 at device 15.0 on pci0
vgapci0: Boot video device
pci0: <mass storage, SCSI> at device 16.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 17.0 on pci0
pci2: <ACPI PCI bus> on pcib2
em0: <Intel(R) Legacy PRO/1000 MT 82545EM (Copper)> port 0x2000-0x203f mem 0xfd5c0000-0xfd5dffff,0xfdff0000-0xfdffffff irq 19 at device 1.0 on pci2
em0: EEPROM V15.255-15
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Ethernet address: 00:0c:29:60:1a:92
em0: link state changed to UP
pcib3: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 21.1 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 21.2 on pci0
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 21.3 on pci0
pci6: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> at device 21.4 on pci0
pci7: <ACPI PCI bus> on pcib7
pcib8: <ACPI PCI-PCI bridge> at device 21.5 on pci0
pci8: <ACPI PCI bus> on pcib8
pcib9: <ACPI PCI-PCI bridge> at device 21.6 on pci0
pci9: <ACPI PCI bus> on pcib9
pcib10: <ACPI PCI-PCI bridge> at device 21.7 on pci0
pci10: <ACPI PCI bus> on pcib10
pcib11: <ACPI PCI-PCI bridge> at device 22.0 on pci0
pci11: <ACPI PCI bus> on pcib11
pcib12: <ACPI PCI-PCI bridge> at device 22.1 on pci0
pci12: <ACPI PCI bus> on pcib12
pcib13: <ACPI PCI-PCI bridge> at device 22.2 on pci0
pci13: <ACPI PCI bus> on pcib13
pcib14: <ACPI PCI-PCI bridge> at device 22.3 on pci0
pci14: <ACPI PCI bus> on pcib14
pcib15: <ACPI PCI-PCI bridge> at device 22.4 on pci0
pci15: <ACPI PCI bus> on pcib15
pcib16: <ACPI PCI-PCI bridge> at device 22.5 on pci0
pci16: <ACPI PCI bus> on pcib16
pcib17: <ACPI PCI-PCI bridge> at device 22.6 on pci0
pci17: <ACPI PCI bus> on pcib17
pcib18: <ACPI PCI-PCI bridge> at device 22.7 on pci0
pci18: <ACPI PCI bus> on pcib18
pcib19: <ACPI PCI-PCI bridge> at device 23.0 on pci0
pci19: <ACPI PCI bus> on pcib19
pcib20: <ACPI PCI-PCI bridge> at device 23.1 on pci0
pci20: <ACPI PCI bus> on pcib20
pcib21: <ACPI PCI-PCI bridge> at device 23.2 on pci0
pci21: <ACPI PCI bus> on pcib21
pcib22: <ACPI PCI-PCI bridge> at device 23.3 on pci0
pci22: <ACPI PCI bus> on pcib22
pcib23: <ACPI PCI-PCI bridge> at device 23.4 on pci0
pci23: <ACPI PCI bus> on pcib23
pcib24: <ACPI PCI-PCI bridge> at device 23.5 on pci0
pci24: <ACPI PCI bus> on pcib24
pcib25: <ACPI PCI-PCI bridge> at device 23.6 on pci0
pci25: <ACPI PCI bus> on pcib25
pcib26: <ACPI PCI-PCI bridge> at device 23.7 on pci0
pci26: <ACPI PCI bus> on pcib26
pcib27: <ACPI PCI-PCI bridge> at device 24.0 on pci0
pci27: <ACPI PCI bus> on pcib27
pcib28: <ACPI PCI-PCI bridge> at device 24.1 on pci0
pci28: <ACPI PCI bus> on pcib28
pcib29: <ACPI PCI-PCI bridge> at device 24.2 on pci0
pci29: <ACPI PCI bus> on pcib29
pcib30: <ACPI PCI-PCI bridge> at device 24.3 on pci0
pci30: <ACPI PCI bus> on pcib30
pcib31: <ACPI PCI-PCI bridge> at device 24.4 on pci0
pci31: <ACPI PCI bus> on pcib31
pcib32: <ACPI PCI-PCI bridge> at device 24.5 on pci0
pci32: <ACPI PCI bus> on pcib32
pcib33: <ACPI PCI-PCI bridge> at device 24.6 on pci0
pci33: <ACPI PCI bus> on pcib33
pcib34: <ACPI PCI-PCI bridge> at device 24.7 on pci0
pci34: <ACPI PCI bus> on pcib34
acpi_acad0: <AC Adapter> on acpi0
acpi_syscontainer0: <System Container> on acpi0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc9fff,0xca000-0xcafff,0xdc000-0xdffff,0xe0000-0xe7fff pnpid ORM0000 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff pnpid PNP0900 on isa0
Timecounters tick every 10.000 msec
Trying to mount root from ufs:/dev/da0s1a [rw]...
Root mount waiting for: CAM
Root mount waiting for: CAM
mountroot: waiting for device /dev/da0s1a...
Mounting from ufs:/dev/da0s1a failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/da0s1a
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> ---<<BOOT>>---

I used ufs,and I also compile it into the kernel.

Code:
[root@FreeBSD14 ~]# mount
/dev/da0s1a on / (ufs, local, soft-updates, journaled soft-updates)
devfs on /dev (devfs)
 
I suggest you redo the config, it's a mess, everything is in the wrong order and some things are defined twice. The actual order isn't going to matter for the compiler, but it's going to make debugging a lot easier if you can directly compare it to GENERIC. It's very likely you simply forgot to include something.

Make a copy of GENERIC and remove everything you don't need but keep the same order. Even better is to simply include GENERIC and disable everything you don't need.


And, quite honestly, there's very little to gain by compiling a custom kernel. The GENERIC kernel should work fine, just keep it. It'll make upgrading with freebsd-update(8) easier too.
 
After reading the boot log carefully,I find "da0 at mpt0 bus 0 scbus2 target 0 lun 0" ,so the answer is :
Code:
device          mpt                     # LSI-Logic MPT-Fusion
 
And, quite honestly, there's very little to gain by compiling a custom kernel. The GENERIC kernel should work fine, just keep it. It'll make upgrading with freebsd-update(8) easier too.

I love the FreeBSD's "KISS" kernel conf,so I'd like to compile the kernel by myself.The 80 lines kernel conf make me happy.
The linux kernel thousands lines conf make me sick and tired.
 
Sure, I get that. It's good experience. Just make a copy of GENERIC and remove everything you don't need. That's a better basis than writing a config from scratch.

If you want to delve even deeper you could update your source to stable/14 and build the entire OS from source.

Code:
dice@molly:~ % uname -a
FreeBSD molly.dicelan.home 14.0-STABLE FreeBSD 14.0-STABLE #12 stable/14-n266009-1fdbb16f405f: Sat Dec 16 16:54:27 CET 2023     root@molly.dicelan.home:/usr/obj/usr/src/amd64.amd64/sys/MOLLY amd64
 
Sure, I get that. It's good experience. Just make a copy of GENERIC and remove everything you don't need. That's a better basis than writing a config from scratch.

If you want to delve even deeper you could update your source to stable/14 and build the entire OS from source.

Code:
dice@molly:~ % uname -a
FreeBSD molly.dicelan.home 14.0-STABLE FreeBSD 14.0-STABLE #12 stable/14-n266009-1fdbb16f405f: Sat Dec 16 16:54:27 CET 2023     root@molly.dicelan.home:/usr/obj/usr/src/amd64.amd64/sys/MOLLY amd64
I've tried the 15-CURRENT now, based the same conf.
[root@FreeBSD14 ~]# uname -a
FreeBSD FreeBSD14 15.0-CURRENT FreeBSD 15.0-CURRENT #0: Wed Dec 20 03:49:59 CST 2023 root@FreeBSD14:/usr/obj/usr/src/amd64.amd64/sys/SEC amd64
 
I love the FreeBSD's "KISS" kernel conf,so I'd like to compile the kernel by myself.The 80 lines kernel conf make me happy.
The linux kernel thousands lines conf make me sick and tired.
If you prefer simpler kernel, MINIMAL kernel configuration file is provided for amd64. It's nearly 1/3 compared to GENERIC and available even on stable/12.
 
Back
Top