-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaofang with ARM Processor bricked #1855
Comments
I don't know anything about the Arm versions but typically with the Ingenic versions the flash memory is an external chip. If "bricked" you can connect directly to that chip and write whatever is needed. Depending on the circuit design you may have to remove the chip or at least disconnect its ground and power legs so you can power it without powering anything else on the board. Something similar to: Chips can be flashed via a variety of methods like an Arduino or dedicated device. If the flash is internal to the Arm chip there may still be a way to do something similar except directly on the microcontroller. Of course you will need a working flash image to write. Maybe extracted from a firmware update or something else for the MCU. |
Thank you for the tips. The big problem is finding a suitable image for ARM-based Xiaofang cameras. Then I could also get a Nand flasher for 4 euros on ebay ;-) If anyone knows of another option, please let us know! Thank you! greeting |
frser-duino is compatible with the flashrom utility There are utilities for doing it from a Raspberry too |
Super, thank you!!!! I had created a dump before flashing /dev/mtd0. It should be possible to save only the boot "partition" with my dump back to the chip - right? The partition table is available at https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/firmware-dump.md. Instructions are available at https://github.com/Dafang-Hacks/spiflasher. Thanks again :) |
I don't know if the Arm partition map is the same but the layout for flashrom is here: https://github.com/Dafang-Hacks/spiflasher/blob/master/rom.layout The commands should be similar to those spiflasher instructions. Basically you need to resize your Obviously keep a backup of the original dump-mtd0.bin. You might have to play with flashrom to see which chip you actually have and its size. If the size isn't 16MB then the partition map won't be correct. Make a full dump/read backup of the chip before writing to it too. Keep all this so if something goes wrong you can put it back. Another way to do it is to make a full copy of the chip to a file then write your bootloader to the front of that image (eg. Make sure to use the proper voltage for your particular flash chip. Most are only 3.3V while Arduino's tend to be 5V. Most Arduino's can run at 3.3V otherwise you need to level convert all the I/O between 5V and 3.3V. |
@c--- I want to say a big thank you to you! |
Really great to see you figured it out and saved more electronics from the landfill. :) |
I bricked my Xiaofang ARM and I don't have a backup. Could you please send me your backup so I can save my Xiaofang? Thank you in advance. |
Hello,
I bricked my Xiaofang camera with an ARM chip by following the instructions on https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/flashinguboot.md. Unfortunately, I realized too late that this hack is only applicable to Ingenic T20 processors.
Now, when I connect to the camera's serial interface, it only displays "<<" and "hw:x", sometimes "sf:err" as well. I can still enter commands, but there is no response.
Since I've read that flashing the uboot bootloader by EliasKotlyar is not possible on ARM processor models, I wanted to ask if there's anything else I can do or if I have to consider this as a lesson learned.
Thank you in advance for your responses!
Martin
The text was updated successfully, but these errors were encountered: