Installing nvme m.2 on banana r4

hello everyone,

guys..i have been trying for 2 days to detect my m.2 nvme on my banana pi r4 but it wont be shown. i believe i installed the mentioned packages opkg install block-mount e2fsprogs kmod-usb-storage-uas kmod-usb3 kmod-fs-ext4 kmod-nvme

any support would be appreciated <3

Check dmesg | grep nvme or ls /dev/nvme0 and let us know what they return.

hey, this is the output of 2 commands

root@OpenWrt:~# ls /dev/nvme0
ls: /dev/nvme0: No such file or directory
root@OpenWrt:~# dmesg | grep nvme
root@OpenWrt:~#



It certainly looks like your pi r4 isn’t configured to recognize an NVMEe drive.

I assume you are using a USB NVMEe adapter based on your package list above. Make sure the kernel module is loaded lsmod | grep nvme, and list the block devices lsblk.

Beyond that you might want to ask in the pi forums for guidance unless someone here can chime in.

1 Like

There are two M.2 slots, but only one of them supports PCIe. Did you install it to the correct slot?

I would first install pciutils and check with lspci if the SSD is detected at all. For the R3 Mini, there were similar problems that boiled down to incompatible SSDs (see Nvme for Bananapi R3-MINI).

2 Likes

In case you mean the front m.2 slot, it works and im using it for m.2 5g modem. I plugged the nvme in the back, model kingstone gen3 but it really giving me hard time

That should be correct, at least according to the images at https://wiki.banana-pi.org/Banana_Pi_BPI-R4#Hardware_spec.

What is the output of lspci?

1 Like

Rn im not near my pc and router im sorry, i will show the output asap when im near pc

hey sorry im late

this is the output of l lspci

0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0000:01:00.0 Network controller: MEDIATEK Corp. Device 7990
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0001:01:00.0 Network controller: MEDIATEK Corp. Device 7991
0002:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0002:01:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. N    V1 NVMe SSD E13T (DRAM-less) (rev 01)
root@OpenWrt:~# 

yeah i can see it says non volatile , should i give up and get new one? if so any nvme recommendation would be appreciated.

So at least it’s detected.

To your ?, I use a Huadisk 128GB X3 2242 that was ~$10US from AliExpress on my OpenWrt One.
Non-Volatile memory controller: Yangtze Memory Technologies Co.,Ltd PC210 NVMe SSD (rev 03)

1 Like

I have question, why does it say non volatile in your case aswell? Isnt non volatile shouldn't work or?

need output of:
dmesg | grep -iE '(nvme|pci)'
nvme list
lsmod | grep nvme

1 Like
root@OpenWrt:~# dmesg | grep -iE '(nvme|pci)'
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.028367] PCI: CLS 0 bytes, default 64
[    0.051405] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.051424] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.051437] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.051450] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.051555] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.051565] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.051575] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.051584] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.051602] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.051611] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.051673] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.051683] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.051693] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.051702] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.051717] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.051725] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.051798] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.051808] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.051817] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.051826] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.051841] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.051848] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    2.417501] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.424841] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.431104] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.439549] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.792627] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    2.801440] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
[    2.808508] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    2.815829] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    2.822093] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    2.830530] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    3.101682] mtk-pcie-gen3 11290000.pcie: set IO trans window[0]: cpu_addr = 0x28000000, pci_addr = 0x28000000, size = 0x200000
[    3.113066] mtk-pcie-gen3 11290000.pcie: set MEM trans window[1]: cpu_addr = 0x28200000, pci_addr = 0x28200000, size = 0x200000
[    3.124531] mtk-pcie-gen3 11290000.pcie: set MEM trans window[2]: cpu_addr = 0x28400000, pci_addr = 0x28400000, size = 0x400000
[    3.135995] mtk-pcie-gen3 11290000.pcie: set MEM trans window[3]: cpu_addr = 0x28800000, pci_addr = 0x28800000, size = 0x800000
[    3.147458] mtk-pcie-gen3 11290000.pcie: set MEM trans window[4]: cpu_addr = 0x29000000, pci_addr = 0x29000000, size = 0x1000000
[    3.159008] mtk-pcie-gen3 11290000.pcie: set MEM trans window[5]: cpu_addr = 0x2a000000, pci_addr = 0x2a000000, size = 0x2000000
[    3.170556] mtk-pcie-gen3 11290000.pcie: set MEM trans window[6]: cpu_addr = 0x2c000000, pci_addr = 0x2c000000, size = 0x4000000
[    3.182377] mtk-pcie-gen3 11290000.pcie: PCI host bridge to bus 0002:00
[    3.188988] pci_bus 0002:00: root bus resource [bus 00-ff]
[    3.194471] pci_bus 0002:00: root bus resource [io  0x200000-0x3fffff] (bus address [0x28000000-0x281fffff])
[    3.204285] pci_bus 0002:00: root bus resource [mem 0x28200000-0x2fffffff]
[    3.211148] pci_bus 0002:00: scanning bus
[    3.215170] pci 0002:00:00.0: [14c3:7988] type 01 class 0x060400
[    3.221177] pci 0002:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    3.228017] pci 0002:00:00.0: PME# supported from D0 D3hot D3cold
[    3.234104] pci 0002:00:00.0: PME# disabled
[    3.239544] pci_bus 0002:00: fixups for bus
[    3.243723] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    3.250412] pci 0002:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.258411] pci 0002:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    3.265148] pci_bus 0002:01: scanning bus
[    3.269168] pci 0002:01:00.0: [2646:500e] type 00 class 0x010802
[    3.275188] pci 0002:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    3.282124] pci 0002:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    3.322646] pci_bus 0002:01: fixups for bus
[    3.326819] pci_bus 0002:01: bus scan returning with max=01
[    3.332380] pci_bus 0002:01: busn_res: [bus 01-ff] end is updated to 01
[    3.338992] pci_bus 0002:00: bus scan returning with max=01
[    3.344568] pci 0002:00:00.0: BAR 8: assigned [mem 0x28200000-0x282fffff]
[    3.351344] pci 0002:00:00.0: BAR 0: assigned [mem 0x28300000-0x28307fff 64bit]
[    3.358650] pci 0002:01:00.0: BAR 0: assigned [mem 0x28200000-0x28203fff 64bit]
[    3.365958] pci 0002:00:00.0: PCI bridge to [bus 01]
[    3.370913] pci 0002:00:00.0:   bridge window [mem 0x28200000-0x282fffff]
[    3.377702] pci 0002:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    3.386143] pci 0002:01:00.0: Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[    3.394648] pcieport 0002:00:00.0: assign IRQ: got 115
[    3.399780] pcieport 0002:00:00.0: enabling device (0000 -> 0002)
[    3.405874] pcieport 0002:00:00.0: enabling bus mastering
[    3.411642] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.420078] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1
[    3.428506] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2
[    3.436933] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3
[    3.445363] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4
[    3.453789] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5
[    3.462213] mtk-pcie-gen3 11290000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11290c00 data 6
[    3.470639] mtk-pcie-gen3 11290000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11290c00 data 7
[    3.479065] mtk-pcie-gen3 11290000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11290c00 data 8
[    3.487491] mtk-pcie-gen3 11290000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11290c00 data 9
[    3.495916] mtk-pcie-gen3 11290000.pcie: msi#0xa address_hi 0x0 address_lo 0x11290c00 data 10
[    3.504429] mtk-pcie-gen3 11290000.pcie: msi#0xb address_hi 0x0 address_lo 0x11290c00 data 11
[    3.512941] mtk-pcie-gen3 11290000.pcie: msi#0xc address_hi 0x0 address_lo 0x11290c00 data 12
[    3.521451] mtk-pcie-gen3 11290000.pcie: msi#0xd address_hi 0x0 address_lo 0x11290c00 data 13
[    3.529964] mtk-pcie-gen3 11290000.pcie: msi#0xe address_hi 0x0 address_lo 0x11290c00 data 14
[    3.538476] mtk-pcie-gen3 11290000.pcie: msi#0xf address_hi 0x0 address_lo 0x11290c00 data 15
[    3.546989] mtk-pcie-gen3 11290000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11290c00 data 16
[    3.555588] mtk-pcie-gen3 11290000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11290c00 data 17
[    3.564189] mtk-pcie-gen3 11290000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11290c00 data 18
[    3.572788] mtk-pcie-gen3 11290000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11290c00 data 19
[    3.581385] mtk-pcie-gen3 11290000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11290c00 data 20
[    3.589984] mtk-pcie-gen3 11290000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11290c00 data 21
[    3.598583] mtk-pcie-gen3 11290000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11290c00 data 22
[    3.607182] mtk-pcie-gen3 11290000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11290c00 data 23
[    3.615781] mtk-pcie-gen3 11290000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11290c00 data 24
[    3.624380] mtk-pcie-gen3 11290000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11290c00 data 25
[    3.632980] mtk-pcie-gen3 11290000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11290c00 data 26
[    3.641576] mtk-pcie-gen3 11290000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11290c00 data 27
[    3.650175] mtk-pcie-gen3 11290000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11290c00 data 28
[    3.658775] mtk-pcie-gen3 11290000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11290c00 data 29
[    3.667374] mtk-pcie-gen3 11290000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11290c00 data 30
[    3.675973] mtk-pcie-gen3 11290000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11290c00 data 31
[    3.685009] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0
[    3.693504] pcieport 0002:00:00.0: PME: Signaling with IRQ 116
[    3.699438] pcieport 0002:00:00.0: AER: enabled with IRQ 116
[    3.705144] pcieport 0002:00:00.0: save config 0x00: 0x798814c3
[    3.711055] pcieport 0002:00:00.0: save config 0x04: 0x00100406
[    3.716968] pcieport 0002:00:00.0: save config 0x08: 0x06040001
[    3.722880] pcieport 0002:00:00.0: save config 0x0c: 0x00010000
[    3.728788] pcieport 0002:00:00.0: save config 0x10: 0x28300004
[    3.734699] pcieport 0002:00:00.0: save config 0x14: 0x00000000
[    3.740607] pcieport 0002:00:00.0: save config 0x18: 0x00010100
[    3.746517] pcieport 0002:00:00.0: save config 0x1c: 0x000001f1
[    3.752426] pcieport 0002:00:00.0: save config 0x20: 0x28202820
[    3.758335] pcieport 0002:00:00.0: save config 0x24: 0x0001fff1
[    3.764244] pcieport 0002:00:00.0: save config 0x28: 0x00000000
[    3.770152] pcieport 0002:00:00.0: save config 0x2c: 0x00000000
[    3.776062] pcieport 0002:00:00.0: save config 0x30: 0x00000000
[    3.781969] pcieport 0002:00:00.0: save config 0x34: 0x00000080
[    3.787878] pcieport 0002:00:00.0: save config 0x38: 0x00000000
[    3.793787] pcieport 0002:00:00.0: save config 0x3c: 0x00020173
[    3.800017] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.807328] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.813598] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.822028] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    4.068524] mtk-pcie-gen3 11300000.pcie: set IO trans window[0]: cpu_addr = 0x30000000, pci_addr = 0x30000000, size = 0x200000
[    4.079907] mtk-pcie-gen3 11300000.pcie: set MEM trans window[1]: cpu_addr = 0x30200000, pci_addr = 0x30200000, size = 0x200000
[    4.091370] mtk-pcie-gen3 11300000.pcie: set MEM trans window[2]: cpu_addr = 0x30400000, pci_addr = 0x30400000, size = 0x400000
[    4.102833] mtk-pcie-gen3 11300000.pcie: set MEM trans window[3]: cpu_addr = 0x30800000, pci_addr = 0x30800000, size = 0x800000
[    4.114297] mtk-pcie-gen3 11300000.pcie: set MEM trans window[4]: cpu_addr = 0x31000000, pci_addr = 0x31000000, size = 0x1000000
[    4.125846] mtk-pcie-gen3 11300000.pcie: set MEM trans window[5]: cpu_addr = 0x32000000, pci_addr = 0x32000000, size = 0x2000000
[    4.137395] mtk-pcie-gen3 11300000.pcie: set MEM trans window[6]: cpu_addr = 0x34000000, pci_addr = 0x34000000, size = 0x4000000
[    4.149063] mtk-pcie-gen3 11300000.pcie: PCI host bridge to bus 0000:00
[    4.155676] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.161152] pci_bus 0000:00: root bus resource [io  0x400000-0x5fffff] (bus address [0x30000000-0x301fffff])
[    4.170969] pci_bus 0000:00: root bus resource [mem 0x30200000-0x37ffffff]
[    4.177833] pci_bus 0000:00: scanning bus
[    4.181851] pci 0000:00:00.0: [14c3:7988] type 01 class 0x060400
[    4.187864] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    4.194704] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    4.200789] pci 0000:00:00.0: PME# disabled
[    4.206283] pci_bus 0000:00: fixups for bus
[    4.210458] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    4.217152] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.225151] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    4.231889] pci_bus 0000:01: scanning bus
[    4.235913] pci 0000:01:00.0: [14c3:7990] type 00 class 0x028000
[    4.241929] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit pref]
[    4.249154] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00007fff 64bit]
[    4.256040] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    4.262124] pci 0000:01:00.0: PME# disabled
[    4.292647] pci_bus 0000:01: fixups for bus
[    4.296820] pci_bus 0000:01: bus scan returning with max=01
[    4.302381] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    4.308992] pci_bus 0000:00: bus scan returning with max=01
[    4.314568] pci 0000:00:00.0: BAR 9: assigned [mem 0x30200000-0x303fffff 64bit pref]
[    4.322299] pci 0000:00:00.0: BAR 8: assigned [mem 0x30400000-0x304fffff]
[    4.329077] pci 0000:00:00.0: BAR 0: assigned [mem 0x30500000-0x30507fff 64bit]
[    4.336382] pci 0000:01:00.0: BAR 0: assigned [mem 0x30200000-0x303fffff 64bit pref]
[    4.344123] pci 0000:01:00.0: BAR 2: assigned [mem 0x30400000-0x30407fff 64bit]
[    4.351429] pci 0000:00:00.0: PCI bridge to [bus 01]
[    4.356387] pci 0000:00:00.0:   bridge window [mem 0x30400000-0x304fffff]
[    4.363165] pci 0000:00:00.0:   bridge window [mem 0x30200000-0x303fffff 64bit pref]
[    4.370905] pci 0000:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    4.379345] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    4.387848] pcieport 0000:00:00.0: assign IRQ: got 118
[    4.392985] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    4.399076] pcieport 0000:00:00.0: enabling bus mastering
[    4.404839] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0
[    4.413278] mtk-pcie-gen3 11300000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11300c00 data 1
[    4.421704] mtk-pcie-gen3 11300000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11300c00 data 2
[    4.430131] mtk-pcie-gen3 11300000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11300c00 data 3
[    4.438558] mtk-pcie-gen3 11300000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11300c00 data 4
[    4.446983] mtk-pcie-gen3 11300000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11300c00 data 5
[    4.455409] mtk-pcie-gen3 11300000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11300c00 data 6
[    4.463835] mtk-pcie-gen3 11300000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11300c00 data 7
[    4.472258] mtk-pcie-gen3 11300000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11300c00 data 8
[    4.480683] mtk-pcie-gen3 11300000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11300c00 data 9
[    4.489108] mtk-pcie-gen3 11300000.pcie: msi#0xa address_hi 0x0 address_lo 0x11300c00 data 10
[    4.497621] mtk-pcie-gen3 11300000.pcie: msi#0xb address_hi 0x0 address_lo 0x11300c00 data 11
[    4.506132] mtk-pcie-gen3 11300000.pcie: msi#0xc address_hi 0x0 address_lo 0x11300c00 data 12
[    4.514645] mtk-pcie-gen3 11300000.pcie: msi#0xd address_hi 0x0 address_lo 0x11300c00 data 13
[    4.523158] mtk-pcie-gen3 11300000.pcie: msi#0xe address_hi 0x0 address_lo 0x11300c00 data 14
[    4.531668] mtk-pcie-gen3 11300000.pcie: msi#0xf address_hi 0x0 address_lo 0x11300c00 data 15
[    4.540183] mtk-pcie-gen3 11300000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11300c00 data 16
[    4.548782] mtk-pcie-gen3 11300000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11300c00 data 17
[    4.557382] mtk-pcie-gen3 11300000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11300c00 data 18
[    4.565980] mtk-pcie-gen3 11300000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11300c00 data 19
[    4.574581] mtk-pcie-gen3 11300000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11300c00 data 20
[    4.583180] mtk-pcie-gen3 11300000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11300c00 data 21
[    4.591778] mtk-pcie-gen3 11300000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11300c00 data 22
[    4.600378] mtk-pcie-gen3 11300000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11300c00 data 23
[    4.608977] mtk-pcie-gen3 11300000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11300c00 data 24
[    4.617577] mtk-pcie-gen3 11300000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11300c00 data 25
[    4.626176] mtk-pcie-gen3 11300000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11300c00 data 26
[    4.634775] mtk-pcie-gen3 11300000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11300c00 data 27
[    4.643374] mtk-pcie-gen3 11300000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11300c00 data 28
[    4.651972] mtk-pcie-gen3 11300000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11300c00 data 29
[    4.660573] mtk-pcie-gen3 11300000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11300c00 data 30
[    4.669172] mtk-pcie-gen3 11300000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11300c00 data 31
[    4.678227] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0
[    4.686727] pcieport 0000:00:00.0: PME: Signaling with IRQ 119
[    4.692669] pcieport 0000:00:00.0: AER: enabled with IRQ 119
[    4.698363] pcieport 0000:00:00.0: save config 0x00: 0x798814c3
[    4.704298] pcieport 0000:00:00.0: save config 0x04: 0x00100406
[    4.710207] pcieport 0000:00:00.0: save config 0x08: 0x06040001
[    4.716117] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    4.722024] pcieport 0000:00:00.0: save config 0x10: 0x30500004
[    4.727934] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    4.733844] pcieport 0000:00:00.0: save config 0x18: 0x00010100
[    4.739751] pcieport 0000:00:00.0: save config 0x1c: 0x000001f1
[    4.745660] pcieport 0000:00:00.0: save config 0x20: 0x30403040
[    4.751568] pcieport 0000:00:00.0: save config 0x24: 0x30313021
[    4.757476] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    4.763385] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    4.769293] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    4.775202] pcieport 0000:00:00.0: save config 0x34: 0x00000080
[    4.781110] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    4.787020] pcieport 0000:00:00.0: save config 0x3c: 0x00020176
[    4.793253] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    4.800557] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    4.806830] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    4.815263] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    5.069158] mtk-pcie-gen3 11310000.pcie: set IO trans window[0]: cpu_addr = 0x38000000, pci_addr = 0x38000000, size = 0x200000
[    5.080543] mtk-pcie-gen3 11310000.pcie: set MEM trans window[1]: cpu_addr = 0x38200000, pci_addr = 0x38200000, size = 0x200000
[    5.092008] mtk-pcie-gen3 11310000.pcie: set MEM trans window[2]: cpu_addr = 0x38400000, pci_addr = 0x38400000, size = 0x400000
[    5.103471] mtk-pcie-gen3 11310000.pcie: set MEM trans window[3]: cpu_addr = 0x38800000, pci_addr = 0x38800000, size = 0x800000
[    5.114933] mtk-pcie-gen3 11310000.pcie: set MEM trans window[4]: cpu_addr = 0x39000000, pci_addr = 0x39000000, size = 0x1000000
[    5.126483] mtk-pcie-gen3 11310000.pcie: set MEM trans window[5]: cpu_addr = 0x3a000000, pci_addr = 0x3a000000, size = 0x2000000
[    5.138032] mtk-pcie-gen3 11310000.pcie: set MEM trans window[6]: cpu_addr = 0x3c000000, pci_addr = 0x3c000000, size = 0x4000000
[    5.149717] mtk-pcie-gen3 11310000.pcie: PCI host bridge to bus 0001:00
[    5.156328] pci_bus 0001:00: root bus resource [bus 00-ff]
[    5.161804] pci_bus 0001:00: root bus resource [io  0x600000-0x7fffff] (bus address [0x38000000-0x381fffff])
[    5.171619] pci_bus 0001:00: root bus resource [mem 0x38200000-0x3fffffff]
[    5.178483] pci_bus 0001:00: scanning bus
[    5.182498] pci 0001:00:00.0: [14c3:7988] type 01 class 0x060400
[    5.188509] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    5.195350] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    5.201433] pci 0001:00:00.0: PME# disabled
[    5.206919] pci_bus 0001:00: fixups for bus
[    5.211094] pci 0001:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    5.217788] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.225787] pci 0001:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    5.232525] pci_bus 0001:01: scanning bus
[    5.236549] pci 0001:01:00.0: [14c3:7991] type 00 class 0x028000
[    5.242565] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit pref]
[    5.249791] pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x00007fff 64bit]
[    5.256678] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    5.262764] pci 0001:01:00.0: PME# disabled
[    5.292645] pci_bus 0001:01: fixups for bus
[    5.296818] pci_bus 0001:01: bus scan returning with max=01
[    5.302379] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    5.308990] pci_bus 0001:00: bus scan returning with max=01
[    5.314566] pci 0001:00:00.0: BAR 9: assigned [mem 0x38200000-0x383fffff 64bit pref]
[    5.322298] pci 0001:00:00.0: BAR 8: assigned [mem 0x38400000-0x384fffff]
[    5.329076] pci 0001:00:00.0: BAR 0: assigned [mem 0x38500000-0x38507fff 64bit]
[    5.336382] pci 0001:01:00.0: BAR 0: assigned [mem 0x38200000-0x383fffff 64bit pref]
[    5.344127] pci 0001:01:00.0: BAR 2: assigned [mem 0x38400000-0x38407fff 64bit]
[    5.351432] pci 0001:00:00.0: PCI bridge to [bus 01]
[    5.356390] pci 0001:00:00.0:   bridge window [mem 0x38400000-0x384fffff]
[    5.363167] pci 0001:00:00.0:   bridge window [mem 0x38200000-0x383fffff 64bit pref]
[    5.370906] pci 0001:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    5.379347] pci 0001:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    5.387862] pcieport 0001:00:00.0: assign IRQ: got 121
[    5.392997] pcieport 0001:00:00.0: enabling device (0000 -> 0002)
[    5.399088] pcieport 0001:00:00.0: enabling bus mastering
[    5.404836] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0
[    5.413275] mtk-pcie-gen3 11310000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11310c00 data 1
[    5.421700] mtk-pcie-gen3 11310000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11310c00 data 2
[    5.430126] mtk-pcie-gen3 11310000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11310c00 data 3
[    5.438553] mtk-pcie-gen3 11310000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11310c00 data 4
[    5.446979] mtk-pcie-gen3 11310000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11310c00 data 5
[    5.455405] mtk-pcie-gen3 11310000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11310c00 data 6
[    5.463830] mtk-pcie-gen3 11310000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11310c00 data 7
[    5.472253] mtk-pcie-gen3 11310000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11310c00 data 8
[    5.480679] mtk-pcie-gen3 11310000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11310c00 data 9
[    5.489105] mtk-pcie-gen3 11310000.pcie: msi#0xa address_hi 0x0 address_lo 0x11310c00 data 10
[    5.497617] mtk-pcie-gen3 11310000.pcie: msi#0xb address_hi 0x0 address_lo 0x11310c00 data 11
[    5.506130] mtk-pcie-gen3 11310000.pcie: msi#0xc address_hi 0x0 address_lo 0x11310c00 data 12
[    5.514643] mtk-pcie-gen3 11310000.pcie: msi#0xd address_hi 0x0 address_lo 0x11310c00 data 13
[    5.523154] mtk-pcie-gen3 11310000.pcie: msi#0xe address_hi 0x0 address_lo 0x11310c00 data 14
[    5.531665] mtk-pcie-gen3 11310000.pcie: msi#0xf address_hi 0x0 address_lo 0x11310c00 data 15
[    5.540179] mtk-pcie-gen3 11310000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11310c00 data 16
[    5.548778] mtk-pcie-gen3 11310000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11310c00 data 17
[    5.557377] mtk-pcie-gen3 11310000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11310c00 data 18
[    5.565976] mtk-pcie-gen3 11310000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11310c00 data 19
[    5.574576] mtk-pcie-gen3 11310000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11310c00 data 20
[    5.583175] mtk-pcie-gen3 11310000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11310c00 data 21
[    5.591772] mtk-pcie-gen3 11310000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11310c00 data 22
[    5.600372] mtk-pcie-gen3 11310000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11310c00 data 23
[    5.608971] mtk-pcie-gen3 11310000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11310c00 data 24
[    5.617570] mtk-pcie-gen3 11310000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11310c00 data 25
[    5.626169] mtk-pcie-gen3 11310000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11310c00 data 26
[    5.634770] mtk-pcie-gen3 11310000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11310c00 data 27
[    5.643370] mtk-pcie-gen3 11310000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11310c00 data 28
[    5.651967] mtk-pcie-gen3 11310000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11310c00 data 29
[    5.660568] mtk-pcie-gen3 11310000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11310c00 data 30
[    5.669168] mtk-pcie-gen3 11310000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11310c00 data 31
[    5.678185] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0
[    5.686689] pcieport 0001:00:00.0: PME: Signaling with IRQ 122
[    5.692635] pcieport 0001:00:00.0: AER: enabled with IRQ 122
[    5.698320] pcieport 0001:00:00.0: save config 0x00: 0x798814c3
[    5.704237] pcieport 0001:00:00.0: save config 0x04: 0x00100406
[    5.710144] pcieport 0001:00:00.0: save config 0x08: 0x06040001
[    5.716055] pcieport 0001:00:00.0: save config 0x0c: 0x00010000
[    5.721963] pcieport 0001:00:00.0: save config 0x10: 0x38500004
[    5.727873] pcieport 0001:00:00.0: save config 0x14: 0x00000000
[    5.733783] pcieport 0001:00:00.0: save config 0x18: 0x00010100
[    5.739691] pcieport 0001:00:00.0: save config 0x1c: 0x000001f1
[    5.745602] pcieport 0001:00:00.0: save config 0x20: 0x38403840
[    5.751510] pcieport 0001:00:00.0: save config 0x24: 0x38313821
[    5.757419] pcieport 0001:00:00.0: save config 0x28: 0x00000000
[    5.763328] pcieport 0001:00:00.0: save config 0x2c: 0x00000000
[    5.769235] pcieport 0001:00:00.0: save config 0x30: 0x00000000
[    5.775147] pcieport 0001:00:00.0: save config 0x34: 0x00000080
[    5.781054] pcieport 0001:00:00.0: save config 0x38: 0x00000000
[    5.786964] pcieport 0001:00:00.0: save config 0x3c: 0x00020179
[   13.382896] mtk-pcie-gen3 11300000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11300c00 data 1
[   13.391470] mtk-pcie-gen3 11310000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11310c00 data 1
root@OpenWrt:~# nvme list
-ash: nvme: not found
root@OpenWrt:~#

root@OpenWrt:~# lsmod | grep nvme
root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~#

lsmod | grep nvme

returned nothing.

install kmod-nvme (maybe you'll need a reboot after)
then try again nvme list and lsmod | grep nvme

root@OpenWrt:~# apk add kmod-nvme
(1/1) Installing kmod-nvme (6.6.77-r1)
Executing kmod-nvme-6.6.77-r1.post-install
OK: 212 MiB in 322 packages
root@OpenWrt:~# nvme list
-ash: nvme: not found
root@OpenWrt:~#
root@OpenWrt:~#
root@OpenWrt:~# lsmod | grep nvme
nvme                   36864  0
nvme_core              69632  1 nvme
root@OpenWrt:~#

i did reboot after installation, i believe lsmod | grep nvme responded this time but i still have no clue

install nvme-cli, providing nvme command, then try again. I suspect your drive will now be found.

2 Likes

Meaning the storage retains stored information even after power is removed.

oh well, i got something after i installed nvme-cli after installing i run command nvme list

i got this output, is it up and running? can i use it as storage for my router?

root@OpenWrt:~# nvme list
Node                  Generic               SN                   Model                                              Namespace  Usage                      Format                     FW Rev
--------------------- --------------------- -------------------- ---------------          ------------------------- ---------- -------------------------- ----------------           --------
/dev/nvme0n1          /dev/ng0n1            50026B7282B53410     KINGSTON SNVS10          00G                       0x1          1.00  TB /   1.00  TB    512   B +  0 B             EDFKCN02
root@OpenWrt:~#

i can see it appear in luci now. problem is it wont show that its 1tb

i believe its up and running right?


root@OpenWrt:~# 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  29.5G  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    20M  0 part
└─mmcblk0p7 179:7    0   448M  0 part
ubiblock0_1 254:0    0  54.9M  0 disk
fit0        259:0    0  47.4M  1 disk /rom
fitrw       259:1    0 394.8M  0 disk /overlay
nvme0n1     259:2    0 931.5G  0 disk
root@OpenWrt:~#