any tip how2 burn firmware on 2242 NVMe ? lspci - can see the device but lsblk cannot see - at one point it worked - then trying to do delete partition n format using started causing issues. not sure if accidentally delete smart / firmware partition also

Reply to this note

Please Login to reply.

Discussion

First, check your dmesg and see if there is any error.

Second, ensure you have the NVMe kernel drivers enabled. They are not the same as PCI drivers; you should be able to grep your kernel config for that. Something like this (from my NanoPi R6s with Armbian):

# zcat /proc/config.gz | grep -i nvme

# NVME Support

CONFIG_NVME_KEYRING=m

CONFIG_NVME_AUTH=y

CONFIG_NVME_CORE=y

CONFIG_BLK_DEV_NVME=y

CONFIG_NVME_MULTIPATH=y

# CONFIG_NVME_VERBOSE_ERRORS is not set

CONFIG_NVME_HWMON=y

CONFIG_NVME_FABRICS=m

CONFIG_NVME_FC=m

CONFIG_NVME_TCP=m

CONFIG_NVME_TCP_TLS=y

CONFIG_NVME_HOST_AUTH=y

CONFIG_NVME_TARGET=m

CONFIG_NVME_TARGET_PASSTHRU=y

CONFIG_NVME_TARGET_LOOP=m

CONFIG_NVME_TARGET_FC=m

CONFIG_NVME_TARGET_FCLOOP=m

CONFIG_NVME_TARGET_TCP=m

CONFIG_NVME_TARGET_TCP_TLS=y

CONFIG_NVME_TARGET_AUTH=y

# end of NVME Support

# CONFIG_NVMEM_REBOOT_MODE is not set

CONFIG_RTC_NVMEM=y

CONFIG_NVMEM=y

CONFIG_NVMEM_SYSFS=y

CONFIG_NVMEM_LAYOUTS=y

# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set

# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set

CONFIG_NVMEM_RMEM=m

CONFIG_NVMEM_ROCKCHIP_EFUSE=m

CONFIG_NVMEM_ROCKCHIP_OTP=m

CONFIG_NVMEM_SPMI_SDAM=m

CONFIG_NVMEM_U_BOOT_ENV=m

On my VisionFive2 with the self-built 6.6.0 kernel, it looks like this:

# zcat /proc/config.gz | grep -i nvme

# NVME Support

CONFIG_NVME_CORE=y

CONFIG_BLK_DEV_NVME=y

CONFIG_NVME_MULTIPATH=y

# CONFIG_NVME_VERBOSE_ERRORS is not set

CONFIG_NVME_HWMON=y

CONFIG_NVME_FABRICS=y

# CONFIG_NVME_FC is not set

# CONFIG_NVME_TCP is not set

# CONFIG_NVME_AUTH is not set

CONFIG_NVME_TARGET=y

CONFIG_NVME_TARGET_PASSTHRU=y

CONFIG_NVME_TARGET_LOOP=y

# CONFIG_NVME_TARGET_FC is not set

# CONFIG_NVME_TARGET_TCP is not set

# CONFIG_NVME_TARGET_AUTH is not set

# end of NVME Support

# CONFIG_NVMEM_REBOOT_MODE is not set

CONFIG_RTC_NVMEM=y

CONFIG_NVMEM=y

CONFIG_NVMEM_SYSFS=y

# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set

# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set

# CONFIG_NVMEM_RMEM is not set

# CONFIG_NVMEM_SPMI_SDAM is not set

CONFIG_NVMEM_U_BOOT_ENV=y

What sticks out is CONFIG_BLK_DEV_NVME - this sounds to me like the block-device support itself.

As for flashing firmware itself, that is very vendor-specific... afaik, there is a particular program for that to do exactly this. Look up how flashing firmware on Samsung SSD works; there was a huge problem with the firmware, this should have caused a lot of flashing guides to pop up.

Beyond that... i got nothing. Hope it helps tho!

thank you - let me dig more as above n see - well stick worked 2 times and after it stopped recognizing (only step in betwwen did delete all partitions using windows boot loader ) not sure if that matters. try fireup again see.

keep posted later

so far just found comapred between LEFT- working vs RIGHT not working

dmesg | grep nvme

[ 1.105003] nvme nvme0: pci function 0000:01:00.0

[ 31.607630] nvme nvme0: Device not ready; aborting reset, CSTS=0x3

[ 31.607634] nvme nvme0: Removing after probe failure status: -19

above card not working - below is another host another which is working

dmesg | grep nvme

[ 0.969531] nvme nvme0: pci function 0000:01:00.0

[ 1.185776] nvme nvme0: missing or invalid SUBNQN field.

[ 1.187673] nvme nvme0: allocated 64 MiB host memory buffer.

[ 1.221965] nvme nvme0: 15/0/0 default/read/poll queues

[ 1.230270] nvme0n1: p1

[ 6.380481] nvme0n1: p1

[ 6.520495] nvme0n1: p1

[ 6.600428] nvme0n1: p1

[ 14.292058] nvme0n1: p1

[ 14.332419] nvme0n1: p1

[ 104.053380] EXT4-fs (nvme0n1p1): recovery complete

[ 104.053398] EXT4-fs (nvme0n1p1): mounted filesystem with ordered data mode. Opts: (null)

both case usign PCI-E slot with NVME-2-PCIE adapter - thats not an issue except lower speed

lspci | grep NVM

01:00.0 Non-Volatile memory controller: Toshiba BG3 NVMe SSD Controller (rev 01)

I was wiping an NVMe drive on my work laptop because I migrated to a new unit (win11, sadly...) and whilst in the GParted live, I came across this: https://github.com/linux-nvme/nvme-cli

Maybe it could be helpful for your case for diagnostics? iunno, but thought I'd let you know. Should be in most repos - it is in Debian's, that's for sure.

https://nvmexpress.org/ made that tool - my problem is with one TOSHIBHA BG3 KBG30ZMT128G 2242 NVMe (avoid this old) only which has old CHIP after worling 3 times it stopped getting recognized at kernel level so except fro dmesg and lscpi nothing else lsblk or nvme-cli cannot see it anymore. I bought few more NVMe for other purpose and one install win10 - all working fine. i may return that 1 card - BC711 i heard chip is better

also mSATA at cheap if can get is better than SSD or HDD if can get (speed not important)

BTW win11 donot use in own hw until 2035 - Win7 can still be used - just for good graphics on screen