Hacking Configurable USB Loader

nop.compiler

Member
Newcomer
Joined
Jan 16, 2011
Messages
10
Trophies
0
XP
1
Country
Dr. Clipper said:
nop.compiler said:
Please, somebody give ETERNAL THANKS to people maintaining http://gwht.wikidot.com/.
You're welcome.

The website is perfectly structured and very well commented: I now understand what ISOs and cISOs are, why must I install IOS 236-249-222 and how, where to download all the required files to do it, etc. I finally managed it to work in 30-40 minutes :-)

Congratulations for the website.
 

XICO2KX

Well-Known Member
Member
Joined
Jul 1, 2007
Messages
162
Trophies
1
XP
925
Country
Portugal
oggzee said:
omg so many colors, my eyes hurt!
wacko.gif

Sorry about that!
tongue.gif

I'll try to make colorless posts from now on!
wink.gif

But can I still use bolds, italics and underlines? lol
laugh.gif

oggzee said:
We do call that too, but from a different function...

Code:
void Do_Shutdown() {
ÂÂÂÂServices_Close();
ÂÂÂÂSubsystem_Close();
ÂÂÂÂSys_Shutdown();
}
void Subsystem_Close(void)
{
....
ÂÂÂÂUSB_Deinitialize();
}
maybe it's the order of things...

Can you try this:
http://cfg-loader.googlecode.com/files/cfg64t1.dol
It has the order of USB_Deinitialize and USBStorage_Deinit changed.
I wonder if that works any better?
Thanks!
smile.gif

But that change didn't work either...
cry.gif

I've been performing some more tests on different scenarios, and here are the results:
cool.gif

(I've turned my Wii off and on more than 20 times in just a few minutes!!!
tongue.gif
)
  • with CFG, the HDD always makes that disturbing sound
  • with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
    wacko.gif
    )
  • from the System Menu, the HDD turn off silently
  • from WiiMC, even when accessing the USB drive, it turns off silently too
After this, I went to check how WiiMC does the shutdown process!
rolleyes.gif

(From: http://wiimc.googlecode.com/svn/trunk/source/fileop.cpp )
CODE
static void * devicecallback (void *arg)
{
(...)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(isInserted[DEVICE_USB])
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(!usb->isInserted()) // device was removed
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂUnmountPartitions(DEVICE_USB);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂusb->shutdown();
(...)
}

static void UnmountPartitions(int device)
{
ÂÂÂÂÂÂÂÂchar mount[11];

ÂÂÂÂÂÂÂÂfor(int i=0; i < MAX_DEVICES; i++)
ÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif(part[device].type == T_FAT)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].type = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsprintf(mount, "%s:", part[device].mount);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂfatUnmount(mount);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂelse if(part[device].type == T_NTFS)
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ{
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].type = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂntfsUnmount(part[device].mount, false);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].name[0] = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].mount[0] = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].sector = 0;
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpart[device].interface = NULL;
ÂÂÂÂÂÂÂÂ}
}

Does CFG unmount the partitions too? Could that be it?
huh.gif

And don't the libogc functions to close/unmount USB stuff have some kind of return value to check if the closing/unmounting procedure was successful or not?
ninja.gif
 

kamiro04

Well-Known Member
Newcomer
Joined
Dec 3, 2010
Messages
62
Trophies
0
XP
94
Country
Argentina
nop.compiler said:
nop.compiler said:
Hi.

I've installed IOS 236, IOS 247 and Hermes 222 and I still get the "Error: IOS 247 is stub!" message.

I think I've solved it by editing the meta.xml file and adding:

ios=248

Please, somebody give ETERNAL THANKS to people maintaining http://gwht.wikidot.com/.

I also used that tutorials for updating the cIOSs and installing the new forwarder from FIX94, and in the process learned a lot.
Thanks Dr. Clipper!
 

x4mer

Member
Newcomer
Joined
Apr 17, 2010
Messages
24
Trophies
0
XP
56
Country
Canada
Oggzee,

In the rev20 has lags thread http://gbatemp.net/t263019-waninkoko-s-cio...with-ios56-base, and the rev21 released thread http://gbatemp.net/t271050-custom-iosx-rev21-released?, people are discussing problems with lag and controller dropouts using Wanin rev20 or higher with any base.

One person said they had 2 Buffalo station 320G drives, with one FAT and the other WBFS. Using a Wii with rev20base56, no problems were encountered using the wbfs drive, while the FAT drive suffered from the lags/dropouts. He has since formatted the wbfs drive to FAT, to test, and it now suffers the same problem.

Due to this difference, and the fact that only Wanin releases using external FAT support have the problem, I'm wondering whether it's possible that the problem lies in (or can be circumvented in) the frag modules of cfgUSB.

The quickest way to test it, is with the Wario Shake It game. Load the game to the screen where you select your save game, and just let it sit there. The hard drive will blink every 8-10 secs. This HDD activity will be synchronous with a message flashing onscreen for an instant saying that communication with the remote has been lost. Most games don't show an error, but it causes problems like constantly missed notes (every 10 secs) in RB3.
 

Ozzy1980

Well-Known Member
Newcomer
Joined
Jul 24, 2009
Messages
51
Trophies
0
XP
68
Country
United States
Is it possible after a game is exited for it to automatically return to the CFG USB Loader instead of the wii channel screen?
 

Dr. Clipper

Well-Known Member
Member
Joined
Aug 28, 2007
Messages
2,485
Trophies
0
XP
92
Country
Ozzy1980 said:
Is it possible after a game is exited for it to automatically return to the CFG USB Loader instead of the wii channel screen?
Yes. Install a forwarder and add its ID to the return_to_channel option. For the forwarder I linked just before, you would add:

return_to_channel=UCXF

to config.txt.

Note also that this feature is incompatible with write_playlog=1. If you try to use them both together, it will only record the very last game you played in each play session to the play log on the message board.
 

oggzee

Well-Known Member
OP
Member
Joined
Apr 11, 2009
Messages
2,333
Trophies
0
XP
188
Country
Slovenia
XICO2KX said:
Thanks!
smile.gif

But that change didn't work either...
cry.gif

I've been performing some more tests on different scenarios, and here are the results:
cool.gif

(I've turned my Wii off and on more than 20 times in just a few minutes!!!
tongue.gif
)
  • with CFG, the HDD always makes that disturbing sound
  • with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
    wacko.gif
    )
  • from the System Menu, the HDD turn off silently
  • from WiiMC, even when accessing the USB drive, it turns off silently too
    Too bad it didn't work, maybe it has to do with some kind of delay, I can add a 1 second sleep after usb deinit and before shutdown, can you try this:
    http://cfg-loader.googlecode.com/files/cfg64t2.dol
XICO2KX said:
After this, I went to check how WiiMC does the shutdown process!
rolleyes.gif

Does CFG unmount the partitions too? Could that be it?
huh.gif

And don't the libogc functions to close/unmount USB stuff have some kind of return value to check if the closing/unmounting procedure was successful or not?
ninja.gif

Yes we do, if you look at:
Do_Shutdown() -> Subsystem_Close() -> UnmountAll()

CODE
int UnmountAll(MountTable *save_mtab)
{
...
ÂÂÂÂfor (i=0; i
 

overjet

Active Member
Newcomer
Joined
Sep 16, 2010
Messages
40
Trophies
0
XP
5
Country
Luxembourg
Hi everyone,

i want to ask what's the difference between two files config.txt and settings.cfg in usb-loader folder of my sd.
 

oggzee

Well-Known Member
OP
Member
Joined
Apr 11, 2009
Messages
2,333
Trophies
0
XP
188
Country
Slovenia
XICO2KX said:
[*]with WiiFlow, sometimes it does and sometimes it doesn't (still couldn't understand why
wacko.gif
)

Heh I have taken another look at WiiFlow source, and they actually don't unmount anything and don't deinit usb when doing the shutdown.
They only unmount and deinit when launching a game.
Here is another test, with unmount and deinit removed from shutdown, I'm curious how this one behaves:
http://cfg-loader.googlecode.com/files/cfg64t3.dol

I'm also curious who is downloading all these test versions and why?
And how come there is no feedback even if there are 83 downloads of 64t1 and 12 downloads of 64t2?
 

jordan_ch

Well-Known Member
Newcomer
Joined
Jan 11, 2011
Messages
51
Trophies
0
XP
141
Country
Switzerland
overjet said:
Hi everyone,

i want to ask what's the difference between two files config.txt and settings.cfg in usb-loader folder of my sd.

Settings.cfg is where all the options saved within the loader itself are stored. This is predominantly the favorites and hidden games, along with all the per-game settings. In addition, several options may be saved here when you perform the action to save all settings at the Global Options screen (by pushing 2). If these options are located in settings.cfg, they override the same settings in config.txt. The options that may appear in settings.cfg are:

•theme - Theme to load at startup
•profile - Default profile to load at startup
•device - Default device where games are stored (SD/USB)
•partition - Default partition where games are stored
•gui_style - Initial GUI style at startup
•gui_rows - Inital number of rows for gridflow GUI styles
 

camurso_

Well-Known Member
Member
Joined
Dec 23, 2004
Messages
542
Trophies
0
Age
46
XP
470
Country
Portugal
Maybe because they are not defined there.
They can be in there, but, most probably they are defined in config.txt.

The difference between them is that settings.cfg overrides config.txt.

I think...
 

jesquinas

Well-Known Member
Member
Joined
Apr 14, 2010
Messages
117
Trophies
0
XP
44
Country
Anycase is very confusing the same settings in two different files.In Spain we would say : "House with two gates ,difficult to look after!"

Greetings
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    Thanks ken
  • BigOnYa @ BigOnYa:
    Great game. But I'd buy it straight up before paying for prime. Unless you order something everyday from amazon, not worth it imo
  • Sicklyboy @ Sicklyboy:
    I'm one of those people that Amazon loses money on the Prime subscription with
  • Sicklyboy @ Sicklyboy:
    I abuse the fuck out of it
  • K3Nv2 @ K3Nv2:
    Prime says I've already saved $400 this year lol
  • Sicklyboy @ Sicklyboy:
    Where do you see how much you've saved?
  • K3Nv2 @ K3Nv2:
    Under orders
  • BigOnYa @ BigOnYa:
    See maybe good for you guys, but I don't hardly ever order from amazon, maybe only couple times a month
  • K3Nv2 @ K3Nv2:
    Primes great because I stopped getting into arguments with the door greeter at Walmart
  • Sicklyboy @ Sicklyboy:
    hahahahaha
  • K3Nv2 @ K3Nv2:
    They see me so much in there they don't even ask for me receipt anymore tbh
  • Sicklyboy @ Sicklyboy:
    Pain in the ass, don't see it anywhere on the desktop site, had to pull it up on my phone
  • K3Nv2 @ K3Nv2:
    Think they gave up on the website and mainly focus on the app
  • Sicklyboy @ Sicklyboy:
    Desktop site > mobile site > mobile app
  • Sicklyboy @ Sicklyboy:
    Mobile app is such absolute dogshit, I haven't used it in SO long
  • K3Nv2 @ K3Nv2:
    Yeah mobile versions better people don't think about how apps are just shrunken down websites
  • K3Nv2 @ K3Nv2:
    Could be the phone connection etc I've mostly been fine with the app
  • K3Nv2 @ K3Nv2:
    Regardless fuck bezos
    +1
  • Sicklyboy @ Sicklyboy:
    Agreed. Crazy how both seeking a job at Amazon, and subsequently quitting Amazon, are both some of the best decisions I've ever made
  • K3Nv2 @ K3Nv2:
    Did someone loose a leg? You're fired
  • K3Nv2 @ K3Nv2:
    Ffs 55gb patch for hogwarts legacy
  • SylverReZ @ SylverReZ:
    @K3Nv2, Teslas are prob running Windows XP to this day.
    SylverReZ @ SylverReZ: @K3Nv2, Teslas are prob running Windows XP to this day.