[BPI-R3] NVME connection issue

Hi. Is anyone successfully using the Patriot P300 m.2 drive on Banana Pi Bpi R3 and Openwrt at the moment? Thanks.

Working NVME SSD on Banana Pi r3 (BPi R3)


Disk Model: KBG302MS128G NMVe Toshiba 128GB

Driver Packages (as per jtxnn678): kmod-nvme



Procedure

  1. Start with working OWRT on the BPiR3, Install SSD to M.2 Slot of the BPiR3, boot up.

  2. Delete existing partitions, create new partitions, format partitions ext4 (block 2048), mount partitions

    # Delete all partitions and create one new one. From terminal (ubuntu) also works from OWRT:
     fdisk -l             # List all devices, note dev/nvme0n1 partition of the SSD (listed at the end)
     fdisk /dev/nvme0n1   # Format USB drive
     m                    # help
     d                    # Delete partiion
     1             	     # Select partition X to delete
     p                    # Print partition table to verify deleted (might not need this)
     # Repeat for other partitions on USB
     n                    # Create a New Partition
     1                    # Assign Partition number to New Partition
     Enter                # Choose default value: p - primary (Extended is for legacy MBR w/ partitions > 4 on a disk)
     Enter                # Use Default sector for First Sector (ie. 2048)
     Enter                # Use Default Sector for Last Sector (Partition_size_MB)*(First Sector)=Last Sector (ie.Partition Size:10GB: 10,000*2048=20480000 (Last Sector 20480000))
     w                    # Write/commit all changes to disk
    # Format USB as EXT4 format with mkfs
    #   Syntax:  mkfs.ext4 [options] /dev/nvme0n1p1 
    #   [options]
    #     -L 	# specifies the label for the partition
    #     -m    # sets the reserved blocks percentage, which is 1 (1%) in this case
    #     -b 	# specifies the block size, which we’ve set to 4096 bytes,
    
    #  Syntax: (Formatting)
    
       fdisk -l       # find device name  See Screenshots above
       mkfs.ext4 -L EXT4 -m 1 -b 2048 /dev/nvme0n1p1
       mkfs.ext4 -L EXT4 -m 1 -b 2048 /dev/nvme0n1p2
    
    # Now Mount  the nvme SSD for us
    # Note: I created two partitions on my nvme, one to be used for logging and the other for future use.
    
       mkdir /mnt/nvme1
       mkdir /mnt/nvme2
    
       mount /dev/nvme0n1p1 /mnt/nvme1    # See screenshots above
    # Response:
       [ 9060.486963] EXT4-fs (nvme0n1p1): mounted filesystem eabc402a-47a6-4ce3-aabd-49a0ad1d3752 r/w with ordered data mode. Quota mode: disabled.
    
       mount /dev/nvme0n1p2 /mnt/nvme2
    # Response:
       [ 9070.658167] EXT4-fs (nvme0n1p2): mounted filesystem b6782965-07b7-4a2f-b46f-63a5cee1c7f7 r/w with ordered data mode. Quota mode: disabled.
    
        df -h    # verify partition(s) mounted  See screenshots above.
    
    # How To - Unmount NVMe Partitions
        umount /dev/nvme0n1p1
        umount /dev/nvme01np2
        df -h    # verify partition(s) unmounted  See Screenshots