ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Bug Report: Ubuntu 24.04 LTS with 6.1 kernel NVMe issues - with fix

Open platima opened this issue 4 months ago • 0 comments

What happened?

I found that with 5.10, 6.12 and 6.17 my Crucial P310 NVMe M.2 SSD appears under lsblk, but with the 6.1 kernel such as your 24.04 images, it does not.

echo 1 | sudo tee /sys/class/nvme/nvme0/rescan_controller results in it appearing, but adjusting the kernel boot parameters to account for the known timing issues does not fix it.

To fix it, I created a new system service:

[Unit]
Description=Rescan NVMe controller for P310 namespace detection
After=local-fs-pre.target
Before=local-fs.target
DefaultDependencies=no

[Service]
Type=oneshot
ExecStartPre=/bin/sleep 1
ExecStart=/bin/sh -c 'echo 1 > /sys/class/nvme/nvme0/rescan_controller'
ExecStartPost=/bin/sleep 1
RemainAfterExit=yes
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=local-fs-pre.target

Kernel version

6.1.0-1025-rockchip

SBC model

ArmSoM Sige7

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs


platima avatar Oct 10 '25 23:10 platima