Quick intro to the whole situation:
I got a used Toniebox from ebay with “a minor fault” that the seller “didn’t have time to look into”.
Obviously the problem was bigger than claimed (so as a warning: never trust ebay sellers that have multiple boxes to sell. They’re professionals and know that a repair is not possible or too complicated).
Long story short: The box first seemed to work mostly fine, but just couldn’t get a stable wifi connection. The signal is super weak and I can barely connect to it during the initialisation when holding my phone directly to the bare pcb.
The initialisation didn’t go through and the box was not usable (since it couldn’t download a firmware update).
I got the UART connection soldered up and working, but even so couldn’t convince the box to at least work in offline mode.
Now I did the mad thing, bought a replacement cc3200 from Ali and (apparently) actually managed to solder it in in my first hotair job.
Now the new problem is that I can’t seem to properly flash all backup files back to the new chip, although the UART connection seems to be generally ok.
The journey continues.
Writing the first post I noticed the flash size after the format_flash command being too small for my dump (1M vs 4M dump).
0xbadbee mentioned in the telegram group that there is a size option for the “format_flash” command, which I then found in the cc3200tool github
So in order to give the flash enough space to take in the whole dump, I set it to 4M with
Formatting to 4M seems to work:
But after flashing the complete flash dump with
and then trying to read the filesystem, I still get the same error as before with the 1M flash:
Now I re-formated the flash again and instead chose to write the individual files with “write_all_files”.
This time I get a proper listing of all files without errors:
A potential problem I can already see though: the slashes aren’t correct.
So I fear I’ll either have to look into the cc3200tool code to correct the slashes there… or flash the files individually with the correct path format
The slashes seem to be a windows problem, which is a bug in the cc3200tool. By using linux you may fix that.
To set the mac address, you’ll have to create a /sys/macadd.bin with the binary representation of the mac address (just the bytes)
Be sure it correctly connects to the cloud. The box has a servicepack for the wifi chip you may need to install.
Some info about it here: Bricked my box? - #13 by 0xbadbee
Congrats to your successfull replacement. Maybe one can help me with one thing I don’t quite understand:
Why is it neccessary to rewrite the flash after replacing the chip? Isn’t the flash completely stored on the external flash IC?
No, there’s no external flash (other than the SD maybe…).
The firmware an all other files are stored directly on the main IC flash, which in this case is in the CC3200
There is (the orange marked one). But that does not mean that rewriting the flash only affects the flash-IC. Maybe something is written to the cc3200 directly by writing all the files back. Just curious.
oh, you’re right.
sorry, I somehow assumed, it was just the internal flash of the chip. Then I don’t know whether the external one is used and why it would be needed to be reflashed.
Maybe there’s some encryption going on that is tied to the chip or something.