WiiRd forum

Wii & Gamecube Hacking => WiiRD Remote Debugger => Topic started by: LRFLEW on December 11, 2009, 11:00:33 PM

Title: WiiRd for mac???
Post by: LRFLEW on December 11, 2009, 11:00:33 PM
What's the news on that.  It is, really, the breaking point for me on wether or not to get an USB Gecko. 

On a similar note, does WiiRd work in darwine (http://darwine.sourceforge.net/).  I know the program works, but does the USB Gecko work.  Can anybody with both a USB Gecko and a Mac test it for me?  Thanks. 
Title: Re: WiiRd for mac???
Post by: DrakeAnubis on December 31, 2009, 06:30:39 PM
It works fine in VMware if that helps at all (which means theres a good chance it will work fine in VirtualBox, which is free)
Title: Re: WiiRd for mac???
Post by: giantpune on January 05, 2010, 11:52:59 PM
link is working on a .net version of wiird.  apparently it is able to compile and run in with mono.  but it still is in the beta stages and probably wont be a stable, non-beta, mono friendly release for at least a little while.
Title: Re: WiiRd for mac???
Post by: LRFLEW on March 22, 2010, 09:41:52 PM
Quote from: DrakeAnubis on December 31, 2009, 06:30:39 PM
It works fine in VMware if that helps at all (which means theres a good chance it will work fine in VirtualBox, which is free)

What OS are you referring to?

I don't have Windows under VirtualBox ( because I'm too cheap to go out and buy it :) ), but I do have linux installed. 
Title: Re: WiiRd for mac???
Post by: dcx2 on March 24, 2010, 01:19:33 PM
Quote from: giantpune on January 05, 2010, 11:52:59 PM
link is working on a .net version of wiird.  apparently it is able to compile and run in with mono.  but it still is in the beta stages and probably wont be a stable, non-beta, mono friendly release for at least a little while.

Gecko dotNET is pretty stable now...I'm slowly working out the last few bugs with the help of some beta testers.  I've been using it exclusively for the past two weeks, but then again I've been spending more time helping develop it than I am actually hacking games.

As far as mono support, the gigantic red exclamation point is the requirement for libftdi.  It's a driver, and so is not exactly portable...don't know if there's a Mac version of the driver.  The smaller, yellow exclamation points involve things like vdappc, powerpc-gekko-as, and those other binary executables that aren't cross-platform.  That means no disassembly, not even in the breakpoints tab.  Perhaps those apps could be run under WINE..?
Title: Re: WiiRd for mac???
Post by: Link on March 28, 2010, 07:49:50 AM
Quote from: dcx2 on March 24, 2010, 01:19:33 PM
Quote from: giantpune on January 05, 2010, 11:52:59 PM
link is working on a .net version of wiird.  apparently it is able to compile and run in with mono.  but it still is in the beta stages and probably wont be a stable, non-beta, mono friendly release for at least a little while.

Gecko dotNET is pretty stable now...I'm slowly working out the last few bugs with the help of some beta testers.  I've been using it exclusively for the past two weeks, but then again I've been spending more time helping develop it than I am actually hacking games.

As far as mono support, the gigantic red exclamation point is the requirement for libftdi.  It's a driver, and so is not exactly portable...don't know if there's a Mac version of the driver.  The smaller, yellow exclamation points involve things like vdappc, powerpc-gekko-as, and those other binary executables that aren't cross-platform.  That means no disassembly, not even in the breakpoints tab.  Perhaps those apps could be run under WINE..?

When I tested some Linux versions, libftdi worked just fine.. if you check out usbgecko.cs you'll notice it has a compiler directive switch which allows it to use libftdi as communication layer. That was tested on Linux but yes,not on Mac. Linux versions still are majorly buggy admittedly as I just quick tested them but well.. they did kinda work.. for vdappc and such.. all those apps can be compiled for Linux so I am quite confident they'd work on Mac too!
Title: Re: WiiRd for mac???
Post by: LRFLEW on March 30, 2010, 11:44:14 PM
Quote from: Link on March 28, 2010, 07:49:50 AM
Quote from: dcx2 on March 24, 2010, 01:19:33 PM
Quote from: giantpune on January 05, 2010, 11:52:59 PM
link is working on a .net version of wiird.  apparently it is able to compile and run in with mono.  but it still is in the beta stages and probably wont be a stable, non-beta, mono friendly release for at least a little while.

Gecko dotNET is pretty stable now...I'm slowly working out the last few bugs with the help of some beta testers.  I've been using it exclusively for the past two weeks, but then again I've been spending more time helping develop it than I am actually hacking games.

As far as mono support, the gigantic red exclamation point is the requirement for libftdi.  It's a driver, and so is not exactly portable...don't know if there's a Mac version of the driver.  The smaller, yellow exclamation points involve things like vdappc, powerpc-gekko-as, and those other binary executables that aren't cross-platform.  That means no disassembly, not even in the breakpoints tab.  Perhaps those apps could be run under WINE..?

When I tested some Linux versions, libftdi worked just fine.. if you check out usbgecko.cs you'll notice it has a compiler directive switch which allows it to use libftdi as communication layer. That was tested on Linux but yes,not on Mac. Linux versions still are majorly buggy admittedly as I just quick tested them but well.. they did kinda work.. for vdappc and such.. all those apps can be compiled for Linux so I am quite confident they'd work on Mac too!

There's like three different quotes here, and I have pretty much no clue what any of this says.  As I see it, a mac port doesn't exist currently, but is well on it's way.  (If it's actually here and compilable, can someone tell me what to compile it with)

I have WiiRD downloaded on a version of linux, but it's UBUNTU, and has too old of a version of libftdi to work.  Is there a way to update it, or do I need to find another build of linux.  If it's the latter of the two, what build should I use (I'm emulating linux, so I don't care as much installing a new linux, but please make sure the version of linux doesn't require too much processing power)?  

Edit:  It sounds like it works, but what is this "mono" thing?  

Edit2:  I found mono (it was AFTER the decease on google :) ), but there are so many source files.  Which one do I put into mono to compile?  Is there extra setup required? 
Title: Re: WiiRd for mac???
Post by: hawkeye2777 on March 31, 2010, 05:42:48 AM
Quote from: LRFLEW on March 30, 2010, 11:44:14 PM
I have WiiRD downloaded on a version of linux, but it's UBUNTU, and has too old of a version of libftdi to work.  Is there a way to update it, or do I need to find another build of linux.  If it's the latter of the two, what build should I use (I'm emulating linux, so I don't care as much installing a new linux, but please make sure the version of linux doesn't require too much processing power)? 

Edit:  It sounds like it works, but what is this "mono" thing? 

Edit2:  I found mono (it was AFTER the decease on google :) ), but there are so many source files.  Which one do I put into mono to compile?  Is there extra setup required? 

libftdi is pretty easy to compile if I remember correctly. Although, I'd think it'd be easier to help you on that route if you stated which version of Ubuntu you have (Karmic, Jaunty, etc.). If you have Karmic Koala (9.10) or the beta of Lucid Lynx (10.04), I think those already have the latest version of libftdi (correct me if I'm wrong).

Otherwise, you probably just need gcc and autotools to compile the latest libftdi (acquired from their tar.gz on their site). This should be enough to handle that:

sudo apt-get install build-essential automake checkinstall

Then to compile, it's usually this:

./configure
make
sudo checkinstall

[OR]

./configure
make
sudo make install


More info on compiling software (Ubuntu)... (https://help.ubuntu.com/community/CompilingSoftware)

As far as running Gecko.NET on Mono, I've tried, but haven't got it to recognize the USB Gecko yet. It can compile in Mono with some tweaks... yet it is pretty much useless without that connection to the USB Gecko.
Title: Re: WiiRd for mac???
Post by: giantpune on April 05, 2010, 06:06:08 AM
The disassembler compiles and runs fine in OSx.  I tested in 10.6.3 intel core duo.  It was able to disassemble the entire main.dol from New Mario without a hiccup.
Title: Re: WiiRd for mac???
Post by: dcx2 on April 05, 2010, 02:39:58 PM
I tried to get Gecko.NET to run in mono on Linux again.  Hawkeye's correct, there's a few lines dealing with an IconReader on the FST tab that need to go away, and a preprocessor directive that needs to be set to MONO, but then it launches.

I was having problems getting USB Gecko communication, and I ended up trying to install the latest libftdi (0.16-2 was at the repository, 0.17-1 was at their web site), but that doesn't seem to be working either.  I had to stop it from trying to disconnect when there was nothing to connect to because that would throw an exception, and I think I even had to run it with sudo before it finally looked like it was trying to talk to something...but then it failed the retries.

Unfortunately, the MonoDevelop I have doesn't have a functional debug mode at this time, so I can't step through the code at all.  I've had to resort to writing to the console.