LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-30-2021, 10:42 AM   #1
Lafayettes
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Rep: Reputation: Disabled
Debian not detect HHD connected to PCIe JMB363


I have installed Debian GNU/Linux 11 (bullseye) pointing to stable repositories on an HP ProLiant MicroServer N54L. I have mounted a JMicron Technology Corp. JMB363 SATA/IDE PCIe card mounted with 2 SATA ports but Debian not detect HDD connected to it.

Code:
$ sudo lshw -class storage -class disk
  *-sata
       description: SATA controller
       product: JMB363 SATA/IDE Controller
       vendor: JMicron Technology Corp.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 03
       width: 32 bits
       clock: 33MHz
       capabilities: sata pm pciexpress ahci_1.0 bus_master cap_list rom
       configuration: driver=ahci latency=0
       resources: irq:16 memory:fe8fe000-fe8fffff memory:fe8e0000-fe8effff
  *-ide
       description: IDE interface
       product: JMB363 SATA/IDE Controller
       vendor: JMicron Technology Corp.
       physical id: 0.1
       bus info: pci@0000:02:00.1
       version: 03
       width: 32 bits
       clock: 33MHz
       capabilities: ide pm pci_native_mode bus_master cap_list
       configuration: driver=pata_jmicron latency=0
       resources: irq:17 ioport:e800(size=8) ioport:e400(size=4) ioport:e000(size=8) ioport:d800(size=4) ioport:d400(size=16)
  *-sata
       description: SATA controller
       product: SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 11
       bus info: pci@0000:00:11.0
       logical name: scsi2
       logical name: scsi3
       logical name: scsi5
       logical name: scsi7
       version: 40
       width: 32 bits
       clock: 66MHz
       capabilities: sata msi ahci_1.0 bus_master cap_list emulated
       configuration: driver=ahci latency=64
       resources: irq:26 ioport:b000(size=8) ioport:a000(size=4) ioport:9000(size=8) ioport:8000(size=4) ioport:7000(size=16) memory:fe5ffc00-fe5fffff
     *-disk:0
          description: ATA Disk
          product: ST4000DM000-1F21
          physical id: 0
          bus info: scsi@2:0.0.0
          logical name: /dev/sda
          version: CC52
          serial: Z3015717
          size: 3726GiB (4TB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=942e21c1-b3b2-456e-9d48-e44aef3d1990 logicalsectorsize=512 sectorsize=4096
     *-disk:1
          description: ATA Disk
          product: VB0250EAVER
          physical id: 1
          bus info: scsi@3:0.0.0
          logical name: /dev/sdb
          version: HPG9
          serial: Z3TM3VZN
          size: 232GiB (250GB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=724730a2-cbcc-43bd-8eb2-b2b6c81a0ea5 logicalsectorsize=512 sectorsize=512
     *-disk:2
          description: ATA Disk
          product: ST3500418AS
          physical id: 2
          bus info: scsi@5:0.0.0
          logical name: /dev/sdc
          version: CC68
          serial: 9VMY1Q1Y
          size: 465GiB (500GB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=010ef4b8-049d-4bb1-8ac3-0af7cfcb74f0 logicalsectorsize=512 sectorsize=512
     *-disk:3
          description: ATA Disk
          product: ST2000DM001-1CH1
          physical id: 3
          bus info: scsi@7:0.0.0
          logical name: /dev/sdd
          version: CC29
          serial: S1E25VHF
          size: 1863GiB (2TB)
          capabilities: gpt-1.00 partitioned partitioned:gpt
          configuration: ansiversion=5 guid=d1ddd3ea-d35b-4911-9cf8-b733644e23e1 logicalsectorsize=512 sectorsize=4096
  *-usb
       description: Mass storage device
       product: Ultra Fit
       vendor: SanDisk
       physical id: 3
       bus info: usb@2:3
       logical name: scsi10
       version: 1.00
       serial: 0501cb82d4dae624ddc00c7d217e2ed45c43a2b5fb64a3589b48a03c0c5ebdafb460000000000000
       capabilities: usb-2.10 scsi emulated
       configuration: driver=usb-storage maxpower=224mA speed=480Mbit/s
     *-disk
          description: SCSI Disk
          product: Ultra Fit
          vendor: SanDisk
          physical id: 0.0.0
          bus info: scsi@10:0.0.0
          logical name: /dev/sde
          version: 1.00
          serial: 0501cb82d4dae624ddc0
          size: 14GiB (15GB)
          capabilities: removable
          configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
        *-medium
             physical id: 0
             logical name: /dev/sde
             size: 14GiB (15GB)
             capabilities: partitioned partitioned:dos
             configuration: signature=e1149ae8
  *-ide
       description: IDE interface
       product: SB7x0/SB8x0/SB9x0 IDE Controller
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 14.1
       bus info: pci@0000:00:14.1
       version: 40
       width: 32 bits
       clock: 66MHz
       capabilities: ide isa_compat_mode pci_native_mode bus_master
       configuration: driver=pata_atiixp latency=64
       resources: irq:17 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:ff00(size=16)
Code:
$ sudo dmesg | grep ata
[    0.000000] BIOS-e820: [mem 0x0000000077fa0000-0x0000000077fadfff] ACPI data
[    0.063543] Memory: 261404K/1965236K available (12295K kernel code, 2544K rwdata, 7552K rodata, 2396K init, 3700K bss, 97328K reserved, 0K cma-reserved)
[    2.152006] Write protecting the kernel read-only data: 22528k
[    2.153037] Freeing unused kernel image (text/rodata gap) memory: 2040K
[    2.153402] Freeing unused kernel image (rodata/data gap) memory: 640K
[    2.377876] libata version 3.00 loaded.
[    2.420852] scsi host0: pata_atiixp
[    2.426486] pata_jmicron 0000:02:00.1: enabling device (0000 -> 0001)
[    2.427312] scsi host1: pata_atiixp
[    2.427379] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[    2.427381] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
[    2.428807] scsi host4: pata_jmicron
[    2.429293] scsi host6: pata_jmicron
[    2.429348] ata7: PATA max UDMA/100 cmd 0xe800 ctl 0xe400 bmdma 0xd400 irq 17
[    2.429351] ata8: PATA max UDMA/100 cmd 0xe000 ctl 0xd800 bmdma 0xd408 irq 17
[    2.430837] ata3: SATA max UDMA/133 abar m1024@0xfe5ffc00 port 0xfe5ffd00 irq 26
[    2.430840] ata4: SATA max UDMA/133 abar m1024@0xfe5ffc00 port 0xfe5ffd80 irq 26
[    2.430843] ata5: SATA max UDMA/133 abar m1024@0xfe5ffc00 port 0xfe5ffe00 irq 26
[    2.430845] ata6: SATA max UDMA/133 abar m1024@0xfe5ffc00 port 0xfe5ffe80 irq 26
[    2.442495] ata9: SATA max UDMA/133 abar m8192@0xfe8fe000 port 0xfe8fe100 irq 16
[    2.442498] ata10: SATA max UDMA/133 abar m8192@0xfe8fe000 port 0xfe8fe180 irq 16
[    2.759283] ata9: SATA link down (SStatus 0 SControl 300)
[    2.759324] ata10: SATA link down (SStatus 0 SControl 300)
[    2.911945] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.911972] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.911991] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.912019] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.912599] ata4.00: failed to enable AA (error_mask=0x1)
[    2.912642] ata4.00: ATA-8: VB0250EAVER, HPG9, max UDMA/100
[    2.912644] ata4.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.912857] ata6.00: ATA-9: ST2000DM001-1CH164, CC29, max UDMA/133
[    2.912876] ata6.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 32), AA
[    2.913165] ata5.00: ATA-8: ST3500418AS, CC68, max UDMA/100
[    2.913171] ata5.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.913453] ata4.00: failed to enable AA (error_mask=0x1)
[    2.913508] ata4.00: configured for UDMA/100
[    2.914470] ata5.00: configured for UDMA/100
[    3.106960] ata3.00: ATA-8: ST4000DM000-1F2168, CC52, max UDMA/133
[    3.106964] ata3.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 32), AA
[    3.107830] ata3.00: configured for UDMA/133
[    3.108092] ata6.00: configured for UDMA/133
[    5.079014] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)
[    6.920204] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    7.813291] acpi_cpufreq: overriding BIOS provided _PSD data
[    9.044954] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[    9.111132] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[    9.213614] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    9.219474] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
I understand that Debian detects the PCIe JMicron but that the ata ports are down:

Code:
[    2.759283] ata9: SATA link down (SStatus 0 SControl 300)
[    2.759324] ata10: SATA link down (SStatus 0 SControl 300)
Can you help me to make the system detect the disks connected to the JMicron?

Thank you.
 
Old 08-31-2021, 01:07 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Lafayettes View Post
I have installed Debian GNU/Linux 11 (bullseye) pointing to stable repositories on an HP ProLiant MicroServer N54L. I have mounted a JMicron Technology Corp. JMB363 SATA/IDE PCIe card mounted with 2 SATA ports but Debian not detect HDD connected to it.

Code:
$ sudo lshw -class storage -class disk
  *-sata
       description: SATA controller
       product: JMB363 SATA/IDE Controller
       vendor: JMicron Technology Corp.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 03
       width: 32 bits
       clock: 33MHz
       capabilities: sata pm pciexpress ahci_1.0 bus_master cap_list rom
       configuration: driver=ahci latency=0
       resources: irq:16 memory:fe8fe000-fe8fffff memory:fe8e0000-fe8effff
  *-ide
       description: IDE interface
       product: JMB363 SATA/IDE Controller
       vendor: JMicron Technology Corp.
       physical id: 0.1
       bus info: pci@0000:02:00.1                 <--- the IDE controller
       version: 03
       width: 32 bits
       clock: 33MHz
       capabilities: ide pm pci_native_mode bus_master cap_list
       configuration: driver=pata_jmicron latency=0
       resources: irq:17 ioport:e800(size=8) ioport:e400(size=4) ioport:e000(size=8) ioport:d800(size=4) ioport:d400(size=16)
  *-sata
Code:
$ sudo dmesg | grep ata
[    0.000000] BIOS-e820: [mem 0x0000000077fa0000-0x0000000077fadfff] ACPI data
[    0.063543] Memory: 261404K/1965236K available (12295K kernel code, 2544K rwdata, 7552K rodata, 2396K init, 3700K bss, 97328K reserved, 0K cma-reserved)
[    2.152006] Write protecting the kernel read-only data: 22528k
[    2.153037] Freeing unused kernel image (text/rodata gap) memory: 2040K
[    2.153402] Freeing unused kernel image (rodata/data gap) memory: 640K
[    2.377876] libata version 3.00 loaded.
[    2.420852] scsi host0: pata_atiixp
[    2.426486] pata_jmicron 0000:02:00.1: enabling device (0000 -> 0001)   <--- the IDE controller
I understand that Debian detects the PCIe JMicron but that the ata ports are down:

Code:
[    2.759283] ata9: SATA link down (SStatus 0 SControl 300)
[    2.759324] ata10: SATA link down (SStatus 0 SControl 300)
Can you help me to make the system detect the disks connected to the JMicron?

Thank you.
Not much help to you but it does not detect the SATA part of the card only the IDE ports. I have got no clue how that is fixed. I would try a different add-in card with a say Marvel chipset on it I have used them in the past and they worked fine.

Edit: turned on my spare machine which has such a card in it.

Code:
root@zeus-H370M:~# lshw -class storage -class disk
  *-sata                    
       description: SATA controller
       product: 88SE9230 PCIe SATA 6Gb/s Controller
       vendor: Marvell Technology Group Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 10
       width: 32 bits
       clock: 33MHz
       capabilities: sata pm msi pciexpress ahci_1.0 bus_master cap_list rom
       configuration: driver=ahci latency=0
       resources: irq:144 ioport:5050(size=8) ioport:5040(size=4) ioport:5030(size=8) ioport:5020(size=4) ioport:5000(size=32) memory:a2510000-a25107ff memory:a2500000-a250ffff
  *-sata
With lspci -v.

Code:
root@zeus-H370M:~# lspci -v
....
01:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 10) (prog-if 01 [AHCI 1.0])
	Subsystem: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller
	Flags: bus master, fast devsel, latency 0, IRQ 144
	I/O ports at 5050 [size=8]
	I/O ports at 5040 [size=4]
	I/O ports at 5030 [size=8]
	I/O ports at 5020 [size=4]
	I/O ports at 5000 [size=32]
	Memory at a2510000 (32-bit, non-prefetchable) [size=2K]
	Expansion ROM at a2500000 [disabled] [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [70] Express Legacy Endpoint, MSI 00
	Capabilities: [e0] SATA HBA v0.0
	Capabilities: [100] Advanced Error Reporting
	Kernel driver in use: ahci
	Kernel modules: ahci
Now this machine has a little newer kernel on it than Bullseye but it worked fine with the original install kernel which was the 5.8 series if my memory serves me well.

Code:
root@zeus-H370M:~# uname -a
Linux zeus-H370M 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
See if you can find one of them cards cheap.

Last edited by HappyTux; 08-31-2021 at 01:32 PM. Reason: additional information.
 
Old 09-03-2021, 08:30 AM   #3
Lafayettes
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello,
I understand that the only solution is a new linux compatible card.
Thank you very much for your answer and the recommendation of PCIe card.
 
Old 09-03-2021, 07:18 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
You are welcome, good luck with it.
 
Old 09-07-2021, 12:20 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,866
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
IME the JMB363 is a poor excuse for a drive controller, but it can work in Bullseye, as long as the drive is available at POST:
Code:
# lspci | grep JM
02:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
02:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
# inxi -S
System:    Host: p5bse Kernel: 5.10.0-8-amd64 x86_64 bits: 64 Console: tty pts/0 Distro: Debian GNU/Linux 11 (bullseye)
# inxi -Da
Drives:...
           ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM001-1CH164 family: Barracuda 7200.14 (AF)
           size: 1.82 TiB block-size: physical: 4096 B logical: 512 B sata: 3.1 speed: 1.5 Gb/s type: HDD rpm: 7200
           serial: W1E54Y73 rev: CC27 temp: 32 C scheme: MBR
           SMART: yes state: enabled health: PASSED on: 19d 9h cycles: 177 read: 2.97 TiB written: 3.29 TiB Pre-Fail:
           attribute: Spin_Retry_Count value: 100 worst: 100 threshold: 97
# lshw -class storage -class disk | grep -A11 '\-sata'
  *-sata
       description: SATA controller
       product: JMB363 SATA/IDE Controller
       vendor: JMicron Technology Corp.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 03
       width: 32 bits
       clock: 33MHz
       capabilities: sata pm pciexpress ahci_1.0 bus_master cap_list rom
       configuration: driver=ahci latency=0
       resources: irq:19 memory:efefe000-efefffff memory:efee0000-efeeffff
# dmesg  | grep ata4
[    1.381844] ata4: SATA max UDMA/133 cmd 0xbc00 ctl 0xb880 bmdma 0xb808 irq 18
[    3.639561] ata4: COMRESET failed (errno=-32)
[    3.645865] ata4: reset failed (errno=-32), retrying in 8 secs
[   13.834736] ata4: COMRESET failed (errno=-32)
[   13.841089] ata4: reset failed (errno=-32), retrying in 8 secs
[   27.371433] ata4: link is slow to respond, please be patient (ready=0)
[   29.299464] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   32.381995] ata4.00: failed to IDENTIFY (I/O error, err_mask=0x2)
[   39.931434] ata4: link is slow to respond, please be patient (ready=0)
[   44.331434] ata4: SRST failed (errno=-16)
[   44.855467] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   44.874678] ata4.00: failed to IDENTIFY (I/O error, err_mask=0x2)
[   44.881167] ata4: limiting SATA link speed to 1.5 Gbps
[   52.259927] ata4: COMRESET failed (errno=-32)
[   52.266149] ata4: reset failed (errno=-32), retrying in 8 secs
[   62.520007] ata4: COMRESET failed (errno=-32)
[   62.525983] ata4: reset failed (errno=-32), retrying in 8 secs
[   70.971469] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   70.979708] ata4.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[   70.985351] ata4.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[   71.173949] ata4.00: configured for UDMA/133
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.04 - JMicron JMB363 SATA controller - kernel freeze ^andrea^ Linux - Hardware 27 11-30-2012 07:40 AM
Linux installation CD cannot detect the HHD. How to add the driver? fastyns Linux - Hardware 5 12-29-2010 09:01 AM
Linux installation CD cannot detect the HHD. How to add the driver? fastyns Linux - Software 2 12-18-2010 11:00 AM
LXer: Install CentOS 4.4 on ASUS P5B Deluxe utilizing IDE-CDROM (Jmicron JMB363 PATA port) LXer Syndicated Linux News 0 02-25-2007 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration