Hacking cIOSX rev21d2x: Yet Another Hot Fix!!!!

Did d2x work for you?

  • Yes, I had an issue with the official cios and d2x fixed it

    Votes: 93 48.2%
  • Yes, but everything was already working for me with the official cios

    Votes: 82 42.5%
  • No, and I posted what goes wrong

    Votes: 9 4.7%
  • No, and I won't report what goes wrong because I am a troll

    Votes: 9 4.7%

  • Total voters
    193

icebrg5

Well-Known Member
Member
Joined
Apr 1, 2007
Messages
2,328
Trophies
0
Website
Visit site
XP
412
Country
United States
There anyway to make the wad files for the latest wiiflow using modmii?

Wiiflow recommends the following

base: 37
slot: 245

base: 38
slot: 246

base: 53
slot: 247

base: 55
slot: 248

base: 58
slot: 251
 

davebaol

Well-Known Member
OP
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
ok finally I managed to make it work without any random crash.
I'm talking about the new ehci module with interrupts that I developed with rodries in june/july.
It has been abandoned since games crashed after playing for some minutes and we were not able to fix it at that time.
But I recently found out that the ehci module works properly after removing some non essential modules picked at random.
OMFG how many nights wasted in vain in hunting a bug that does not exist. :blink:
In fact this likely means that there are too many threads and problems arise when extending the execution time of the interrupt procedure.
So I removed the fat module by embedding fat support directly into the fs plugin, i.e. one less thread.
Also, I replaced the thread which makes the drive led blink on fat write access with a synchronous procedure which turns the led on and off respectively before and after writing sectors.
And now without those 2 threads the issue has disappeared. B-)
I quote myself just to give you a little update.
After removing the 2 threads mentioned above nand emu wasn't working properly. I got strange issues like the error "Please insert the disc in the drive" or random freezing.
So I tried to remove one more thread, i.e. the sdhc module which supports iso/wbfs games through sd card, and magically the issue has disappeared.
Since less than 1 out of 1000 users play games through sd card I thought the missing module was not a big deal.
Then I realized that countrary to d2x v8 the new ehci module in combination with base 58 supports the webcam, meaning that the new ehci doesn't interfere with nintendo's usb2.0 module as long as you don't initialize the hdd. In other words, you can play Your Shape from dvd with neogamma.
But this was not enough for recent wii's having unmoddable drives.
So I put back sdhc support for iso games by embedding its code inside the new ehci module. This solution doesn't involve a new thread and has no drawbacks. In fact you can't play games from more than 1 device at a time, not counting emulated nand which calls nintendo's sdio module directly.
And now I have a backword compatible d2x v9 beta with enhanced usb support. And of course you can use the webcam while playing through dvd or sd card. :)
A little update once again.
There has been a misunderstanding with my beta tester having the camera required by You Shape, nothing severe anyways.
Actually the upcoming d2x v9 built on base 58 with the new ehci doesn't work with Your Shape. In fact the webcam is recognized but the game can't turn it on, regardless of the device (usb, sd card or drive). It means that there's still some kind of conflict between my new ehci module and nintendo's usb2.0 module.
On the contrary all d2x versions (and waninkoko's rev21 too, I guess) built on base 58 with the usbs module are working properly with the webcam as long as you launch the game through sd card or dvd, i.e. when the hard drive has not been initialized. Note that the usbs module is just a stub which exposes the interface of the ehci module but internally nintendo's usb2.0 module is used instead.
So I had to port shdc support to the usbs module too in order to play Your Shape through sd card.
 
  • Like
Reactions: 5 people

davebaol

Well-Known Member
OP
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
  • Like
Reactions: 4 people

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,795
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
9,778
Country
Cyprus
Awesome!!! :yaywii:
The new EHCI module looks promising! B-)
What was this, by the way? :P
- Removed the easter egg introduced by Waninkoko in cios rev20.
:rolleyes:
http://gbatemp.net/topic/263930-is-there-any-usb-loader-for-gamecube-games/page__view__findpost__p__3257334
 

mike333

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
718
Trophies
0
XP
233
Country
Poland
d2x v9 beta(r47)

Download: http://code.google.c...&q=#makechanges
Changelog: http://code.google.c...a/Changelog.txt

Note that you need ModMii 6.0.6 or higher to build d2x wads. The d2x-cios-installer doesn't need to be updated instead.

EDIT:
Added a new wiki page about problematic games: http://code.google.c...isc_based_games

Code:
- EHCI module enhanced with interrupt callback to detect usb port status
changes. Now usb instruments are plug&play just like they are when playing
the original dvd through the disc channel (tnx to hermes cios source).
Hermes joined d2x? Great news everyone!
 

davebaol

Well-Known Member
OP
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
Code:
- EHCI module enhanced with interrupt callback to detect usb port status
changes. Now usb instruments are plug&play just like they are when playing
the original dvd through the disc channel (tnx to hermes cios source).
Hermes joined d2x? Great news everyone!
nope, I wrote "tnx to hermes cios source" meaning that I was inspired by his code.
Actually I've never been in touch with him.
 

IceIceBird

Well-Known Member
Member
Joined
Nov 14, 2009
Messages
407
Trophies
0
XP
119
Country
d2x v9 beta(r47)

Download: http://code.google.c...&q=#makechanges
Changelog: http://code.google.c...a/Changelog.txt

Note that you need ModMii 6.0.6 or higher to build d2x wads. The d2x-cios-installer doesn't need to be updated instead.

EDIT:
Added a new wiki page about problematic games: http://code.google.c...isc_based_games
Nice one! :D
Just let us all hope the usb loader devs also take a look at that wiki page of yours :ha:
The only thing I personally miss in the cIOS right now is better emu support for the wiiware/vc games.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/hYkEl-3x92A?si=JSDoEc2QCDOrtimz