Hacking wwt+wit: Wiimms WBFS+ISO Tools

snikerz

Well-Known Member
Member
Joined
Nov 30, 2008
Messages
502
Trophies
1
Website
Visit site
XP
462
Country
Lesotho
Does the EXTRACT-command extract ISO files in the right way to be used with SNEEK DI? Maybe you could add a --sneek parameter if it doesn't
smile.gif
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Mac version is available too: wwt-v0.41a-r824-mac.tar.gz : Mac OS universal binaries (ppc, i386 and x86-64)
It is my first try and I hope that it will run on all Mac machines.


@snikerz
This is only POC to understand all. At the moment I'm blind for other layouts (like sneek). That comes later.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany

Skeeve

Well-Known Member
Newcomer
Joined
Jan 1, 2010
Messages
75
Trophies
0
XP
146
Country
Gambia, The
Wiimm said:
I think it is only in your working copy. remove the file and update again.
wacko.gif
You are so right! I should have looked! Even the "svn up" did state it:
G lib-std.c
Sorry & Thanks!
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wwt: Wiimms WBFS Tool v0.42a - 2010-04-19
A command line WBFS tool set for various os.

I have updated the tool. The first post with more details is updated too.


Download of the current stable version:Download of the previous stable version:There is also a GUI available:Highlights of this release:
  • The new command "wit ILIST" (or short "wit IL") will list all files of all given ISO images. Output can be controlled by --long and --no-header. The new option --files= controlls which files are listed. The option --psel selects partitions.
    .
  • The new command "wit EXTRACT" (or short "wit X") will extract all files of all given ISO images. Define a destination directory with --dest or --DEST. The new option --files= controlls which files are extracted. The option --psel selects partitions. The new option --sneek suppress output of files that SNEEK don't need.
    .
  • The new wit option --files=list (-F list) define allow and deny rules for selecting files. The list is separatied by semicolons into items. Each item must be begin with as plus sign (allow) or a minus sign (deny) followed by a pattern. The patterns have rsync like style. For a detailed description see file "wit.txt" section "Selecting files with --files=rules".
    .
Examples:

Code:
# this command extract all partitions to 'dest_dir'
wit extract my.iso -D dest_dir/

# this command extracts only the data partition and onyl sneek needed files
wit extract my.iso -D dest_dir/ --sneek

# And this command extract all iso found in 'source_dir' (recurse)
# and store the results in a well named (ID6) subdir of 'dest_dir'
wit x -r source_dir -D dest_dir/%I --sneek --update


Last changes:

Code:
wwt v0.41a r824 - 2010-04-16

ÂÂ- New escape sequence for output file names:
ÂÂÂÂ%Y = Extended filename: A short cut for '%T [%I]' (no file extension)
ÂÂ- wit DUMP: new option --files= (-F): dump a list of files.
ÂÂ- New command: wit ILIST: List all files from ISO images.
ÂÂ- New command: wit EXTRACT: Extract all files from ISO images.
ÂÂÂÂThis is a first implementation or better a proof of concept.
ÂÂ- New option: --files=rules: Define a rule list as selector for ISO
ÂÂÂÂfile operations. A semicolon separate single items. Each item must begin
ÂÂÂÂwith '+' (allow) or '-' (deny). Multiple usage of the option is allowed.
ÂÂÂÂThis options is used by the commands DUMP, ILIST and EXTRACT. See file
ÂÂÂÂ"wit.txt" section "Selecting files with --files=rules" for more details.
ÂÂ- Bug fix: Creating directories (--DEST) with absoulte paths will now work.
ÂÂ- New wit option: --rdepth: Set the maximum recurse depth for option
ÂÂÂÂ--recurse in the range 0..100. The default depth is 10.
ÂÂ- New param for wwt+wit LIST --section: used_blocks= (1 block = 32 KiB)

wwt v0.42a r846 - 2010-04-19

ÂÂ- Bug fix: wit option -C was not recognized.
ÂÂ- Bug fix: Print multiple time stamps in listing works now.
ÂÂ- wit ILIST rewritten. It supports now --sort=
ÂÂ- wit EXTRACT rewritten. All needed files for SNEEK are extracted.
ÂÂ- New wit option: --pmode=default|auto|none|point|ident|name
ÂÂÂÂThe option defined how the partiton type is used to prefix the file path.
ÂÂ- The new wit option --sneek is an abbreviation of --psel=data --pmode=none.
ÂÂÂÂIt also suppress creating files that sneek don't need.

Missing docu:
ÂÂ- docu of wit ILIST + EXTRACT
ÂÂ- docu of --pmode= and --sneek

Sources comes with GPL2. Checkout the sources directly from the SVN repository or browse the source.
 

sylver78

Well-Known Member
Member
Joined
Oct 16, 2006
Messages
110
Trophies
1
Website
Visit site
XP
269
Country
France
Great work Wiimm !
FYI, I compiled wwt on my NAS (a QNAP TS-409 Pro which is powered by an ARM processor) ! It's running well and I converted all my ISO to WDF directly on the NAS and I'm adding games to my WBFS disk directly from my NAS !
 

sylver78

Well-Known Member
Member
Joined
Oct 16, 2006
Messages
110
Trophies
1
Website
Visit site
XP
269
Country
France

Bauldrick

Well-Known Member
Member
Joined
Jan 22, 2009
Messages
103
Trophies
0
XP
100
Country
Hey sylver! I wondered if it was you, clever diguise
wink.gif


Oooh yes, http interface would be nice. I fear linkstationwiki is falling slowly to sleep
frown.gif
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Bauldrick said:
Maybe wiimm could add a NAS section to download?

My Linkstation binaries in case:

http://www.mediafire.com/?2uvzknek3zw --mipsel tar.gz
http://www.mediafire.com/?otidhyyjzj4 -- powerpc tar.gzAre your links not good enough?

OK, here I'm ...
Download other releases:QUOTE(Bauldrick @ Apr 20 2010, 01:05 PM) tar -C / -zxvf *tar.gz
One little remark: modern tar detects compression by default. So -z is not needed.
 

zon7

Active Member
Newcomer
Joined
Oct 1, 2005
Messages
38
Trophies
0
XP
96
Country
Found a bug in osx.
With the new rdisk format, there is an error when extracting to wbfs. While this works
"wwt -p /dev/rdisk1s1 EXTRACT GAMEID -D GAMEPATH -P"
This does not work
"wwt -p /dev/rdisk1s1 EXTRACT GAMEID -D GAMEPATH -P -B"
But the old disk access mode does work
"wwt -p /dev/disk1s1 EXTRACT GAMEID -D GAMEPATH -P -B"

The error is
QUOTE said:
!! wwt: ERROR #19 [READ FILE FAILED] in ReadSF() @ lib-sf.c#467
!! Read failed [S=3,110ea40020+100]: /dev/rdisk1s1
!! -> Invalid argument
!! wwt: ERROR #30 [FATAL ERROR] in disc_read() @ libwbfs/wiidisc.c#47
!! error reading disc (disc_read)

Hope it helps
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@zon7:
It is a non "hd sector size" aligned access made by wiidisc (the iso lib in libwbfs). This is no problem under linux. And it should not be the problem on a mac because using the fopen() variant.

I will change the wiidisc read functions to read only block aligned data and then you have to test again.


EDIT:
I have committed v0.42b (bug fix: aligned disc read).
Be careful: I'm changing the virtual file layer and the newest modifications are not tested very well.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
I have committed v0.42c because v0.42b had an bug with the new aligned reading.

And again: Be careful: I'm changing the virtual file layer and the newest modifications are not tested very well.
 

orochics

New Member
Newbie
Joined
Mar 16, 2009
Messages
2
Trophies
0
XP
49
Country
United States
First of all, I love your tools.

I just wanted to report some problems with formatted discs used with the binary posted on the First Post, USBLoaderGx will not work with a disk formatted with the posted 0.42a-r846. I downloaded the CVS and compiled at about 4/22/10 1pm PST; r871 works ok. I didn't try the previous stable version. Just wanted to report my success with the cvs over the r846-mac binaries
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
orochics said:
First of all, I love your tools.

I just wanted to report some problems with formatted discs used with the binary posted on the First Post, USBLoaderGx will not work with a disk formatted with the posted 0.42a-r846. I downloaded the CVS and compiled at about 4/22/10 1pm PST; r871 works ok. I didn't try the previous stable version. Just wanted to report my success with the cvs over the r846-mac binaries

please post the results of "wwt dump -p your_partition -ll" after formatting.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Nut on the hill