To obtain your registration code, please send an email to [email protected]
Thread Rating:
  • 74 Vote(s) - 3.31 Average
  • 1
  • 2
  • 3
  • 4
  • 5

VCM2 Hacking

289
(04-08-2022, 03:25 PM)Rob79 Wrote:
(04-08-2022, 12:03 PM)mcusys Wrote: I can not telnet to VCM II but ping 192.168.171.2 has response TTL=64 but telnet not login i try scan port 192.168.171.2 port 23 it close.....

Hi mcusys,

Assuming you tried to use the SD card method, it may not have worked if you're running a different version to one of the ones I tested with.  I've tested it only with Ford VCI Manager software and only the versions I mentioned in the post.

If you can let me know which software (brand and version) you have installed on the VCM-II, I will look into it further.

Hi Rob79,

thank you for your great work. I have run into some problems and I need your help.

I am using an original VCM2 Ford (id 13) with the latest version of VCI which is 2.4.73.82 (found in VCI_Software_1.0.1.16.exe). I have successfully installed your custom recovery mod which is very helpful. 

(Small remark, in Windows (10 or 8.1) I could not see the VCM Backup drive (no drive letter for this partition), only in OSX.)

I have re-partitioned and re-formatted and then re-validated the SD card (I used a new 8GB card, not the original 4GB one). When I start now the VCI Manager it says that I need to update the VCI APP (it says the VCI software is out of date) but when I click Start Update after the warning windows to not unplug the VCI from PC it says: Error starting the VCI reprogramming process. Sad
Also in VCI Manager properties tab under SD Card Status it says: SD Card Version Mismatch instead of usual SD Card Present.

Could you please help?

Also maybe it would be good if you could write a small tutorial how can we put back the backup that we have saved before.

Thanks.
Thanks given by:
290
Hi ptodic,

Thanks for the feedback.

During testing, I checked that the SD card backups were accessible in Windows 10, which for me they were.  It threw a bunch of errors upon inserting the SD card, due to the Linux partitions, but the fat partition was accessible (with drive letter assigned).  I'm not sure why you were unable to see it.

I haven't run into the error you're getting yet with regard to it being unable to start the reprogramming process.  I see you've PM'd me and will talk to you there to see if there's anything I can do to help.

Regarding restoring the backups, here is the first draft of the guide:

Code:
Restore the SD card image in my latest recovery to an SD card Remove and re-insert the SD card Copy your backup (mtd*.bin files) to the SD card (VCM Backups partition) Insert the SD card into the VCM2 and boot normally Once you hear the beep, wait 15 seconds then telnet to 192.168.171.2 At the menu, press 3 to exit to a Linux shell At the Linux prompt (bash-3.2# ) copy and paste the following commands, one at a time, waiting for each to complete before pasting the next: Note: It is best to skip over the commands releated to /dev/mtd0, /dev/mtd1 and /dev/mtd2. These partitions are boot related partitions, and if the restore goes wrong or you restore the wrong file to the wrong partition, you may not be able to boot the VCM2, and it will be bricked, requiring a much harder recovery process than usual. Running the commands to restore /dev/mtd4 and /dev/mtd5 will restore the recovery environment to original. You can restore the main/production environment by only restoring /dev/mtd3, /dev/mtd6, /dev/mtd7 and /dev/mtd9 The example below is for restoring the whole device: bash-3.2# mkdir /backups bash-3.2# mount /dev/mmcblk0p4 /backups bash-3.2# cd /backups bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd0 bash-3.2# /usr/local/mtd/flashcp -v mtd0.bin /dev/mtd0 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd1 bash-3.2# /usr/local/mtd/flashcp -v mtd1.bin /dev/mtd1 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd2 bash-3.2# /usr/local/mtd/flashcp -v mtd2.bin /dev/mtd2 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd3 bash-3.2# /usr/local/mtd/flashcp -v mtd3.bin /dev/mtd3 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd4 bash-3.2# /usr/local/mtd/flashcp -v mtd4.bin /dev/mtd4 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd5 bash-3.2# /usr/local/mtd/flashcp -v mtd5.bin /dev/mtd5 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd6 bash-3.2# /usr/local/mtd/flashcp -v mtd6.bin /dev/mtd6 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd7 bash-3.2# /usr/local/mtd/flashcp -v mtd7.bin /dev/mtd7 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd8 bash-3.2# /usr/local/mtd/flashcp -v mtd8.bin /dev/mtd8 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd9 bash-3.2# /usr/local/mtd/flashcp -v mtd9.bin /dev/mtd9 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd10 bash-3.2# /usr/local/mtd/flashcp -v mtd10.bin /dev/mtd10 The following are the serial number and MAC address partitions, these are not writeable on all VCM2 devices.  For devices that have writeable serial number and MAC address partitions, the following commands can be run.  On devices with read-only serial and MAC address partitions, the flash_unlock commands will fail, as will the flashcp commands, On devices with read-only /dev/mtd11 and /dev/mtd12 partitions, you probably won't need to restore them, as they probably still contain the original data. bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd11 bash-3.2# /usr/local/mtd/flashcp -v mtd11.bin /dev/mtd11 bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd12 bash-3.2# /usr/local/mtd/flashcp -v mtd12.bin /dev/mtd12 Lock the flash partitions (probably not necessary but it's good practice): bash-3.2# for i in 0 1 2 3 4 5 6 7 8 9 10 11 12; do /usr/local/mtd/flash_lock /dev/mtd$i 0 -1; done Unless your /dev/mtd11 and /dev/mtd12 partitions were not writeable, you're now finished. You can now reboot the VCM2 and it should boot up as it was when the backup was taken. If your /dev/mtd11 and /dev/mtd12 partitions were not writeable, you can most likely skip restoring them, but in case you need to, contact me for specific instructions (there seems to be at least a few different variations of the mtd partition layout, so I don't want to post potentially damaging instructions here).
Thanks given by: norabitox
291
hellp!
bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd11
Could not get MTD device info from /dev/mtd11
bash-3.2# /usr/local/mtd/flashcp -v mtd11 /dev/mtd11
This doesn't seem to be a valid MTD flash device!
Thanks given by:
292
(07-24-2022, 12:05 PM)Benji_jay Wrote: hellp!
bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd11
Could not get MTD device info from /dev/mtd11
bash-3.2# /usr/local/mtd/flashcp -v mtd11 /dev/mtd11
This doesn't seem to be a valid MTD flash device!

Your /dev/mtd11 and /dev/mtd12 partitions probably aren't on a flash block boundary, so you won't be able to write to them without doing some extra tricks.

You need to align the partitions to a flash block boundary, which you can do by modifying the mtdparts environment variable in the boot loader.

At the boatloader prompt, paste the following:

Code:
set bootargs "root=/dev/ram init=/linuxrc console=ttyS0,38400 rw ramdisk_size=24576 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(snmac) board_id=0x1" run altbootcmd

Then, once booted, /dev/mtd11 should be on a block boundary in flash, but don't write to it yet.  Firstly, make a backup of it:

(assuming you're using my sdcard image from my recovery environment)

mkdir /backups
mount /dev/mmcblk0p4 /backups
dd if=/dev/mtd11 of=/backups/mtd11-128k.bin bs=128k
sync

Then you need to reconstruct the 128K partition before writing it, eg:

dd if=/backups/mtd11-128k.bin of=/tmp/mtd11-padding.bin bs=64k count=1
cat /tmp/mtd11-padding.bin mtd11.bin mtd12.bin > mtd11-128k.new
/usr/local/mtd/flash_unlock /dev/mtd11
flashcp -v mtd11-128k.new /dev/mtd11
umount /backups
reboot

If you don't have a serial console to get access to the boot loader, then the other way to achieve this is by modifying the boot loader environment from within Linux and then rebooting the VCM2.  At next boot, /dev/mtd11 should be 128k in size and aligned to a flash block boundary, so it can be read and written.  After doing that, you'd need to restore the boot loader configuration to how it was originally.

If you need these instructions, let me know as I'll need to set up my VCM2 and write you a guide, as I don't recall the command to do it or the syntax.

Regards,
Rob.
Thanks given by: Benji_jay
293
(07-25-2022, 09:08 AM)Rob79 Wrote:
(07-24-2022, 12:05 PM)Benji_jay Wrote: hellp!
bash-3.2# /usr/local/mtd/flash_unlock /dev/mtd11
Could not get MTD device info from /dev/mtd11
bash-3.2# /usr/local/mtd/flashcp -v mtd11 /dev/mtd11
This doesn't seem to be a valid MTD flash device!

Your /dev/mtd11 and /dev/mtd12 partitions probably aren't on a flash block boundary, so you won't be able to write to them without doing some extra tricks.

You need to align the partitions to a flash block boundary, which you can do by modifying the mtdparts environment variable in the boot loader.

At the boatloader prompt, paste the following:

Code:
set bootargs "root=/dev/ram init=/linuxrc console=ttyS0,38400 rw ramdisk_size=24576 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(snmac) board_id=0x1" run altbootcmd

Then, once booted, /dev/mtd11 should be on a block boundary in flash, but don't write to it yet.  Firstly, make a backup of it:

(assuming you're using my sdcard image from my recovery environment)

mkdir /backups
mount /dev/mmcblk0p4 /backups
dd if=/dev/mtd11 of=/backups/mtd11-128k.bin bs=128k
sync

Then you need to reconstruct the 128K partition before writing it, eg:

dd if=/backups/mtd11-128k.bin of=/tmp/mtd11-padding.bin bs=64k count=1
cat /tmp/mtd11-padding.bin mtd11.bin mtd12.bin > mtd11-128k.new
/usr/local/mtd/flash_unlock /dev/mtd11
flashcp -v mtd11-128k.new /dev/mtd11
umount /backups
reboot

If you don't have a serial console to get access to the boot loader, then the other way to achieve this is by modifying the boot loader environment from within Linux and then rebooting the VCM2.  At next boot, /dev/mtd11 should be 128k in size and aligned to a flash block boundary, so it can be read and written.  After doing that, you'd need to restore the boot loader configuration to how it was originally.

If you need these instructions, let me know as I'll need to set up my VCM2 and write you a guide, as I don't recall the command to do it or the syntax.

Regards,
Rob.

Rob.
Thank you very much for your help!
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. What's the matter? How can I get him back to work!
Hope to get the complete mtd0-12
Regards,
Benji_jay
Thanks given by:
294
Hi Benji_jay,

I'm not sure if that's a software issue or a hardware issue.

If you have a backup of your VCM2 from a time before this started happening, then you could restore the whole thing and see if the issue persists.  It will probably be a hardware problem if it does.

That said, you shouldn't need to restore all partitions, and it is safer not to.

Both my recovery and ColtB45's recovery won't write to mtd11 or mtd12 on devices like yours where those two partitions are read-only, so you shouldn't need to restore those.

The only partitions you probably need to restore are mtd3, mtd6, mtd7, mtd8 and mtd9.

I've attached the links to my own VCM2 backups.  Please read the instructions for performing the de-bricking/recovery before proceeding (these are available on Mega and linked to in the attached file).  I have confirmed that your VCM2 partition layout is the same as mine, so you can use my backups to attempt to recover your own VCM2.

Attached Files
.txt

link.txt

36
2.98 KB
Thanks given by: Benji_jay , norabitox , gabiota , jeeqer
295
(07-26-2022, 06:49 PM)Rob79 Wrote: Hi Benji_jay,

I'm not sure if that's a software issue or a hardware issue.

If you have a backup of your VCM2 from a time before this started happening, then you could restore the whole thing and see if the issue persists.  It will probably be a hardware problem if it does.

That said, you shouldn't need to restore all partitions, and it is safer not to.

Both my recovery and ColtB45's recovery won't write to mtd11 or mtd12 on devices like yours where those two partitions are read-only, so you shouldn't need to restore those.

The only partitions you probably need to restore are mtd3, mtd6, mtd7, mtd8 and mtd9.

I've attached the links to my own VCM2 backups.  Please read the instructions within the attached file as they're quite important.  I have confirmed that your VCM2 partition layout is the same as mine, so you can use my backups to attempt to recover your own VCM2.

Hi Rob,

Great job! I have used your firmware backup to restore work!
I can use D-Link dwa-131 on ids86.00 (2.1.1.5). Can I use WiFi to connect to PC health? Can I upgrade to 2.4.73.78? What command should I use to repair it?

Regards,
Benji_jay
Thanks given by:
296
Quote:Hi Rob,

Great job! I have used your firmware backup to restore work!
I can use D-Link dwa-131 on ids86.00 (2.1.1.5). Can I use WiFi to connect to PC health? Can I upgrade to 2.4.73.78? What command should I use to repair it?

Regards,
Benji_jay

Hi Benji_jay,

It's good to know that you've been able to get your VCM-II working again.

I've never used the WiFi feature, so don't know much about it.  I have read in the past that when upgrading to newer versions of IDS/VCM-II Manager, that WiFi is no longer supported.

If you want to try upgrading to 2.4.73.78, you can.  You should be able to recover your VCM-II if it doesn't work.

Regards,
Rob.
Thanks given by:
297
Guys I have a GM MDI VCI, basically bosch 6531 clone, I have the mclaren VCI manager, is it possible to flash my VCI and make the mclaren VCI manager recognise to flash it?

Thanks so much, I will pay someone to assist me. I think it can be done, as I know people have done it..
Thanks given by:

Possibly Related Threads…

 
Replies: 1
Views: 131
09-27-2026, 11:43 AM
Users browsing this thread: 1 Guest(s)