The-Good-Penguin / tgp-krill-kounter

eMMC / SD Card testing library
GNU Lesser General Public License v3.0
8 stars 1 forks source link

CID variable path #74

Open bbraddock-thegoodpenguin opened 4 months ago

bbraddock-thegoodpenguin commented 4 months ago

The base path for SD card CID variables such as manfid is defined as

std::string devicePath = "/sys/block/" + deviceName + "/device/block";

However 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

pzalewski-thegoodpenguin commented 4 months ago

@bking-thegoodpenguin was

std::string devicePath = "/sys/block/" + deviceName + "/device/block";

a valid path on yout machine ?

amurray-thegoodpenguin commented 4 months ago

On my Pi Cluster, the correct path is:

/sys/block/mmcblk0/device

pzalewski-thegoodpenguin commented 4 months ago

same here

ngalea-thegoodpenguin commented 1 month ago

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?