Hacking Compiling WBFS on Mac OS X

eddanx

Active Member
OP
Newcomer
Joined
Jun 6, 2007
Messages
32
Trophies
0
XP
91
Country
United States
If anyone makes a GUI with wxWidgets, QT or some similar multi platform library (and, of course, also makes it work on multiple platforms), it might have the potential to get included in the main wbfs tree... But I'm guessing it's Xcode w/Cocoa all the way for the guys that have already started
smile.gif
 

darkten

Well-Known Member
Member
Joined
Mar 31, 2009
Messages
174
Trophies
0
XP
304
Country
United States
eddanx said:
If anyone makes a GUI with wxWidgets, QT or some similar multi platform library (and, of course, also makes it work on multiple platforms), it might have the potential to get included in the main wbfs tree... But I'm guessing it's Xcode w/Cocoa all the way for the guys that have already started
smile.gif


'fraid so. However...I am leaning *away* from a "gui"...I think the Finder is more than sufficient of a GUI for a disk drive...don't you?

If there is anyone out there that is actually a *coder* that wants to talk with me, send me a PM. I'm planning to make a FUSE driver/plugin for this and if someone else is leaning that way, we could *pool efforts* and save time via the Sub-Etha or some hot Pastie action or something.

I write Mac OS X/iPhone software for a living nd it just so happens that I'm "off" for a couple of days.

+d10
 

darkten

Well-Known Member
Member
Joined
Mar 31, 2009
Messages
174
Trophies
0
XP
304
Country
United States
feidhlim1986 said:
tps2d said:
It's just you. It hasn't taken me over 5 minutes to copy any ISO yet.

Strange, I dunno why it takes long for me...


It isn't just you. It seems that the more you have, the slower the process gets with larger discs...tho more observation is needed to confirm this, i think.

+d10
 

feidhlim1986

Well-Known Member
Member
Joined
Oct 18, 2008
Messages
305
Trophies
0
XP
311
Country
darkten said:
feidhlim1986 said:
tps2d said:
It's just you. It hasn't taken me over 5 minutes to copy any ISO yet.

Strange, I dunno why it takes long for me...


It isn't just you. It seems that the more you have, the slower the process gets with larger discs...tho more observation is needed to confirm this, i think.

+d10

I'm using a WD 500GB HDD. It ran fine and fast using the windows port using Vmware, using the same disk. Just slow on Mac OS, SSBB is gonna take over an hour to dump!
 

eddanx

Active Member
OP
Newcomer
Joined
Jun 6, 2007
Messages
32
Trophies
0
XP
91
Country
United States
Regarding speed:

I'm seeing everything between 5 and 40 minutes.

On Linux it should go around 4MB/sec according to the Readme. That means it'll take (4300MB / 4MB/sec) = 1075 sec = approx 18 minutes to transfer. My Fitness Coach takes only 0,63GB on the wbfs partition ("scrubbed") and took less than 5 minutes to transfer. Latest Call of Duty is at 64% now with 14 minutes left, meaning grand total will likely be 40 minutes. I'm guessing CoD takes up close to 4,3GB when it's finished.

So in general I'm seeing increased transfer times for games that hold more data, which is natural. I haven't seen increased times as more games are transferred so far, like darkten does.
 

tps2d

Active Member
Newcomer
Joined
Mar 31, 2009
Messages
34
Trophies
0
XP
2
Country
United States
I'm not sure what's going on with you guys, but I was able to copy SSBB (completely unedited, full copy) to my 40GB Laptop HD in just about 6.5 minutes. I'll have to run some more tests later with a larger HD, but it's working very fast for me.
 

darkten

Well-Known Member
Member
Joined
Mar 31, 2009
Messages
174
Trophies
0
XP
304
Country
United States
The reason for this is that, basically, MacOSX doesn't have built in caching for block-level access the way this app does it; to speed it up we'd basically have to make a small ram cache.

I've been thru this before with other little *nix tools I've ported for will and psp, etc; We need to cache about 2-4MB data, then do the writes.

BTW, my MacFUSE thingy is coming along, I'm getting file listings in the finder now
wink.gif


+d10
 

ast

Member
Newcomer
Joined
Sep 5, 2007
Messages
23
Trophies
0
XP
83
Country
United States
Can somebody please drop a few lines on how to use this? Would be great! When I double klick it in finder it shows it's commands and exits. If I change to it's directory in terminal and type wbfs terminal says command not found. what do i do wrong?
 

eddanx

Active Member
OP
Newcomer
Joined
Jun 6, 2007
Messages
32
Trophies
0
XP
91
Country
United States
ast said:
Can somebody please drop a few lines on how to use this? Would be great! When I double klick it in finder it shows it's commands and exits. If I change to it's directory in terminal and type wbfs terminal says command not found. what do i do wrong?
Try ./fbsw in terminal.
 

MertenNor

Well-Known Member
Member
Joined
Feb 14, 2009
Messages
172
Trophies
0
Website
www.youtube.com
XP
206
Country
Norway
1. were shod I put this file ? on my USB Device ?

2. how do I format the USB device with it ?

3. we need a Guide on how to use this.. !

MertenNor
PS. sorry for my bad english...
 

ast

Member
Newcomer
Joined
Sep 5, 2007
Messages
23
Trophies
0
XP
83
Country
United States
I figured out "./wbfs" myself, but thanks! now I'm stuck with the init process, as I don't know how my partition is called by the system. On page 2 of thist thread someone postet "$ sudo ./wbfs -p /dev/disk3s1 init" - where can I find that info? disk tool says something about "/Volumes/FAT" an nothing about "/dev/diskX" and "/Volumes/FAT" does not work.

thanks in advance for any help!
 

tps2d

Active Member
Newcomer
Joined
Mar 31, 2009
Messages
34
Trophies
0
XP
2
Country
United States
Click on the partition in Disk Utility and press Command(Apple) + I (Get Info). It will list the device's BSD path:

/dev/disk0s2
/dev/disk1s2
etc
 

ast

Member
Newcomer
Joined
Sep 5, 2007
Messages
23
Trophies
0
XP
83
Country
United States
LOL, seems I always figure it out myself while I wait for your reply
biggrin.gif


Ok, next thing: how to format it to wbs? I can't find a command in the readme:

QUOTE said:
*init the partition:
./wbfs -p $PART init
then wbfs can find automatically your wbfs partition inside your disks.

*add an iso to your partition
./wbfs add

*list the wiidisc that are on the wbfs, you will get the DISCID, game name, number of wide sectors used, and number of GB used.
./wbfs ls

*count the number of wide sectors / GB available on your partition
./wbfs df

*build Homebrew Channel directories for all the games in your partition
This will actually make a directory for each game with the DISCID of the game,
copy the icon.png and boot.dol of the current directory, and make a meta.xml with the name of the game
./wbfs mkhbc
Then copy all the directories in the apps directory of your sdcard.

*remove a disc from wbfs
./wbfs rm DISCID

*extract an iso from wbfs
./wbfs extract DISCID

*create a standalone compressed version of one iso using the wbfs mechanism
./wbfs create

Or do I have to use USB_LOADER to format it and this tool only for copying games?

Sorry bothering you!
 

feidhlim1986

Well-Known Member
Member
Joined
Oct 18, 2008
Messages
305
Trophies
0
XP
311
Country
If the only disks you have are your Macintosh HD and USB HDD then './wbfs -p /dev/disk1s1 init' should get you formating to WBFS
Then use './wbfs -p /dev/disk1s1 add {iso path}' to add a iso to the USB HDD

Thats what works for me anywho...
 

KIT786

Well-Known Member
Newcomer
Joined
Nov 2, 2008
Messages
55
Trophies
0
Website
Visit site
XP
1,401
Country
Thanks to the guys for getting this to work on OSX!! But I seem to be having problems trying to add games. Basically whenever I try and add a iso, i always get an error at around the 33% mark no matter what the game is, however if I add the same game (burned on a disc) through the USB Loader on the Wii it add the game fine.

All the games I tried via the USB laoder have installed fine (both originals and backups), but none of the iso's work via this program. I didn't complie it myself I downloaded the complied version from this thread. Any help guys?
 

tps2d

Active Member
Newcomer
Joined
Mar 31, 2009
Messages
34
Trophies
0
XP
2
Country
United States
Here's some speed tests:
disk2 is my USB 1TB Western Digital drive (HFS+)
disk3 is my USB Toshiba 40GB laptop HD (WBFS)

MLB 2k8:
Code:
$ iostat -w 10 disk2 disk3
ÂÂÂÂÂÂÂÂÂÂdisk2ÂÂÂÂÂÂÂÂÂÂ disk3ÂÂÂÂÂÂ cpuÂÂÂÂ load average
ÂÂÂÂKB/t tpsÂÂMB/sÂÂÂÂ KB/t tpsÂÂMB/sÂÂus sy idÂÂ 1mÂÂ 5mÂÂ 15m
ÂÂ100.34ÂÂ 1ÂÂ0.11ÂÂ 127.83ÂÂ 0ÂÂ0.01ÂÂ 8ÂÂ5 87ÂÂ0.24 0.32 0.28
ÂÂ128.00 105 13.07ÂÂ 128.00 105 13.11ÂÂ 4 13 83ÂÂ0.36 0.34 0.29
ÂÂ128.00 105 13.09ÂÂ 128.00 105 13.09ÂÂ 4 13 83ÂÂ0.30 0.33 0.29
ÂÂ128.00 105 13.10ÂÂ 128.00 105 13.11ÂÂ 6 14 80ÂÂ0.26 0.32 0.28
ÂÂ128.00 105 13.15ÂÂ 128.00 105 13.15ÂÂ 8 14 78ÂÂ0.30 0.32 0.29
ÂÂ128.00 105 13.11ÂÂ 128.00 105 13.11ÂÂ 7 13 80ÂÂ0.25 0.31 0.28
ÂÂ128.00 105 13.10ÂÂ 128.00 106 13.20ÂÂ 5 12 83ÂÂ0.21 0.30 0.28
ÂÂ128.00 106 13.20ÂÂ 128.00 105 13.10ÂÂ 5 12 83ÂÂ0.18 0.29 0.27
ÂÂ127.88 105 13.15ÂÂ 128.00 105 13.11ÂÂ 5 12 83ÂÂ0.22 0.30 0.28
ÂÂ128.00 105 13.09ÂÂ 128.00 105 13.11ÂÂ 5 13 83ÂÂ0.35 0.32 0.28
ÂÂ128.00 105 13.10ÂÂ 128.00 105 13.10ÂÂ 5 12 84ÂÂ0.37 0.33 0.29
ÂÂ128.00 105 13.12ÂÂ 128.00 105 13.14ÂÂ 5 13 82ÂÂ0.31 0.31 0.28
ÂÂ128.00 105 13.09ÂÂ 128.00 105 13.09ÂÂ 4 12 84ÂÂ0.50 0.35 0.29
ÂÂ128.00 105 13.10ÂÂ 128.00 105 13.15ÂÂ 3 12 85ÂÂ0.57 0.37 0.30
ÂÂ128.00 105 13.15ÂÂ 128.00 105 13.12ÂÂ 3 11 86ÂÂ0.55 0.38 0.30
ÂÂ128.00 105 13.15ÂÂ 128.00 105 13.09ÂÂ 9 14 77ÂÂ0.62 0.40 0.31
ÂÂ128.00 105 13.07ÂÂ 128.00 105 13.10ÂÂ 6 13 81ÂÂ0.68 0.42 0.32
ÂÂ127.88 105 13.07ÂÂ 128.00 105 13.09ÂÂ 4 12 84ÂÂ0.65 0.42 0.32

Code:
$sudo ./wbfs -p /dev/rdisk3s1 add mlb2k8.iso 
adding RK8E54 MAJOR LEAGUE BASEBALL 2K8...
Done inÂÂ0:03:50

House of the Dead 2/3:

Code:
ÂÂÂÂÂÂÂÂÂÂdisk2ÂÂÂÂÂÂÂÂÂÂ disk3ÂÂÂÂÂÂ cpuÂÂÂÂ load average
ÂÂÂÂKB/t tpsÂÂMB/sÂÂÂÂ KB/t tpsÂÂMB/sÂÂus sy idÂÂ 1mÂÂ 5mÂÂ 15m
ÂÂ102.25ÂÂ 1ÂÂ0.12ÂÂ 127.89ÂÂ 0ÂÂ0.02ÂÂ 8ÂÂ5 87ÂÂ0.29 0.35 0.30
ÂÂ126.17ÂÂ92 11.34ÂÂ 127.95ÂÂ89 11.18ÂÂ 4 11 85ÂÂ0.30 0.35 0.30
ÂÂ128.00 105 13.08ÂÂ 128.00 105 13.11ÂÂ 4 12 84ÂÂ0.32 0.34 0.30
ÂÂ128.00 105 13.14ÂÂ 128.00 105 13.10ÂÂ 6 12 82ÂÂ0.41 0.36 0.31
ÂÂ128.00 105 13.15ÂÂ 128.00 105 13.16ÂÂ 9 14 77ÂÂ0.43 0.37 0.32
ÂÂ128.00 105 13.16ÂÂ 128.00 105 13.15ÂÂ11 14 76ÂÂ0.41 0.37 0.32
ÂÂ127.15 106 13.11ÂÂ 128.00 105 13.10ÂÂ 5 13 82ÂÂ0.43 0.38 0.32
ÂÂ127.53 105 13.05ÂÂ 128.00 105 13.08ÂÂ 4 12 85ÂÂ0.46 0.39 0.33
ÂÂ127.92 105 13.10ÂÂ 128.00 105 13.07ÂÂ 6 13 81ÂÂ0.45 0.40 0.33

Code:
$ sudo ./wbfs -p /dev/rdisk3s1 add hod.iso 
Password:
adding RHDE8P THE HOUSE OF THE DEAD 2 AND 3 RETURN...
Done inÂÂ0:04:14

Seems pretty consistent on my computer.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @NinStar, why you hurting your sisters