`smartctl` does not work correctly for USB-HDD on Phicomm N1

This seems to relate to a kernel change in 3.15.

To workaround it I have to prevent UAS driver from binding to my HDD drive by setting usb-storage.quirks.

Unfortunately, solution in that post is only applicable to systems on which usb-storage is built as a separate module. For my system, usb-storage is linked statically into the kernel and I have to specify the argument as a boot argument.

I applied the changes to /boot/boot.ini, and the issue was gone.

image=/boot/vmlinuz-5.1.21
initrd=/boot/uInitrd
dtb=/boot/meson-gxl-s905d-phicomm-n1.dtb
bootargs=root=/dev/mmcblk1p1 (...other args...) usb-storage.quirks=0123:4567:u

Leave a Reply

Your email address will not be published. Required fields are marked *