0

I have an M.2 to nvme Hat added to my rpi 5. it has a lexar nm620 512gb ssd connected to it which is pcieGen3x4 but the hat i use supports Gen2x3 which i know cause a lower speed and nothing more ( maybe?) . I flashed Ubuntu server to a USB stick and booted from that. I was planning to move everything from the USB to the SSD with its relative commands but when I ran the lsblk command on the rpi, it didn't seem to see an SSD drive connected. all it saw was loop0 and sda which was the USB stick itself. what commands I tried :

sudo dmesg | grep -i USB;
sudo dmesg | grep -i nvme;
lspci | grep -i nvme;
echo 1 | sudo tee /sys/class/block/sd*/device/rescan;

sudo partprobe; sudo fdisk -l;

lsusb sudo lspci -vv

none of the commands above showed any sign of a bad connector or failing any drivers or anything. it just wasn't there. it could see the pcie port which is on the rpi itself but couldn't see anything connected to it. I changed /boot/firmware/config.txt file and added these two lines

dtparam=pciex1
dtparam=pciex1_gen=2

and rebooted multiple times but nothing changed. the sudo lspci -vv command ggave these logs about the pcie bridge which chatgpt ( sorry :) ) couldn't see anything inside:

00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 42
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: 00000000-005fffff [size=6M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: <access denied>
        Kernel driver in use: pcieport

then i thought to myself maybe linux can't see RAID drives and since the ssd is brand new and haven't formatted has some partitioning problem or something related to the way it is configured but since rpi doesn't have a bios, it got nowhere. i use the original power supply and the light on the hat turns on, indicating it has power. what am i missing here?

0 Answers0