Continuing the discussion from [BPI-R4] nvme+i2c:
Thanks for your help @Lorem_amicus
I am running unmodified OpenWrt 25.12.5 (r33051-f5dae5ece4)
Do I need to flash Banana Pi’s OpenWrt fork?
Continuing the discussion from [BPI-R4] nvme+i2c:
Thanks for your help @Lorem_amicus
I am running unmodified OpenWrt 25.12.5 (r33051-f5dae5ece4)
Do I need to flash Banana Pi’s OpenWrt fork?
What says lspci and lsblk?
Yes, you may need to provide information related to lspci and lsblk.
Sorry for the delay, I had to install those commands:
lspci
0000:00:00.0 PCI bridge: MEDIATEK Corp. MT7988 PCI Express Host Bridge [Filogic 880] (rev 01)
0000:01:00.0 Network controller: MEDIATEK Corp. MT7996 primary link PCIe Wi-Fi 7(802.11be) 320MHz Wireless Network Adapter [Filogic 680]
0001:00:00.0 PCI bridge: MEDIATEK Corp. MT7988 PCI Express Host Bridge [Filogic 880] (rev 01)
0001:01:00.0 Network controller: MEDIATEK Corp. MT7996 secondary link PCIe Wi-Fi 7(802.11be) 320MHz Wireless Network Adapter [Filogic 680]
0002:00:00.0 PCI bridge: MEDIATEK Corp. MT7988 PCI Express Host Bridge [Filogic 880] (rev 01)
0002:01:00.0 Non-Volatile memory controller: Micron Technology Inc 2550 NVMe SSD (DRAM-less) (rev 01)
And:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 2M 1 disk
mtdblock1 31:1 0 126M 0 disk
mmcblk0 179:0 0 7.3G 0 disk
├─mmcblk0p1 179:1 0 4M 0 part
├─mmcblk0p2 179:2 0 512K 0 part
├─mmcblk0p3 179:3 0 2M 0 part
├─mmcblk0p4 179:4 0 4M 0 part
├─mmcblk0p5 179:5 0 32M 0 part
├─mmcblk0p6 179:6 0 2G 0 part
└─mmcblk0p7 179:7 0 5.2G 0 part
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
ubiblock0_4 254:0 0 16.2M 0 disk
fit0 259:0 0 11.2M 1 disk /rom
fitrw 259:1 0 2G 0 disk /overlay
0002:01:00.0 Non-Volatile memory controller: Micron Technology Inc 2550 NVMe SSD (DRAM-less) (rev 01)
Isn’t this your nvme? Maybe post related parts of dmesg output…
Maybe you miss the nvme drivers in your image? Please post putput of
zgrep -i nvme /proc/config.gz
Needs ikconfig in your build.
Isn’t this your nvme? Maybe post related parts of dmesg output…
Looks like it could be. It is a Crucial 2280, but maybe that is irrelevant.
Maybe you miss the nvme drivers in your image?
It is the latest OpenWRT image.
zgrep -i nvme /proc/config.gz
ls -al /proc/config.gz
ls: /proc/config.gz: No such file or directory
Needs ikconfig in your build.
Does that mean I should add that package on the OpenWRT page when creating the image? Then reflash?
NOTE: I just inserted a 64GB SD card and noticed it does not show up in either lsblk nor lspci.
Does that mean something?
If you have a stable build maybe you can install the ikconfig package or just install nvme and blk_nvme driver directly.
I got it working! Thanks so much everyone!
Install drivers:
apk add kmod-nvme
modprobe nvme
I now saw nvme0n1 in lsblk
Partition it:
apk add fdisk
fdisk /dev/nvme0n1
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-1953525167, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1953525167, default 1953525167):
Created a new partition 1 of type 'Linux' and of size 931.5 GiB.
Command (m for help): w
Mount it and test:
mount /dev/nvme0n1p1 /mnt/nvme
Check info:
apk add block-mount
block info
/dev/ubi0_6: UUID="ff088cac-a673-4557-af8f-4da642b50d34" VERSION="w5r0" TYPE="ubifs"
/dev/mmcblk0p7: UUID="4f6ac9f3-55db-4956-8116-8424433fb140" VERSION="1.0" TYPE="ext4"
/dev/nvme0n1p1: UUID="05ab14a2-9657-4dc8-b73e-51a5fe1d0bd6" VERSION="1.0" MOUNT="/mnt/nvme" TYPE="ext4"
/dev/fit0: UUID="82680628-385f684d-d0ed7c63-2449e18a" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/fitrw: UUID="231d272b-ef0b-4c4d-85ce-42054106b858" LABEL="rootfs_data" VERSION="1.16" MOUNT="/overlay" TYPE="f2fs"
Add permenant config to /etc/config/fstab
config 'mount'
option target '/mnt/nvme'
option uuid '05ab14a2-9657-4dc8-b73e-51a5fe1d0bd6'
option options 'rw,noatime,nodiratime'
option enabled '1'
I added this device to your hardware compatibility list: BPI‐Router‐Linux Wiki · frank-w/BPI-Router-Linux Wiki · GitHub