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
897
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
187
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
187
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
44
XP
450
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
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm