RPi3/RPi4, 14.3/15.0 how to read SDcard serial number?

I'm running FreeBSD 14.3 and 15.0 on a RPi3 and RPi4, how can I read the MMC SDCard's serial number?

sh:
doas camcontrol inquiry mmcsd0
doesn't work on the MMC. It complains:

Code:
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or mmcsd0 doesn't exist

`lsblk` shows mmcsd0, so I guess the problem is with CAMGETPASSTHRU.

sh:
doas camcontrol inquiry mmcsd0
does work on an SDCard via a USB adapter.

Any suggestions?
 
camcontrol devlist, first off. then we'd try camcontrol identify mmcsd0 since inquiry wasn't working, but that might not work either since it's not an ATA device. You might have to bung all the way down to the camcontrol mmcsdcmd command.
 
Back
Top