Giter Site home page Giter Site logo

redpill-lkm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redpill-lkm's Issues

SSD is incorrectly recognized as HDD

Load driver: https://raw.githubusercontent.com/tossp/rp-ext/master/mpt3sas/rpext-index.json

image

[   11.434002] usbcore: registered new interface driver usb-storage
[   11.451821] mpt3sas version 09.102.00.00 loaded
[   11.457907] mpt3sas 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[   11.467118] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (16215452 kB)
[   11.530890] mpt2sas_cm0: MSI-X vectors supported: 16, no of cores: 4, max_msix_vectors: -1
[   11.539367] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 124
[   11.544624] mpt2sas0-msix1: PCI-MSI-X enabled: IRQ 125
[   11.549895] mpt2sas0-msix2: PCI-MSI-X enabled: IRQ 126
[   11.555138] mpt2sas0-msix3: PCI-MSI-X enabled: IRQ 127
[   11.560371] mpt2sas_cm0: iomem(0x00000000f7240000), mapped(0xffffc90000900000), size(65536)
[   11.568871] mpt2sas_cm0: ioport(0x000000000000e000), size(256)
[   11.629259] mpt2sas_cm0: sending message unit reset !!
[   11.636025] mpt2sas_cm0: message unit reset: SUCCESS
[   11.678095] usb 1-7: new full-speed USB device number 2 using xhci_hcd
[   11.693953] mpt2sas_cm0: Allocated physical memory: size(15846 kB)
[   11.700286] mpt2sas_cm0: Current Controller Queue Depth(7931),Max Controller Queue Depth(8192)
[   11.709098] mpt2sas_cm0: Scatter Gather Elements per IO(128)
[   11.759901] mpt2sas_cm0: LSISAS2308: FWVersion(20.00.07.00), ChipRevision(0x05), BiosVersion(07.39.02.00)
[   11.769736] mpt2sas_cm0: Protocol=(
[   11.773129] Initiator
[   11.775481] ,Target
[   11.776127] ),
[   11.777961] Capabilities=(
[   11.779218] TLR
[   11.781036] ,EEDP
[   11.781498] ,Snapshot Buffer
[   11.784460] ,Diag Trace Buffer
[   11.786073] ,Task Set Full
[   11.788877] ,NCQ
[   11.789259] )
[   11.791097] scsi host6: Fusion MPT SAS Host
[   11.795526] mpt2sas_cm0: sending port enable !!
[   11.802213] mpt2sas_cm0: host_add: handle(0x0001), sas_addr(0x500605b006900fa0), phys(8)
[   11.819521] Got empty serial number. Generate serial number from product.
[   11.826488] mpt2sas_cm0: port enable: SUCCESS
[   11.827158] scsi 6:0:0:0: Direct-Access     GALAX    TA1D0480A                61.3 PQ: 0 ANSI: 6
[   11.827161] scsi 6:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221106000000), phy(6), device_name(0xd019662979957190)
[   11.827162] scsi 6:0:0:0: SATA: enclosure_logical_id(0x500605b006900fa0), slot(5)
[   11.827236] scsi 6:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   11.827458] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[   11.827459] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[   11.827460] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[   11.827479] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[   11.827736] sd 6:0:0:0: [sdg] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[   11.829502] scsi 6:0:1:0: Direct-Access     GALAX    TA1D0480A                61.3 PQ: 0 ANSI: 6
[   11.829504] scsi 6:0:1:0: SATA: handle(0x000a), sas_addr(0x4433221107000000), phy(7), device_name(0xd019662979937296)
[   11.829505] scsi 6:0:1:0: SATA: enclosure_logical_id(0x500605b006900fa0), slot(4)
[   11.829579] scsi 6:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   11.829798] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[   11.829798] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[   11.829799] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[   11.829817] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[   11.830047] sd 6:0:1:0: [sdh] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[   11.831870] sd 6:0:0:0: [sdg] Write Protect is off
[   11.831872] sd 6:0:0:0: [sdg] Mode Sense: 7f 00 10 08
[   11.832011] sd 6:0:0:0: [sdg] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   11.834194] sd 6:0:1:0: [sdh] Write Protect is off
[   11.834196] sd 6:0:1:0: [sdh] Mode Sense: 7f 00 10 08
[   11.834333] sd 6:0:1:0: [sdh] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   11.839134]  sdh: sdh1
[   11.841697] sd 6:0:0:0: [sdg] Attached SCSI disk
[   11.843661] sd 6:0:1:0: [sdh] Attached SCSI disk
[   11.941126] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[   11.953121] usb-storage 2-4:1.0: USB Mass Storage device detected
[   11.957969] scsi host7: usb-storage 2-4:1.0
[   11.958019] <redpill/usb_boot_shim.c:72> Found new device <vid=152d, pid=0576> - didn't match expected <vid=88aa, pid=88aa> (prev_shimmed=0)
[   12.063406] <redpill/usb_boot_shim.c:72> Found new device <vid=0665, pid=5161> - didn't match expected <vid=88aa, pid=88aa> (prev_shimmed=0)
[   12.199091] usb 1-8: new high-speed USB device number 3 using xhci_hcd
root@tsn:/volume1/homes/zh/app/redpill-tool-chain# hdparm -I /dev/sdg

/dev/sdg:

ATA device, with non-removable media
        Model Number:       GALAX TA1D0480A
        Serial Number:      920D07920E2C01758823
        Firmware Revision:  SBFM61.3
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 11 10 9 8 7 6 5
        Likely used: 11
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    16514064
        LBA    user addressable sectors:   268435455
        LBA48  user addressable sectors:   937703088
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      457862 MBytes
        device size with M = 1000*1000:      480103 MBytes (480 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    DOWNLOAD MICROCODE DMA command
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    DEVICE CONFIGURATION SET/IDENTIFY DMA commands
           *    Data Set Management TRIM supported (limit 8 blocks)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
root@tsn:/volume1/homes/zh/app/redpill-tool-chain# hdparm -I /dev/sdh

/dev/sdh:

ATA device, with non-removable media
        Model Number:       GALAX TA1D0480A
        Serial Number:      920D07920E2C01758639
        Firmware Revision:  SBFM61.3
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 11 10 9 8 7 6 5
        Likely used: 11
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    16514064
        LBA    user addressable sectors:   268435455
        LBA48  user addressable sectors:   937703088
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      457862 MBytes
        device size with M = 1000*1000:      480103 MBytes (480 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    DOWNLOAD MICROCODE DMA command
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    DEVICE CONFIGURATION SET/IDENTIFY DMA commands
           *    Data Set Management TRIM supported (limit 8 blocks)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
[ 3634.019704] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3634.027785] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3634.034355] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3634.042425] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3636.821741] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3636.834267] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3648.081485] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3648.089541] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3648.096075] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3648.104197] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3655.102005] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3655.114652] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3658.160552] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3658.168643] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3658.175270] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3658.183387] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3670.216958] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3670.224992] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3670.231527] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3670.239571] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3679.478699] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3679.491237] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3682.447287] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3682.455316] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3682.462025] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3682.470088] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3692.695273] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3692.703426] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3692.710070] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3692.718145] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3693.126888] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3693.139331] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3704.868851] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3704.876953] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3704.883577] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3704.891626] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3705.728835] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3705.741365] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3714.890921] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3714.899049] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3714.905617] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3714.913711] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3716.248082] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3716.260652] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3723.719096] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3723.731687] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3729.078419] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3729.086541] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3729.093214] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3729.101243] <redpill/smart_shim.c:388> Generating fake SMART values

Add GPIO shim

Linux v4 needs an empty but existing GPIO chip to stop complaining a ton in logs.

Add SATA DOM emulation

VMWare products (ESXi, Fusion, Workstation) cannot boot from USB easily and do not support creation of virtual USB drives like proxmox does. The kernel has a way to boot from what's called "SATA DOM" (in short a dedicated small SATA device). It should be supported by the loader.

Auto Poweroff - not working

Using ASRock N3700-ITX-DS918+, 7.0.1.42218

Autopower off enables but after 10 minutes or several hours, does not autopower off. Log files not showing that count down to shutdown is happening, but it just doesn't power off.

Anyway to fix this?

Unable to start on some devices

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.180+ (root@build15) (gcc version 7.5.0 (GCC) ) #41890 SMP Thu Jul 15 03:43:42 CST 2021
[ 0.000000] Command line: BOOT_IMAGE=/zImage HddHotplug=0 withefi console=ttyS2,115200n8 netif_num=1 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 earlyprintk mac1=2673D66F642A syno_hdd_powerup_seq=1 pid=0x0001 syno_hw_version=DS918+ vid=0x46f4 earlycon=uart8250,io,0x3f8,115200n8 sn=1780PDN123456 elevator=elevator root=/dev/md0 loglevel=15
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] x86/fpu: Legacy x87 FPU detected.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007ffdbfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000007ffdc000-0x000000007fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] earlycon: Early serial console at I/O port 0x3f8 (options '115200n8')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[ 0.000000] Kernel/User page tables isolation: disabled
[ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000000] e820: last_pfn = 0x7ffdc max_arch_pfn = 0x400000000
[ 0.000000] MTRR default type: write-back
[ 0.000000] MTRR fixed ranges enabled:
[ 0.000000] 00000-9FFFF write-back
[ 0.000000] A0000-BFFFF uncachable
[ 0.000000] C0000-FFFFF write-protect
[ 0.000000] MTRR variable ranges enabled:
[ 0.000000] 0 base 0080000000 mask FF80000000 uncachable
[ 0.000000] 1 disabled
[ 0.000000] 2 disabled
[ 0.000000] 3 disabled
[ 0.000000] 4 disabled
[ 0.000000] 5 disabled
[ 0.000000] 6 disabled
[ 0.000000] 7 disabled
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 28672
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] BRK [0x01a6c000, 0x01a6cfff] PGTABLE
[ 0.000000] BRK [0x01a6d000, 0x01a6dfff] PGTABLE
[ 0.000000] BRK [0x01a6e000, 0x01a6efff] PGTABLE
[ 0.000000] BRK [0x01a6f000, 0x01a6ffff] PGTABLE
[ 0.000000] BRK [0x01a70000, 0x01a70fff] PGTABLE
[ 0.000000] RAMDISK: [mem 0x35f11000-0x36f7ffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F5890 000014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 0x000000007FFE1E8A 000038 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 0x000000007FFE1C6C 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x000000007FFDF040 002C2C (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACS 0x000000007FFDF000 000040
[ 0.000000] ACPI: APIC 0x000000007FFE1CE0 000080 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: SSDT 0x000000007FFE1D60 0000CA (v01 BOCHS VMGENID 00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 0x000000007FFE1E2A 000038 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: WAET 0x000000007FFE1E62 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000007ffdbfff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000007ffdbfff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007ffdbfff]
[ 0.000000] On node 0 totalpages: 524154
[ 0.000000] DMA zone: 64 pages used for memmap
[ 0.000000] DMA zone: 22 pages reserved
[ 0.000000] DMA zone: 3998 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 8128 pages used for memmap
[ 0.000000] DMA32 zone: 520156 pages, LIFO batch:31
[ 0.000000] ACPI: PM-Timer IO Port: 0x608
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] ACPI: IRQ0 used by override.
[ 0.000000] ACPI: IRQ5 used by override.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.000000] ACPI: IRQ10 used by override.
[ 0.000000] ACPI: IRQ11 used by override.
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x80000000-0xfeffbfff] available for PCI devices
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88007fc00000 s95128 r8192 d31848 u1048576
[ 0.000000] pcpu-alloc: s95128 r8192 d31848 u1048576 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515940
[ 0.000000] Kernel command line: BOOT_IMAGE=/zImage HddHotplug=0 withefi console=ttyS2,115200n8 netif_num=1 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 earlyprintk mac1=2673D66F642A syno_hdd_powerup_seq=1 pid=0x0001 syno_hw_version=DS918+ vid=0x46f4 earlycon=uart8250,io,0x3f8,115200n8 sn=1780PDN123456 elevator=elevator root=/dev/md0 loglevel=15
[ 0.000000] Internal netif num: 1
[ 0.000000] SYNO GPIO hdd detect pin: 0
[ 0.000000] Vender format version: 2
[ 0.000000] Mac1: 2673D66F642A
[ 0.000000] Power on seq num: 1
[ 0.000000] Synology Hardware Version: DS918+
[ 0.000000] Serial Number: 1780PDN123456
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 2032796K/2096616K available (5623K kernel code, 863K rwdata, 1748K rodata, 916K init, 664K bss, 63820K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2
[ 0.000000] NR_IRQS:4352 nr_irqs:440 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.000000] hpet clockevent registered
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 2926.152 MHz processor
[ 0.003006] Calibrating delay loop (skipped), value calculated using timer frequency.. 5852.30 BogoMIPS (lpj=2926152)
[ 0.004525] pid_max: default: 32768 minimum: 301
[ 0.005011] ACPI: Core revision 20150930
[ 0.008019] ACPI: 2 ACPI AML tables successfully acquired and loaded
[ 0.009066] Security Framework initialized
[ 0.009824] AppArmor: AppArmor initialized
[ 0.010015] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.011006] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.012260] Initializing cgroup subsys io
[ 0.013012] Initializing cgroup subsys memory
[ 0.014022] Initializing cgroup subsys devices
[ 0.015021] Initializing cgroup subsys freezer
[ 0.016153] CPU: Physical Processor ID: 0
[ 0.017010] CPU: Processor Core ID: 0
[ 0.018085] mce: CPU supports 10 MCE banks
[ 0.019171] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.020012] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.021032] Speculative Store Bypass: Vulnerable
[ 0.028283] Freeing SMP alternatives memory: 24K
[ 0.033670] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.043580] TSC deadline timer enabled
[ 0.044000] smpboot: CPU0: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz (family: 0x6, model: 0x2c, stepping: 0x2)
[ 0.046764] Performance Events: 16-deep LBR, Westmere events, full-width counters, Intel PMU driver.
[ 0.048627] perf_event_intel: CPUID marked event: 'bus cycles' unavailable
[ 0.049036] ... version: 2
[ 0.050007] ... bit width: 48
[ 0.051005] ... generic registers: 4
[ 0.052007] ... value mask: 0000ffffffffffff
[ 0.053007] ... max period: 00007fffffffffff
[ 0.054007] ... fixed-purpose events: 3
[ 0.055006] ... event mask: 000000070000000f
[ 0.056442] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
[ 0.058185] x86: Booting SMP configuration:
[ 0.059007] .... node #0, CPUs: #1
[ 0.061053] x86: Booted up 1 node, 2 CPUs
[ 0.062009] smpboot: Total of 2 processors activated (11704.60 BogoMIPS)
[ 0.064013] devtmpfs: initialized
[ 0.065470] invalid opcode: 0000 [#1] SMP
[ 0.066000] Modules linked in:
[ 0.066000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.180+ #41890
[ 0.066000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[ 0.066000] task: ffff88007d0f0000 ti: ffff88007d0d4000 task.ti: ffff88007d0d4000
[ 0.066000] RIP: 0010:[] [] sha_transform+0x37/0x1290
[ 0.066000] RSP: 0000:ffff88007d0d7ce8 EFLAGS: 00010803
[ 0.066000] RAX: 0000000045321f1a RBX: 00000000c3d2e1f0 RCX: 0000000000000020
[ 0.066000] RDX: ffff88007d0d7d40 RSI: ffffffff81a5f7e0 RDI: ffff88007d0d7d28
[ 0.066000] RBP: ffff88007d0d7d10 R08: 0000000067452301 R09: 0000000010325476
[ 0.066000] R10: 0000000098badcfe R11: 00000000efcdab89 R12: 00000000e8a4602c
[ 0.066000] R13: ffff88007d0d7dde R14: ffffffff818974c8 R15: ffffffff81897480
[ 0.066000] FS: 0000000000000000(0000) GS:ffff88007fc00000(0000) knlGS:0000000000000000
[ 0.066000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 0.066000] CR2: ffff880001a6c000 CR3: 000000000180a000 CR4: 00000000000206f0
[ 0.066000] Stack:
[ 0.066000] 0000000000000010 ffff88007d0d7d40 ffff88007d0d7dde ffffffff818974c8
[ 0.066000] ffffffff81897480 ffff88007d0d7da8 ffffffff813b1bcf 0000000000000246
[ 0.066000] efcdab8967452301 1032547698badcfe 00000000c3d2e1f0 0000000000000006
[ 0.066000] Call Trace:
[ 0.066000] [] extract_buf+0x8f/0x110
[ 0.066000] [] ? account.part.28+0x125/0x190
[ 0.066000] [] extract_entropy+0x81/0x210
[ 0.066000] [] ? setup_net+0x3e/0x140
[ 0.066000] [] ? initcall_blacklist+0xaa/0xaa
[ 0.066000] [] get_random_bytes+0x36/0x90
[ 0.066000] [] setup_net+0x3e/0x140
[ 0.066000] [] ? net_defaults_init+0x24/0x24
[ 0.066000] [] net_ns_init+0x9f/0x134
[ 0.066000] [] do_one_initcall+0x88/0x1a0
[ 0.066000] [] kernel_init_freeable+0x15e/0x1f1
[ 0.066000] [] ? rest_init+0x80/0x80
[ 0.066000] [] kernel_init+0x9/0xd0
[ 0.066000] [] ret_from_fork+0x3f/0x80
[ 0.066000] [] ? rest_init+0x80/0x80
[ 0.066000] Code: 44 89 d0 41 57 44 8b 07 44 8b 5f 04 41 56 44 31 c8 41 55 44 21 d8 41 54 45 8d 20 44 31 c8 41 c1 c4 05 53 44 01 e0 8b 5f 10 01 d8 <0f> 38 f0 0e 05 99 79 82 5a 89 0a 41 c1 cb 02 01 c1 41 8d 02 0f
[ 0.066000] RIP [] sha_transform+0x37/0x1290
[ 0.066000] RSP

This is the boot result of the PVE virtual machine with the image of DS918+ on my X58 server
Can't seem to start
Why can't it start? Is it because the CPU instruction set does not support it?
I found that [x86/fpu: Supporting XSAVE feature 0x04:'AVX registers'] appears when booting on a normal machine, but it does not appear on my X58 server
If it is a CPU problem, what instruction set does the host's CPU need?

The following result is the startup result on the virtual machine of i5 9500

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.180+ (root@build15) (gcc version 7.5.0 (GCC) ) #41890 SMP Thu Jul 15 03:43:42 CST 2021
[ 0.000000] Command line: BOOT_IMAGE=/zImage HddHotplug=0 withefi console=ttyS2,115200n8 netif_num=1 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 earlyprintk mac1=2673D66F642A syno_hdd_powerup_seq=1 pid=0x0001 syno_hw_version=DS918+ vid=0x46f4 earlycon=uart8250,io,0x3f8,115200n8 sn=1780PDN123456 elevator=elevator root=/dev/md0 loglevel=15
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007ffeffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000007fff0000-0x000000007fffffff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] earlycon: Early serial console at I/O port 0x3f8 (options '115200n8')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.5 present.
[ 0.000000] DMI: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 0.000000] Kernel/User page tables isolation: disabled
[ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000000] e820: last_pfn = 0x7fff0 max_arch_pfn = 0x400000000
[ 0.000000] MTRR default type: uncachable
[ 0.000000] MTRR variable ranges disabled:
[ 0.000000] MTRR: Disabled
[ 0.000000] CPU MTRRs all blank - virtualized system.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.000000] Base memory trampoline at [ffff880000098000] 98000 size 28672
[ 0.000000] BRK [0x01a6c000, 0x01a6cfff] PGTABLE
[ 0.000000] BRK [0x01a6d000, 0x01a6dfff] PGTABLE
[ 0.000000] BRK [0x01a6e000, 0x01a6efff] PGTABLE
[ 0.000000] BRK [0x01a6f000, 0x01a6ffff] PGTABLE
[ 0.000000] BRK [0x01a70000, 0x01a70fff] PGTABLE
[ 0.000000] RAMDISK: [mem 0x35f11000-0x36f7ffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX )
[ 0.000000] ACPI: XSDT 0x000000007FFF0030 00003C (v01 VBOX VBOXXSDT 00000001 ASL 00000061)
[ 0.000000] ACPI: FACP 0x000000007FFF00F0 0000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061)
[ 0.000000] ACPI: DSDT 0x000000007FFF0470 002325 (v02 VBOX VBOXBIOS 00000002 INTL 20100528)
[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040
[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040
[ 0.000000] ACPI: APIC 0x000000007FFF0240 000054 (v02 VBOX VBOXAPIC 00000001 ASL 00000061)
[ 0.000000] ACPI: SSDT 0x000000007FFF02A0 0001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528)
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000007ffeffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000007ffeffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007ffeffff]
[ 0.000000] On node 0 totalpages: 524174
[ 0.000000] DMA zone: 64 pages used for memmap
[ 0.000000] DMA zone: 22 pages reserved
[ 0.000000] DMA zone: 3998 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 8128 pages used for memmap
[ 0.000000] DMA32 zone: 520176 pages, LIFO batch:31
[ 0.000000] ACPI: PM-Timer IO Port: 0x4008
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[ 0.000000] ACPI: IRQ0 used by override.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x80000000-0xfebfffff] available for PCI devices
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88007fc00000 s95128 r8192 d31848 u2097152
[ 0.000000] pcpu-alloc: s95128 r8192 d31848 u2097152 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515960
[ 0.000000] Kernel command line: BOOT_IMAGE=/zImage HddHotplug=0 withefi console=ttyS2,115200n8 netif_num=1 syno_hdd_detect=0 syno_port_thaw=1 vender_format_version=2 earlyprintk mac1=2673D66F642A syno_hdd_powerup_seq=1 pid=0x0001 syno_hw_version=DS918+ vid=0x46f4 earlycon=uart8250,io,0x3f8,115200n8 sn=1780PDN123456 elevator=elevator root=/dev/md0 loglevel=15
[ 0.000000] Internal netif num: 1
[ 0.000000] SYNO GPIO hdd detect pin: 0
[ 0.000000] Vender format version: 2
[ 0.000000] Mac1: 2673D66F642A
[ 0.000000] Power on seq num: 1
[ 0.000000] Synology Hardware Version: DS918+
[ 0.000000] Serial Number: 1780PDN123456
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Memory: 2033004K/2096696K available (5623K kernel code, 863K rwdata, 1748K rodata, 916K init, 664K bss, 63692K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[ 0.000000] NR_IRQS:4352 nr_irqs:256 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 2999.850 MHz processor
[ 0.000001] Calibrating delay loop (skipped), value calculated using timer frequency.. 5999.70 BogoMIPS (lpj=2999850)
[ 0.003856] pid_max: default: 32768 minimum: 301
[ 0.005398] ACPI: Core revision 20150930
[ 0.015793] ACPI: 2 ACPI AML tables successfully acquired and loaded
[ 0.017323] Security Framework initialized
[ 0.019144] AppArmor: AppArmor initialized
[ 0.020835] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.025450] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.028817] Initializing cgroup subsys io
[ 0.030214] Initializing cgroup subsys memory
[ 0.031917] Initializing cgroup subsys devices
[ 0.033658] Initializing cgroup subsys freezer
[ 0.044504] CPU: Physical Processor ID: 0
[ 0.057713] mce: CPU supports 0 MCE banks
[ 0.059075] process: using mwait in idle threads
[ 0.060498] Last level iTLB entries: 4KB 128, 2MB 8, 4MB 8
[ 0.063886] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[ 0.065885] Speculative Store Bypass: Vulnerable
[ 0.077457] Freeing SMP alternatives memory: 24K
[ 0.081135] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.194061] smpboot: CPU0: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz (family: 0x6, model: 0x9e, stepping: 0xa)
[ 0.201345] Performance Events: unsupported p6 CPU model 158 no PMU driver, software events only.
[ 0.205529] x86: Booted up 1 node, 1 CPUs
[ 0.206679] smpboot: Total of 1 processors activated (5999.70 BogoMIPS)
[ 0.210972] NMI watchdog: disabled (cpu0): hardware events not enabled
[ 0.214432] NMI watchdog: Shutting down hard lockup detector on all cpus
[ 0.217510] devtmpfs: initialized
[ 0.218923] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.222363] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.225476] pinctrl core: initialized pinctrl subsystem
[ 0.236216] NET: Registered protocol family 16
[ 0.238627] cpuidle: using governor ladder
[ 0.240909] cpuidle: using governor menu
[ 0.242580] ACPI: bus type PCI registered
[ 0.244503] PCI: Using configuration type 1 for base access
[ 0.264790] ACPI: Added _OSI(Module Device)
[ 0.266606] ACPI: Added _OSI(Processor Device)
[ 0.268274] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.270081] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.273627] ACPI: Executed 1 blocks of module-level executable AML code
[ 0.276979] ACPI: Interpreter enabled
[ 0.277822] ACPI: (supports S0 S5)
[ 0.278572] ACPI: Using IOAPIC for interrupt routing
[ 0.280439] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.286547] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.294417] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[ 0.298089] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI]
[ 0.302621] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 0.307065] PCI host bridge to bus 0000:00
[ 0.308467] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.311074] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.314561] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.317621] pci_bus 0000:00: root bus resource [mem 0x80000000-0xfdffffff window]
[ 0.328329] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.331409] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 0.334299] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 0.339815] pci 0000:00:02.0: [80ee:beef] type 00 class 0x030000
[ 0.343028] pci 0000:00:02.0: reg 0x10: [mem 0xe0000000-0xe1ffffff pref]
[ 0.345302] pci 0000:00:02.0: reg 0x14: [io 0xd000-0xd00f]
[ 0.347291] pci 0000:00:02.0: reg 0x18: [mem 0xf0000000-0xf01fffff]
[ 0.351543] pci 0000:00:03.0: [1af4:1000] type 00 class 0x020000
[ 0.360781] pci 0000:00:03.0: reg 0x10: [io 0xd020-0xd03f]
[ 0.364154] pci 0000:00:04.0: [80ee:cafe] type 00 class 0x088000
[ 0.367743] pci 0000:00:04.0: reg 0x10: [io 0xd040-0xd05f]
[ 0.369657] pci 0000:00:04.0: reg 0x14: [mem 0xf0400000-0xf07fffff]
[ 0.372098] pci 0000:00:04.0: reg 0x18: [mem 0xf0800000-0xf0803fff pref]
[ 0.376939] pci 0000:00:05.0: [8086:2668] type 00 class 0x040300
[ 0.379096] pci 0000:00:05.0: reg 0x10: [mem 0xf0804000-0xf0807fff]
[ 0.384401] pci 0000:00:06.0: [106b:003f] type 00 class 0x0c0310
[ 0.391436] pci 0000:00:06.0: reg 0x10: [mem 0xf0808000-0xf0808fff]
[ 0.396346] pci 0000:00:07.0: [8086:7113] type 00 class 0x068000
[ 0.400142] pci 0000:00:07.0: quirk: [io 0x4000-0x403f] claimed by PIIX4 ACPI
[ 0.402271] pci 0000:00:07.0: quirk: [io 0x4100-0x410f] claimed by PIIX4 SMB
[ 0.406229] pci 0000:00:0d.0: [8086:2829] type 00 class 0x010601
[ 0.408910] pci 0000:00:0d.0: reg 0x10: [io 0xd060-0xd067]
[ 0.410755] pci 0000:00:0d.0: reg 0x14: [io 0xd068-0xd06b]
[ 0.419818] pci 0000:00:0d.0: reg 0x18: [io 0xd070-0xd077]
[ 0.422086] pci 0000:00:0d.0: reg 0x1c: [io 0xd078-0xd07b]
[ 0.424046] pci 0000:00:0d.0: reg 0x20: [io 0xd080-0xd08f]
[ 0.426629] pci 0000:00:0d.0: reg 0x24: [mem 0xf080a000-0xf080bfff]
[ 0.431101] pci_bus 0000:00: on NUMA node 0
[ 0.432792] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 *11)
[ 0.434330] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 *10 11)
[ 0.435693] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 *9 10 11)
[ 0.438444] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 9 10 *11)
[ 0.441142] ACPI: Enabled 2 GPEs in block 00 to 07
[ 0.457862] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.459595] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.463065] vgaarb: loaded
[ 0.463914] vgaarb: bridge control possible 0000:00:02.0
[ 0.465946] SCSI subsystem initialized
[ 0.467453] libata version 3.00 loaded.
[ 0.469529] pps_core: LinuxPPS API ver. 1 registered
[ 0.472127] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.483604] PTP clock support registered
[ 0.485787] PCI: Using ACPI for IRQ routing
[ 0.487077] PCI: pci_cache_line_size set to 64 bytes
[ 0.491158] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[ 0.493137] e820: reserve RAM buffer [mem 0x7fff0000-0x7fffffff]
[ 0.496075] clocksource: Switched to clocksource refined-jiffies
[ 0.517996] AppArmor: AppArmor Filesystem Enabled
[ 0.520157] pnp: PnP ACPI init
[ 0.522808] pnp 00:00: Plug and Play ACPI device, IDs PNP0303 (active)
[ 0.524869] pnp 00:01: Plug and Play ACPI device, IDs PNP0f03 (active)
[ 0.527161] pnp 00:02: Plug and Play ACPI device, IDs PNP0501 (active)
[ 0.529245] pnp 00:03: Plug and Play ACPI device, IDs PNP0501 (active)
[ 0.532593] pnp 00:04: Plug and Play ACPI device, IDs PNP0501 (active)
[ 0.535197] pnp: PnP ACPI: found 5 devices
[ 0.551128] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.556245] clocksource: Switched to clocksource acpi_pm
[ 0.557785] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.560124] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.563357] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 0.566634] pci_bus 0000:00: resource 7 [mem 0x80000000-0xfdffffff window]
[ 0.569683] NET: Registered protocol family 2
[ 0.578176] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.582270] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.585047] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.589082] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.591363] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.594839] NET: Registered protocol family 1
[ 0.596863] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.598954] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.601592] pci 0000:00:02.0: Video device with shadowed ROM
[ 0.610572] PCI: CLS 0 bytes, default 64
[ 0.917852] Trying to unpack rootfs image as initramfs...
[ 0.939492] hrtimer: interrupt took 4772673 ns
[ 0.992388] Freeing initrd memory: 16828K
[ 0.994379] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 1.006744] audit: initializing netlink subsys (disabled)
[ 1.008607] audit: type=2000 audit(1628030571.692:1): initialized
[ 1.010685] Initialise system trusted keyring
[ 1.108805] VFS: Disk quotas dquot_6.6.0
[ 1.110890] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.481167] Key type asymmetric registered
[ 1.483145] Asymmetric key parser 'x509' registered
[ 1.484968] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 1.487849] io scheduler noop registered
[ 1.489337] io scheduler deadline registered
[ 1.493148] io scheduler cfq registered
[ 1.999036] tsc: Refined TSC clocksource calibration: 2999.999 MHz
[ 8.429366] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2b3e44b2357, max_idle_ns: 440795324996 ns
[ 8.807868] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 9.100786] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 9.112939] console [ttyS2] enabled
[ 9.114823] bootconsole [uart0] disabled

execve() shim unreliable on some platforms

Users are reporting unable to boot scenarios on some platforms which can be linked to execve() shim. It's a possibly a memory leak or an issue with comparing kernel memory with user memory:

Stack traces:

[    7.001987] BUG: unable to handle kernel paging request at 0000000000fcdaa8
[    7.002545] IP: [<ffffffff812c3bd2>] strcmp+0x12/0x30
[    7.002925] PGD 26d58e067 PUD 270fec067 PMD 274f25067 PTE 800000027fbfa067
[    7.002925] Oops: 0001 [#166] PREEMPT SMP
[    7.002925] Modules linked in: redpill(OE)
[    7.002925] CPU: 3 PID: 3565 Comm: ash Tainted: G      D    OE   4.4.59+ #25556
[    7.002925] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    7.002925] task: ffff88026ccd6040 ti: ffff880273490000 task.ti: ffff880273490000
[    7.002925] RIP: 0010:[<ffffffff812c3bd2>]  [<ffffffff812c3bd2>] strcmp+0x12/0x30
[    7.002925] RSP: 0018:ffff880273493f18  EFLAGS: 00010282
[    7.002925] RAX: ffffffffa00008e0 RBX: ffffffffa0009aa0 RCX: 000000000000058b
[    7.002925] RDX: 0000000000fcda48 RSI: ffff880274e94641 RDI: 0000000000fcdaa9
[    7.002925] RBP: ffff880273493f18 R08: 0000000000000000 R09: 688c3cb33593c6ff
[    7.002925] R10: 000000000000058b R11: 0000000000000206 R12: 0000000000fcdaa8
[    7.002925] R13: 0000000000fcda28 R14: 0000000000fcda48 R15: 0000000000000000
[    7.002925] FS:  00007feb66f65700(0000) GS:ffff88027fd80000(0000) knlGS:0000000000000000
[    7.002925] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.002925] CR2: 0000000000fcdaa8 CR3: 0000000271d8c000 CR4: 00000000003606f0
[    7.002925] Stack:
[    7.002925]  ffff880273493f48 ffffffffa000090c 0000000000fcdaa8 0000000000fcda28
[    7.002925]  0000000000000000 0000000000fcda48 0000000000fcda48 ffffffff81578b8a
[    7.002925]  00000000fc2c9fc5 00007feb6676e070 0000000000000001 00007feb66f679e0
[    7.002925] Call Trace:
[    7.002925]  [<ffffffffa000090c>] shim_sys_execve+0x2c/0x90 [redpill]
[    7.002925]  [<ffffffff81578b8a>] entry_SYSCALL_64_fastpath+0x1e/0x92
[    7.002925] Code: f7 48 8d 76 01 48 8d 52 01 0f b6 4e ff 84 c9 88 4a ff 75 ed 5d c3 0f 1f 00 55 48 89 e5 eb 04 84 c0 74 18 48 8d 7f 01 48 8d 76 01 <0f> b6 47 ff 3a 46 ff 74 eb 19 c0 83 c8 01 5d c3 31 c0 5d c3 66
[    7.002925] RIP  [<ffffffff812c3bd2>] strcmp+0x12/0x30
[    7.002925]  RSP <ffff880273493f18>
[    7.002925] CR2: 0000000000fcdaa8
[    7.002925] ---[ end trace 354c1394de4cdfde ]---
[    3.517024] BUG: unable to handle kernel paging request at 0000000001f4b498
[    3.517026] IP: [<ffffffff8127b794>] strcmp+0x4/0x30
[    3.517028] PGD 3a879067 PUD 3aed6067 PMD 39e17067 PTE 8000000001bf7067
[    3.517029] Oops: 0001 [#31] SMP 
[    3.517031] Modules linked in: redpill(OF)
[    3.517032] CPU: 2 PID: 4913 Comm: ash Tainted: GF     D    O 3.10.105 #25556
[    3.517033] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 12/12/2018
[    3.517034] task: ffff88003dd79040 ti: ffff88003ad94000 task.ti: ffff88003ad94000
[    3.517036] RIP: 0010:[<ffffffff8127b794>]  [<ffffffff8127b794>] strcmp+0x4/0x30
[    3.517037] RSP: 0018:ffff88003ad97f28  EFLAGS: 00010206
[    3.517037] RAX: ffffffffa0000c10 RBX: ffffffffa0009500 RCX: 000000000000058b
[    3.517038] RDX: 0000000001f554e8 RSI: ffff880038246b60 RDI: 0000000001f4b499
[    3.517039] RBP: 0000000001f4b498 R08: 0000000000000000 R09: 0000000000000066
[    3.517039] R10: 000000000000058b R11: 0000000000000202 R12: 0000000001f4b510
[    3.517040] R13: 0000000001f554e8 R14: 0000000000000000 R15: 0000000000000000
[    3.517041] FS:  00007fce85811700(0000) GS:ffff88003fc80000(0000) knlGS:0000000000000000
[    3.517042] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.517042] CR2: 0000000001f4b498 CR3: 0000000039e6e000 CR4: 00000000003607e0
[    3.517043] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    3.517044] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    3.517045] Stack:
[    3.517046]  ffffffffa0000c36 0000000000000000 0000000000000000 0000000000000000
[    3.517048]  0000000000000000 ffffffff814cfdc4 0000000000000000 0000000001f554e8
[    3.517049]  0000000000000000 0000000001f4b510 0000000001f554e8 0000000001f4b498
[    3.517050] Call Trace:
[    3.517052]  [<ffffffffa0000c36>] ? shim_sys_execve+0x26/0x90 [redpill]
[    3.517054]  [<ffffffff814cfdc4>] ? system_call_fastpath+0x22/0x27
[    3.517062] Code: 0f 1f 80 00 00 00 00 48 83 c6 01 0f b6 4e ff 48 83 c2 01 84 c9 88 4a ff 75 ed f3 c3 66 66 2e 0f 1f 84 00 00 00 00 00 48 83 c7 01 <0f> b6 47 ff 48 83 c6 01 3a 46 ff 75 0f 84 c0 75 eb 31 c0 c3 0f 
[    3.517064] RIP  [<ffffffff8127b794>] strcmp+0x4/0x30
[    3.517065]  RSP <ffff88003ad97f28>
[    3.517065] CR2: 0000000001f4b498
[    3.517066] ---[ end trace 1310bcd7b39d15af ]---

Reports:

smart_shim error

DSM kernel: [10752.080439] <redpill/smart_shim.c:684> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from (null) - it failed

pr_loc_err("Expected to copy HDIO_DRIVE_CMD header of %d bytes from %p - it failed", HDIO_DRIVE_CMD_HDR_OFFSET,

Proxmox Virtio-SCSI - cannot add 2nd Disk

Hello RedPill-TTG Team,

this days i have created a test nas V7.0.1-42218 on Proxmox (DS918+, same issue with 3615xs)
VM on Proxmox, V7.0-11, Boot from USB with args., Machine Q35, CPU: KVM, UEFI Boot, Virtio NW , Virtio SCSI,

Build and boot are successfull with one disk

I tried to add a second disk and add it to the SHR Volume for testing. But i cannot add this disk, because it does not meet the requirements.
When checking the second disk, i see error message "disk_reason_template_0".
330958072_HDDInfo PNG db386bbc7e49df4efc6b7d8db21ed2c8
requirements thumb PNG 940cbfcb7abcc1e32cda829ce6132ab7

if you need further information i can make further tests, and upload log files (need hint what you need, i´m not a linux expert :-)).
br
Chris

Loader /dev/synoboot reserves /dev/sdA (possibily Kernel bug).

Replication:

  • Use ESXi VM, loading redpill img/vmdk on Sata Controller 0 Port 0 (0:0)
  • LSI Passthrough on the VM, disk/s attached to the HBA

Regarding on the strange behaviour of the synoboot reservation, even if DiskIdxMap SasIdxMap and SataPortMap are defined correctly, redpill will reserve itself /dev/sdA (it's loaded correcly on /dev/synoboot) so the first disk on the HBA is always shown as /dev/sdB or more based on SataPortMap.

This issue is not present if redpill setup on a SCSI Controller instead of Sata Controller but no /dev/synoboot is created (but DSM install will fail - if DSM already installed it will work).

Can you add boot parameter for debug?

Please add it for machine without serial port.

Just print out message on screen (not tty)

If someone use Low-end board (like GA-H110M-DS2V) or mini PC or Laptop they can't add serial port on board

Also recently released system board hasn't serial port (has serial head but optional part needs) (or hasn't any port or head)

Install success, but then can't find the IP

Hi,

Thanks for your all work for the great tools.
my HW config

MB: MSI H510i pro wifi with rtl8125b
CPU: i3-10105

I compiled apollolake-7.0.0-41890 img with lastest redpill-lkm and redpill-load then with the pocopico's
rp-ext
r8125 , acpid and early-telent

I can success install the 41890 on by PC by 8125B 2.5G , but after successful install, the machine can't auto reboot.
Then I force power down and then power up, I found that I can't get the IP. I can do nothing for the NAS.

But once when I formatting the SATA on other PC, I can find the IP again can install the NAS again.
But once I install completd then I can't find the IP again.

So it seems once I install the NAS success, then I can;t get the IP.
But I can get the IP during the install stage.

Shim RTC

The mfgBIOS has methods for setting and getting system time, independent from the kernel's RTC. On 3615xs the kernel module itself just proxies the calls to hardware RTC. However, on 918+ the calls are instead attempted against (non-existent on a PC) I2C RTC chip.

In essence we should always shim mfgBIOS routines for RTC and direct them to the standard PC RTC. As an alternative it may be possible to just lookup addresses of bandon RTC in the original mfgBIOS module and just redirect it there without writing a custom implementation.

Can I use EMMC as my bootloader drive?

I flash the boot image to my machine internal emmc drive. But when I try to install DSM 7, A error occur. I login DSM by telnet and found emmc is not mounted by system.

uart_fixer.c -> ../../config/runtime_config.h not found

Hi, when i build the redpill.ko it comes a fatal error:

CC [M] /home/dodo/redpill-lkm/shim/uart_fixer.o /home/dodo/redpill-lkm/shim/uart_fixer.c:3:53: fatal error: ../../config/runtime_config.h: Datei oder Verzeichnis nicht gefunden

If i edit the redpill-lkm/shim/uart_fixer.c and change from ../../ to ../ it works.
Is this a bug or what i do wrong?

Thank you very much, Good Work!

Emulate PMU responses

Some userland components can connect to the /dev/synobios chardev (created by https://github.com/RedPill-TTG/dsm-research/blob/master/quirks/mfgbios.md) and use it as a proxy to the PMU (https://github.com/RedPill-TTG/dsm-research/blob/master/quirks/pmu.md). This channel however doesn't exist when running on a different/research hardware platform.

We need to emulate requests and responses to these command. There are many ways to do that. The easiest is probably hijacking the whole serial port or chardev (not investigated yet). The commands can be found in various articles as they're public in the SDK. For example see https://web.archive.org/web/20201001025734/https://smallhacks.wordpress.com/2012/04/17/working-with-synology-hardware-devsynobios-and-devttys1/

ESXi : LSI SAS6g MPT2SAS card passtrough : it's not a SATA disk, ignoring

Hello,

I tried again to passtrough LSI SAS2 card to ESXi.

I edited rd.gz from loader to add a new file in /usr/lib/modules-load.d/

70-disk-0000-lsi-mpt2sas.conf

put in it just : mpt2sas

as a reminder, mpt2sas module is already part of default DS3615xs loader.

It works as this, mpt2sas module is loaded correctly at boot.

I still have the same issue, disk is not considered as SATA disk :

:: Loading module mpt2sas[ 2.033193] mpt2sas version 20.00.00.00 loaded
[ 2.033607] scsi34 : Fusion MPT SAS Host
[ 2.034189] I/O scheduler elevator not found
[ 2.035640] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (4022256 kB)
[ 2.108088] mpt2sas0: MSI-X vectors supported: 1, no of cores: 2, max_msix_vectors: -1
[ 2.109085] mpt2sas 0000:0b:00.0: irq 74 for MSI/MSI-X
[ 2.110071] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 74
[ 2.110091] mpt2sas0: iomem(0x00000000fd3fc000), mapped(0xffffc90000018000), size(16384)
[ 2.111067] mpt2sas0: ioport(0x0000000000005000), size(256)
[ 2.225979] mpt2sas0: Allocated physical memory: size(7445 kB)
[ 2.226000] mpt2sas0: Current Controller Queue Depth(3305), Max Controller Queue Depth(3432)
[ 2.226972] mpt2sas0: Scatter Gather Elements per IO(128)
[ 2.286584] mpt2sas0: LSISAS2008: FWVersion(20.00.07.00), ChipRevision(0x03), BiosVersion(07.39.02.00)
[ 2.286922] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[ 2.289072] mpt2sas0: sending port enable !!
[ 2.293066] mpt2sas0: host_add: handle(0x0001), sas_addr(0x5003005703dbf193), phys(8)
[ 2.299931] mpt2sas0: port enable: SUCCESS
[ 2.300423] I/O scheduler elevator not found
[ 2.301076] I/O scheduler elevator not found
[ 2.302799] scsi 34:0:0:0: Direct-Access Samsung SSD 850 EVO 250GB 1B6Q PQ: 0 ANSI: 6
[ 2.303198] scsi 34:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221103000000), phy(3), device_name(0x5002538d4026c106)
[ 2.303902] scsi 34:0:0:0: SATA: enclosure_logical_id(0x5003005703dbf193), slot(0)
[ 2.304037] scsi 34:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[ 2.305024] scsi 34:0:0:0: serial_number(S21PNXBXXXXXXX )
[ 2.305910] scsi 34:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(7), cmd_que(1)
[ 2.307034] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[ 2.307566] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[ 2.307970] <redpill/native_sata_boot_shim.c:153> Found new SCSI disk vendor="Samsung SSD 850 1B6QS21PNXBGXXXXXX " model="SSD 850 EVO 250GB ": checking boot shim viability
[ 2.308909] <redpill/boot_shim_base.c:29> scsi_is_boot_dev_target: it's not a SATA disk, ignoring
[ 2.309493] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[ 2.310003] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[ 2.311104] sd 34:0:0:0: [sas0] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 2.312916] sd 34:0:0:0: [sas0] Write Protect is off
[ 2.313276] sd 34:0:0:0: [sas0] Mode Sense: 7f 00 10 08
[ 2.314101] sd 34:0:0:0: [sas0] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 2.316281] sas0: p1
[ 2.318016] sd 34:0:0:0: [sas0] Attached SCSI disk

fdisk -l

Disk /dev/synoboot: 128 MiB, 134217728 bytes, 262144 sectors
Disk model: TYPE D 3SE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf110ee87

Device Boot Start End Sectors Size Id Type
/dev/synoboot1 2048 100351 98304 48M 83 Linux
/dev/synoboot2 100352 253951 153600 75M 83 Linux
/dev/synoboot3 253952 262143 8192 4M 83 Linux

Disk /dev/sda: 16 GiB, 17179869184 bytes, 33554432 sectors
Disk model: Virtual
SATA Hard Drive
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2d4890c5

Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4982527 4980480 2.4G fd Linux raid autodetect
/dev/sda2 4982528 9176831 4194304 2G fd Linux raid autodetect
/dev/sda3 9437184 33349631 23912448 11.4G fd Linux raid autodetect

Disk /dev/sas0: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Disk model: SSD 850 EVO 250GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x49e15208

Device Boot Start End Sectors Size Id Type
/dev/sas0p1 2048 488394751 488392704 232.9G 7 HPFS/NTFS/exFAT

Disk /dev/md0: 2.4 GiB, 2549940224 bytes, 4980352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/zram0: 1.2 GiB, 1236271104 bytes, 301824 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/zram1: 1.2 GiB, 1236271104 bytes, 301824 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/md1: 2 GiB, 2147418112 bytes, 4194176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/md2: 11.4 GiB, 12242124800 bytes, 23910400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg1-syno_vg_reserved_area: 12 MiB, 12582912 bytes, 24576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/vg1-volume_1: 11 GiB, 11811160064 bytes, 23068672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/cachedev_0: 11 GiB, 11811160064 bytes, 23068672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Serial console output in attachment.

My disk is a SATA disk plugged on SAS controller.
It works fine on Jun's loader.
and SMART is working with passtrough LSI card on it.

7.0.1_21.log

Mocking auto-power SET on RTC

The kernel keeps reporting this information. What action should I take?

[80085.526427] <redpill/rtc_proxy.c:226> Mocking auto-power SET on RTC
[80085.532878] BUG: unable to handle kernel NULL pointer dereference at           (null)
[80085.540936] IP: [<ffffffff812fd1e6>] memcpy_erms+0x6/0x10
[80085.546473] PGD 363fb9067 PUD 3d1d07067 PMD 0
[80085.551076] Oops: 0000 [#713] SMP
[80085.554569] Modules linked in: fuse nfnetlink pci_stub vfio_pci vfio_virqfd vfio_iommu_type1 vfio vhost_net(O) kvm_intel kvm irqbypass xt_ipvs ip_vs_rr ip_vs xt_mark br_netfilter bridge stp aufs macvlan veth xt_addrtype tun cmac ctr ccm ipt_MASQUERADE xt_REDIRECT nf_nat_masquerade_ipv4 xt_nat nf_nat_redirect xt_policy xfrm6_mode_transport xfrm4_mode_transport xfrm6_mode_tunnel xfrm4_mode_tunnel xfrm6_mode_beet xfrm4_mode_beet deflate authencesn ipcomp6 ipcomp xfrm6_tunnel xfrm4_tunnel tunnel6 esp6 esp4 ah6 ah4 xfrm_ipcomp af_key xfrm_user xfrm_algo l2tp_ppp l2tp_core ppp_deflate bsd_comp ppp_mppe echainiv xt_TCPMSS iptable_mangle pppox ppp_async ppp_generic slhc 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_user(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O)
[80085.628492]  target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) udf isofs loop nfsv3 nfs quota_v2 quota_tree synoacl_vfs(PO) iptable_nat nf_nat_ipv4 nf_nat raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xt_conntrack xt_mac xt_geoip(O) compat_xtables(O) nf_conntrack_ipv6 ip6table_filter ip6_tables xt_recent xt_iprange xt_limit xt_state xt_tcpudp xt_multiport xt_LOG nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables x_tables nfsd btrfs ecryptfs zstd_decompress zstd_compress xxhash xor raid6_pq lockd grace rpcsec_gss_krb5 auth_rpcgss sunrpc aesni_intel glue_helper lrw gf128mul ablk_helper apollolake_synobios(PO) hid_generic usbhid hid usblp i915 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm drm_panel_orientation_quirks
[80085.702288]  iosf_mbi fb fbdev video backlight button uhci_hcd ehci_pci ehci_hcd r8168(O) i2c_algo_bit openvswitch gre nf_defrag_ipv6 nf_conntrack igb(O) e1000e(O) sg dm_snapshot dm_bufio crc_itu_t crc_ccitt psnap p8022 llc hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) dm_mod arc4 crc32c_intel cryptd sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance acpi_cpufreq processor cpufreq_stats vxlan ip6_udp_tunnel udp_tunnel zram ip_tunnel etxhci_hcd usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE) [last unloaded: apollolake_synobios]
[80085.760520] CPU: 3 PID: 4856 Comm: scemd Tainted: P      D    OE   4.4.180+ #42214
[80085.768258] Hardware name: System manufacturer System Product Name/B150M-PLUS, BIOS 3806 05/18/2018
[80085.777496] task: ffff88004055d280 ti: ffff88012a65c000 task.ti: ffff88012a65c000
[80085.785166] RIP: 0010:[<ffffffff812fd1e6>]  [<ffffffff812fd1e6>] memcpy_erms+0x6/0x10
[80085.793225] RSP: 0018:ffff88012a65fbb0  EFLAGS: 00010246
[80085.798660] RAX: ffff88012a65fbf0 RBX: ffffffffffffffff RCX: 0000000000000134
[80085.805956] RDX: 0000000000000134 RSI: 0000000000000000 RDI: ffff88012a65fbf0
[80085.813252] RBP: ffff88012a65fbc0 R08: 000000000000000a R09: 00000000000085d6
[80085.820550] R10: 0000000000000005 R11: ffffffff819fe16d R12: ffff88012a65fbf0
[80085.827831] R13: ffff8800abd51a40 R14: ffff88042027c048 R15: ffff8800abd51a40
[80085.835135] FS:  00007f5fe7413700(0000) GS:ffff880433d80000(0000) knlGS:0000000000000000
[80085.843377] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[80085.849279] CR2: 0000000000000000 CR3: 0000000104946000 CR4: 00000000003606f0
[80085.856569] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[80085.863891] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[80085.871196] Stack:
[80085.873241]  ffffffffa000875c 00007f5fe7412320 ffff88012a65fe88 ffffffffa06a452c
[80085.880894]  ffff88012a65fc68 ffff88012a65fc60 ffff88012a65fcf0 0000000000000001
[80085.888512]  0000000100000001 00000000007f1700 0000000000000000 0000000000000000
[80085.896131] Call Trace:
[80085.898639]  [<ffffffffa000875c>] ? rtc_proxy_set_auto_power_on+0x70/0x76 [redpill]
[80085.906437]  [<ffffffffa06a452c>] synobios_ioctl+0x54c/0x1e50 [apollolake_synobios]
[80085.914252]  [<ffffffff81131bd9>] ? unlock_page+0x59/0x60
[80085.919748]  [<ffffffff8115e837>] ? do_wp_page+0x287/0x650
[80085.925356]  [<ffffffff8121ecf9>] ? ext4_getattr+0x19/0x90
[80085.930980]  [<ffffffff81194a20>] ? cp_new_stat+0x110/0x120
[80085.936674]  [<ffffffff811a70d2>] do_vfs_ioctl+0x4d2/0x960
[80085.942248]  [<ffffffff811a7601>] SyS_ioctl+0xa1/0xb0
[80085.947395]  [<ffffffff81579c4a>] entry_SYSCALL_64_fastpath+0x1e/0x8e
[80085.953945] Code: 90 90 90 90 90 eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 <f3> a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38
[80085.974293] RIP  [<ffffffff812fd1e6>] memcpy_erms+0x6/0x10
[80085.979909]  RSP <ffff88012a65fbb0>
[80085.983480] CR2: 0000000000000000
[80085.986852] ---[ end trace 487f34b257519703 ]---

Fix serial ports mess & add inversion

Currently two (for Linux v3) or three (for Linux v4) real serial ports are needed to see full logs. This is inconvenient at best. LKM should be able to handle that using just a single port.

There are three issues at play here:

  • Serial inversion
  • Kernel earlycon => console switching
  • mfgBIOS port usage

Serial inversion

https://github.com/RedPill-TTG/dsm-research/blob/master/quirks/serial-port-swapping.md
In short if a system is doing this we need to reverse that to have all ports as they are physically.

Kernel console

For some reasons we cannot use the same serial port for earlycon and console or otherwise no logs are printed. However, this is probably a PEBKAC as this should work under normal circumstances.

mfgBIOS port usage

The bios module is hardcoded to use /dev/ttyS1. This means we need to avoid that serial port. This is why on v4 running under 918+ there are 3 serial ports:

  • 0 for earlycon
  • 1 for bios
  • 2 for console

On 3615xs we get away with two:

  • 0 for earlycon (not swapped?)
  • 0 for console which is in reality swapped as 1
  • 1 for bios (swapped to real 0)

Kernel Panic or Lockup on DS3615xs image

A number of users on the forum are reporting kernel panics on baremetal installs, or lockups of guests on virtualisation platforms, when running the DS3615xs image specifically. This is typically precipitated by running docker in general, or certain docker images, but may also have been caused by high IO load in some circumstances. A common feature is use of databases (notably influxdb, mariadb, mysql and elasticsearch) but also nginx and jdownloader2.

This has been observed on baremetal HP Gen7 and Gen8 servers, proxmox and ESXi with a variety of Xeon CPUs (E3-1265L V2, E3-1270 V2, E3-1241 V3, E3-1220L V2 and E3-1265L V4), Celeron and AMD.

Most users are on DSM7.0.1-RC1, but I also observed this behaviour when on DSM6.2.4

(edit: also confirmed to affect 7.0 beta and 7.0.1, ie. not the release candidate)

Conversely, a number of users with DS918+ images have reported no issues with running docker or known problematic images (in my case influxdb causes a 100% reproducible crash).

On my baremetal HP Gen8 running 6.2.4 I get the following console output before a reboot:

[  191.452302] Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 3

[  191.487637] CPU: 3 PID: 19775 Comm: containerd-shim Tainted: PF          O 3.10.105 #25556

[  191.528112] Hardware name: HP ProLiant MicroServer Gen8, BIOS J06 04/04/2019

[  191.562597]  ffffffff814c904d ffffffff814c8121 0000000000000010 ffff880109ac8d58

[  191.599118]  ffff880109ac8cf0 0000000000000000 0000000000000003 000000000000002c

[  191.634943]  0000000000000003 ffffffff80000001 0000000000000010 ffff880103817c00

[  191.670604] Call Trace:

[  191.682506]  <NMI>  [<ffffffff814c904d>] ? dump_stack+0xc/0x15

[  191.710494]  [<ffffffff814c8121>] ? panic+0xbb/0x1ce

[  191.735108]  [<ffffffff810a0922>] ? watchdog_overflow_callback+0xb2/0xc0

[  191.768203]  [<ffffffff810b152b>] ? __perf_event_overflow+0x8b/0x240

[  191.799789]  [<ffffffff810b02d4>] ? perf_event_update_userpage+0x14/0xf0

[  191.834349]  [<ffffffff81015411>] ? intel_pmu_handle_irq+0x1d1/0x360

[  191.865505]  [<ffffffff81010026>] ? perf_event_nmi_handler+0x26/0x40

[  191.897683]  [<ffffffff81005fa8>] ? do_nmi+0xf8/0x3e0

[  191.922372]  [<ffffffff814cfa53>] ? end_repeat_nmi+0x1e/0x7e

[  191.950899]  <<EOE>> 

[  191.961095] Rebooting in 3 seconds..

This is seen by others on baremetal when using docker. Virtualisation platform users see 100% CPU usage on their xpenology guest and it becomes unresponsive, requiring a restart of the guest. The majority of kernel panics cite containerd-shim as being at fault, but sometimes (rarely) it will list a process being run inside a docker container (notably influxdb in my case).

This is notably similar to an issue logged with RHEL a number of years ago that they note was fixed in a subsequent kernel release:
https://access.redhat.com/solutions/1354963

Virtual SATA Disk (ESXi) Health Status Not Supported (Preventing Storage Pool Creation)

Can install DSM 7 (3615xs) just fine on ESXi with latest lkm release, however when I try to create a storage pool/volume in DSM, despite the virtual SATA disk showing up okay in Storage Manager, it blocks use of it because the "Health" status is "Not Supported" according to DSM. I know actual "health status" and even SMART will not work/be useful with virtual disks but DSM 7 will at least need to think the virtual disk has a status of "Healthy" in order to let the disk be used. In Jun's loader, the health status shows "Healthy" for virtual disks, even though when you click "Health Info" it shows "Access Error" and no actual health stats.

I am assuming there is a flag somewhere that gets written in DSM on whether a disk supports health status or not and then the actual status of the disk. I did some initial digging and found "/run/synostorage/disks/sdb" contains files that appear to show disk information and certain compatibility flags. While nothing in there says "health" I compared these files with a real DSM 7 system and changed some of them to reflect "normal", "supported", etc. in the appropriate places. This doesn't produce any immediate changes in DSM or Storage Manager for the disk so I tried rebooting DSM but the values in that folder change back. I am assuming there will need to be a way to shim synostorage into thinking the disks are all healthy before DSM is loaded fully. Not sure where to go from here. Some pictures are below.

397392647_ScreenShot2021-08-14at4_08_10PM png f8798545b49f0bec3686f8e8826ce37e

1266430058_ScreenShot2021-08-14at4_08_18PM png 9c5308b62553cac963ab27d49350d9f6

Screen Shot 2021-08-16 at 11 11 37 AM

error: code model kernel does not support PIC mode

Hello redpill devs,

I am a newbie linux dev, and couldn't resist jumping in and testing a bit here.
when running "make modules_prepare" I am getting the following error below stating code model kernel does not support PIC mode - the first command "make oldconfig" worked fine without error.

make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
cc1: error: code model kernel does not support PIC mode
make[1]: *** [/home/user1/syno-custom/redpill-lkm/linux-3.10/./Kbuild:36: kernel/bounds.s] Error 1
make: *** [Makefile:840: prepare0] Error 2

My environment is an ubuntu 20.04 server. I cloned this repo and downloaded/unpacked GPL kernel source per the instructions. Am I missing something else here?

Really appreciate the effort by all devs for this project!

Ren

my DSM Version: 918+_7.0.1_42218 problem: Preventing Storage Pool Creation,Health Status Not Supported

my DSM Version: 918+_7.0.1_42218
HBA card: LSI 9400 16i
problem: Preventing Storage Pool Creation,Health Status Not Supported
微信截图_20211015121355
微信截图_20211015121535

but in terminal use smartctl , I got normal information.

root@test:/etc# smartctl -a /dev/sdj
smartctl 6.5 (build date Feb 20 2021) [x86_64-linux-4.4.180+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Ultrastar
Device Model:     WDC  WUH721818ALE6L4
Serial Number:    3WKVUKLK
LU WWN Device Id: 5 000cca 284f67823
Firmware Version: PCGNW232
User Capacity:    18,000,207,937,536 bytes [18.0 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   Unknown(0x0ffc) (unknown minor revision code: 0x009c)
SATA Version is:  SATA >3.2 (0x1ff), 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Oct 15 12:16:49 2021 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (  101) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (1894) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME                                                   FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate                                              0x000b   100   100   001    Pre-fail  Always       -       0
  2 Throughput_Performance                                           0x0005   100   100   054    Pre-fail  Offline      -       0
  3 Spin_Up_Time                                                     0x0007   099   099   001    Pre-fail  Always       -       25769803845
  4 Start/Stop_Count                                                 0x0012   100   100   000    Old_age   Always       -       1
  5 Reallocated_Sector_Count                                         0x0033   100   100   001    Pre-fail  Always       -       0
  7 Seek_Error_Rate                                                  0x000b   100   100   001    Pre-fail  Always       -       0
  8 Seek_Time_Performance                                            0x0005   100   100   020    Pre-fail  Offline      -       0
  9 Power-On_Hours_Count                                             0x0012   100   100   000    Old_age   Always       -       17
 10 Spin_Retry_Count                                                 0x0013   100   100   001    Pre-fail  Always       -       0
 12 Device_Power_Cycle_Count                                         0x0032   100   100   000    Old_age   Always       -       1
 22 Internal_Environment_Status                                      0x0023   100   100   025    Pre-fail  Always       -       100
192 Power_off_Retract_Count                                          0x0032   100   100   000    Old_age   Always       -       5
193 Load_Cycle_Count                                                 0x0012   100   100   000    Old_age   Always       -       5
194 Temperature                                                      0x0002   046   046   000    Old_age   Always       -       46 (Min/Max 25/47)
196 Reallocation_Event_Count                                         0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector_Count                                     0x0022   100   100   000    Old_age   Always       -       0
198 Off-Line_Scan_Uncorrectable_Sector_Count                         0x0008   100   100   000    Old_age   Offline      -       0
199 Ultra_DMA_CRC_Error_Count                                        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute `delay.`

so any idea?

Originally posted by @ranydb in #14 (comment)

RTC fails to set time on 2021/07/17

We never said we're good at math, so it was to be expected that our code for RTC time validation will be broken in some way (/s). Being more serious the RTC set fails exactly on August 17th 2021:

MfgCompatTime raw data: sec=38 min=1 hr=3 wkd=2 day=17 mth=7 yr=121
Invalid RTC regular year day of month in rtc_proxy_set_time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.