jabawack
Posts: 3
Joined: Thu Dec 03, 2020 9:23 pm

Raspberry PI 4 - M.2 SATA issue

Thu Dec 03, 2020 9:55 pm

Hello Everyone,

i'm facing problem to use raspberry pi 4 8GB (but the same on a RPI3B+) with a m2 sata drive, i bought argon one M.2 case and a SSD M.2 SATA from crucial (MX500 1TB). When i connect through the USB cable i m not able to use it, fdisk -l goes stuck and i see a lot of error on dmesg:

Code: Select all

lsusb
Bus 001 Device 006: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

dmesg
[  196.105919] usb 1-1.2: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[  196.105940] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  196.105955] usb 1-1.2: Product: Forty
[  196.105968] usb 1-1.2: Manufacturer: Argon
[  196.105983] usb 1-1.2: SerialNumber: 0000000000B6
[  196.106922] usb 1-1.2: The driver for the USB controller dwc_otg_hcd does not support scatter-gather which is
[  196.106940] usb 1-1.2: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
[  196.106956] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  196.107426] usb-storage 1-1.2:1.0: Quirks match for vid 174c pid 55aa: 400000
[  196.113090] scsi host0: usb-storage 1-1.2:1.0
[  196.184453] usbcore: registered new interface driver uas
[  197.115067] scsi 0:0:0:0: Direct-Access     Argon    Forty            0    PQ: 0 ANSI: 6
[  197.141295] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  200.656416] sd 0:0:0:0: [sda] 4294902016 512-byte logical blocks: (2.20 TB/2.00 TiB)
[  200.657129] sd 0:0:0:0: [sda] Write Protect is off
[  200.657147] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[  200.657693] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  207.518614] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  207.518667] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  207.518703] blk_update_request: I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  207.518728] Buffer I/O error on dev sda, logical block 0, async page read
[  214.381717] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  214.381772] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  214.381807] blk_update_request: I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  214.381830] Buffer I/O error on dev sda, logical block 0, async page read
[  221.244802] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  221.244857] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
[  221.244885] blk_update_request: I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  221.244910] Buffer I/O error on dev sda, logical block 0, async page read
[  221.244985]  sda: unable to read partition table
[  221.254095] sd 0:0:0:0: [sda] Attached SCSI disk
[  223.532453] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  223.532502] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 ff ff 00 80 00 00 08 00
[  223.532533] blk_update_request: I/O error, dev sda, sector 4294901888 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  230.394386] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  230.394435] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 ff ff 00 80 00 00 08 00
[  230.394468] blk_update_request: I/O error, dev sda, sector 4294901888 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  230.394496] Buffer I/O error on dev sda, logical block 536862736, async page read
a strange thing is the capacity read (4294902016 512-byte logical blocks: (2.20 TB/2.00 TiB)) that is not true. tried on a windows laptop is working fine so i can exclude hardware malfunction.
Tried also using RaspiOS 64bit and ubuntu, i have the same behavior.

Thank you in advance

LTolledo
Posts: 6263
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry PI 4 - M.2 SATA issue

Fri Dec 04, 2020 9:32 am

how much power does your M.2 drive require?
show us (means an image, not words) the nameplate of the M.2 drive to be sure....
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

jabawack
Posts: 3
Joined: Thu Dec 03, 2020 9:23 pm

Re: Raspberry PI 4 - M.2 SATA issue

Fri Dec 04, 2020 6:46 pm

Hi,

here the ssd i use:
ssd2.jpeg
ssd2.jpeg (106.67 KiB) Viewed 4198 times
ssd1.jpeg
ssd1.jpeg (148.94 KiB) Viewed 4198 times
i found also another user user that had the same problem:
https://github.com/raspberrypi/linux/issues/3388

i don't see under voltage messages.

thanks

LTolledo
Posts: 6263
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry PI 4 - M.2 SATA issue

Fri Dec 04, 2020 8:49 pm

Requires more current than the RPi can provide (1.7A vs 1.2A)

get a normal SSD instead.... as use of these M.2 drives in RPi has been deemed "pointless"
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

pidd
Posts: 2799
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: Raspberry PI 4 - M.2 SATA issue

Fri Dec 04, 2020 10:29 pm

Plus your enclosure USB/SATA adaptor doesn't support UASP, which is going to hamper you.

On the power front the Pi can provide 6W and the SSD requires up to 5.6W which doesn't leave enough for the converter inefficiency and adaptor, then there may be keyboards, mice etc.

jabawack
Posts: 3
Joined: Thu Dec 03, 2020 9:23 pm

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 8:56 am

Thank you,

i don't want to use it for booting the OS but only to store data and avoid the external HDD with the usb cable. is anyone aware of some tested m2 SSD that is working?

Regards

LTolledo
Posts: 6263
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 11:58 am

have one here.... a Silicon Power M.2 2880 SATAIII M55 120GB...
M.2 2280 SATA 120GB.jpg
M.2 2280 SATA 120GB.jpg (37.29 KiB) Viewed 4031 times

in this case:
Eluteng M.2 SATA adapter.jpg
Eluteng M.2 SATA adapter.jpg (24.85 KiB) Viewed 4031 times

testing the SSD boot during the early days of the RPi4B (when USB boot not officially supported yet)...it worked then...

plugged it to my RPi3B+ desktop now and it showed up (I've since formatted the drive to EXT4)
SP M.2 SSD on RPi3B+ desktop.jpg
SP M.2 SSD on RPi3B+ desktop.jpg (57.48 KiB) Viewed 4031 times
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

pidd
Posts: 2799
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 2:40 pm

Basically 500MB/s SSDs are low current as required, much higher speed ones are high current. As the Pi can't attain 500MB/s due to bus limitations the slower SSDs are just as good.

There will be the odd exception but not many.

User avatar
HawaiianPi
Posts: 6685
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 7:27 pm

What are you using to power the Pi 4B?

LTolledo wrote:
Fri Dec 04, 2020 8:49 pm
get a normal SSD instead.... as use of these M.2 drives in RPi has been deemed "pointless"
Crucial MX500 is a SATA M.2 SSD so the form-factor shouldn't matter (SATA is SATA whether it's 2.5 inch or M.2 or mSATA).

LTolledo wrote:
Fri Dec 04, 2020 8:49 pm
Requires more current than the RPi can provide (1.7A vs 1.2A)
That's 1.7A at 3.3V (not 5V) and the SSD won't be operating at full performance on a Pi (and won't be demanding max power), so it's unlikely a power problem with the drive itself. From what has been posted it looks like the problem is with the case/enclosure, or perhaps the system's PSU (or both).

The Argon case seems to be using an ASMedia bridge chip, which must have bad firmware since it doesn't even support UASP (or that could be red herring due to other problems). It also looks like it doesn't connect power directly, but passes it through the case, and I assume extra wiring and circuitry (never without loss, so not good when powering an SSD).

I've run a 2.5 inch Crucial MX500 SSD on my 4B2 without any trouble, in spite of its 5V/1.7A power rating (Eluteng adapter with ASMedia chip and good firmware).

From my experience, I'd expect the M.2 version to work as well, as long as it's in a good enclosure. The Argon case and its M.2 interface (as well as its power system) is where I suspect the trouble is. However, I have not tested that combination myself, so ... ¯\_(ツ)_/¯
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

mrlinux2u
Posts: 253
Joined: Sat Sep 24, 2011 8:38 pm

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 7:56 pm

HawaiianPi wrote:
Thu Dec 10, 2020 7:27 pm
What are you using to power the Pi 4B?

LTolledo wrote:
Fri Dec 04, 2020 8:49 pm
get a normal SSD instead.... as use of these M.2 drives in RPi has been deemed "pointless"
Crucial MX500 is a SATA M.2 SSD so the form-factor shouldn't matter (SATA is SATA whether it's 2.5 inch or M.2 or mSATA).

LTolledo wrote:
Fri Dec 04, 2020 8:49 pm
Requires more current than the RPi can provide (1.7A vs 1.2A)
That's 1.7A at 3.3V (not 5V) and the SSD won't be operating at full performance on a Pi (and won't be demanding max power), so it's unlikely a power problem with the drive itself. From what has been posted it looks like the problem is with the case/enclosure, or perhaps the system's PSU (or both).

The Argon case seems to be using an ASMedia bridge chip, which must have bad firmware since it doesn't even support UASP (or that could be red herring due to other problems). It also looks like it doesn't connect power directly, but passes it through the case, and I assume extra wiring and circuitry (never without loss, so not good when powering an SSD).

I've run a 2.5 inch Crucial MX500 SSD on my 4B2 without any trouble, in spite of its 5V/1.7A power rating (Eluteng adapter with ASMedia chip and good firmware).

From my experience, I'd expect the M.2 version to work as well, as long as it's in a good enclosure. The Argon case and its M.2 interface (as well as its power system) is where I suspect the trouble is. However, I have not tested that combination myself, so ... ¯\_(ツ)_/¯
I've got one running with a 240GB WD Green SSD and it's all fine (nice and fast) except for the fact that TRIM isn't supported with the current firmware (confirmed by Argon 40 support). I've tried updating the firmware but you need a Windows box to do it (I've not been able to find any Linux apps that could do the update) and there's no ETA on an version with newer firmware.

User avatar
HawaiianPi
Posts: 6685
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Raspberry PI 4 - M.2 SATA issue

Thu Dec 10, 2020 9:11 pm

mrlinux2u wrote:
Thu Dec 10, 2020 7:56 pm
I've got one running with a 240GB WD Green SSD and it's all fine (nice and fast) except for the fact that TRIM isn't supported with the current firmware (confirmed by Argon 40 support). I've tried updating the firmware but you need a Windows box to do it (I've not been able to find any Linux apps that could do the update) and there's no ETA on an version with newer firmware.
Yea, firmware for ASMedia chips are hard to find. They are not available from ASMedia directly because the tools are not user friendly and you can (and will) brick your enclosure if you have the wrong firmware or flashing utility. This makes it particularly worrisome to download firmware from the sketchy sites you typically find it on.

I had a number of older ASMedia based adapters that needed newer firmware to support TRIM, and I was able to update all but one. The last one reported success when flashing, but failed to restart and is now completely dead (not even detected when connected to a system). Overall a good result, as I was able to upgrade most of them, and they were cheap enough that the loss of one was not a big deal. However, if that adapter cost $45 like the Argon One case I would probably feel differently.

I have not seen any ASMedia flashing tools for Linux, so if a firmware update becomes available for the Argon One case, you will almost certainly need to run it in Windows.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

hugomon
Posts: 1
Joined: Mon Jan 18, 2021 1:51 pm

Re: Raspberry PI 4 - M.2 SATA issue

Mon Jan 18, 2021 2:01 pm

Trim is working if you upgrade the firmware version to 141126_A1_EE_82 : https://www.station-drivers.com/index.p ... 53&lang=en (sorry, windows only)
Then create this file:

Code: Select all

sudo nano /etc/udev/rules.d/98-uas-trim-scsi-unmap.rules
and add this line:

Code: Select all

ACTION=="add|change", ATTRS{idVendor}=="174c", ATTRS{idProduct}=="55aa", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"
Reboot and try if trim is working:

Code: Select all

sudo fstrim -v /

raspihando
Posts: 4
Joined: Mon Feb 01, 2021 11:03 am

Re: Raspberry PI 4 - M.2 SATA issue

Mon Feb 01, 2021 11:12 am

hi it all, i wrote to the argon support this question:
i recently purchached 2x Argon_ONE_M.2_Case and want to know if trim is support on the m2-usb controller?
And if not can you send me a firmware update for the controller to support trim ?
this is the answer from argon support:
Thanks for reaching out.
The current board does not support trim but our team is currently working on this so that future releases have trim support.
so for me it sounds like they have to change the hardware to support trim ? because they write me future realeases will have trim enabled. Why they are not just provide a firmware update?

@hugomon can u confirm u are used the above firmware update on your Argon M2 case and trim is working?
or maybe anyone else tested and can confirm ?

User avatar
Ry_Darcy
Posts: 95
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Raspberry PI 4 - M.2 SATA issue

Mon Feb 08, 2021 7:28 pm

Hello all,

a general question.. How did you attach the bottom part (where the M2 SSD lives) of the Argon M2 to Doze to perform the firmware update? USB-to-USB?

Regards,


Ry

raspihando
Posts: 4
Joined: Mon Feb 01, 2021 11:03 am

Re: Raspberry PI 4 - M.2 SATA issue

Mon Feb 08, 2021 7:31 pm

yes with usb-a to usb-a cable and i can confirm myself with the update above trim is working.

User avatar
Ry_Darcy
Posts: 95
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Raspberry PI 4 - M.2 SATA issue

Mon Feb 08, 2021 7:51 pm

I suspected so. Appreciate the prompt reply. Thank you.


Regards,


Ry.

User avatar
Ry_Darcy
Posts: 95
Joined: Sat Aug 29, 2020 1:18 pm
Location: EU

Re: Raspberry PI 4 - M.2 SATA issue

Thu Feb 11, 2021 3:28 pm

I can confirm that with firmware update 141126_A1_EE_82 (via doze) that Trim is now working.

Regards,

Ry

0x00
Posts: 4
Joined: Fri Feb 12, 2021 12:10 am

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 12:34 am

Hi, thanks for bringing up the topic. I feel like this is one of the most ridiculous buys I have every made in my life.
If I understood correctly, even if one succeeded in flashing an officially unsupported and unavailable firmware from early 2019 through an even more unavailable application in an asian language I dont understand a word of onto the adapter, one is left with a drive that still does not support UASP through again, unsupported activation of quirks and performs like a twenty year old device on a "real" SCSI-port?

What were they thinking when they were outlining the specifications of the (argonone m.2) device ?
I am getting 30MB/s through GBit LAN constantly and it bugs me so much I am going to return at least the case that I have just bought.

Would you be so kind and give me an idea of the speed that is realized after activating trim?

Due to no access to USB-A 2x male cable I am left wondering whether I can not even try it out myself. I might at least use the SSD further. Do you have a recommendation when it comes to (the fastest) enclosure /alternatives to the argon RPI case for a "Kingston SA400M8/480G"? It is claimed to run on 3.3v with 1A.

Thanks in advance

raspihando
Posts: 4
Joined: Mon Feb 01, 2021 11:03 am

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 4:58 pm

getting between 50-70 MB/s with Samba.I´m really satisfied with the m2 case for now. uasp is working out of the box. no quirks needed. and also trim is working. Running 24/7 here so far stable

Image
Attachments
Unbenannt.JPG
smb speed
Unbenannt.JPG (19.78 KiB) Viewed 3403 times

0x00
Posts: 4
Joined: Fri Feb 12, 2021 12:10 am

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 5:15 pm

Thanks.
That is, using the tool provided in the above link, using the firmware that comes along with it and not changing a parameter?
You say there is no need for quirks: did you delete the line line in the corresponding config then?
I assume you formatted the ssd within Raspiannas ext4?

raspihando
Posts: 4
Joined: Mon Feb 01, 2021 11:03 am

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 5:36 pm

That is, using the tool provided in the above link, using the firmware that comes along with it and not changing a parameter?
yes

You say there is no need for quirks: did you delete the line line in the corresponding config then?
yes i never used that line, the m2 case is also mentioned here for working without quirks
https://jamesachambers.com/new-raspberr ... oot-guide/


I assume you formatted the ssd within Raspiannas ext4?
yes

JVini0166
Posts: 5
Joined: Thu Feb 11, 2021 3:47 pm

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 6:19 pm

Guys I am having the same problem, I used a M2 SSD with enclosure USB 3.0 and both has support UAS/UASP and suddenly the ports stop and disconnect and shows the same error in dmesg, but also with my SanDisk Ultra 3.0 PenDrive, both happens with UAS and USB-STORAGE driver with quirks, as well I guess it's not energy problem because it's only my PenDrive connected and the same happens after some hours, minutes or days... All USBs keep freezed until reboot.

0x00
Posts: 4
Joined: Fri Feb 12, 2021 12:10 am

Re: Raspberry PI 4 - M.2 SATA issue

Fri Feb 12, 2021 7:12 pm

hestitated, then, did it. I had two FAILs updating. not the best of feelings. Then, setup the exact folder structure requested in the manual that came along the file but only changing to another USB-port would work, but that could be because I removed the SSD, also.
Thanks for the link, I didnt know that one, just ordered a UAS external case for 15 quit this morning.

I have 60-90MB/s over samba but dont have a comparison since using sftp before, and just now remembering the limitation of it.

setup is a 4B-8, raspian lite, bootloader and updates up to date as of 20210212.
Kingston SA400M8/480G on Pi4 8GB within an ArgonOne M.2 enclosure

Had benchmarks before and after update via the link provided in your reference, benchmark used was :
# sudo curl https://raw.githubusercontent.com/TheRe ... Storage.sh | sudo bash


#############
# before update #
#############

RandRead: 15373 - RandWrite: 23611 - Read: 25418 - Write: 12241

Category Test Result

HDParm Disk Read 229.85 MB/s
HDParm Cached Disk Read 139.11 MB/s
DD Disk Write 179 MB/s
FIO 4k random read 18467 IOPS (73868 KB/s)
FIO 4k random write 4026 IOPS (16106 KB/s)
IOZone 4k read 25418 KB/s
IOZone 4k write 12241 KB/s
IOZone 4k random read 15373 KB/s
IOZone 4k random write 23611 KB/s
----------------------
Score: 6326


#################################
# post update, trim enabled, quirks disabled #
#################################

RandRead: 13817 - RandWrite: 6408 - Read: 25672 - Write: 12038

Category Test Result

HDParm Disk Read 231.53 MB/s
HDParm Cached Disk Read 163.65 MB/s
DD Disk Write 176 MB/s
FIO 4k random read 19068 IOPS (76275 KB/s)
FIO 4k random write 4292 IOPS (17170 KB/s)
IOZone 4k read 25672 KB/s
IOZone 4k write 12038 KB/s
IOZone 4k random read 13817 KB/s
IOZone 4k random write 6408 KB/s

Score: 4564


#################################
# post update, trim enabled, quirks enabled #
#################################

RandRead: 14418 - RandWrite: 23198 - Read: 25128 - Write: 11102

Category Test Result

HDParm Disk Read 144.38 MB/s
HDParm Cached Disk Read 100.00 MB/s
DD Disk Write 146 MB/s
FIO 4k random read 2735 IOPS (10943 KB/s)
FIO 4k random write 2975 IOPS (11903 KB/s)
IOZone 4k read 25128 KB/s
IOZone 4k write 11102 KB/s
IOZone 4k random read 14418 KB/s
IOZone 4k random write 23198 KB/s

Score: 5160

jellied-handball
Posts: 3
Joined: Sun Jan 31, 2021 3:08 pm

Re: Raspberry PI 4 - M.2 SATA issue

Sun Feb 21, 2021 8:17 pm

Hi All

Is it possible to verify that this station-drivers.com firmware has not been tampered with in anyway so that it could harbour malware?

I'm no expert but it seems possible that this could occur? [1] Its a real shame argon have produced a product for SSDs that doesn't support TRIM. Especially given how compact it is and well it passively cools.

I think they should put a note on the retail product pages about this limitation.

[1] https://www.howtogeek.com/203061/don%E2 ... y-problem/

jellied-handball
Posts: 3
Joined: Sun Jan 31, 2021 3:08 pm

Re: Raspberry PI 4 - M.2 SATA issue

Sun Feb 21, 2021 8:19 pm

Sorry I forgot to mention that my previous post was in regards to the Argon M2 case.

Return to “Troubleshooting”