Check the related package version in both firmwares.
Try the latest available OpenWrt release/snapshot build.
If the issue persists, try following the advice from the error message.
smartctl uses the file /var/lib/smartmontools/drivedb/drivedb.h to identify the drives. Compare this file on OpenWrt and dd-wrt. I assume these files are different, otherwise the output should be identical.
Hint: ssh to the router and type the following on the cmdline:
root@Home:/# cat /var/lib/smartmontools/drivedb/drivedb.h
cat: can't open '/var/lib/smartmontools/drivedb/drivedb.h': No such file or directory
root@Home:/# smartctl /dev/sda
smartctl 7.2 2020-12-30 r5155 [armv7l-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda: Unknown USB bridge [0x0bc2:0xab63 (0x1707)]
Please specify device type with the -d option.
Use smartctl -h to get a usage summary
root@Home:/# smartctl -d sat /dev/sda
smartctl 7.2 2020-12-30 r5155 [armv7l-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
ATA device successfully opened
Use 'smartctl -a' (or '-x') to print SMART (and more) information
root@Home:/# smartctl -d sat /dev/sda -a
smartctl 7.2 2020-12-30 r5155 [armv7l-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
root@Home:~# opkg files smartmontools-drivedb
Package smartmontools-drivedb (7.2-2) is installed on root and has the following files:
/usr/share/smartmontools/drivedb.h
root@Home:~# smartctl -x /dev/sda
smartctl 7.2 2020-12-30 r5155 [armv7l-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
root@Home:~# smartctl -d sat -x /dev/sda
smartctl 7.2 2020-12-30 r5155 [armv7l-linux-5.10.176] (localbuild)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
/var/lib/smartmontools/drivedb/drivedb.h is under a Debian installation, under an OpenWrt installation it's /usr/share/smartmontools/drivedb.h. Sorry for my mis-information.
Please compare the drivedb.h under OpenWrt with the file under dd-wrt. If they are different, this explains the different output. Otherwise the output should be identical.
There is no drivedb.h file on dd-wrt router.
I think you are digging in the wrong direction, Barney.
After installing smartmontools-drivedb on OpenWrt router i no longer receive the error
Unknown USB bridge [0x0bc2:0xab63 (0x1707)]
So drivedb must be fine in OpenWrt.
Now the error transformed into
Read Device Identity failed: scsi error unsupported field in scsi command
Reading the web it seems uas (USB Attached SCSI) kernel module is the problem.
This indicates a communication problem between smartmon and the hdd.
I would not blame the kernel module, but the hdd, which does not comply to the uas standards. Therefore I disabled uas on all my Linux based devices. That way all uas related problems vanished.
Just remove the package kmod-usb-storage-uas and reboot your router.
root@Home:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=uas, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
I think, your hdd is the problem, it does not identify itself as a mass storage device. I guess, that's the reason, why the usb-storage driver doesn't grep your hdd.
lsusb -t with my uas capable hdds looks this way (uas disabled):
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
What we know up to now is: smartctl is the same version in OpenWrt and dd-wrt.
As you said in a previous post: there is no drivedb.h file in dd-wrt. This file is essential for a proper smartctl operation, because it contains drive specific information.
Furthermore: what is dd-wrt's kernel version. Your installed OpenWrt uses kernel 5.10.x. Different kernel versions may result in different behaviour.