Comments (10)
@geerlingguy I tested this card and it worked fine. The chip is ASM1062. But we need to recompile kernel with SATA driver.
pi@raspberrypi ~ sudo lspci
00:00.0 PCI bridge: Broadcom Limited Device 2711 (rev 20)
01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
pi@raspberrypi ~ sudo fdisk -l /dev/sda
Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: GLOWAY FER60GS3-
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
pi@raspberrypi ~ sudo smartctl -a /dev/sda
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-5.4.83-v7l+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: GLOWAY FER60GS3-S7
Serial Number: DA3D05C020ACC0010047
LU WWN Device Id: 5 000000 000000000
Firmware Version: F1AC20
User Capacity: 60,022,480,896 bytes [60.0 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Jan 30 12:39:45 2021 GMT
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: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: ( 0) seconds.
Offline data collection
capabilities: (0x71) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0002) Does not save 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 1) minutes.
Conveyance self-test routine
recommended polling time: ( 1) 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0000 100 100 000 Old_age Offline - 0
5 Reallocated_Sector_Ct 0x0000 100 100 000 Old_age Offline - 1
9 Power_On_Hours 0x0000 100 100 000 Old_age Offline - 149
12 Power_Cycle_Count 0x0000 100 100 000 Old_age Offline - 690
160 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
161 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 58
163 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 20
164 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 28663
165 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 101
166 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 0
167 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 55
168 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 3000
169 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 99
175 Program_Fail_Count_Chip 0x0000 100 100 000 Old_age Offline - 7
176 Erase_Fail_Count_Chip 0x0000 100 100 000 Old_age Offline - 0
177 Wear_Leveling_Count 0x0000 100 100 050 Old_age Offline - 0
178 Used_Rsvd_Blk_Cnt_Chip 0x0000 100 100 000 Old_age Offline - 1
181 Program_Fail_Cnt_Total 0x0000 100 100 000 Old_age Offline - 7
182 Erase_Fail_Count_Total 0x0000 100 100 000 Old_age Offline - 0
192 Power-Off_Retract_Count 0x0000 100 100 000 Old_age Offline - 55
194 Temperature_Celsius 0x0000 100 100 000 Old_age Offline - 24
195 Hardware_ECC_Recovered 0x0000 100 100 000 Old_age Offline - 282
196 Reallocated_Event_Count 0x0000 100 100 016 Old_age Offline - 0
197 Current_Pending_Sector 0x0000 100 100 000 Old_age Offline - 0
198 Offline_Uncorrectable 0x0000 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0000 100 100 050 Old_age Offline - 0
232 Available_Reservd_Space 0x0000 100 100 000 Old_age Offline - 98
241 Total_LBAs_Written 0x0000 100 100 000 Old_age Offline - 52988
242 Total_LBAs_Read 0x0000 100 100 000 Old_age Offline - 70158
245 Unknown_Attribute 0x0000 100 100 000 Old_age Offline - 114652
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
6 0 65535 Read_scanning was never started
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.
from raspberry-pi-pcie-devices.
@geerlingguy Any plans for ASM1061R which supports RAID ?
from raspberry-pi-pcie-devices.
@dlednik if someone can send me one, maybe. But I'm a bit backlogged testing all these storage adapters as it is!
from raspberry-pi-pcie-devices.
@MrThanlon as several cards with different chipsets are mention in this issue, could you please clarify what card you are referencing with "I tested this card" ?
from raspberry-pi-pcie-devices.
@MrThanlon as several cards with different chipsets are mention in this issue, could you please clarify what card you are referencing with "I tested this card" ?
The one on the picture.
from raspberry-pi-pcie-devices.
@MrThanlon as several cards with different chipsets are mention in this issue, could you please clarify what card you are referencing with "I tested this card" ?
I assume he means the Diyeeni PCI-E Express to 4-Port Sata/ESATA Riser Adapter Card.
from raspberry-pi-pcie-devices.
The chip is ASM1062 ... The one on the picture
On the picture there's an ASM1061 but it doesn't really matter whether it's ASM1061 or ASM1062 since those are software-wise the same, the latter only could establish an x2 link but that doesn't matter anyway with the single lane CM4.
Linux will report an ASM1061 sometimes as ASM1062 and vice versa (depending on version of pciutils
), see this nice example where booting an RockPro64 with two different OS images results in lspci -vvv
outputting with Ubuntu this
01:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02) (prog-if 85 [Master SecO PriO])
Subsystem: ASMedia Technology Inc. ASM1061 SATA IDE Controller
...and directly afterwards booting Debian Stretch that:
01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02) (prog-if 01 [AHCI 1.0])
Subsystem: ASMedia Technology Inc. ASM1062 Serial ATA Controller
The card tested there is the same as the one shown in first post of this issue.
Anyway: both ASM1061 and ASM1062 work fine with Linux on ARM but users should be aware that adding SATA port multipliers to the SATA ports is not the best idea.
from raspberry-pi-pcie-devices.
I got a similar card working. I haven't done any detailed testing, but my card seems to work with the kernel recompiled as specified below. I will update here if I run into any problems.
Instructions Used: #1 (comment)
Model: MHQJRH PCI Express SATA 3.0 Controller Card
Chipset: ASM1061
Amazon Link: https://www.amazon.com/dp/B07M942LN9
UPDATE
After starting over with a fresh install I can't seem to get this card to work again. I'm getting IO errors
[ 1.269887] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.272597] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.278909] PCI: bus0: Fast back to back transfers disabled
[ 1.281454] pci 0000:00:00.0: bridge configuration invalid ([bus ff-ff]), reconfiguring
[ 1.284344] pci 0000:01:00.0: [1b21:0612] type 00 class 0x010601
[ 1.286892] pci 0000:01:00.0: reg 0x10: [io 0x0000-0x0007]
[ 1.289508] pci 0000:01:00.0: reg 0x14: [io 0x0000-0x0003]
[ 1.292072] pci 0000:01:00.0: reg 0x18: [io 0x0000-0x0007]
[ 1.294597] pci 0000:01:00.0: reg 0x1c: [io 0x0000-0x0003]
[ 1.297097] pci 0000:01:00.0: reg 0x20: [io 0x0000-0x001f]
[ 1.299583] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[ 1.302041] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 1.308127] PCI: bus1: Fast back to back transfers disabled
[ 1.310548] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.312981] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.315396] pci 0000:01:00.0: BAR 6: assigned [mem 0x600000000-0x60000ffff pref]
[ 1.317802] pci 0000:01:00.0: BAR 5: assigned [mem 0x600010000-0x6000101ff]
[ 1.320048] pci 0000:01:00.0: BAR 4: no space for [io size 0x0020]
[ 1.322320] pci 0000:01:00.0: BAR 4: failed to assign [io size 0x0020]
[ 1.324599] pci 0000:01:00.0: BAR 0: no space for [io size 0x0008]
[ 1.326853] pci 0000:01:00.0: BAR 0: failed to assign [io size 0x0008]
[ 1.329124] pci 0000:01:00.0: BAR 2: no space for [io size 0x0008]
[ 1.331322] pci 0000:01:00.0: BAR 2: failed to assign [io size 0x0008]
[ 1.333520] pci 0000:01:00.0: BAR 1: no space for [io size 0x0004]
[ 1.335679] pci 0000:01:00.0: BAR 1: failed to assign [io size 0x0004]
[ 1.337760] pci 0000:01:00.0: BAR 3: no space for [io size 0x0004]
[ 1.339922] pci 0000:01:00.0: BAR 3: failed to assign [io size 0x0004]
[ 1.342075] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.344278] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.346931] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[ 1.349361] pcieport 0000:00:00.0: PME: Signaling with IRQ 66
(snip)
[ 5.441200] libata version 3.00 loaded.
[ 5.455309] mc: Linux media interface: v0.10
[ 5.457317] ahci 0000:01:00.0: version 3.0
[ 5.457375] ahci 0000:01:00.0: enabling device (0140 -> 0142)
[ 5.457759] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[ 5.457838] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[ 5.457862] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
[ 5.490179] scsi host0: ahci
[ 5.495260] scsi host1: ahci
[ 5.495679] ata1: SATA max UDMA/133 abar m512@0x600010000 port 0x600010100 irq 67
[ 5.495702] ata2: SATA max UDMA/133 abar m512@0x600010000 port 0x600010180 irq 67
(snip)
[ 100.586761] ata2.00: exception Emask 0x10 SAct 0x3c SErr 0x400000 action 0x6 frozen
[ 100.586772] ata2.00: irq_stat 0x08000008, interface fatal error
[ 100.586781] ata2: SError: { Handshk }
[ 100.586791] ata2.00: failed command: WRITE FPDMA QUEUED
[ 100.586803] ata2.00: cmd 61/a8:10:68:29:04/00:00:00:00:00/40 tag 2 ncq dma 86016 out
res 40/00:28:60:2b:04/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 100.586811] ata2.00: status: { DRDY }
[ 100.586818] ata2.00: failed command: WRITE FPDMA QUEUED
[ 100.586829] ata2.00: cmd 61/a8:18:10:2a:04/00:00:00:00:00/40 tag 3 ncq dma 86016 out
res 40/00:28:60:2b:04/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 100.586836] ata2.00: status: { DRDY }
[ 100.586843] ata2.00: failed command: WRITE FPDMA QUEUED
[ 100.586853] ata2.00: cmd 61/a8:20:b8:2a:04/00:00:00:00:00/40 tag 4 ncq dma 86016 out
res 40/00:28:60:2b:04/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 100.586860] ata2.00: status: { DRDY }
[ 100.586867] ata2.00: failed command: WRITE FPDMA QUEUED
[ 100.586877] ata2.00: cmd 61/a8:28:60:2b:04/00:00:00:00:00/40 tag 5 ncq dma 86016 out
res 40/00:28:60:2b:04/00:00:00:00:00/40 Emask 0x10 (ATA bus error)
[ 100.586884] ata2.00: status: { DRDY }
[ 100.586899] ata2: hard resetting link
[ 110.587092] ata2: softreset failed (1st FIS failed)
[ 110.587113] ata2: hard resetting link
[ 120.587630] ata2: softreset failed (1st FIS failed)
[ 120.587654] ata2: hard resetting link
[ 155.588011] ata2: softreset failed (1st FIS failed)
[ 155.588037] ata2: limiting SATA link speed to 3.0 Gbps
[ 155.588057] ata2: hard resetting link
[ 160.588444] ata2: softreset failed (1st FIS failed)
[ 160.588473] ata2: reset failed, giving up
[ 160.588492] ata2.00: disabled
[ 160.588597] ata2: EH complete
[ 160.588772] sd 1:0:0:0: [sda] tag#31 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=60s
[ 160.588816] sd 1:0:0:0: [sda] tag#31 CDB: opcode=0x2a 2a 00 00 04 35 e0 00 00 a8 00
[ 160.588854] blk_update_request: I/O error, dev sda, sector 275936 op 0x1:(WRITE) flags 0x104000 phys_s
eg 168 prio class 0
(snip)
[ 160.588893] Buffer I/O error on dev sda1, logical block 273888, lost async page write
[ 160.588939] Buffer I/O error on dev sda1, logical block 273889, lost async page write
[ 160.588973] Buffer I/O error on dev sda1, logical block 273890, lost async page write
[ 160.589005] Buffer I/O error on dev sda1, logical block 273891, lost async page write
[ 160.589040] Buffer I/O error on dev sda1, logical block 273892, lost async page write
[ 160.589076] Buffer I/O error on dev sda1, logical block 273893, lost async page write
[ 160.589112] Buffer I/O error on dev sda1, logical block 273894, lost async page write
[ 160.589143] Buffer I/O error on dev sda1, logical block 273895, lost async page write
[ 160.589203] Buffer I/O error on dev sda1, logical block 273896, lost async page write
[ 160.589239] Buffer I/O error on dev sda1, logical block 273897, lost async page write
[ 160.590865] sd 1:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=60s
[ 160.590901] sd 1:0:0:0: [sda] tag#0 CDB: opcode=0x2a 2a 00 00 04 35 38 00 00 a8 00
[ 160.590931] blk_update_request: I/O error, dev sda, sector 275768 op 0x1:(WRITE) flags 0x104000 phys_s
eg 168 prio class 0
from raspberry-pi-pcie-devices.
Hi, guys!
I wana to develop own pci/sata bridge on this chip (asm 1061/2). Have anybody an expirience?
from raspberry-pi-pcie-devices.
Seems like Kubesail have gotten this chip working in their PiBox (#112).
from raspberry-pi-pcie-devices.
Related Issues (20)
- Add HackerGadgets NVMe HAT HOT 1
- Robert lukan carrier - 40pin, dual camera, open hardware
- 52Pi NVDAC - 2230/2242 NVMe and PCM5122 DAC HAT for RPi5 HOT 1
- 52Pi NVDigi - 2230/2242 NVMe and WM8804 Digi HAT for RPi5 HOT 1
- Add 52Pi 2.5G PCIe Network Adapter HOT 2
- Add 52Pi PD Power HAT HOT 4
- Add NVPI5-2242T and NVPI5-2280B HAT HOT 1
- 2.5 Gigabit M.2 M+B key Ethernet Card NIC HOT 1
- Pi 5 nvme expansion boards hat testing HOT 1
- Waveshare PCIe To M.2 Adapter for Raspberry Pi 5 Testing HOT 4
- tested - SK Hynix Gold P31 1TB NVME Pi 5 4GB
- Add Waveshare PoE HAT (F) for Raspberry Pi 5 HOT 18
- Add HAT: Mcuzone MP4GM 4G LTE Module for Pi 5
- Add HAT: Mcuzone MPW7 E-Key WiFi 7 HAT HOT 1
- ASMedia Technology Inc. Device 1064 M.2 NVME to Mini SAS Expansion Card Support 4 Ports SATA3.0 6Gbps HDD SSD SATA Controller SFF8087 HOT 1
- Add HAT: Dual M.2 X1004 Board from Geekworm HOT 1
- Add Pi 5 HAT: Mcuzone MP2.5GD Pi 5 Dual 2.5 Gbps Ethernet HAT
- Test LSI 9440-8i on rpi5 with "FW in FAULT state" HOT 1
- Add PI-2230-SSD, an SSD expansion board for Raspberry PI 5 HOT 1
- Delock NVME Ethernet I225-V Adapter on RPI5 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberry-pi-pcie-devices.