Skip to content
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

Request: TOT Files #7

Open
Eliminater74 opened this issue Oct 17, 2016 · 4 comments
Open

Request: TOT Files #7

Eliminater74 opened this issue Oct 17, 2016 · 4 comments

Comments

@Eliminater74
Copy link

Any chance on creating a way to extract TOT files as well? its pretty much same as KDZ..

@culots
Copy link

culots commented Oct 17, 2016

Check out LGBinExtractor.

@ehem
Copy link
Owner

ehem commented Oct 19, 2016

The TOT format has been on my radar. While they're used in a role similar to KDZ files, the format could be very different. I do hope to add this, but it is potentially a rather complex feature and I have no time-frame for accomplishing this. The above link is rather valuable since I was looking for information on what was already known about the format.

@culots
Copy link

culots commented Oct 20, 2016

  • Making a TOT apparently uses Qualcomm storage tools, and goes something like this:

ptool.py -x partition-${TARGET_NAME}.xml
checksparse.py -i rawprogram0.xml
makeLGTot.py -r rawprogram0.xml -d ${SEC_COUNT} -o ${TAG_NAME}.tot

The parameters used by makeLGTot.py look like those used to generate a singleimage.bin, but I cannot see any immediately similarity to a singleimage.bin and a .TOT; not the same header, anyway. We can see what input it takes though, see how it handles sparsing, and basically all it does to prepare the included partitions. What makeLGTot.py does with them though... dunno.

I wonder if KDZs use a similar workflow?

  • - Peep LW690.zip that is inside this archive. It's older code, but it handles TOTs to some degree. You can still see plenty of that code in the newer versions of LG Flash Tool even. Also looks like a decent blueprint as to how device flash dlls are made. Fun stuff.

@andy19801210
Copy link

How to make tot kdz file

@ehem ehem mentioned this issue Jul 14, 2017
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants