Help needed to build a more complete WII Mame

support for the powerpc toolchain
Post Reply
nebiun
Posts: 56
Joined: Sat Dec 28, 2013 2:42 pm

Help needed to build a more complete WII Mame

Post by nebiun » Sat Mar 01, 2014 2:41 pm

This post was posted on another forum, but it was unresolved. :cry:
The I try posting it here...


I'm trying to build a more complete version of Wii Mame to contain *every* drivers of original Mame version 0.135.
I downloaded the sources for version 1.0 of Wii Mame and the sources of Mame version 0.135, combined them togheter and built a complete .dol using devkitPPC (last version loaded using devkitProUpdater-1.5.3)
The size of the final .dol is too big to run on Wii and homebrew channel simply refuse to see it.
Wii Dolphin Emulator crashes loading the .dol
Then I split it in 4 .dol, grouping drivers to obtain an executable with a size digestible from HC.
All 4 .dol running well on Dolphin, but when I try to run them on a real Wii, all of them crash with the same
error: Exception (alignment) occurred!

Using addr2line for debug, I obtained this:
80011fec
/Users/davem/projects/devkitpro/libogc/libogc/lwp_threads.c:204
8001203c
/Users/davem/projects/devkitpro/libogc/libogc/lwp_threads.c:215
80004348
/home/davem/projects/devkitpro/buildscripts/.devkitPPC-i686-w64-mingw32/powerpc-eabi/newlib/powerpc-eabi/libgloss/rs6000/../../../../../newlib-1.20.0/libgloss/rs6000/crtmain.c:17
80201c00
??:0
80203ddc
??:0
80283130
video.c:0
80283134
video.c:0

This is the complete dump:
Exception (Alignment) Occurred!
GPR00 00000000 GPR08 00000498 GPR16 00000000 GPR24 00000001
GPR01 811F7AD0 GPR09 80830000 GPR17 00000000 GPR25 00000000
GPR02 80DD2880 GPR10 815AB214 GPR18 00000000 GPR26 00000002
GPR03 814ED6B0 GPR11 00000000 GPR19 00000000 GPR27 814ED6B0
GPR04 811F7AF0 GPR12 74696D72 GPR20 00000000 GPR28 80D07590
GPR05 8153A270 GPR13 80DD4E60 GPR21 00000000 GPR29 814A6027
GPR06 00000000 GPR14 00000000 GPR22 00000000 GPR30 815CAD88
GPR07 80D07590 GPR15 00000000 GPR23 00000000 GPR31 814A5FC0
LR 80283130 SRR0 80283134 SRR1 0000b032 MSR 00001000
DAR 814A605B DSISR 0000201D

STACK DUMP:
80283134 --> 80283130 --> 80203DDC --> 80201C00 -->
80004348 --> 8001203C --> 80011FEC

Adding fprintf on the main() for print infos on a file on SD, no file is made.
All sources is available if someone is interested.

Thanks,
Nebiun


Thanks.

nebiun
Posts: 56
Joined: Sat Dec 28, 2013 2:42 pm

Re: Help needed to build a more complete WII Mame

Post by nebiun » Sat Mar 22, 2014 6:07 pm

Well.
I solved by myself.
Problem was due to L2Enhance().

Now my 4 mame .dol work :D
And I can play "moon patrol"on my wii :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests