![]() I bought my card with changed cid from this listing (about 17€), but there are some other listings like this. And for that there are few ways, so you can buy cid changer and change cid of any sd card or you can find someone on ebay or site like that, Only thing remaining is to tell you how to get sd card with correct CID. So the idea is to have sd card with correct CID and then you can update/add new maps for free using Discover Care software ( download link, seems shady but it works I couldn't find official download link) orĭownload maps that you want and put them on sd card (you can download maps from here) So MIB2 check if card has correct CID (read more about CID here), and if CID is correct number it will try to read maps data from SD if it's not then it will read So I found another way of creating SD card.įirst of all, when you insert SD card into SD slot all MIB2 systems check if card i from their vendor (so for example VW will check if it is original VW sd card, Audi will check if it is original Audi card and so on). ![]() So I decided to buy original SD card fromĭealer, but as it turns out they charge regular SD card too much (it costs about 85€ at my dealer). So i recently bought MK7 and it didn't have SD card with navigation maps. This article gives a great explanation of how SCSI works underneath the hood, but basically, Linux pretty much just handles all the tedious request forwarding, so we can just send IOCTL commands directly to the device ( /dev/sd*).īut again, this is all theoretical until I test it, but I haven’t gotten to that point yet.I'm new to this forum and I wanted to tell you about how I fixed my MK7 sd card problem. SCSI just has a standard command list (see SCSI command - Wikipedia), and everything else is just built on top of the SCSI generic driver in linux. ![]() To my understanding the adapter just forwards SCSI commands to the SD card. I haven’t actually tested this on the EtcherPro yet, so I’m I’ll have to get back to you when I get to that point, but I think it should still work, as I’ve tried on USB adapters before, and it has been working. Just to keep you updated, I believe I have the CI issues worked out, and now I’m back to the main event, although there is one other (unrelated) issue I’m working on as well. For linux, this code is already written for us, because it uses lsblk under the hood though (although I intend to change that at some point to remove the lsblk dependency). Worth a read is always this page where the information is a bit more condensed down to tables and figures: Īh, I see, no, I tested on the /dev/sda device. With this thread i want to assure that the targets need to be registered/ recognized as mmcblk devices in order to read the SD-Card registers mentioned in the Simplified Specifications. The Flash targets are only recognized as sda, sdb, sdc and so on. Which is the block device the OS is running on. I just wanted to make sure that you know that this could be misleading because someone most likely was able to read the CID of mmcblk0. “The Balena EtcherPro already read CIDs” that is the current explanation of the hardware capabilities. I’m not sure what you mean by “host” SD card though? That means, changes to drivelist will not be enough, i guess. Okay, so on the EtcherPro hardware+OS tweaks are needed to read the CIDs because the Card-Readers are running in USB-Mass Storage Mode and not SPI mode. ![]() Yes, the solution will read the serial number from the flash targets Hi thank you for the issue and the link to this thread, i had a look into the drivelist project now. I will keep you posted on future updates. I do plan on implementing a native solution on Linux so we don’t have to rely on lsblk on the user’s system, although, since pretty much every linux machine is probably going to have lsblk, is hasn’t been a priority. So, the technical challenges of actually getting the serial number are mostly done, it’s other stuff happening in the background that I am working on, that is specific to Balena. It might be a little longer before we can actually deploy the fix though. Serial.println(cid. The serial number (psn) is just a 32-bit unsigned integer.You can print it as hex by printing it as hex. I haven’t actually tried on Mac yet, because I started working on the technical debt I mentioned earlier, but I am hoping to get this resolved this week. cidt is a structure that has all sorts of information in it in different formats. There was some technical debt built up that I am taking care of, but as soon as that is fixed, we should be able to add the field to Etcher-SDK.įor your reference, in Etcher, we actually don’t use lsblk and parse the output from that, so that work is done for us.įor Windows we will use IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER. I have gotten it working on Windows and Linux at least, but I am now working on integrating the solution into our codebase. I Markus, we are able to get the serial number from the card already. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |