Hacking USB Loader GX

  • Thread starter cyrex
  • Start date
  • Views 7,160,996
  • Replies 29,357
  • Likes 47

Larsenv

Dr. Wii, Ph.D
Member
Joined
Sep 28, 2013
Messages
870
Trophies
2
Website
larsenv.xyz
XP
3,281
Country
United States
I've compiled a new lib, similar to Curl but specifically designed for devices that don't have a lot of memory. It enables SNI and adds TLS 1.3 and 1.2 support :)

Almost all of the old networking code used for downloads has been removed and replaced.

Where can I see the source of that? That's awesome.
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Where can I see the source of that? That's awesome.
https://github.com/wiidev/usbloadergx/commits/master

I had to push changes to GitHub since SourceForge is useless for contributions.
  • Fixes cheat downloads from geckocodes.org
  • Fixes a minor memory leak
  • All downloads now use HTTPS
  • Optimised all images
  • Removed WiinnerTag since it's dead and the website was redirecting to malware
  • Removed some old redundant code
I've been talking with Cyan about this since mid June, so he's aware of all of the changes. That's how I know they'll be included in the next release :)
 
Last edited by blackb0x,

Larsenv

Dr. Wii, Ph.D
Member
Joined
Sep 28, 2013
Messages
870
Trophies
2
Website
larsenv.xyz
XP
3,281
Country
United States
https://github.com/wiidev/usbloadergx/commits/master

I had to push changes to GitHub since SourceForge is useless for contributions.
  • Fixes cheat downloads from geckocodes.org
  • Fixes a minor memory leak
  • Almost all downloads now use HTTPS
  • Optimised all images
  • Removed WiinnerTag since it's dead and the website was redirecting to malware
  • Removed some old redundant code
I've been talking with Cyan about this since mid June, so he's aware of all of the changes. That's how I know they'll be included in the next release :)

Thanks. We're working on something called RiiTag to replace Wiinnertag and DUTag since they no longer work, so it doesn't really have to be removed. We're just trying to get something working for people to customize it. Fledge68 almost removed it.

So you used wolfSSL? Did you have to modify it at all? I didn't know you could get the latest wolfSSL working with the Wii.
 
Last edited by Larsenv,
  • Like
Reactions: Alexander1970

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Thanks. We're working on something called RiiTag to replace Wiinnertag and DUTag since they no longer work, so it doesn't really have to be removed. We're just trying to get something working for people to customize it. Fledge68 almost removed it.
Personally I didn't want to put any effort into WiinnerTag since it seems like a feature that wouldn't be worth my time. Like with the Wii being almost 13 years old how many people would realistically make use of this feature now? I'd guess that it's less than 1% of people with modded consoles.

I guess if I've got nothing better to do then I'll restore WiinnerTag and update the code so that it also supports HTTPS.

So you used wolfSSL? Did you have to modify it at all? I didn't know you could get the latest wolfSSL working with the Wii.
Yea, it's the latest 4.1.0 stable version with no modifications. It's was just a matter of configuring it and getting it to compile.
 
Last edited by blackb0x,
  • Like
Reactions: Alexander1970

Larsenv

Dr. Wii, Ph.D
Member
Joined
Sep 28, 2013
Messages
870
Trophies
2
Website
larsenv.xyz
XP
3,281
Country
United States
Personally I didn't want to put any effort into WiinnerTag since it seems like a feature that wouldn't be worth my time. Like with the Wii being almost 13 years old how many people would realistically make use of this feature now? I'd guess that it's less than 1% of people with modded consoles.

I guess if I've got nothing better to do then I'll restore WiinnerTag and update the code so that it also support HTTPS.


Yea, it's the latest 4.1.0 stable version with no modifications. It's was just a matter of configuring it and getting it to compile.

Yeah, I understand your point. There's still people who play Wii, you can tell by the popularity of Wiimmfi and my service (RiiConnect24). RiiTag will be a part of RiiConnect24. I wanted to see the tag feature working again, and if it works out support other consoles like the DS, 3DS, Wii U and Switch since they can all be integrated with gametdb.

Would USB Loader GX already support TLS v1.0 with the current stable build? We could make the server use that as a start, despite it being insecure, it's better than nothing.
 
Last edited by Larsenv,

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Would USB Loader GX already support TLS v1.0 with the current stable build? We could make the server use that as a start, despite it being insecure, it's better than nothing.
There's no working code to handle HTTPS within the current official build. Cyan tried to add it in the past, but he couldn't get it to work correctly.

Nintendont has the required code to access GitHub, but it's achieved via dirty ssl patches. It works, but it's obviously insecure and it also fails to access any servers that use SNI because the Wii doesn't support the SNI extension.

My solution fixes connecting to geckocodes, but it also enables USB Loader GX to download securely from GameTDB, RiiConnect24, SourceForge & more. I'd want to extend that to WiinnerTag too since the old SSL code would conflict with my new code.


EDIT - I've restored WiinnerTag and gave it HTTPS support. The download in my previous post has been updated :)
 
Last edited by blackb0x,

Clector

Well-Known Member
Member
Joined
Mar 15, 2016
Messages
1,076
Trophies
0
Location
Not here
XP
458
Country
Bangladesh
I have a problem with Kirby's Dream Collection, the classic games works fine, but if I try to restart from any of the classic games the console ends up crashing with a black screen.
This is with the Japanese version, in the American version this problem doesn't occur to me.
I'm using an American console but setting the game to use Japanese on the USB Loader GX.
 

AdmiralToucan

Well-Known Member
Member
Joined
Feb 22, 2016
Messages
106
Trophies
0
Age
33
XP
144
Country
Canada
Has usb loader gx been updated yet to support nintendonts new BBA emulation? I can't find the option under mine. Also can anyone tell me the difference between forced 480p and patched 480p?
 
  • Like
Reactions: Alexander1970

Alexander1970

XP not matters.
Member
Joined
Nov 8, 2018
Messages
14,973
Trophies
3
Location
Austria
XP
2,496
Country
Austria
Has usb loader gx been updated yet to support nintendonts new BBA emulation? I can't find the option under mine. Also can anyone tell me the difference between forced 480p and patched 480p?

Hello.:)

Not to this time.

@Cyan seems "busy" at the time.
We should wait with patience for his possible "return".
I do not know if other People are involved actual.

@blackb0x is very motivated and ambitious in improving the USBLoader as you can read a few Posts above.

Thank you.:)
 
  • Like
Reactions: jeannotte

Flo_o

Well-Known Member
Member
Joined
Mar 18, 2017
Messages
165
Trophies
0
Age
37
XP
498
Country
@blackb0x Awesome to see a new version blackb0x! Great job! I only have a problem with the mod, this screen:

DSC-0159.jpg


I just checked/updated my sysCheck and ran it through ModMii but everything is fine according to ModMii, i have the IOS58 (rev 6176): USB 2.0

Do i need a special custom ios version for this modded USB Loader GX?
 

Flo_o

Well-Known Member
Member
Joined
Mar 18, 2017
Messages
165
Trophies
0
Age
37
XP
498
Country
Nope. It should just work exactly the same as the official version.

Did you copy the meta.xml as well as the dol file? If the XML is missing or outdated it can trigger this error.
Hi blackb0x, yes i did, i completely removed my usbloader_gx folder and added yours (including the meta).
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Hi blackb0x, yes i did, i completely removed my usbloader_gx folder and added yours (including the meta).
I'm not sure what would cause that error then, since I haven't touched that part of the loader.

https://github.com/wiidev/usbloadergx/blob/master/source/StartUpProcess.cpp#L260
  1. Backup GXGlobal.cfg and then delete your original copy and try booting the loader again
  2. If the loader still doesn't work try with the official r1272 version again
I've removed my version for the moment as I've found a minor bug that I'd like to fix, but that isn't related to this problem.

I've uploaded a new version that fixes the minor bug :)
 
Last edited by blackb0x,

Flo_o

Well-Known Member
Member
Joined
Mar 18, 2017
Messages
165
Trophies
0
Age
37
XP
498
Country
I'm not sure what would cause that error then, since I haven't touched that part of the loader.

https://github.com/wiidev/usbloadergx/blob/master/source/StartUpProcess.cpp#L260
  1. Backup GXGlobal.cfg and then delete your original copy and try booting the loader again
  2. If the loader still doesn't work try with the official r1272 version again
I've removed my version for the moment as I've found a minor bug that I'd like to fix, but that isn't related to this problem.
Hi blackb0x, i've tried both options but neither of them are working, even the official r1272 is showing the same problem as seen in the photo, very strange.

I've tried my backed up version that i always used and that one is working fine, it also runs in 480p (verified with GC-Video), with releasedate 20181218174915.

Is it possible to check why this version is working differently than the new official r1272 and your modded version?
 

blackb0x

Well-Known Member
Member
Joined
Apr 22, 2019
Messages
788
Trophies
1
XP
3,545
Country
United Kingdom
Hi blackb0x, i've tried both options but neither of them are working, even the official r1272 is showing the same problem as seen in the photo, very strange.
I'm glad to know it's not an issue caused by my version ^_^

But as for why r1271 works for you and r1272 doesn't, I guess it's got something to do with the IOS changes that Cyan made.
* Changed default loader's IOS to 58 (test), and default game's IOS to 249.

I don't recall reading posts from anyone else having this "failed to load IOS 58" error, so here's some questions.
  • Do you have the loader installed to an SD card?
  • Is your Wii firmware version 4.3?
  • Are you using d2x-v10-beta52 on IOS249 (base 56) and IOS250 (base 57)?

I did download of 1272 3.0 mod version. Is claimed that version can downloa geckocodes but i dont got any code from usbloader.
If you enter the Ocarina menu and click on "download now" or "update" then it should work as long as you're actually connected to a network and the game has cheats available.

You can also check if the website works for you - https://www.geckocodes.org/
 
Last edited by blackb0x,

SuperrSonic

Well-Known Member
Member
Joined
Dec 9, 2011
Messages
807
Trophies
1
XP
2,296
Country
Puerto Rico
I have a problem with Kirby's Dream Collection, the classic games works fine, but if I try to restart from any of the classic games the console ends up crashing with a black screen.
I ran into a similar problem with a different game, any patches applied by USB Loader GX will stop working if the game is reset. So if a game relies on a setting to work then the reset button becomes the 'crash' button. It's worse for Kirby since reset is frequently used.

The way I get around it is by figuring out what the setting patches in memory and apply it to the main.dol manually and rebuild the iso.
Luckily I did this game a while back so you can just follow this:

- Extract the main.dol and open it in a hex editor.
- Go to address 0x48CBC
- Write 38600000 over 88610008
- Save and replace the dol using wit (or wiiscrubber.)
 

Flo_o

Well-Known Member
Member
Joined
Mar 18, 2017
Messages
165
Trophies
0
Age
37
XP
498
Country
I'm glad to know it's not an issue caused by my version ^_^

But as for why r1271 works for you and r1272 doesn't, I guess it's got something to do with the IOS changes that Cyan made.


I don't recall reading posts from anyone else having this "failed to load IOS 58" error, so here's some questions.
  • Do you have the loader installed to an SD card?
  • Is your Wii firmware version 4.3?
  • Are you using d2x-v10-beta52 on IOS249 (base 56) and IOS250 (base 57)?
Thanks for info blackb0x :) I did not read Cyan's line "Changed default loader's IOS to 58". That must be the problem, but i hope more users can test the new USB Loader GX version, i'm curious if they have the same problem as me, well, maybe i have strange wii ;)

to answer your questions:
  • yes i have, location: SD\apps\usbloader_gx, maybe useful to point out, i use the 'ForwarderV5.1.dol', so when i turn on my wii, it will automatically boot to USB Loader GX
  • yes, 4.3E to be exact
  • no, i have checked my sysCheck.csv and i see that i have d2x-v8final on both 249 and 250 instead of v10: IOS249[56] (rev 21008, Info: d2x-v8final): Trucha Bug, NAND Access, USB 2.0 / IOS250[57] (rev 21008, Info: d2x-v8final): Trucha Bug, NAND Access, USB 2.0
As said, when adding my sysCheck to ModMii, it will say that everything is up to date, also, i never had problems with running emulators, gamecube and wii games, so is there a huge difference between v8 and v10?
 
Last edited by Flo_o,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Pass