Open inonoob opened 19 hours ago
Thanks for the details and the pictures. I will extend the current guide with these.
Just one thing: Next time please use a white paper as underground ;) that is easier to handle
@henryk86 my bad sorry :). I just had today a couple of min without the kids. I start to get very good in opening the toniebox and having the clamp on :). So I though, I can quick make some picture and give a bit back to the community for the fantastic job everyone has already done.
here is a first version:
i added some of the sop8 clamp images to the help collapse
So. restructured it again... moved all preparations to the first preparation page.
Now it would be great if you @inonoob can also provide the steps for Flashing the CA
I check my bash history. I can try to write the flash method. @henryk86 I think you mean the current special case where we need to use the external certgen.sh because the docker container creation process is not working for the CC3235.
no, the flashing of the ca.cert actually. That part:
This is specially for the pico approach. but with the CH341A programmer it is different i would say?
At least this call?
flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.bin --progress
Edit:
I assume this must be
flashrom -p ch341a_spi -w cc32xx-flash.bin --progress
for the CH341A. Can you confirm?
Hey @henryk86,
I checked my console history. Correct can confirm.
I needed to use sudo as my user on the bananapi was not in the usb group.
sudo flashrom -p ch341a_spi -w backupCC3235-1.bin
I didn't use the --progress option.
I hope that helps
This is a how to do it from my experience and it went well, I wanted to share it with the community so they don't do the same mistakes I went through :).
Maybe something for the documentation part.
To extract the certificates, you need to read out the IS25LP032D Flash memory of the Toniebox. In order to do that, it is possible to either desolder the chip or to use SOP8 clamp. From experience, we recommend using a CH341A programmer with the different add-ons and the tool Flashrom. Only buy the black version with a gold line and round edge.
1.1 Disassemble your Toniebox
1.2 Extract image from IS25LP032D Flash memory
1.2.1 Preparation
Identify the chip on the board it is right from the charging dock. (see image)
Remove some plastic from the CH341A clamp otherwise it won't fit on the IS25LP032D Flash memory. (see image)
Ensure that the PCB and the battery are disconnected
On the computer performing the flashing ensure you have flashrom install if not perform the following:
If your output look different then it might be that the little bridge between pin 1 and 2 on the CH341A is not set. Once that is confirmed unplug the CH341A from the USB port. That was a check if everything is all right.
Ensure that the SOP8 module included in the CH341A kit and the clamp is plugged as shown in the picture.
Only if perperation are finish, we can start the extraction process
1.2.2 IS25LP032D Flash memory dump
Connect the clamp to the IS25LP032D Flash memory. Ensure that the red clamp cable is position where the IS25LP032D Flash memory has a dot on the chip. That marking represents pin 1. (see picture). If the clamp is not holding then you might still collides with the clamp against the black block next to it. Remove a bit more plastic. Don't connect the CH341A yet. Re-check if all cable are correct.
Once you feel ready plug the CH341A into the USB port of the computer. The Toniebox light should be steady green. If it flickers the clamp is not well positioned, disconnect the CH341A from the USB port and re-position the clamp and retry. You want to make sure the connection is good !
Once the LED is solid green, you should have a good connection. Open a terminal on your PC and type the following:
Redo that at least 3 times
Once you have done 3 times. Check if all dumps are the same
Once you confirm all versions are ok, we can proceed to extract the certificates
remove the CH341A from the USB port of the computer and remove the Clamp. That ensure to not cause any short or other issue if by accident the clamps moves.
1.3 Extract certificates from dump
You can use the cc3200tool to extract your certificates from the flash dump afterwards.