XenoGC Full Source Code

Latest site specific news
yamaharacer
Posts: 448
Joined: Mon Apr 05, 2010 4:11 pm
Location: Germany

Re: XenoGC Full Source Code

Post by yamaharacer » Sat Apr 23, 2011 9:09 am

the original xenogc also uses atmega 8l so yes you need a atmega 8l or find a 5v power source on the pcb.
Eliot
Posts: 13
Joined: Sun May 08, 2011 6:46 am

Re: XenoGC Full Source Code

Post by Eliot » Sat May 14, 2011 10:36 am

I have not managed to run my ATMEGA8L.
The programming is going well, avrdude says it is OK.
I programmed my ATMEGA8L with the file "XenoAT.1.05.hex" from the archive
I tested the following fuisibles but it did not work:
- lfuse->0xE4 hfuse->0xD8
- lfuse->0xC4 hfuse->0xD9

when I plug my ATMEGA8L in my dvd reader, the original games will launch but not the backup disc.
When i press START, nothing happens

What to do? connect a LED into my ATmega ?
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: XenoGC Full Source Code

Post by emu_kidid » Sat May 14, 2011 2:11 pm

If nothing happens then the ATMega is not working properly.
Image
Eliot
Posts: 13
Joined: Sun May 08, 2011 6:46 am

Re: XenoGC Full Source Code

Post by Eliot » Sat May 14, 2011 2:41 pm

I'm using a Wiikey.
I connect like the picture is what my diagam is good?
Attachments
mon_plan.png
My diagam
(479.96 KiB) Not downloaded yet
Hucklebuck
Posts: 74
Joined: Wed Mar 31, 2010 9:50 pm
Location: USA

Re: XenoGC Full Source Code

Post by Hucklebuck » Sun May 15, 2011 4:12 pm

Eliot wrote:I'm using a Wiikey.
I connect like the picture is what my diagam is good?

Does using a Wiikey offer any additional functions to the Gamecube or is it just a good substitute for Xeno?
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: XenoGC Full Source Code

Post by infact » Sun May 15, 2011 5:31 pm

It is only the same atmega8l, but not the same firmware. But you can flash the xeno firmware to the wiikey chip, so it will just work like a xeno.
infact
Image Image
Eliot
Posts: 13
Joined: Sun May 08, 2011 6:46 am

Re: XenoGC Full Source Code

Post by Eliot » Sun May 15, 2011 6:37 pm

It will but, for my wiikey, it does not work. :(.
I will retry the next weekend;)
disaster3ad
Posts: 8
Joined: Tue Sep 21, 2010 6:21 am
Location: RUS

Re: XenoGC Full Source Code

Post by disaster3ad » Thu May 19, 2011 9:17 pm

It's possible that i'm wrong with C4 byte, but i've tried both lf=c4,hf=d9 and lf=e4,hf=d9 and it works.
When i've changed hf to d8 it didnot work at all.
Here is a command line to programm chip (using avrdude):
avrdude -p m8 -c sp12 -U flash:w:XenoAT.1.05.hex -U lfuse:w:0xC4:m -U hfuse:w:0xD9:m -U lock:w:0xCF:m -v -v

By the way, i'm using atmega8-16au with diy pcb.

Connecting the LEDs may be helpfull...
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: XenoGC Full Source Code

Post by Dragoon » Fri May 20, 2011 5:24 am

I ask User82 to post how he did it, because he got it up and working :D
Image
yamaharacer
Posts: 448
Joined: Mon Apr 05, 2010 4:11 pm
Location: Germany

Re: XenoGC Full Source Code

Post by yamaharacer » Tue May 24, 2011 6:34 pm

does anyone know how to implement sdload into the xenogc source code?
User avatar
KirovAir
Posts: 214
Joined: Sat Jan 22, 2011 12:13 pm
Location: Netherlands

Re: XenoGC Full Source Code

Post by KirovAir » Tue May 24, 2011 9:50 pm

yamaharacer wrote:does anyone know how to implement sdload into the xenogc source code?
Are we even able to compile the source code yet?
"The only thing more dangerous than a hardware guru with a code patch is a programmer with a soldering iron."
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: XenoGC Full Source Code

Post by infact » Tue May 24, 2011 10:43 pm

Darkmystery wrote:Are we even able to compile the source code yet?
partially 8-)
infact
Image Image
Hells Guardian
Posts: 235
Joined: Sat Feb 12, 2011 9:17 pm

Re: XenoGC Full Source Code

Post by Hells Guardian » Wed May 25, 2011 1:05 pm

I assume the Chip doesn't have cheat support does it?
User avatar
Dragoon
Posts: 323
Joined: Thu Jan 27, 2011 1:01 pm

Re: XenoGC Full Source Code

Post by Dragoon » Wed May 25, 2011 8:30 pm

Nope but you can burn an action replay backup (or use the original) and use AR
Image
dantheman2865
Posts: 34
Joined: Sun Sep 04, 2011 3:24 pm
Location: Flint, MI, USA
Contact:

Re: XenoGC Full Source Code

Post by dantheman2865 » Tue Sep 06, 2011 7:01 pm

It's been some time since the last post here. Has anyone been able to compile this with a completely Open Source library (liboGC)? I am interested in making my XenoGC load something from the SD Card (eventually) but I don't want to start mucking with source if I can't compile to test the results.
dantheman2865
Posts: 34
Joined: Sun Sep 04, 2011 3:24 pm
Location: Flint, MI, USA
Contact:

Re: XenoGC Full Source Code

Post by dantheman2865 » Thu Sep 08, 2011 2:18 am

andzlay wrote:My favourite part of the log is:
<@costis> if so, that guy stalked me and found a ton of my e-mail addresses
<@costis> and spammed shit to me
:mrgreen:
But what is this gclib we have here in the thread?
I have taken some time to look through the XenoGC Source and the GCLib that is attached in this thread.

I've come to the conclusion that the the GCLib in this thread is, indeed, Costis' GCLib (See the opening comments such as "GC_Debug.c by Costis\n\nVersion 1.0"). I've also been looking through the XenoGC Map files and found that the GCLib the Xeno Author used was compiled from source and that source bears an uncanny resemblance to Costis' GCLib. This is based on the file structure having huge similarities (file naming conventions) and even some of the functions having identical names to Costis' GCLib (See xenoflash.map:67 "GC_VIDEO_INIT" which is used in DvdTest\Main.cpp:1278, etc.).

Someone please correct me if I'm wrong, but I think we "only" need to get our hands on a more recent copy of Costis' GCLib in order to compile the programs associated with the XenoGC. This would be a huge boon to the community!

Now, does anyone know of a good way to get in contact with Costis? ;)
User avatar
infact
Posts: 346
Joined: Tue Mar 29, 2011 4:35 am
Location: Germany

Re: XenoGC Full Source Code

Post by infact » Thu Sep 08, 2011 3:08 am

They wrote their own library. Maybe they borrowed some parts from Costis' library, but extended that.

I have their GC_dvd.c file, which was given by them to emu_kidid and is included in the gcos sources.
Believe me, it is not the same file Costis' wrote.

It is also not impossible to adapt their source code and get it to compile with devkitppc + libogc. The code is documented and not difficult to understand.

(If I only had more time for this kind of stuff... :) But I will help you were I can)
infact
Image Image
User avatar
emu_kidid
Site Admin
Posts: 4927
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: XenoGC Full Source Code

Post by emu_kidid » Thu Sep 08, 2011 3:49 am

Another problem is that if you compile with libOGC you'd find the code size will explode and become too large to fit :(

it's using gcos/tmbinc ipl replacement code base in a lot of places as I knew the author liked it cause it was easily modified for his purposes.

infact, I'm with you on that.. wish I had the time I used to have for this kind of stuff (back when I was at university :p)
Image
albertocastillo2001
Posts: 57
Joined: Tue May 10, 2011 8:31 am

Re: XenoGC Full Source Code

Post by albertocastillo2001 » Fri Sep 16, 2011 10:17 am

Hello

This might be a little offtopic but is there another way to use the flasher DOL to flash the XenoGC to 2.0 without the need of bridging the GND to any of the XenoGC letters? I am not sure how it works, but maybe using uldorel to disable the chip before it starts to flash?

Thank you.
dantheman2865
Posts: 34
Joined: Sun Sep 04, 2011 3:24 pm
Location: Flint, MI, USA
Contact:

Re: XenoGC Full Source Code

Post by dantheman2865 » Fri Sep 16, 2011 3:42 pm

Alberto, not to my knowledge. That is a function of the ATMega8L on the XenoGC and that specific pin (I believe it's the reset pin) triggers something in the Xeno.

One feature I would like to implement in an updated Xeno firmware is the ability to trigger the reset from the Uploader (XenoFlash.dol) but I am not at that point yet. (This would still require an update though, it would just be additional functionality.

Another update vector could be to upload the updated firmware to the ATMega by an ISP Programmer (for a cheap programmer use an Arduino with the ArduinoISP sketch) but this would still require some soldering.

I hope this is helpful!
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: XenoGC Full Source Code

Post by megalomaniac » Sat Sep 17, 2011 8:12 pm

albertocastillo2001 wrote:Hello

This might be a little offtopic but is there another way to use the flasher DOL to flash the XenoGC to 2.0 without the need of bridging the GND to any of the XenoGC letters? I am not sure how it works, but maybe using uldorel to disable the chip before it starts to flash?

Thank you.
The purpose of connecting ground to the XENO letters is to put the chip in a reset state to allow writing update files. The flasher/software will detect the status of the chip to ensure it is in RESET status else nothing can be written..


dantheman2865 wrote:Alberto, not to my knowledge. That is a function of the ATMega8L on the XenoGC and that specific pin (I believe it's the reset pin) triggers something in the Xeno.

One feature I would like to implement in an updated Xeno firmware is the ability to trigger the reset from the Uploader (XenoFlash.dol) but I am not at that point yet. (This would still require an update though, it would just be additional functionality.

Another update vector could be to upload the updated firmware to the ATMega by an ISP Programmer (for a cheap programmer use an Arduino with the ArduinoISP sketch) but this would still require some soldering.

I hope this is helpful!

RESET on the Atmega can only be achieved thru a hard wired connection. No command line functions will allow the chip to go into a true reset status..

There is an issue with using an ISP to flash updated files...
the xeno board was not designed to allow dual interface to an IPS connection while also being connected (soldered) to the GC. Doing so will cause failure of the chip to boot and the ISP will fail to establish communication to the chip. Modification to the Xeno board will be required to allow both 1. permanent GC connection & 2. ISP communication..

however, to use the xenoflasher.dol the chip must be put into reset status by physical connection of ground to reset pin..
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
albertocastillo2001
Posts: 57
Joined: Tue May 10, 2011 8:31 am

Re: XenoGC Full Source Code

Post by albertocastillo2001 » Mon Sep 19, 2011 12:01 pm

Hello

Thanks for your reply.

Anybody knows which bugs have been fixed between the 1.0 and the 2.0 version? Besides the Shell to load multigame discs
I've read somewhere years ago that somebugs were corrected but it didn't mention them

Thank you.
albertocastillo2001
Posts: 57
Joined: Tue May 10, 2011 8:31 am

Re: XenoGC Full Source Code

Post by albertocastillo2001 » Mon Sep 19, 2011 5:01 pm

The XenoGC installation I have done is a bit messy to risk adding two more solder points. I am not good at soldering (but I should learn, all this stuff is very interesting)

Maybe I could solder a cable to GND in an alternative point which is far, but I am not sure which. By the way, there are some holes on the drive board that seem to do connection once a cable is inserted on them. Has anybody tried?

Thank you.
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: XenoGC Full Source Code

Post by megalomaniac » Tue Sep 20, 2011 3:04 am

the Xeno or Atmega8 (Xeno clone) can be upgraded/downgraded (or initial programming for Atmega) using the various xenoflash.dol's included in the source..
In order to put the microcontroller in program(write) mode, RESET pin (1) must have constant contact with GND during the write process.


The printed letters "XENO" are in contact with RESET therefore connecting any of those letters with GND will put the chip in program mode. The letters are quite big and make for easy soldering of a wire lead. Also GND can found anywhere on the GC, such as the metal cage around the optical drive which also makes for easy soldering.

These two leads should be connected to an on/off switch rather than a reset (push) switch.
ON = leads have contact
OFF = no contact



Three versions of the Xenoflash.dol exist.
xenoFlash.1.01.dol = v1.01
xenoFlash.1.04b.dol = v1.04b
xenoflash.dol = 1.05 (2.0)




When the dol starts it will indicate:
Set Flash switch to [ON] position now
then press A to begin flashing
After pressing A it will perform a flash erase and a flash write. When the process is completed, reboot and set switch to [OFF] . The software does not perform error checking to confirm if the switch is in the right position, nor will it indicate if the microcontroller is in programming mode.



I have successfully written all three versions using the xenoflasher.
here are a few pics:

Code: Select all

xenoFlash.1.01.dol
Image

Image

Code: Select all

xenoFlash.1.04b.dol
Image

Image

Code: Select all

xenoflash.dol
yes, the pic shows 1.04 beta but it loads 1.05
Image

Image
Attachments
flashpics.jpg.rar
(1.07 MiB) Downloaded 1227 times
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: XenoGC Full Source Code

Post by megalomaniac » Tue Sep 20, 2011 4:19 am

There are some hidden commands which are not displayed in the v1.05 flashloader....
so dont push random buttons...

Code: Select all

A = flash erase, flash write
X = read flash
Y = reset flashloader (reload app)
Z = flash erase
Start = Boot into GCOS (included in xenoflasher.dol)
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
Post Reply