Open bbraddock-thegoodpenguin opened 9 months ago
@bking-thegoodpenguin was
std::string devicePath = "/sys/block/" + deviceName + "/device/block";
a valid path on yout machine ?
On my Pi Cluster, the correct path is:
/sys/block/mmcblk0/device
same here
I have tried in Ubuntu 18, Ubuntu 24, Debian 10 and Debian 11 and it is in /sys/block/mmcblk0/device in all of them. I have already commented to Pawel in the chat, but commenting here for the records, which distros and versions are supposed to be supported? Shouldn't it use the path for such distros and versions?
The base path for SD card CID variables such as
manfid
is defined asHowever on the path on every OS I've tested so far has been
"/sys/block/" + deviceName + "/device"
So want to make sure this is a bug and not something that is in a different place on specific platforms that we need to support