TOS kernel does not containt driver necessary for booting from SSD connected in SATA miniPcie card
I'm not able to boot from the SSD connected to ASM1062 SATA PCI card. The bootloader start loading system from the attached SSD but then hangs, waiting for the SSD.
My guess is the kernel is missing the kmod-scsi-core
and kmod-ata-ahci
drivers.
Model: Turris Omnia
Turris Omnia:
RAM size: 2048 MiB
Serial Number: 0000000B0000F662
Regdomain set to **
Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000
Hit any key to stop autoboot: 0
scanning bus for devices...
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq led only pmp fbss pio slum part sxs
SATA link 0 timeout.
Target spinup took 0 ms.
AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq stag led clo pmp pio slum part ccc sxs
Device 0: (1:0) Vendor: ATA Prod.: Samsung SSD 850 Rev: EMT0
Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Device 0: (1:0) Vendor: ATA Prod.: Samsung SSD 850 Rev: EMT0
Type: Hard Disk
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
... is now current device
Scanning scsi 0:1...
Found U-Boot script /@/boot/boot.scr
1199 bytes read in 23 ms (50.8 KiB/s)
## Executing script at 01800000
gpio: pin gpio@71_4 (gpio 4) value is 1
18834 bytes read in 28 ms (656.3 KiB/s)
3357424 bytes read in 88 ms (36.4 MiB/s)
Kernel image @ 0x1000000 [ 0x000000 - 0x333af0 ]
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000
Loading Device Tree to 0fff8000, end 0ffff991 ... OK
Starting kernel ...
Removing MTD device #0 (s25fl164k) with use count 1
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.245 (packaging@turris.cz) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 9882a54)) #0 SMP Mon Sep 13 00:59:31 2021
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Turris Omnia
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x4cc with crng_init=0
[ 0.000000] percpu: Embedded 11 pages/cpu s15372 r8192 d21492 u45056
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 522560
[ 0.000000] Kernel command line: earlyprintk rootwait console=ttyS0,115200 rootfstype=btrfs root=PARTUUID=6cb2c736-5a21-4a58-89a9-06010688cdf9 rootflags=commit=5,subvol=@ rw cfg80211.freg=**
[ 0.000000] Bootloader command line not present
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 2066964K/2097152K available (7168K kernel code, 239K rwdata, 1680K rodata, 1024K init, 257K bss, 30188K reserved, 0K cma-reserved, 1310720K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB)
[ 0.000000] .data : 0xc0b00000 - 0xc0b3bd80 ( 240 kB)
[ 0.000000] .bss : 0xc0b3bd80 - 0xc0b7c3d0 ( 258 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 D prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[ 0.000007] sched_clock: 64 bits at 800MHz, resolution 1ns, wraps every 4398046511103ns
[ 0.000017] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns
[ 0.000031] Switching to timer-based delay loop, resolution 1ns
[ 0.000162] Ignoring duplicate/late registration of read_current_timer delay
[ 0.000169] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[ 0.000336] Console: colour dummy device 80x30
[ 0.000354] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.00 BogoMIPS (lpj=8000000)
[ 0.000361] pid_max: default: 32768 minimum: 301
[ 0.000422] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000428] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000720] CPU: Testing write buffer coherency: ok
[ 0.000733] CPU0: Spectre v2: using BPIALL workaround
[ 0.000859] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.000986] Setting up static identity map for 0x100000 - 0x100060
[ 0.001060] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[ 0.001137] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.001188] Hierarchical SRCU implementation.
[ 0.001386] smp: Bringing up secondary CPUs ...
[ 0.001523] Booting CPU 1
[ 0.001691] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.001693] CPU1: Spectre v2: using BPIALL workaround
[ 0.001746] smp: Brought up 1 node, 2 CPUs
[ 0.001751] SMP: Total of 2 processors activated (3200.00 BogoMIPS).
[ 0.001754] CPU: All CPU(s) started in SVC mode.
[ 0.002292] devtmpfs: initialized
[ 0.003908] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.003964] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.003972] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.004029] xor: measuring software checksum speed
[ 0.100069] arm4regs : 2403.600 MB/sec
[ 0.200069] 8regs : 1942.400 MB/sec
[ 0.300067] 32regs : 2058.800 MB/sec
[ 0.400068] neon : 1830.400 MB/sec
[ 0.400072] xor: using function: arm4regs (2403.600 MB/sec)
[ 0.400078] pinctrl core: initialized pinctrl subsystem
[ 0.400429] NET: Registered protocol family 16
[ 0.400969] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.401530] cpuidle: using governor ladder
[ 0.401621] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.401625] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.401746] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[ 0.401752] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[ 0.570275] raid6: int32x1 gen() 171 MB/s
[ 0.740186] raid6: int32x1 xor() 243 MB/s
[ 0.910189] raid6: int32x2 gen() 255 MB/s
[ 1.080115] raid6: int32x2 xor() 288 MB/s
[ 1.250232] raid6: int32x4 gen() 304 MB/s
[ 1.420119] raid6: int32x4 xor() 252 MB/s
[ 1.590147] raid6: int32x8 gen() 328 MB/s
[ 1.760096] raid6: int32x8 xor() 229 MB/s
[ 1.930095] raid6: neonx1 gen() 1111 MB/s
[ 2.100069] raid6: neonx1 xor() 1058 MB/s
[ 2.270085] raid6: neonx2 gen() 1303 MB/s
[ 2.440091] raid6: neonx2 xor() 1351 MB/s
[ 2.610105] raid6: neonx4 gen() 1070 MB/s
[ 2.780091] raid6: neonx4 xor() 1329 MB/s
[ 2.950128] raid6: neonx8 gen() 1014 MB/s
[ 3.120075] raid6: neonx8 xor() 914 MB/s
[ 3.120079] raid6: using algorithm neonx2 gen() 1303 MB/s
[ 3.120082] raid6: .... xor() 1351 MB/s, rmw enabled
[ 3.120085] raid6: using neon recovery algorithm
[ 3.120384] SCSI subsystem initialized
[ 3.120616] usbcore: registered new interface driver usbfs
[ 3.120646] usbcore: registered new interface driver hub
[ 3.120675] usbcore: registered new device driver usb
[ 3.121318] clocksource: Switched to clocksource arm_global_timer
[ 3.125229] NET: Registered protocol family 2
[ 3.125329] IP idents hash table entries: 16384 (order: 5, 131072 bytes)
[ 3.125776] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 3.125814] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 3.125875] TCP: Hash tables configured (established 8192 bind 8192)
[ 3.125925] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 3.125953] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 3.126048] NET: Registered protocol family 1
[ 3.126396] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 3.127393] Crashlog allocated RAM at address 0x3f00000
[ 3.127483] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 3.129427] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.129435] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.131173] bounce: pool size: 64 pages
[ 3.131184] io scheduler noop registered
[ 3.131189] io scheduler deadline registered (default)
[ 3.131806] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[ 3.133406] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[ 3.133419] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 3.133424] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 3.133429] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.133677] PCI: bus0: Fast back to back transfers disabled
[ 3.133684] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 3.133691] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 3.133697] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 3.133927] PCI: bus1: Fast back to back transfers disabled
[ 3.134154] PCI: bus2: Fast back to back transfers disabled
[ 3.134370] PCI: bus3: Fast back to back transfers disabled
[ 3.134399] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[ 3.134405] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0200000-0xe04fffff]
[ 3.134410] pci 0000:00:03.0: BAR 8: assigned [mem 0xe0100000-0xe01fffff]
[ 3.134415] pci 0000:00:03.0: BAR 7: assigned [io 0x10000-0x10fff]
[ 3.134421] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[ 3.134432] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 3.134438] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff]
[ 3.134446] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe03fffff 64bit]
[ 3.134456] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0400000-0xe040ffff pref]
[ 3.134460] pci 0000:00:02.0: PCI bridge to [bus 02]
[ 3.134466] pci 0000:00:02.0: bridge window [mem 0xe0200000-0xe04fffff]
[ 3.134473] pci 0000:03:00.0: BAR 6: assigned [mem 0xe0100000-0xe010ffff pref]
[ 3.134478] pci 0000:03:00.0: BAR 5: assigned [mem 0xe0110000-0xe01101ff]
[ 3.134485] pci 0000:03:00.0: BAR 4: assigned [io 0x10000-0x1001f]
[ 3.134491] pci 0000:03:00.0: BAR 0: assigned [io 0x10020-0x10027]
[ 3.134497] pci 0000:03:00.0: BAR 2: assigned [io 0x10028-0x1002f]
[ 3.134503] pci 0000:03:00.0: BAR 1: assigned [io 0x10030-0x10033]
[ 3.134509] pci 0000:03:00.0: BAR 3: assigned [io 0x10034-0x10037]
[ 3.134515] pci 0000:00:03.0: PCI bridge to [bus 03]
[ 3.134520] pci 0000:00:03.0: bridge window [io 0x10000-0x10fff]
[ 3.134525] pci 0000:00:03.0: bridge window [mem 0xe0100000-0xe01fffff]
[ 3.134759] mv_xor f1060800.xor: Marvell shared XOR driver
[ 3.191791] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 3.191914] mv_xor f1060900.xor: Marvell shared XOR driver
[ 3.251756] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 3.251991] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 3.253139] console [ttyS0] disabled
[ 3.273210] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 15625000) is a 16550A
[ 4.240302] console [ttyS0] enabled
[ 4.264066] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 23, base_baud = 15625000) is a 16550A
[ 4.274884] loop: module loaded
[ 4.278349] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 4.287440] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[ 4.296603] scsi host0: ahci-mvebu
[ 4.300156] scsi host1: ahci-mvebu
[ 4.303645] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 44
[ 4.311591] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 44
[ 4.320305] m25p80 spi0.0: s25fl164k (8192 Kbytes)
[ 4.325195] 3 fixed-partitions partitions found on MTD device spi0.0
[ 4.331580] Creating 3 MTD partitions on "spi0.0":
[ 4.336383] 0x0000000f0000-0x000000100000 : "u-boot-env"
[ 4.342045] 0x000000100000-0x000000800000 : "Rescue system"
[ 4.347911] 0x000000000000-0x0000000f0000 : "U-Boot"
[ 4.353359] libphy: Fixed MDIO Bus: probed
[ 4.357803] libphy: orion_mdio_bus: probed
[ 4.362444] mv88e6085 f1072004.mdio-mii:10: switch 0x1760 detected: Marvell 88E6176, revision 1
[ 4.532960] libphy: mv88e6xxx SMI: probed
[ 4.540785] mvneta f1070000.ethernet eth0: Using hardware mac address d8:58:d7:00:5d:c2
[ 4.549565] mvneta f1030000.ethernet eth1: Using hardware mac address d8:58:d7:00:5d:c0
[ 4.558273] mvneta f1034000.ethernet eth2: Using hardware mac address d8:58:d7:00:5d:c1
[ 4.566458] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.573010] ehci-pci: EHCI PCI platform driver
[ 4.577492] ehci-platform: EHCI generic platform driver
[ 4.582799] ehci-orion: EHCI orion driver
[ 4.586910] orion-ehci f1058000.usb: EHCI Host Controller
[ 4.592338] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[ 4.599969] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
[ 4.631320] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[ 4.637550] hub 1-0:1.0: USB hub found
[ 4.641334] hub 1-0:1.0: 1 port detected
[ 4.645285] ata1: SATA link down (SStatus 0 SControl 300)
[ 4.650718] ata2: SATA link down (SStatus 0 SControl 300)
[ 4.656510] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 4.661860] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[ 4.669416] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[ 4.678690] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[ 4.684798] hub 2-0:1.0: USB hub found
[ 4.688589] hub 2-0:1.0: 1 port detected
[ 4.692629] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 4.697958] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[ 4.705474] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[ 4.711965] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.720282] hub 3-0:1.0: USB hub found
[ 4.724078] hub 3-0:1.0: 1 port detected
[ 4.728181] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 4.733523] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[ 4.741076] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[ 4.750341] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[ 4.756355] hub 4-0:1.0: USB hub found
[ 4.760126] hub 4-0:1.0: 1 port detected
[ 4.764162] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 4.769490] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[ 4.777004] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[ 4.783491] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.791823] hub 5-0:1.0: USB hub found
[ 4.795595] hub 5-0:1.0: 1 port detected
[ 4.799730] usbcore: registered new interface driver usb-storage
[ 4.806185] armada38x-rtc f10a3800.rtc: registered as rtc0
[ 4.811819] i2c /dev entries driver
[ 4.825817] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 4.838295] orion_wdt: Initial timeout 171 sec
[ 4.843018] sdhci: Secure Digital Host Controller Interface driver
[ 4.849211] sdhci: Copyright(c) Pierre Ossman
[ 4.921317] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[ 4.928819] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.935346] marvell-cesa f1090000.crypto: CESA device successfully registered
[ 4.942946] NET: Registered protocol family 10
[ 4.948985] Segment Routing with IPv6
[ 4.952695] NET: Registered protocol family 17
[ 4.957164] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.971427] 8021q: 802.1Q VLAN Support v1.8
[ 4.975698] Registering SWP/SWPB emulation handler
[ 4.981863] Btrfs loaded, crc32c=crc32c-generic
[ 4.987338] mv88e6085 f1072004.mdio-mii:10: switch 0x1760 detected: Marvell 88E6176, revision 1
[ 5.097921] mmc0: new high speed MMC card at address 0001
[ 5.103539] mmcblk0: mmc0:0001 H8G4a� 7.28 GiB
[ 5.108151] mmcblk0boot0: mmc0:0001 H8G4a� partition 1 4.00 MiB
[ 5.114160] mmcblk0boot1: mmc0:0001 H8G4a� partition 2 4.00 MiB
[ 5.120153] mmcblk0rpmb: mmc0:0001 H8G4a� partition 3 4.00 MiB, chardev (250:0)
[ 5.128622] mmcblk0: p1
[ 5.139900] libphy: mv88e6xxx SMI: probed
[ 5.143985] DSA: switch 0 0 parsed
[ 5.147399] DSA: tree 0 parsed
[ 5.845415] mv88e6085 f1072004.mdio-mii:10 lan0 (uninitialized): PHY [mv88e6xxx-1:00] driver [Marvell 88E1540]
[ 5.966121] mv88e6085 f1072004.mdio-mii:10 lan1 (uninitialized): PHY [mv88e6xxx-1:01] driver [Marvell 88E1540]
[ 6.085414] mv88e6085 f1072004.mdio-mii:10 lan2 (uninitialized): PHY [mv88e6xxx-1:02] driver [Marvell 88E1540]
[ 6.205414] mv88e6085 f1072004.mdio-mii:10 lan3 (uninitialized): PHY [mv88e6xxx-1:03] driver [Marvell 88E1540]
[ 6.325414] mv88e6085 f1072004.mdio-mii:10 lan4 (uninitialized): PHY [mv88e6xxx-1:04] driver [Marvell 88E1540]
[ 6.345589] Waiting for root device PARTUUID=6cb2c736-5a21-4a58-89a9-06010688cdf9...
<WDT_RESET>
Edited by Jan Betik