Hacking WiiFlow - an open source GUI USB-Loader

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
so! r1065 couldnt boot wii games or channels anymore and I gotta say this time it was some serious problem, the memory of wiiflow itself and the external booter were overlapping BUT I actually could solve it by creating a tiny program which can be put into another memory location which basically has the purpose of copying the external booter into its right place :)
http://fix94.no-ip.org/wf_revs/boot_r1066.7z

Thanks!

I'm having trouble compiling r1066...

> "make"
Make WiiFlow Loader
crt0.s
make[1]: powerpc-eabi-gcc: Command not found
make[1]: *** [crt0.o] Error 127
"make": *** [all] Error 2

> Process Exit Code: 2
> Time Taken: 00:00
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
yea that was a little compiler issue on some systems where the path variable doesnt contain the location of the compiler itself, fixed in r1067, also r1067 should boot up homebrew applications and plugins a bit more safe.
http://fix94.no-ip.org/wf_revs/boot_r1067.7z

Thanks, that worked perfectly. I have some time tonight and will exercise it a bit.

Sweet... ran r1067 on my 2TB/1200 game system and it works perfectly. Loading games even feels faster.

I have to run out but will test it on my 4TB later.

edit:

Hung running the first game on my 4TB drive (2174 games). Will reboot and try again.

edit:

Tried a half dozen other games and they hang/black screen when launching with r1067 but only on my 4TB drive.

This works fine on a 2TB drive.
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
If the same happens with r1068 I have another idea to may help that.

Sorry for the late reply, had to go to NYC for the day.

I just compiled and tested r1068 but it is doing the exact same thing and black screening/freezing after launching a game.

Anything I can try or would logs help?
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
as you know, a log file is always helpful.

This is weird. When I have the system running from the hard disk (4TB 1 fat32 partition) with the apps/wiiflow folder on the hard disk it black screens loading games.

If I put the apps/wiiflow folder on SD card (and keep it also on the hard disk) games run fine.

I get no log when I put a blank SD card into the Wii and set the config on the hard disk to write to SD. It just hangs and apparently doesn't flush any output to the SD card. Is there any way to force it to flush the log output after every write? That way you might be able to see where it is stopping.

Here is the log from the app on SD:

Code:
Welcome to WiiFlow (Beta 4.2.2-r1068)!
This is the debug output.
Real Wii
WiiFlow is in real nand mode
IOS58 v6176
patched isfs_permissions 1 times.
patched es_setuid 1 times.
patched es_identify 1 times.
patched hash_check 0 times.
patched new_hash_check 1 times.
Init ISFS
Found WiiFlow Save
FAT Partition at sd: mounted.
Changing USB port to port 0....
* * * * * * * * * * * *
* HDD Information
* Sectors: 976754644
* Size [Sector Size]: 3.888 TB [4096]
* * * * * * * * * * * *
FAT Partition at usb1: mounted.
SHND: Running sound thread
Wiiflow boot.dol Location: sd:/apps/wiiflow
Wii Games Directory: %s:/wbfs
m_mios_ver = 1; m_sd_dm = 1; m_new_dml = 1; m_new_dm_cfg = 1
Loading cIOS map
Found cIOS in slot 222
Found cIOS in slot 223
Found cIOS in slot 224
Found d2x base 56 in slot 249
Found d2x base 57 in slot 250
Found d2x base 58 in slot 251
Data Directory: usb1:/wiiflow
Creating Gamelist
Games found: 2174
start
Update Play log
Launching game SAWE52
Cleanup Coverflow
SHND: Stopping sound thread
SHND: Stopped sound thread
MEM1_freesize(): 8503280
MEM2_freesize(): 32282240
Game ID# SAWE52 requested IOS 56.  User selected 0
Changed requested IOS to 249.
Reloading IOS into 249
Reloading into IOS 249 from 58...
FAT Partition at sd: unmounted.
FAT Partition at usb1: unmounted.
Deinit ISFS
AHBPROT after IOS Reload: 1
patched isfs_permissions 0 times.
Init ISFS
D2X IOS249[56] v10
FAT Partition at sd: mounted.
Changing USB port to port 0....
* * * * * * * * * * * *
* HDD Information
* Sectors: 976754644
* Size [Sector Size]: 3.888 TB [4096]
* * * * * * * * * * * *
FAT Partition at usb1: mounted.
Return to channel DWFA using d2x succeeded.
 
Welcome to WiiFlow (Beta 4.2.2-r1068)!
This is the debug output.
Real Wii
WiiFlow is in real nand mode
IOS58 v6176
patched isfs_permissions 1 times.
patched es_setuid 1 times.
patched es_identify 1 times.
patched hash_check 0 times.
patched new_hash_check 1 times.
Init ISFS
Found WiiFlow Save
FAT Partition at sd: mounted.
Changing USB port to port 0....
* * * * * * * * * * * *
* HDD Information
* Sectors: 976754644
* Size [Sector Size]: 3.888 TB [4096]
* * * * * * * * * * * *
FAT Partition at usb1: mounted.
SHND: Running sound thread
Wiiflow boot.dol Location: sd:/apps/wiiflow
Wii Games Directory: %s:/wbfs
m_mios_ver = 1; m_sd_dm = 1; m_new_dml = 1; m_new_dm_cfg = 1
Loading cIOS map
Found cIOS in slot 222
Found cIOS in slot 223
Found cIOS in slot 224
Found d2x base 56 in slot 249
Found d2x base 57 in slot 250
Found d2x base 58 in slot 251
Data Directory: usb1:/wiiflow
Creating Gamelist
Games found: 2174
start
Update Play log
Launching game S7DE52
Cleanup Coverflow
SHND: Stopping sound thread
SHND: Stopped sound thread
MEM1_freesize(): 8499184
MEM2_freesize(): 32282240
Game ID# S7DE52 requested IOS 56.  User selected 0
Changed requested IOS to 249.
Reloading IOS into 249
Reloading into IOS 249 from 58...
FAT Partition at sd: unmounted.
FAT Partition at usb1: unmounted.
Deinit ISFS
AHBPROT after IOS Reload: 1
patched isfs_permissions 0 times.
Init ISFS
D2X IOS249[56] v10
FAT Partition at sd: mounted.
Changing USB port to port 0....
* * * * * * * * * * * *
* HDD Information
* Sectors: 976754644
* Size [Sector Size]: 3.888 TB [4096]
* * * * * * * * * * * *
FAT Partition at usb1: mounted.
Return to channel DWFA using d2x succeeded.
 
Welcome to WiiFlow (Beta 4.2.2-r1068)!
This is the debug output.
Real Wii
WiiFlow is in real nand mode
IOS58 v6176
patched isfs_permissions 1 times.
patched es_setuid 1 times.
patched es_identify 1 times.
patched hash_check 0 times.
patched new_hash_check 1 times.
Init ISFS
Found WiiFlow Save
FAT Partition at sd: mounted.
Changing USB port to port 0....
* * * * * * * * * * * *
* HDD Information
* Sectors: 976754644
* Size [Sector Size]: 3.888 TB [4096]
* * * * * * * * * * * *
FAT Partition at usb1: mounted.
SHND: Running sound thread
Wiiflow boot.dol Location: sd:/apps/wiiflow
Wii Games Directory: %s:/wbfs
m_mios_ver = 1; m_sd_dm = 1; m_new_dml = 1; m_new_dm_cfg = 1
Loading cIOS map
Found cIOS in slot 222
Found cIOS in slot 223
Found cIOS in slot 224
Found d2x base 56 in slot 249
Found d2x base 57 in slot 250
Found d2x base 58 in slot 251
Data Directory: usb1:/wiiflow
Creating Gamelist
Games found: 2174
start
Cleanup Coverflow
SHND: Stopping sound thread
SHND: Stopped sound thread
MEM1_freesize(): 9900016
MEM2_freesize(): 32390912
 
  • Like
Reactions: halen

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
30
Location
???
XP
11,248
Country
Germany
If I put the apps/wiiflow folder on SD card (and keep it also on the hard disk) games run fine.

I _HIGHLY_ recommend to always keep the main files on sd card, that is just much safer and in fact faster. So I really cant do much there cause I dont support having those important files on a hard drive.
 

halen

Well-Known Member
Member
Joined
Oct 19, 2010
Messages
135
Trophies
0
XP
200
Country
Brazil
Ok guys. I have a 4tb HDD with the Wiiflow. I have a Sd Card without Wiiflow. What is the best? I put the Wiiflow in both USB and SD (only the boot.dol - apps/wiiflow) or i have to put the all of wiiflow directory in SD card ? In the case to put all of files in SD CARD i wil have a big problem. I have tons of covers and the SD CARD not support.
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
I _HIGHLY_ recommend to always keep the main files on sd card, that is just much safer and in fact faster. So I really cant do much there cause I dont support having those important files on a hard drive.

I haven't needed an SD card to run any of the USB loaders in several years. And the problem is only happening on the 4TB drives in WiiFlow - CFG and USB Loader GX work fine on the 4TB 4K drives.

If that's a new requirement for WiiFlow that's fine but the Wiki should be updated so other folks don't run into trouble.

And is it a 4K sector size issue? If so smaller drives with advanced formatting are coming out so it may affect more people in the near term.
 
  • Like
Reactions: jammybudga777

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
Just moved all but 3 games from the WBFS folder on the 4TB drive and it did the exact same thing - hung running a game so this looks more like a 4K issue than a too many game issue.

I'll test older WiiFlow versions to see where it broke.
 

jammybudga777

Well-Known Member
Member
Joined
Aug 23, 2013
Messages
2,284
Trophies
1
Age
37
XP
2,193
Country
ive used two 1 TB hard drives with default kluster size 4k for a long time with no problems.
and now have been using a 1.5TB 32k and never had any problems with wii/wiiware/vc/gamecube games.im guessing wiiflow has issue's/bugs with with 4TB hard drives ive not had one too test myself
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
ive used two 1 TB hard drives with default kluster size 4k for a long time with no problems.
and now have been using a 1.5TB 32k and never had any problems with wii/wiiware/vc/gamecube games.im guessing wiiflow has issue's/bugs with with 4TB hard drives ive not had one too test myself

It isn't the high level cluster size that is the problem. New large capacity 3 and 4 TB drives have something called advanced formatting which results in low level (you can't change) 4K byte sectors instead of the more traditional 512 byte sectors. This allows more efficient use of error correcting code/overhead.

It's supposed to start appearing on smaller capacity drives which is why I'm hoping we can get WiiFlow to work nicely with it as CFG and USB Loader GX support it directly from USB without needing a bootstrap SD card.
 

mightymuffy

fatbaldpieeater
Member
Joined
Nov 6, 2002
Messages
1,983
Trophies
3
Age
48
Location
Land o't pies
XP
3,276
Country
United Kingdom
Ok guys. I have a 4tb HDD with the Wiiflow. I have a Sd Card without Wiiflow. What is the best? I put the Wiiflow in both USB and SD (only the boot.dol - apps/wiiflow) or i have to put the all of wiiflow directory in SD card ? In the case to put all of files in SD CARD i wil have a big problem. I have tons of covers and the SD CARD not support.
I'd say leave apps/wiiflow in your SD card but edit the WIIFLOW.ini in there, searching for:

dir_box_covers=sd:/wiiflow/boxcovers

change to:

dir_box_covers=usb1:/wiiflow/boxcovers

You can do the same with other things too if you like. ;)
 

VashTS

Beat it, son
Member
Joined
Mar 14, 2009
Messages
4,308
Trophies
1
Age
39
Location
Upstate NY
XP
3,762
Country
United States
I _HIGHLY_ recommend to always keep the main files on sd card, that is just much safer and in fact faster. So I really cant do much there cause I dont support having those important files on a hard drive.


I agree, always tend to see issues arise when all is on USB (I'd guess due to thrashing). Been using a 32gb sd card and games/emunand on USB for the longest. I tried switching to nand on SD but had all kinds of hiccups, maybe its time to try again ;)

Hey Fix while i'm quoting you, have you had a chance to see the nintendont usb beta? is it possible to add that as an option to load games via wiflow?
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
I went all the way back to r1000 and it fails to run games on a 4TB drive unless the app is running from an SD card. And it's not a number of games issue as I currently only have 3 games in the wbfs folder. It appears that WiiFlow (even older versions) doesn't support advanced format drives unless the app is running from an SD card. But it can load files like images/themes etc from the advanced format USB drive with no problem.

Both CFG and USB Loader GX run the games from the advanced format drives without the need for an SD card so it's just a coding issue in WiiFlow. And since Fix says he doesn't support it without an SD card Fledge may want to update the Wiki's installation section.
 

MassiveRican

GBATemp's Unofficial Vigilante
Member
Joined
Aug 2, 2011
Messages
2,454
Trophies
1
Location
Creeping in the Shadows
XP
1,190
Country
I
I went all the way back to r1000 and it fails to run games on a 4TB drive unless the app is running from an SD card. And it's not a number of games issue as I currently only have 3 games in the wbfs folder. It appears that WiiFlow (even older versions) doesn't support advanced format drives unless the app is running from an SD card. But it can load files like images/themes etc from the advanced format USB drive with no problem.

Both CFG and USB Loader GX run the games from the advanced format drives without the need for an SD card so it's just a coding issue in WiiFlow. And since Fix says he doesn't support it without an SD card Fledge may want to update the Wiki's installation section.
I have a 3TB Seagate with advanced formatting and it launches games with r1068 maybe it's a 4TB capacity issue? It's not my Wii HDD it's my all around backup drive so it's formatted NTFS I believe but I used it for a quick test and sure enough it's launching games with WiiFlow and all files on USB only.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    ZeroT21 @ ZeroT21: :lol: