nlitsme / ubidump

Tool for viewing and extracting files from an UBIFS image
MIT License
232 stars 60 forks source link

ERROR Could not determine UBI image blocksize #16

Open 971106029 opened 3 years ago

971106029 commented 3 years ago

Hello, I encountered such an error while using your tool. Can you help me solve it?

error log : ERROR Could not determine UBI image blocksize

nlitsme commented 3 years ago

Can you send me a copy of the file you are looking at?

Feehley commented 2 years ago

The (genuinely ingenious) iteration (lines 270-280) goes 1024, 2048, … 524288.

If your next “UBI#” is outside of that seek range, it won’t be found.

I’m no engineer, but it seems there is a lag in your file (bad chip read because of reader speed or ground?).

I’m working on finding a good way to solve it. More than likely just by manually removing the “FF”’s that are pushing the block size counter back.

I’ll report back if I can figure out an error correction function.