0kb files cannot be transferred

Hello,

I would like to restore all files manually.
I realized that the files with 0KB cannot be restored.

Why can’t it restore empty files?

The following files are affected:
pref.net
servicepack.ucf
mcuimg3.bin

The original files from the backup only have 0KB.
So I have backed them up correctly.

Greetings Sebastian

Please just don’t. Don’t flash back files randomly.
Either use the full flash backup or just flash back the files you changed.
Empty files cannot be flashed back and are not needed.

Thank you for your quick reply
okay i wanted to restore the factory settings

Because exactly these files are missing on the box:

My problem is that neither this command works:
cc3200tool -p COM3 --reset dtr --sop2 rts write_flash backup.bin

This command also terminates with an error:
cc3200tool -p COM3 --reset dtr --reset dtr write_all_files ExtractedFromBox/

Do you have any tips for me on how to get the entire backup back onto the box?
I have backed up both the files and the backup.bin

I can only post 1 picture at a time so 3 replies sorry

Please describe why you are doing all this. It makes no sense to me.

You are really trying to brick your box, aren’t you? Don’t write back random files.
Just write back the files you changed. Usually only the mcuimg.bin

Then you got an unstable connection to your box. Try a different USB port, check your wires or try a different computer.

Please describe why you are doing all this. It makes no sense to me.

I have had problems with the box not being connected to the wifi.
In addition, the box on the cover is damaged and my wife wants to have it repaired, so I want to restore it to its original condition.
I don’t understand why there are options for flashing that are supposed to be dangerous.
If I write the original state on the flash, everything is back to the old state.

Then you got an unstable connection to your box. Try a different USB port, check your wires or try a different computer.

I deleted the 0kb files from the backup and now the command works:
cc3200tool -p COM3 --reset dtr --reset dtr write_all_files ExtractedFromBox/
It can write all files.
That’s why I can’t understand why the connection should be bad.
It can also write the sfx.bin with 862KB.

I suspect that the backup function has a bug, because the connection is good.
or can you explain to me how a connection can be bad if it works?

maybe it is a different hardware version than the one where the tool was developed.

Thank you for your time.

PS:
The box is not broken It works.
But I would prefer to have the original state again with the 0KB files, which is currently not possible.

Every flashing operation is dangerous if used wrong.
Especially, the write_all_files option is there to rebuild the complete flash of the box. For that, only certain files are allowed to be flashed. If you write the wrong ones, the box won’t boot any more.
The read_all_files backup is not a full backup that can be reflashed blindly. Sometimes, some filenames are missing and so the files are missing from the backup. Certain files cannot be backuped this way at all. Therefor the flash based backup is done.

To revert the hackiebox-ng bootloader installation, deleting the backup of the original bootloader pre-img.bin and writing the original bootloader mcuimg.bin back to the flash would have been the way to go.

Because writing single files is something different to writing the complete flash. I don’t think there is a bug in the flashing process, as it is already stable for years!

The CC3200 is already very old and abandoned. The version of the hardware is checked in the cc3200tool.

You don’t need those. And if they would look that detailed, they would see that the files were flashed in the wrong order.
The only way to revert it, is to use the full flash based backup.

Thank you for your very detailed answer.

Okay, I will try to restore the backup with another PC/laptop and cable.

Thanks again for the support and a happy new year.