What M.2 SATA SSD should I get for my Raspberry Pi 4B?

March 9, 2023, 19:33

jimmyhoughjr

i just use the cameras built in zoom

jimmyhoughjr

and zoom on my mac

jimmyhoughjr

ive already hacked a heat sink

andy_s

there are many ways 🙂

jimmyhoughjr

and i suspect i do the mod and the chipset still isnt compatible with the kernel

andy_s

then you can easily unsolder

jimmyhoughjr

i tried rigging a y cable with a dumb unpowered hub but it had no effect

jimmyhoughjr

unsoldering is harder tha soldering

andy_s

JFYI IMO you won't need any magnifying, as there most likely will be big-ass electrolytic capacitor on that rail

jimmyhoughjr

i might still have a tiny scar on my eyelid from a solder blob

jimmyhoughjr

is a small as enclosure

andy_s

got picz?

jimmyhoughjr

barely bigger than the nvme module itself

andy_s

if you can give me pics (without drive), i can tell you where to solder

jimmyhoughjr


jimmyhoughjr

i cna find it, i have a bs ee

jimmyhoughjr

and a sw dev which means im lazy

jimmyhoughjr

and hacing wasted a solid 40 hours last week on this am fatigued

jimmyhoughjr

"6.0 W (Active)9.0 W (Active)30.00 mW (Idle)"

jimmyhoughjr

5V at 500 ma would be 2.5 W

andy_s

ye

andy_s

6W at most for pi, since 1.2A total

jimmyhoughjr

seems udner 6 is what im seeing for the 500 GB version

jimmyhoughjr

so maybe it is a power issue

jimmyhoughjr

always wanted one of those usb power meters

jimmyhoughjr

need a powered hub and that would settle it

andy_s

try this add usb-storage.quirks=0bda:9210: to /boot/config.txt

jimmyhoughjr

i could wire some shit up but cant afford to fry my pi4 8 GB

jimmyhoughjr

I might try it again later

andy_s

i didn't mention this quirk before, i mentioned different one

jimmyhoughjr

i suspect faster storage might help uild times

jimmyhoughjr

yeah ive not paid attention to the hex really but tried a few over the week

jimmyhoughjr

its inconvenient as the pi is in another room

andy_s

those hex identify USB device

andy_s

vid:pid

andy_s

0bda = realtek

andy_s

9210 = product ID

jimmyhoughjr

makes sense

jimmyhoughjr

i thought maybe they were live addresses or something

andy_s

nope, if you do lsusb -nn you will see that

jimmyhoughjr

i forget what article i found that seemed it was just not compatiible

jimmyhoughjr

i might try that in a few just to see

andy_s

sorry, just lsusb

andy_s

-nn is for lspci 🙂

jimmyhoughjr

jimmyhoughjr@pi4:~/workspace/gh/repowatcher $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
jimmyhoughjr@pi4:~/workspace/gh/repowatcher $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:9210 Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

jimmyhoughjr

notice its not on the 3 hub but the 2

jimmyhoughjr

jimmyhoughjr@pi4:~/workspace/gh/repowatcher $ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
jimmyhoughjr@pi4:~/workspace/gh/repowatcher $ 

jimmyhoughjr

same cable same drive same blue usb 3 ports

andy_s

=not detected on 3

jimmyhoughjr

different result on pi from any other device

andy_s

Usb3 can work without usb2 lanes even connected

andy_s

And vice versa

jimmyhoughjr

I guess that could be consistent with a power issue

jimmyhoughjr

Yes they are different host controllers

jimmyhoughjr

but its plugged into the 3 port it should be on the 3 host controller

andy_s

Modify that config l, reboot and see

jimmyhoughjr

at eof or where?

andy_s

Ye

andy_s

Newline

jimmyhoughjr

rebooting

jimmyhoughjr

might take a sec if it tries to boot from the usb

andy_s

Oof

jimmyhoughjr

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M         |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

jimmyhoughjr

still usb 2

jimmyhoughjr

wonder if there is a way to see the power draw on the ports

andy_s

Not on pi iirc

jimmyhoughjr

the host controllers should know that info

jimmyhoughjr

well the pi can detect undervoltage

andy_s

Yep, because u3 reports that

jimmyhoughjr

that could be a hw feature

jimmyhoughjr

ive not seen any undervoltage warnings

jimmyhoughjr

and as ive seena million times this last week,

jimmyhoughjr

jimmyhoughjr@pi4:~ $ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 119.1G  0 disk 
├─mmcblk0p1 179:1    0   256M  0 part /boot
└─mmcblk0p2 179:2    0 118.9G  0 part /
jimmyhoughjr@pi4:~ $ 

jimmyhoughjr

doesnt even show up as a block device

andy_s

Atleast i hope it should be in config and not cmdline... went afk for a while

andy_s

(Dining)

jimmyhoughjr

but
jimmyhoughjr@pi4:~ $ ls /dev/sd*
/dev/sda

jimmyhoughjr

np yeah i thought maybe it was in cmdline from my prior work on it

andy_s

meow me /proc/partition, will you?

jimmyhoughjr

woof cat: /proc/partition: No such file or directory

andy_s

The eff???

jimmyhoughjr

I should find some brain fuel as well. probably more coffee and sugar

jimmyhoughjr

im running raspbian 64 bit

andy_s

Maybe partitions... ?

andy_s

Use tab 🙂

jimmyhoughjr

jimmyhoughjr@pi4:~ $ sudo cat /proc/partitions
major minor  #blocks  name

   1        0       4096 ram0
   1        1       4096 ram1
   1        2       4096 ram2
   1        3       4096 ram3
   1        4       4096 ram4
   1        5       4096 ram5
   1        6       4096 ram6
   1        7       4096 ram7
   1        8       4096 ram8
   1        9       4096 ram9
   1       10       4096 ram10
   1       11       4096 ram11
   1       12       4096 ram12
   1       13       4096 ram13
   1       14       4096 ram14
   1       15       4096 ram15
 179        0  124936192 mmcblk0
 179        1     262144 mmcblk0p1
 179        2  124669952 mmcblk0p2

andy_s

No drive

jimmyhoughjr

yeah

jimmyhoughjr

i formatted it GUID,, FAT

andy_s

dmesg | grep sda

jimmyhoughjr

seems FAT worked before

jimmyhoughjr

jimmyhoughjr@pi4:~ $ dmesg | grep sda
[    2.414171] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=DRIVER_OK
[    2.414234] sd 0:0:0:0: [sda] Sense Key : 0x5 [current] 
[    2.414243] sd 0:0:0:0: [sda] ASC=0x20 ASCQ=0x0 
[    2.414262] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[    2.414268] sd 0:0:0:0: [sda] 0-byte physical blocks
[    2.417749] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[    2.421318] sd 0:0:0:0: [sda] Asking for cache data failed
[    2.421336] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.433902] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=DRIVER_OK
[    2.433930] sd 0:0:0:0: [sda] Sense Key : 0x5 [current] 
[    2.433935] sd 0:0:0:0: [sda] ASC=0x20 ASCQ=0x0 
[    2.441132] sd 0:0:0:0: [sda] Attached SCSI disk

jimmyhoughjr

think this has to do with usb ass stoage vs UAS or soemthing

andy_s

That quirk is for enabling uas

andy_s

that quirk might work, found this thread where they mention the same issue you are facing https://github.com/raspberrypi/linux/issues/4130

andy_s

(Sent to wrong thread)

jimmyhoughjr

ill have to try and get a 3.0 powered hub. i know these 20 minute builds suck and suspect storge speed might be a factor

andy_s

fingers crossed