Hi all,
I have one genuine VCM II and 2 clones.
The genuine one has a big chip between Slave USB (cable to PC) and WiFi USB.
One of the clones has a small chip put on a bigger PCB that is soldered on the main PCB - as it would be a bigger chip. This clone has that RED female "banana" connector that it isn't soldered to PCB; this one works even with IDS 122. Its S/N is a public clone one (1211-3x6x5x52) ... no idea why it works. I suspect that it has a hack and the EPCS4 chip never gets rewritten - it has software from 2011:
Code:
FPGA: 2011/12/06, Build 22 : 104
CAN: 2011/06/24
J1850: 2011/12/06
I think it has its flash blocks protected.. or is damaged somehow. If I swap EPCS4 chip with another one that can get updated then VCM is seen by IDS but when trying to connect to car it dies... so this is why I'm guessing this might be a hack.
This one also has a wrong NOR chip, it is Bottom Boot type instead of Top Boot (P/N of it has a B almost at the end instead of a T) and because of this the serialnum and macaddress flash blocks (MTD11 and MTD12) aren't aligned with the sector and can't be erased easily (you have to temporary create another MTD descriptor that starts at the last sector address and that contains also this 2 sectors; it's a 128kB sector, 64kB that aren't used, then 32kB for serial and another 32kB for macaddress; then dump this sector, modify serial & MAC, calculate checksums, save as a new file, then flash it back and then remove this MTD descriptor).
The other clone, the second one, it works only with IDS till v96. I've cloned the Flash from genuine one to this one, did recovery (to have also FPGA flashed) in v86 and also in v96 and v122, I've even swapped NOR Flash, EPCS4 chip, 12F683 chip, SD card, from genuine but with no luck: clone still doesn't work with newer IDS, genuine remained working!!! :/
This one has a small chip between those USB ports that is directly soldered on main PCB. The "banana" female connector is blue and soldered to PCB. This one looks much better in terms of quality than the other clone one that works. It even has a newer CPU - it is P270M type and not PXA270 (as the working clone; don't know yet the version for the genuine one, when played with chips swapping didn't looked at this) and from what I could see all its chips are newer than the ones on the working clone; it has TJA1042 as the genuine one; the clone that works uses TJA1051.
I've cloned the flash from genuine one to the working clone, just as a test, and it still works - now with a good S/N.
Do you know where might be the problem?
I'm thinking that they might look in software at certain components versions, but searching in linux logs / dmesg / messages and even by running a lot of binaries couldn't find a difference :/
The clone that works at connection with car it powers one relay and the car LED goes ON and the PC one blinks.
On the clone that doesn't work, when I try to connect to car I see that the car LED goes ON, then after 1-2s I can hear a relay and almost in the same time the PC LED goes off. After 5-7s the VCM II icon goes off in IDS; it also disappears from VCI Manager, but USB connection is still there.
The differences between the Bottom and Top Boot NOR Flash:
Code:
TOP:
2x128 = mtd0 = blk: 0 -> 1
2x128 = mtd1 = blk: 2 -> 3
1x128 = mtd2 = blk: 4
5x128 = mtd3 = blk: 5 -> 9
12x128 = mtd4 = blk:10 -> 21
48x128 = mtd5 = blk:22 -> 69
24x128 = mtd6 = blk:70 -> 93
151x128 = mtd7 = blk:94 ->244
8x128 = mtd8 = blk:245->252
1x128 = mtd9 = blk:253
1x128 = mtd10 = blk:254
1x 32 = unused= blk:255
1x 32 = unused= blk:256
1x 32 = mtd11 = blk:257
1x 32 = mtd12 = blk:258
BOTTOM:
4x32 + = blk: 0 -> 3
1x128 = mtd0 = blk: 4
2x128 = mtd1 = blk: 5 -> 6
1x128 = mtd2 = blk: 7
5x128 = mtd3 = blk: 8 -> 12
12x128 = mtd4 = blk:13 -> 24
48x128 = mtd5 = blk:25 -> 72
24x128 = mtd6 = blk:73 -> 96
151x128 = mtd7 = blk:97 ->247
8x128 = mtd8 = blk:248->255
1x128 = mtd9 = blk:256
1x128 = mtd10 = blk:257
1x128 = 2x32 unused + 1x32 mtd11 + 1x32 mtd12 = blk:258
0x10 000 words = 0x100 000 bits = 0x20 000 Bytes = 131.072 Bytes = 128kB
mapinfo
Name Location Size Type Source Guard
---- -------- ---- ---- ------ -----
fsboot 0x00000000 0x00040000 Flash bootargs Off
boot 0x00040000 0x00040000 Flash bootargs Off
bootvars 0x00080000 0x00020000 Flash bootargs Off
fpga 0x000a0000 0x000a0000 Flash bootargs Off
linux2 0x00140000 0x00180000 Flash bootargs Off
initrd2 0x002c0000 0x00600000 Flash bootargs Off
linux1 0x008c0000 0x00300000 Flash bootargs Off
initrd1 0x00bc0000 0x012e0000 Flash bootargs Off
jffs2 0x01ea0000 0x00100000 Flash bootargs Off
linuxvars1 0x01fa0000 0x00020000 Flash bootargs Off
linuxvars2 0x01fc0000 0x00020000 Flash bootargs Off
free = id 0x01fe0000 0x00010000 --- 0x1FE 0000 words = 0x1FE0 0000 bits = 0x3FC 0000 Bytes = 66.846.720 Bytes = 65.280kB -> /2 = 32.640k
serialnum 0x01ff0000 0x00008000 Flash bootargs Off 0x1FF00000 bits = 0x3FE 0000 Bytes = 66.977.792 Bytes = 65.408kB -> /2 = 32.704k
macaddress 0x01ff8000 0x00008000 Flash bootargs Off 0x1FF80000 bits = 0x3FF 0000 Bytes = 67.043.328 Bytes = 65.472kB -> /2 = 32.736k
In order to be able to modify MTD11 and MTD12 for this Bottom Boot NOR Flash you have to modify BootVars.
You can do it for Normal boot (Primary boot) or for Recovery Boot. I played with Normal Boot, as I don't like touching Recovery

.
In Normal Boot you can change the root password using Test Mode and telnet (vi /etc/passwd; replace root hash password with one that you know - we have example for "hackedVCM" - root:$1$quzG9B6u$qqNRmEdJ0igLcxha0qzp3/:0:0:root:/:/bin/bash) so you can connect over Serial & FTP and after this you can download by ftp ( /libexec/ftpd -D ) the file /etc/vci/config/pr-specific-overlay.tgz to PC, open it with 7-Zip, go to etc, extract "passwd" file, edit and replace the first line - the one with root, save the file, then drag&drop it back on 7-Zip. When you close 7-Zip it will ask you if you want to save the changes, choose yes. Go back to FTP and put the file back on VCM. In Serial / telnet write "sync" and the you can reboot. Now you have root access to VCM in normal mode until you update it to a newer version.. then you have to do the above steps again.
Now back to BootVars - I tried using the bootvars_write binary but I didn't find the correct syntax - it omitted ${bootargs}. The same in U-Boot (put it in Recovery then as soon as it starts send any key by Serial to stop Recovery boot and now you have access to U-Boot commands - also explained at the beginning of this thread)... so I've went with modifying MTD2 dump (in a HEX editor, recalculate CRC32 checksum) with what I needed then flashed it back from normal boot (as we have root access now). This file can also be flashed in U-Boot by sending it with ExtraPutty in yModem Mode.
Code:
original:
setbootargsprimary=run normalargs addinit addid addconsole addeth addprimary;setenv bootargs ${bootargs} mtdparts=flash0:256k(fsboot),256k(boot),128k(bootvars),640k(fpga),1536k(linux2),6144k(initrd2),3072k(linux1),19328k(initrd1),1024k(jffs2),128k@32384k(linuxvars1),128k(linuxvars2),32k@32704k(serialnum),32k(macaddress);
my version:
setbootargsprimary=run normalargs addinit addid addconsole addeth addprimary;setenv bootargs ${bootargs} mtdparts=flash0:256k(fsboot),256k(boot),128k(bootvars),640k(fpga),1536k(linux2),6144k(initrd2),3072k(linux1),19328k(initrd1),1024k(jffs2),128k@32384k(linuxvars1),128k(linuxvars2),128k@32640k(serialnum),32k@32736k(macaddress);
I've chosen to modify MTD11 / serialnum because adding another MTD descriptor is seen in /proc/mtd but it is not present in /dev. This way MTD11 is already there.
At boot it will give errors that serialnum doesn't have a valid S/N and also if you try to use serialnum binary it will give errors.
dump in linux:
dd bs=512 if=/dev/mtd2 of=/mnt/sd/mtd2
modify it with any tool you like and put it back on SD (I used FTP for upload to and download from PC)
write in linux:
/usr/local/mtd/flash_unlock /dev/mtd2
/usr/local/mtd/flashcp -v /mnt/sd/mtd2_modified /dev/mtd2
/usr/local/mtd/flash_lock /dev/mtd2 0 -1
or write in U-Boot:
mw.b 0xa2000000 FF 0x01400000; loady 0xa2000000; funlock; protect off bootvars; erase bootvars; cp.b 0xa2000000 bootvars 0x00020000
then reboot (linux) or reset (U-Boot)
Next we dump the new MTD11:
dd bs=512 if=/dev/mtd11 of=/mnt/sd/mtd11
copy it by FTP to PC, modify it again with a HEX editor, calculate CRC32 checksums, save it, put it back on SD by FTP, then write it back to flash:
/usr/local/mtd/flash_unlock /dev/mtd11
/usr/local/mtd/flashcp -v /mnt/sd/mtd11_modified /dev/mtd11
/usr/local/mtd/flash_lock /dev/mtd11 0 -1
also, put back original MTD2, the one that doesn't have MTD11 descriptor modified (you should still have it on sd):
/usr/local/mtd/flash_unlock /dev/mtd2
/usr/local/mtd/flashcp -v /mnt/sd/mtd2 /dev/mtd2
/usr/local/mtd/flash_lock /dev/mtd2 0 -1
reboot
Now you have new serial in MTD11 ... do a VCM recovery to have it present in the other places.