TG01 ROM Building - Kitchen Released!
I haven't finished my kitchen (it doesn't work reliably at all) so I won't be posting it publicly (I'll be posting it when I get home today, if you know what you're doing, drop me a PM and I'll send you a beta version).
There are two batch scripts, "dump" and "build" (and "verify").
For "dump", you'll need to drop your TSW in \Base, and edit the set INPUT_FILE to reflect the name of your TSW.
From there, just run dump.bat.
You can then edit the OEM/SYS/XIP.
In theory, the MSXIPKernel and MSXIPKernelLTK from ROM\XIPDonor\xip.bin are combined with OEMXIPKernel, WinceNLS and LangDB are taken from ROM\XIPDevice\xip.bin. This does cause some odd errors because XIPPort isn't perfect. I'll try and write some code that dumps the XIP properly and merges the two. XIPPort is used because it builds a map.txt and ROMHDR.txt (these should be buildable with the tools I've got, but haven't finished them)
During the rebuild, both the XIP and SYS\OEM are relocated, based off ROMHDR and the .VM/.ROM, this and XIPPort aren't perfect. They cope with the stock ROM well, but less well with different XIPs/SYSs.
The Build.bat contains
INPUT_FILE is the name of the original TSW file (or whatever you want TGTool to build a new TSW from). It must be in \Base.
OUTPUT_FILE is the name of the output TSW. It will be placed in the root of the kithcen.
Verify.bat (along with the verify folder) are designed for distributing the ROM. Verify runs TGTool to check the tsw, and generates an MD5 for the TSW. Please distribute this with the ROM, so we don't end up with bad flashes.
You flash any ROMs built using this at your own risk.
TGTool is the (excellent) work of cedesmith. Without it, none of this is possible.
Don't use it if you don't know what you're doing.
Without Wen (from WMPU) I wouldn't have had a TG01 for testing, so this wouldn't have happened, and thanks to anyone who donated.
I'm going on holiday tomorrow, so I've uploaded the kitchen here
. It may not work, things may go wrong, it's not my fault if they do etc. Download, and use only if you know what you're doing!
(Password is l3v5yTG01Kitchen)