Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4417

HATs and other add-ons • NVMe storage not recognized

$
0
0
Hello everyone,

I am new to the world of Raspberry and have bought a Raspberry Pi 5. I need more storage space for my projects than the SD cards can offer me, which is why I wanted to connect an alternative storage medium to the Raspberry. Thanks to the new PCIe connection on the Raspberry Pi 5, I saw the option of using it to connect a storage device. For this I bought an NVMe Hat from Pineberry (see https://pineberrypi.com/products/hat-to ... 0-for-rpi5) and an NVMe storage from Transcend MTS400S 1 TB Internal M.2 PCIe NVMe SSD 2242.

Before I started installing the Hat and NVMe storage, I first set up the Raspberry Pi 5 using the SD card slot. I use RasPI OS Lite in the latest version and use the Raspberry purely via SSH. Everything has worked great so far and I can access and configure the OS properly. Then I started working on the Hat and NVME memory. I screwed these onto the Raspberry and connected them with the PCIe FPC cable. Then I switched on the Raspberry again and immediately saw that the Hat was receiving power, as there is a corresponding LED on the Hat.

I then have to configure the OS so that the memory is recognized. I followed the instructions from RaspberryOS itself (see https://www.raspberrypi.com/documentati ... bling-pcie) and also from the manufacturer of the Hat (see https://docs.pineberrypi.com/tutorial-c ... r-hatdrive). Unfortunately, the memory was not recognized after the restart. After rummaging through several videos, forums and blogs to solve the problem myself, I have to admit defeat after several days and hope that someone in this forum can help me. To analyze the problem, I provide some information in the following sections that may help.

Current configuration of the boot/firmware/config.txt:

Code:

...[all]# Enable the PCIe external connectordtparam=pciex1# Force Gen 3.0 speedsdtparam=pciex1_gen=3
I had already tried it without PCIe Gen 3.0, the problem remains identical.
Current configuration of the rpi-eeprom-config:

Code:

[all]BOOT_UART=1POWER_OFF_ON_HALT=0BOOT_ORDER=0xf416
It is not currently booting from the NVMe storage because nothing has been copied or installed on it yet, so the RaspberryPi starts, tries to boot and then jumps to the SD card.

Code:

dmesg | grep pcie[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E2:0F:A3 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=d2e5f867-02 rootfstype=ext4 fsck.repair=yes rootwait[    1.501713] brcm-pcie 1000110000.pcie: host bridge /axi/pcie@110000 ranges:[    1.508725] brcm-pcie 1000110000.pcie:   No bus range found for /axi/pcie@110000, using [bus 00-ff][    1.517842] brcm-pcie 1000110000.pcie:      MEM 0x1b00000000..0x1bfffffffb -> 0x0000000000[    1.526154] brcm-pcie 1000110000.pcie:      MEM 0x1800000000..0x1affffffff -> 0x0400000000[    1.534468] brcm-pcie 1000110000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000[    1.543959] brcm-pcie 1000110000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    1.552269] brcm-pcie 1000110000.pcie: Forcing gen 3[    1.557297] brcm-pcie 1000110000.pcie: PCI host bridge to bus 0000:00[    2.035799] brcm-pcie 1000110000.pcie: link down[    2.060725] pcieport 0000:00:00.0: PME: Signaling with IRQ 39[    2.066588] pcieport 0000:00:00.0: AER: enabled with IRQ 39[    2.084051] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:[    2.091046] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff][    2.100152] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000[    2.108462] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000[    2.116784] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000[    2.125094] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000[    2.134589] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    2.142901] brcm-pcie 1000120000.pcie: Forcing gen 2[    2.147919] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0001:00[    2.307806] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)[    2.424358] pcieport 0001:00:00.0: enabling device (0000 -> 0002)[    2.430521] pcieport 0001:00:00.0: PME: Signaling with IRQ 40[    2.436371] pcieport 0001:00:00.0: AER: enabled with IRQ 40

Code:

lsusbBus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code:

blkid/dev/mmcblk0p1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="5DF9-E225" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="d2e5f867-01"/dev/mmcblk0p2: LABEL="rootfs" UUID="3b614a3f-4a65-4480-876a-8a998e01ac9b" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d2e5f867-02"
Thank you very much for your help,

Lixold

Statistics: Posted by Lixold — Tue Feb 20, 2024 3:58 pm — Replies 0 — Views 25



Viewing all articles
Browse latest Browse all 4417

Trending Articles