mmc_tools CID.7z
Here is how to prepare SD for RNS315
1 - SD/microSDHC memory card samsung EVO/EVO+ 16/32/64Gb older then summer 2016. Format the SD card in FAT32 by Guiformat.exe utility (https://fat32-format.en.softonic.com/).
2 - Unpack by last WinRar and copy navpsf_update on card . Nothing more!
3 - Start Laptop from boot flash Ubuntu (previously created in PC by LiLi USB Creator or UNetbootin: http://unetbootin.github.io/)
4 - Copy file mmc and mmc32 to Desktop
5 - Right cick -> open terminal, then go to the Desktop folder ( by command "cd Desktop" )
6 - Make command execution rights by command "chmod 777 mmc32" and "chmod 777 mmc"
7 - Insert the SD in slot. Terminal command "df" and verify the name card.
Somewhere down everything must occur "mmcblk0" + p + a number.
The suffix p "number" is the partition on the card, we are not interested, just use "mmcblk0".
When you do not see anywhere mmcblk0,
you must try different Laptop with on matherboard integrated cardreader.
Now you can read the original CID by command "cat /sys/block/mmcblk0/device/cid"
8 - change CID by terminal command:
"sudo ./mmc32 prog_cid /dev/mmcblk0 5d53424c32424d31013917ca53010400"
or
"sudo ./mmc prog_cid /dev/mmcblk0 5d53424c32424d31013917ca53010400"
Writing new CID: 5d53424c32424d31013917ca53010400
Success! Remove and Reinsert SD card to check new CID.
If you do not see messages about success, remove and reinsert SD card
and check CID by command "cat /sys/block/mmcblk0/device/cid"
Now will be displaying the new CID 5d53424c32424d31013917ca53010400
You should see 5d53424c32424d31013917ca53010400 line.
The last two characters may be different, for example, be 01.
If CID changed besides the last two numbers, so it's okay.
On the last two numbers does not matter,
it's just a checksum, which generates SD card itself.
If the CID unchanged try again command for changing, remove and reinsert SD card
and check CID by command "cat /sys/block/mmcblk0/device/cid"
If not change, try the same command, but with different bit version of mmc,
remove and reinsert SD card
and check CID by command "cat /sys/block/mmcblk0/device/cid"
If not change, you must use a different EVO
9 - Locking using passwords
For the RNS315, you must to lock the card by appropriate password.
Double-check that you have the correct folder on the card and all data inside. Nothing else!
It's not possible to unlock easy again !!!
Lock command :
"sudo ./mmc lock_sd /dev/mmcblk0 C99A20843ED7D90B6801E49F2BC80277"
or
"sudo ./mmc32 lock_sd /dev/mmcblk0 C99A20843ED7D90B6801E49F2BC80277"
Ignores the error messages if they are some, especially this:
"ioctl: Connection timed out - Could not read response to SEND_STATUS from /dev/mmcblk0"
Do not be disappointed - everything is alright!
"ioctl: Connection timed out" - It is a proper report from the system
- when you lock the card, it is immediately invisible to the system
and system report, that can not connect to SD card !
"Could not read response to SEND_STATUS from /dev/mmcblk0"
- also right - system could not read response on query on the status from SD card.
Remove and reinsert SD card to check lock - when system not recognize, so its locked.
Try in a car.