telmomarques / xiaomi-360-1080p-hacks

Hacks for the Xiaomi Mi 360 1080p camera (MJSXJ02CM).
761 stars 129 forks source link

MJSXJ02CM can write firmware on CH341A rom writer?? #79

Open buttermocca opened 3 years ago

buttermocca commented 3 years ago

PXL_20201230_154630510 It became a brick while updating the camera firmware. When I disassembled the camera, I can see a firmware chipset. cFeon QH128A-104HIP I took the chipset off and wrote the firmware version 4.0.9_0409 on the ch341a and tried to operate again, but only the yellow light kept on coming out and the motor didn't work. Before updating to version 4.0.9, I have attached the firmware file that I had backed up to the ch341 device and the 4.0.9 firmware file that I used to update.

4.0.9 0403 https://tinyurl.com/y77rcgyu

backup firmware https://tinyurl.com/y7xcttj4

Can anyone check what the problem is?

rezmus commented 3 years ago

link to backup is damaged.

buttermocca commented 3 years ago

link to backup is damaged.

https://tinyurl.com/y7xcttj4 i re uploded.

rezmus commented 3 years ago

it looks like cloud credentials are gone (0xff0000). did you make backup before flashing anything with programmer or after?

buttermocca commented 3 years ago

it looks like cloud credentials are gone (0xff0000). did you make backup before flashing anything with programmer or after?

There is only firmware backed up after the brick T.T

cstrassburg commented 3 years ago

Are you solved your problem? Maybe I can help you.

Souroshis commented 3 years ago

@cstrassburg Please help I am Having Same Problem

cstrassburg commented 3 years ago

Really the same problem? You wrote the spi chip with a programmer and nothing is working now? Do you have a dump from the flash? A dump before the update? How do you program the chip? Which software, which hardware? Some of the software has problems with some chips. If you get a warning at reading the chip, maybe you read garbage. The best is to read the firmware twice and do a diff.

If the bootloader is working you don't need to program the whole chip. You can update single partitions over a serial connection to the console. Do you have a usb UART adapter?

If you brick the camera with a tf_recovery.img or tf_update.img your BOOT, CONFIG and FACTORY partitions are untouched, because in tf_recovery.img are only KERNEL,ROOTFS and DATA partitions. If you camera is booting and you see messages on the console maybe you can read and flash the chip over the os.

pexcn commented 2 years ago

Hi @buttermocca , can you provide MJSXJ02CM ch341a full backup firmware for me? My MJSXJ02CM was bricked...

jimmycr commented 2 years ago

here you are... 4.0.9 for MJSXJ02CM - tested

pexcn commented 2 years ago

I have repaired it 1 month ago, no matter what, I have to thank you~ 😋

Thatindianbruh commented 2 years ago

what software did you use to make a backup?

jimmycr commented 2 years ago

If this is question for me - "AS Programmer 2.0.0 something". When I needed to program the chip I had to use "Unsecure->Erase->Write->Verify" and then I had to set Secure bits again. Without Securing chip, camera "died" again on second restart after proper setup.

zhangguiyu commented 2 years ago

The reason the backup (and all older) firmware does not work is due to change in firmware formart from version 4.09 onwards. You will only be able to update with firmware newer than 4.09. There is no way to downgrade the firmware, apparantly.