Hacking wwt+wit: Wiimms WBFS+ISO Tools

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Little Baron said:
One question:
"wit dump" show the content of some extracted files like boot.bin or fst.bin. But I'm missing the same for ticket.bin and tmd.bin. is this on your roadmap?
It's not only on the road map, ticket.bin is ready and now I'm working on tmd.bin.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.00a - 2010-06-12
A command line WBFS tool set for various os.

WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

Feature overview:Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:There is also a GUI available:Highlights of this release:
  • When I startet September 2009 my plan was to create a simple WBFS manager for Linux. A second plan was to find an archive file format which takes less disk space for iso images. The result was wwt, the probably completest WBFS manager at all. When I say this I think about the special features like integrity check, repairing, include- and exclude lists, file formats (ISO, CISO, WBFS, FST and especially WDF) and a very good script support.

    I have finished the development wwt months ago. wwt is very stable and so it's time to propagate version 1.00.


  • The second tool wit is still under devlopment. And some new features will go atomatically into wwt.
    .
  • The three tools iso2wbfs, iso2wdf and wdf2iso are no longer supported. The more powerful wit can do all conversions with the COPY command, like "wit copy source.iso dest.wdf".
    .
  • wit DUMP prints the data structure and additional information of the following file types:
    • Wii ISO disc (Plain, CISO, WDF, WBFS or FST)
    • DOL files
    • ticket.bin
    • tmd.bin
    • header.bin
    • boot.bin
    • fst.bin
Change log:


Code:
wit v1.00a r1214 - 2010-06-12

- Because I finished my work with wwt (the WBFS manager) it's time to
ÂÂ declare Version 1.00. The tool wit is still under development.
- This is the last version which supports the three tools iso2wbfs, iso2wdf
ÂÂ and wdf2iso. Use the more powerful command 'wit copy' instead.
- Makefile changes:
ÂÂÂÂ- File './include-local' is not included anymore. Instead the file
ÂÂÂÂÂÂ'makefiles-local/Makefile.local.$(SYSTEM)' is included.
ÂÂÂÂ- make chmod: change mode 775/644 for known dirs and files.
ÂÂÂÂ- make chown: change owner of all dirs+files to owner of '.'.
ÂÂÂÂ- make chgrp: change group of all dirs+files to group of '.'.
ÂÂÂÂ- make ch+ÂÂ:= make chmod chown chgrp
- wit DUMP: Output improved.
- wit DUMP can now dump data structure of Wii ISO files, ticket.bin (new!),
ÂÂ tmd.bin (new!), header.bin (new!), boot.bin, fst.bin and of DOL-files.
ÂÂ The file type is detected automatically by analyzing the content.

Missing docu:
- wit commands ILIST + EXTRACT

The source is published under the licence of GPL2. Checkout the sources directly from the SVN repository or browse the source.
Visit http://wit.wiimm.de/ for more information.
 

mattesno1

Well-Known Member
Newcomer
Joined
Apr 27, 2010
Messages
72
Trophies
0
XP
34
Country
Gambia, The
Hi Wiimm,

could you add an error to wit if you try 'wit copy' with a directory without games as a source?
My script deletes the source dir when conversion is finished without errors, but this will also delete the source dir if I accidentally select the wrong dir.
 

W hat

Rhythm Heaven Fan
Member
Joined
Feb 28, 2007
Messages
632
Trophies
1
XP
697
Country
United States
Has any progress been made in Wii file by file patching? I'd love to take my 1 GB each Endless Ocean games and store the full USA one with patches for JPN and EUR.

I'm guessing it's a low priority.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
what is "--pmode=index" supposed to do? on this page ( http://wit.wiimm.de/wit/cmd-ilist.html ) it is listed, but it doesn't seem to be working.
Code:
$ ./wit ILIST-l '/media/1TB_3GbS_2/SSBB_japan.iso' --psel=data --pmode=index > test.txt
!! wit: ERROR #26 [SYNTAX ERROR] in ScanPrefixMode() @ src/iso-interface.c#1141
!!ÂÂÂÂÂÂIllegal prefix mode (option --pmode): 'index'
-> Type 'wit -h', 'wit help' or 'wit help command' for more help.

EDIT>>>

also, trying to do "wit DUMP makes wit crash. it appears that this ISO may have had the channel install partition improperly removed. in wiiscrubber, it shows up as "partition 2 INSTALLER (bad)". in wit, it runs 1 of my CPU cores up to 100%, and the memory usage for wit slowly rises to ~3.4GB and finally the thing dies...
Code:
./wit DUMP '/media/1TB_3GbS/MarioKart(Compress).iso' 

Dump of file /media/1TB_3GbS/MarioKart(Compress).iso

ÂÂID & type:ÂÂÂÂÂÂ RMCP01, ISO
ÂÂFile size:ÂÂÂÂÂÂ 118240000/hex = 4699979776 = 4482 MiB
ÂÂDisc name:ÂÂÂÂÂÂ MarioKartWii
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂPAL [PAL ]
ÂÂRegion setting:ÂÂ2 / 80 80 80 00ÂÂ03 03 04 03
Segmentation fault

i think its getting stuck in some infinite loop?
 

oggzee

Well-Known Member
Member
Joined
Apr 11, 2009
Messages
2,333
Trophies
0
XP
188
Country
Slovenia
It's amazing how complete and feature rich are your set of tools, good job. But there's one last tiny bit that i think needs to be addressed that is the file preallocation on windows to prevent file fragmentation - just a reminder
wink.gif
sorry if I'm nagging but I needed to bring this up again.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
giantpune said:
nice!
is there a command or argument to dump the tmd of a iso without extracting it first to a .bin file?next release: wit dump --show=ticket,tmd

mattesno1 said:
could you add an error to wit if you try 'wit copy' with a directory without games as a source?done.

giantpune said:
what is "--pmode=index" supposed to do? on this page ( http://wit.wiimm.de/wit/cmd-ilist.html ) it is listed, but it doesn't seem to be working.
Code:
$ ./wit ILIST-l '/media/1TB_3GbS_2/SSBB_japan.iso' --psel=data --pmode=index > test.txt
!! wit: ERROR #26 [SYNTAX ERROR] in ScanPrefixMode() @ src/iso-interface.c#1141
!!ÂÂÂÂÂÂIllegal prefix mode (option --pmode): 'index'
-> Type 'wit -h', 'wit help' or 'wit help command' for more help.
fixed.



QUOTE(W hat @ Jun 14 2010, 10:47 PM) Has any progress been made in Wii file by file patching? I'd love to take my 1 GB each Endless Ocean games and store the full USA one with patches for JPN and EUR.

I'm guessing it's a low priority.
I'm on the way.


QUOTE(oggzee @ Jun 16 2010, 01:19 PM)
It's amazing how complete and feature rich are your set of tools, good job. But there's one last tiny bit that i think needs to be addressed that is the file preallocation on windows to prevent file fragmentation - just a reminder
wink.gif
sorry if I'm nagging but I needed to bring this up again.
Is there really a need for this? (and the cygwin docu says: it does this automatically for large files if seeking behind 128k). Sparse files are so unhandy. If copying or moving you lost the sparse effekt or it becomes fragmented again.

For usb loaders CISO is the best solution: easier to handle as wbfs, large chunks (in this point better than WDF).
 

oggzee

Well-Known Member
Member
Joined
Apr 11, 2009
Messages
2,333
Trophies
0
XP
188
Country
Slovenia
Wiimm said:
oggzee said:
It's amazing how complete and feature rich are your set of tools, good job. But there's one last tiny bit that i think needs to be addressed that is the file preallocation on windows to prevent file fragmentation - just a reminder
wink.gif
sorry if I'm nagging but I needed to bring this up again.
Is there really a need for this? (and the cygwin docu says: it does this automatically for large files if seeking behind 128k). Sparse files are so unhandy. If copying or moving you lost the sparse effekt or it becomes fragmented again.

For usb loaders CISO is the best solution: easier to handle as wbfs, large chunks (in this point better than WDF).

I'm not talking about sparse files but fragmentation. Windows has a weird idea that you need to preallocate files to prevent file fragmentation. Linux and MacOSX seem to do a better job at keeping the file together than windows when you don't tell it to. On windows when you copy a file using the explorer it will always preallocate the file to make it non-fragmented. To verify this behavior of windows you can install this tool: http://www.mutexed.com/code/FragExt/ then convert an iso using wwt to one of wdf/wbfs/ciso and check it's fragmentation level (right click on file...), then copy this created file using explorer and check the fragmentation level again, the difference is usually huge (unless the drive has been freshly formatted). Now you can also compare it with files created by wii backup manager or wbfs_file and it they won't be fragmented. At least that is what my testing showed - I posted the resulting numbers a while ago but don't remember where.

Solving this should be fairly simple - switch compiler from cygwin to mingw and call a couple of windows specific apis before creating the file:
DeviceIoControl(fh, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, &dw, NULL)
SetFilePointerEx(...)
SetEndOfFile(...)
DeviceIoControl(fh, FSCTL_SET_ZERO_DATA, &zd, sizeof(zd), NULL, 0, &dw, NULL) (for parts that are sparse)
You can check wbfs_file source for the usage of these...
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.01a - 2010-06-20
A command line WBFS tool set for various os.

WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

Feature overview:Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:
There are also some GUI available:
Change log:


Code:
wit v1.00a r1214 - 2010-06-12

- Because I finished my work with wwt (the WBFS manager) it's time to
ÂÂ declare Version 1.00. The tool wit is still under development.
- This is the last version which supports the three tools iso2wbfs, iso2wdf
ÂÂ and wdf2iso. Use the more powerful command 'wit copy' instead.
- Makefile changes:
ÂÂÂÂ- File './include-local' is not included anymore. Instead the file
ÂÂÂÂÂÂ'makefiles-local/Makefile.local.$(SYSTEM)' is included.
ÂÂÂÂ- make chmod: change mode 775/644 for known dirs and files.
ÂÂÂÂ- make chown: change owner of all dirs+files to owner of '.'.
ÂÂÂÂ- make chgrp: change group of all dirs+files to group of '.'.
ÂÂÂÂ- make ch+ÂÂ:= make chmod chown chgrp
- wit DUMP: Output improved.
- wit DUMP can now dump data structure of Wii ISO files, ticket.bin (new!),
ÂÂ tmd.bin (new!), header.bin (new!), boot.bin, fst.bin and of DOL-files.
ÂÂ The file type is detected automatically by analyzing the content.

wit v1.00b r1218 - 2010-06-12ÂÂ(repository only)

- The tools iso2wbfs, iso2wdf and wdf2iso have been removed. Use wit instead.

wit v1.01a r1245 - 2010-06-20

- CISO support: The new options --chunk-mode, --chunk-size and --max-chunks
ÂÂ gives the user the control over chunk size when creating a CISO file.
- With release v0.37 I have written a complete new function to calculate the
ÂÂ WBFS geometry (outsourcing of the calculation so that other commands can use
ÂÂ the results). Up to now the new and the old calculation have been compared
ÂÂ on every WBFS formatting. From now only this new calculation is used.
- wit DUMP --long: Print content of TICKET and TMD too.
- New option for wit DUMP: --show=keylist: This option allows fine control
ÂÂ over the things that should be printed. If set --long is ignored. Allowed
ÂÂ keywords: NONE, ALL, INTRO, P-TAB, P-INFO, P-MAP, D-MAP, TICKET, TMD,
ÂÂ PART (=P-INFO|P-MAP|TICKET|TMD), MAP (=P-MAP|D-MAP).
ÂÂ If --show is set option --long is ignored.
- wit+wwt VERIFY --long --long: Hex dump of 'DATA' was wrong.
- Bug fix for option --pmode: keyword INDEX is enabled now.
- New warnings (exit status): "Nothing to do" and "No source file found".

Missing docu:

- wit commands ILIST + EXTRACT
- Option --show

The source is published under the licence of GPL2. Checkout the sources directly from the SVN repository or browse the source.
Visit http://wit.wiimm.de/ for more information.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@all
damn, i have forgotten to commit my last changes from the notebook and now there are 2 bugs in the print out of "wit dump iso_image"
1.) without --show and --long only partitions are printed but not the intro.
2.) indention is incorrect.

@giantpune:
try
Code:
wit dump iso-image --show=tmd,ticket
# or
wit dump iso-image --show=tmd
This should be nice for your gui.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
WIT: Wiimms ISO Tools v1.01b - 2010-06-20
A command line WBFS tool set for various os.

WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

Feature overview:Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:
There are also some GUI available:
Change log:


Code:
wit v1.00b r1218 - 2010-06-12ÂÂ(repository only)

- The tools iso2wbfs, iso2wdf and wdf2iso have been removed. Use wit instead.

wit v1.01a r1245 - 2010-06-20

- CISO support: The new options --chunk-mode, --chunk-size and --max-chunks
ÂÂ gives the user the control over chunk size when creating a CISO file.
- With release v0.37 I have written a complete new function to calculate the
ÂÂ WBFS geometry (outsourcing of the calculation so that other commands can use
ÂÂ the results). Up to now the new and the old calculation have been compared
ÂÂ on every WBFS formatting. From now only this new calculation is used.
- wit DUMP --long: Print content of TICKET and TMD too.
- New option for wit DUMP: --show=keylist: This option allows fine control
ÂÂ over the things that should be printed. If set --long is ignored. Allowed
ÂÂ keywords: NONE, ALL, INTRO, P-TAB, P-INFO, P-MAP, D-MAP, TICKET, TMD,
ÂÂ PART (=P-INFO|P-MAP|TICKET|TMD), MAP (=P-MAP|D-MAP).
ÂÂ If --show is set option --long is ignored.
- wit+wwt VERIFY --long --long: Hex dump of 'DATA' was wrong.
- Bug fix for option --pmode: keyword INDEX is enabled now.
- New warnings (exit status): "Nothing to do" and "No source file found".

wit v1.01b r1248 - 2010-06-20

- Bug fix for "wit DUMP":
ÂÂÂÂ- If neither --show nor --long is set, the head parameters are not printed.
ÂÂÂÂ- Indention was wrong.

Missing docu:

- wit commands ILIST + EXTRACT
- Option --show

The source is published under the licence of GPL2. Checkout the sources directly from the SVN repository or browse the source.
Visit http://wit.wiimm.de/ for more information.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
there appears to be a bug in the --show=tmd command. i get a segment fault with a SSBB iso when it gets to the 4th or 5th VC partition. otherwise, it appears to be working fine
smile.gif


Code:
$ ./wit dump '/media/1TB_3GbS_2/SSBB_japan.iso' --show=intro,tmd

Dump of file /media/1TB_3GbS_2/SSBB_japan.iso

ÂÂID & type:ÂÂÂÂÂÂ RSBJ01, ISO
ÂÂFile size:ÂÂÂÂÂÂ 1fb4e0000/hex = 8511160320 = 8117 MiB
ÂÂDisc name:ÂÂÂÂÂÂ Super Smash Bros. Brawl
ÂÂDB title:ÂÂÂÂÂÂÂÂDairantou Smash Brothers X
ÂÂRegion:ÂÂÂÂÂÂÂÂÂÂJapan [JAPA]
ÂÂRegion setting:ÂÂ0 / 00 80 80 80ÂÂ80 80 80 80
ÂÂDiretories:ÂÂÂÂÂÂÂÂ 211
ÂÂFiles:ÂÂÂÂÂÂÂÂÂÂÂÂ 5312
ÂÂUsed ISO blocks: 232340 => 7261 MiB

ÂÂPartition table #0, partition #0, type 1 [UPDATE]:
ÂÂÂÂTMD:
ÂÂÂÂÂÂIssuer:ÂÂÂÂÂÂÂÂÂÂRoot-CA00000001-CP00000004
ÂÂÂÂÂÂSignature type:ÂÂÂÂÂÂ10001/hex =ÂÂÂÂÂÂ65537
ÂÂÂÂÂÂVersion:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0
ÂÂÂÂÂÂCA version:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSigner version:ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSytem version:ÂÂ 00000001 00000004 = IOS 4 = IOS 0x04
ÂÂÂÂÂÂTitle ID:ÂÂÂÂÂÂÂÂ00010000 0055504a = '.....UPJ'
ÂÂÂÂÂÂTitle type:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂGroup ID:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂAccess rights:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂTitle version:ÂÂÂÂÂÂÂÂÂÂ 8/hex =ÂÂÂÂÂÂÂÂÂÂ8
ÂÂÂÂÂÂBoot index:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂN(content):ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂContent #0, ID:ÂÂÂÂÂÂÂÂÂÂ4/hex =ÂÂÂÂÂÂÂÂÂÂ4
ÂÂÂÂÂÂContent #0, index:ÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, type:ÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂContent #0, size:ÂÂa758000/hex =ÂÂ175472640
ÂÂÂÂÂÂContent #0, hash: 7dafeaaa 34c0bde1 8c932b3f c1fea873 fcde5228

ÂÂPartition table #0, partition #1, type 0 [DATA]:
ÂÂÂÂTMD:
ÂÂÂÂÂÂIssuer:ÂÂÂÂÂÂÂÂÂÂRoot-CA00000001-CP00000004
ÂÂÂÂÂÂSignature type:ÂÂÂÂÂÂ10001/hex =ÂÂÂÂÂÂ65537
ÂÂÂÂÂÂVersion:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0
ÂÂÂÂÂÂCA version:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSigner version:ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSytem version:ÂÂ 00000001 00000024 = IOS 36 = IOS 0x24
ÂÂÂÂÂÂTitle ID:ÂÂÂÂÂÂÂÂ00010000 5253424a = '....RSBJ'
ÂÂÂÂÂÂTitle type:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂGroup ID:ÂÂÂÂÂÂÂÂÂÂÂÂ 3031/hex =ÂÂÂÂÂÂ12337
ÂÂÂÂÂÂAccess rights:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂTitle version:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂBoot index:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂN(content):ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂContent #0, ID:ÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, index:ÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, type:ÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂContent #0, size:1bc7c0000/hex = 7457210368
ÂÂÂÂÂÂContent #0, hash: 65f5418c 2a4a0d08 21b5d283 25957b96 6249746e

ÂÂPartition table #1, partition #0, type 4841384a ["HA8J"]:
ÂÂÂÂTMD:
ÂÂÂÂÂÂIssuer:ÂÂÂÂÂÂÂÂÂÂRoot-CA00000001-CP00000004
ÂÂÂÂÂÂSignature type:ÂÂÂÂÂÂ10001/hex =ÂÂÂÂÂÂ65537
ÂÂÂÂÂÂVersion:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0
ÂÂÂÂÂÂCA version:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSigner version:ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSytem version:ÂÂ 00000001 00000004 = IOS 4 = IOS 0x04
ÂÂÂÂÂÂTitle ID:ÂÂÂÂÂÂÂÂ00010000 0055504a = '.....UPJ'
ÂÂÂÂÂÂTitle type:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂGroup ID:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂAccess rights:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂTitle version:ÂÂÂÂÂÂÂÂÂÂ 8/hex =ÂÂÂÂÂÂÂÂÂÂ8
ÂÂÂÂÂÂBoot index:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂN(content):ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂContent #0, ID:ÂÂÂÂÂÂÂÂÂÂ4/hex =ÂÂÂÂÂÂÂÂÂÂ4
ÂÂÂÂÂÂContent #0, index:ÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, type:ÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂContent #0, size:ÂÂa758000/hex =ÂÂ175472640
ÂÂÂÂÂÂContent #0, hash: 7dafeaaa 34c0bde1 8c932b3f c1fea873 fcde5228

ÂÂPartition table #1, partition #1, type 4841394a ["HA9J"]:
ÂÂÂÂTMD:
ÂÂÂÂÂÂIssuer:ÂÂÂÂÂÂÂÂÂÂRoot-CA00000001-CP00000004
ÂÂÂÂÂÂSignature type:ÂÂÂÂÂÂ10001/hex =ÂÂÂÂÂÂ65537
ÂÂÂÂÂÂVersion:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0
ÂÂÂÂÂÂCA version:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSigner version:ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂSytem version:ÂÂ 00000001 00000024 = IOS 36 = IOS 0x24
ÂÂÂÂÂÂTitle ID:ÂÂÂÂÂÂÂÂ00010000 5253424a = '....RSBJ'
ÂÂÂÂÂÂTitle type:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂGroup ID:ÂÂÂÂÂÂÂÂÂÂÂÂ 3031/hex =ÂÂÂÂÂÂ12337
ÂÂÂÂÂÂAccess rights:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂTitle version:ÂÂÂÂÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂBoot index:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂN(content):ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1/hex =ÂÂÂÂÂÂÂÂÂÂ1
ÂÂÂÂÂÂContent #0, ID:ÂÂÂÂÂÂÂÂÂÂ0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, index:ÂÂÂÂÂÂ 0/hex =ÂÂÂÂÂÂÂÂÂÂ0
ÂÂÂÂÂÂContent #0, type:ÂÂÂÂÂÂÂÂ3/hex =ÂÂÂÂÂÂÂÂÂÂ3
ÂÂÂÂÂÂContent #0, size:1bc7c0000/hex = 7457210368
ÂÂÂÂÂÂContent #0, hash: 65f5418c 2a4a0d08 21b5d283 25957b96 6249746e

ÂÂPartition table #1, partition #2, type 4842414a ["HBAJ"]:
ÂÂÂÂTMD:
Segmentation fault

It appears that it is always using the partitions from table #0. notice it shows the TID for the update partition and game partition for the first 2 VC partitions?

so, when it gets to table #1, it shows info from table#0, partition#0 and parttion#1. both of those exist. but then it tries to show table#0 partition #2 which doesnt exist, and it seg faults.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
i think I've found another bug...
using COPY, IOS, NAME & region patching isnt working for me in r1248
CODEwit COPY --region=1 --ios=36 --overwrite --progress
Code:
C:/c/qtWitGui/release/wit.exe CP C:/c/test.iso C:/c/test2.iso --region=0 --ios=36 --id=010E02 --name=NEW TITLE --modify=DISC,BOOT,TMD,TICKET -v -v -v -v --overwrite --progress

These patches only seem to work when the source disc is FST, not when they are iso or .wbfs
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
My plans: I will rewrite 'wiidisc.c' (part of libwbfs) to improve handling of the disc:
  • Manage additional partitions like SSBB
  • Fast and direct access to partitions and partition files (using more dynamic data structures)
  • Use all above to patch discs in the source or while copying:
    • Remove unwanted partitions, --psel will accept a list
    • Patch ID, title, IOS and more in TICKET and TMD
    • Add, exchange and remove files.
This rewriting will take some time. And this means WIT is still alive!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Lol