You are not logged in.

#1 2021-11-08 21:29:24

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

ASMedia (ASM1062) SATA card working with wrong module?

Drives are not listed by BIOS / OS when connected through the card.

  • Motherboard ASRock J4105B-ITX

  • Keizen SATA III card, 10xSATA 3.0 port PCIe 1x (ASM1062 driver)

  • supports AHCI1.0, IDE mode

BIOS settings

  • SATA controllers - enabled

  • SATA Mode selection - AHCI - enabled (and cannot be changed)

  • Secure boot - Disabled

  • Serial Port 1 - Enabled, Address: 3F8h/IRQ4

  • Serial Port 2 - Enabled, Address: 2F8h/IRQ3

  • PCIE1 Link speed - Auto [Auto, Gen 1, Gen 2]

  • ASPM - Auto [Auto, L0s, L1, L0sL1, Disabled]

lspci -v output

01:00.0 IDE interface: ASMedia Technology Inc. Device 0624 (rev 01) (prog-if 85 [PCI native mode-only controller, supports bus mastering])
	Subsystem: ASMedia Technology Inc. Device 1060
	Flags: fast devsel, IRQ 22
	I/O ports at e040 [size=8]
	I/O ports at e030 [size=4]
	I/O ports at e020 [size=8]
	I/O ports at e010 [size=4]
	I/O ports at e000 [size=16]
	Memory at a1280000 (32-bit, non-prefetchable) [size=8K]
	Expansion ROM at a1200000 [disabled] [size=512K]
	Capabilities: <access denied>
	Kernel modules: pata_acpi, ata_generic

00:12.0 SATA controller: Intel Corporation Celeron/Pentium Silver Processor SATA Controller (rev 03) (prog-if 01 [AHCI 1.0])
	Subsystem: ASRock Incorporation Device 31e3
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 124
	Memory at a1314000 (32-bit, non-prefetchable) [size=8K]
	Memory at a1318000 (32-bit, non-prefetchable) [size=256]
	I/O ports at f090 [size=8]
	I/O ports at f080 [size=4]
	I/O ports at f060 [size=32]
	Memory at a1317000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci

I suppose those kernel modules should be ahci, right?

cat /etc/mkinitcpio.conf

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(ahci)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block sata lvm2 filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

How to fix or further diagnose this? Thank you!


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

#2 2021-11-08 21:50:27

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: ASMedia (ASM1062) SATA card working with wrong module?

What is the VID:PID of the device?  lspci -n or lspci -nn.
The product string lists 0624 which only just gained support https://github.com/torvalds/linux/commi … e8d491cd16

Offline

#3 2021-11-09 07:07:40

sebastian-65
Member
Registered: 2021-11-08
Posts: 31

Re: ASMedia (ASM1062) SATA card working with wrong module?

01:00.0 IDE interface [0101]: ASMedia Technology Inc. Device [1b21:0624] (rev 01)

So, solution is to wait until this update finds its way into linux package, right?

Last edited by sebastian-65 (2021-11-09 07:15:49)


I'm not the sharpest tool in the shed. Say it to me like I'm 5, please!

Arch | ZFS | systemd | XFCE | ASUS S435 | CPU: Intel 11th gen | GPU: Intel Iris Xe Graphics

Offline

#4 2021-11-09 16:31:29

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: ASMedia (ASM1062) SATA card working with wrong module?

Yes or build a kernel with the fix. Arch_Build_System#Retrieve_PKGBUILD_source_using_Git
Then add to line 43

  git cherry-pick -n 8c0ff6af6823d3e90314a45c6725c6e8d491cd16

Then build the updated package.

Offline

Board footer

Powered by FluxBB