-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add serial numbers for flash drives #398
Comments
[zwhitchcox] This has attached https://jel.ly.fish/057d4d51-7a26-400b-88e0-6f1e42ad75c5 |
Duplicate of #309 and others? |
Yes, that's true...working on this right now, so I'll just close it when it's done, as we have users following it right now..thanks again, @lurch |
So, it turns out that it's not possible to get the serial number of the SD card with the Etcher Pro hardware. This is due to the way the USB SD card readers work. The SD API is not exposed through the USB interface, but the card reader merely exposes the functionality of a USB mass storage device (UMS) and communicates to the SD card on behalf of the UMS API. The CID registers are not exposed through this UMS interface, and thus we have no way of getting them. Since the use case for the etcher pro customer was to get these CID numbers from the SD cards, I am dropping this change for now. However, the functionality does work for getting the serial numbers of USB Flash drives, USB SSDs, etc., in general anything that does not have an adapter in between, so this might be useful in the future. If so, I (or whoever) can pick up the changes from the |
Btw, everything is done in the |
Apologies if you already know this, but it is possible to get the SD-card CID numbers if your SD-card-reader is connected over PCIe rather than USB (which it sometimes is on the card-reader built into laptops). And AFAIK the same is true whenever an SD-card shows up as More info at https://www.cameramemoryspeed.com/sd-memory-card-faq/reading-sd-card-cid-serial-psn-internal-numbers/ |
Yes, I believe 12/16 ports are exposed over the USB interface, and the rest are using PCIe, so we could technically modify the drivers to expose the SD card readers through the PCIe interface as That being said, I will bring this up internally and see if they think this is a worthwhile change...I will keep this open for now. |
Yeah, I was coming from the "just in general" viewpoint, rather than from the EtcherPro viewpoint 😉 (I agree that it sounds like having 4 ports working differently to the rest would probably be a bit confusing) |
Yes, agreed, it could potentially be useful for other people, so I will come back to this when I have a chance. It's most of the way there anyway. |
@zwhitchcox I went over your branch to get serial number for flash drives. Can you guide me on how to add similar change for mac devices? I am willing to raise a PR (if the team needs one to support this), but a bit lost on where to begin. I want to have that feature for my project for mac devices |
SD cards and USB flash drives expose a serial number that user's have been requesting. We are currently working on implementing this.
The text was updated successfully, but these errors were encountered: