RPi based modchip

ViperGC/Qoob/etc
Post Reply
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

RPi based modchip

Post by novenary » Tue Feb 25, 2014 1:35 pm

So my mom won't let me order a WKF for now. Still, I want to hack around with my Cube.
I have a Raspberry Pi taking dust in my drawer and I thought I could use it to reproduce XenoGC functionality (including loading Swiss instead of the Xeno shell, plenty of room for that on an SD card), as well as other cool stuff.
The Xeno source is not commented at all though so I don't get any of it. :/
I can C (well to an extent) so I'd have no problem getting this to work if I had some understanding of the way the Xeno works.
So if anyone would please care to explain I'd be very grateful. :)

Edit : If it's easier I'd go with an IPL replacement though. Integrates better. ;) If I do that then I'd just need to load up Swiss.
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: RPi based modchip

Post by emu_kidid » Tue Feb 25, 2014 9:44 pm

You could probably do both eventually but by that time you will be out of the house and able to afford a WKF :P
Image
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Tue Feb 25, 2014 9:52 pm

LOL yeah I guess so. :P I'll try to negotiate some more. Not that I can't afford the chip, bit rather she says that if I'm more reasonable with my nerdy activities (is stop having something in my hands 24/7) she'll let me.

How about an Arduino by the way ? The Atmega328P is similar enough to the Atmega8 to run the Xeno firmware with minor tweaking. While I don't have any lying around it should be nice for beginners. :)
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: RPi based modchip

Post by emu_kidid » Tue Feb 25, 2014 10:07 pm

possibly you could get a XenoGC out of a arduino.. again, just drop $7 for a XenoGC :p
Image
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Tue Feb 25, 2014 11:45 pm

Not gonna do that. :P I'm gonna wait until I can get a WKF since it's the same issue.
BoFoSho
Posts: 59
Joined: Thu Jun 16, 2011 6:13 am

Re: RPi based modchip

Post by BoFoSho » Wed Feb 26, 2014 4:28 am

Just some extra info, you can get some nice Atmega8 Arduinos from the chinese.
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: RPi based modchip

Post by iamdablasta » Wed Feb 26, 2014 7:16 am

Streetwalker wrote:LOL yeah I guess so. :P I'll try to negotiate some more. Not that I can't afford the chip, bit rather she says that if I'm more reasonable with my nerdy activities (is stop having something in my hands 24/7) she'll let me.

How about an Arduino by the way ? The Atmega328P is similar enough to the Atmega8 to run the Xeno firmware with minor tweaking. While I don't have any lying around it should be nice for beginners. :)
I am encouraged to buy "nerdy" stuff instead off other "stuff" :>
the game
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Wed Feb 26, 2014 7:25 am

LOL I'm always on my phone/tablet. When I have my PC I'm on it all day long too. For a while I'd spend all my time programming graphing calculators (I have seven of these) and solving Rubik's cubes (two 3*3's and one 4*4). :P

I'm not giving up by the way. Still doing some research but that source is really obscure to me. Guess I'll have to calmly sit in front of my computer instead of trying to figure it out on a tablet. XD The worst part about it is that there seems to be some GC code and Atmega code mixed in the same directories.
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: RPi based modchip

Post by Dragoon » Wed Feb 26, 2014 10:42 am

I'm not sure how hard it is to sniff out a DVDReset packet, but once that's done you can send the debug commands every time the DVD gets reset.
And that's basically every time you open the DVD drive or get a DRE.
We can already do it(ish) from software level, but once it resets the patch is gone and you need to run swiss/gcos/cobra again.
I think the xeno and the duo Q (basically just different HW with Xeno FW) are the only chips that can do this.

Or you could go hardcore and hook up the PI to the DVD port and use it as a streaming solution :D
I'm not sure if that's possible though.
Image
User avatar
MockyLock
Posts: 330
Joined: Tue Aug 07, 2012 8:12 pm
Location: France

Re: RPi based modchip

Post by MockyLock » Wed Feb 26, 2014 12:04 pm

I have no knowledge at all in what you discuss here, but if i can understand well the proposition of Dragoon, something like this has been done for the Dreamcast, for a GD-Rom drive emulator:
http://dknute.livejournal.com/39276.html

It leaded to this wonderful item unfortunatly not for sell:
http://dknute.livejournal.com/42609.html
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Wed Feb 26, 2014 1:23 pm

Not sure what hardware that's based on.

In the Xeno source I found some references to a certain MN10200. A quick Google search showed that it's either a Panasonic CPU or a Matsushita chip (they make optical drives so it's more likely).
According to WiiBrew it's the controller chip used in the Wii (and certainly GC) drive. Also looks like Matsushita belongs to Panasonic.
Opening the cube yielded nothing. I can't find that chip either on the drive nor motherboard (both sides checked on both). There is a Panasonic chip on the bottom of the drive though.

Gonna do more research on this controller.
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Wed Feb 26, 2014 4:02 pm

So it actually is that Panasonic chip. It's an 8bit CPU used to drive the drive (LOL accidental pun). Apparently it is also used by the Xeno updater to flash the Atmega.
Now I need to find the code that communicates with it since that's pretty much all I need to port.
Also this source is a mess. Binaries and source files are all over the place. x.x
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: RPi based modchip

Post by megalomaniac » Wed Feb 26, 2014 7:56 pm

what is it you want to accomplish?
run this code over RPI or do you want an ardrino based solution or something else?
arduino or any other avr can be used with very little modification to the code.


start here
http://code.google.com/p/xenogcfork/sou ... T%2Fsource
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Wed Feb 26, 2014 9:19 pm

The only programmable hardware I can hook to my Cube is my Pi. I was just asking if it would work on an Arduino out of curiosity, my ultimate goal using an RPi to do basically the same as the Xeno, with Swiss instead of XenoShell.
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: RPi based modchip

Post by megalomaniac » Thu Feb 27, 2014 2:42 am

before working on porting the code over to PI you need to determine if you can perform one of the following:

emulate SPI over GPIO
or
convert USB thru FTDI to SPI
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Thu Feb 27, 2014 7:40 am

The Raspberry Pi has hardware SPI available on it's GPIO header, so no problem hooking to EXI.
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Fri Feb 28, 2014 7:12 pm

Bump.
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: RPi based modchip

Post by Dragoon » Fri Feb 28, 2014 10:40 pm

You don't have to bump the thread only 24 hours later.
It's not a sale thread and I'm sure there is interest in this.
Image
novenary
Posts: 1755
Joined: Mon Dec 30, 2013 7:50 am

Re: RPi based modchip

Post by novenary » Sat Mar 01, 2014 8:53 am

Yeah sorry, that's not good for my netiquette.
Post Reply