Hacking WiiFlow - an open source GUI USB-Loader

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
I've 2 drives, 1 for Wii games and the other for GC, NAND and Emulators etc. I don't really use the SD except for admin stuff and older homebrew that won't run from USB.

I was thinking of buying a larger drive, and I wasn't aware of this issue, so this is excellent timing! :)

What's the upper limit of drive size before these problems start?
Well, the issue isn't DIRECTLY with the drive size. It's with the sector size. Most apps will expect the sectors to be 512 bytes in size but there's a limit to how many sectors can be on a disk so the absolute BIGGEST a drive can be and still use 512-byte sectors is 2TB and ANYTHING larger than that will HAVE to use larger sectors.

If a drive manufacturer decides to use a bigger sector size even for a smaller drive, though, it can have the same problem so, for example, if you have a 1.5TB drive that uses 4k sectors it'll present the same problems that a 4TB drive would have.
I was also wondering which plugins and homebrew are effected?
Not exactly sure about this one TBH
edit: I wonder if the authors of the effected homebrew are aware of the issue - is it easily solvable or a hardcore rewrite?
I think it's FAIRLY simple (just my impression, though) but that also depends on how it is already programmed and what exactly it's already doing with the drive, I'm sure.
 
  • Like
Reactions: spacepimp

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
I've 2 drives, 1 for Wii games and the other for GC, NAND and Emulators etc. I don't really use the SD except for admin stuff and older homebrew that won't run from USB.

I was thinking of buying a larger drive, and I wasn't aware of this issue, so this is excellent timing! :)

What's the upper limit of drive size before these problems start?

I was also wondering which plugins and homebrew are effected?

edit: I wonder if the authors of the effected homebrew are aware of the issue - is it easily solvable or a hardcore rewrite?

Maxternal is exactly right it's not the size of the drive but the underlying low level sector size.

To find out if your drive has low level 512 byte sectors use this command:

using win7 and command line

X:\>wmic DISKDRIVE get bytespersector, caption

resulting:
BytesPerSector Caption

"512 <device name>"

If it doesn't say 512 it's not compatible with the current version of DIOS MIOS and some homebrew/plugins like NeoGeo and Hugo. Common ones like the nes/snes emulators seem to work fine.
 

spacepimp

Pathalogical Fantasist
Member
Joined
Feb 20, 2012
Messages
457
Trophies
1
Location
Off the Island
XP
433
Country
Informative replies gents, thanks. this is a considered purchase - If I were to buy a drive not necessarily known to work, and it proved to be a larger low level sector size -
can I low level format it to 512kb, or is this inherently unchangeable?
 

Maxternal

Peanut Gallery Spokesman
Member
Joined
Nov 15, 2011
Messages
5,210
Trophies
0
Age
40
Location
Deep in GBAtemp addiction
Website
gbadev.googlecode.com
XP
1,709
Country
can I low level format it to 512kb, or is this inherently unchangeable?
it's inherently unchangeable. What you set when you format something are clusters (groups of sectors) so if formatted to 8k clusters, each cluster on a 512-per-sector drive would contain 16 sectors while the same cluster size format on a 4k-per-cluster drive would only have 2 sectors in each cluster.
 

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 called Seagate to find out which (if any) external 2TB drives had low level 512k sectors. Lo and behold I spoke with 3 different people. Of course I heard 3 different things.
  1. The first rep said he didn't know, I requested I speak with someone else;
  2. This rep knew what I was talking about and sent me a list of drives that had 512k sectors. He went on to explain to me that he was one of the few people that worked on finding this information out and was directly involved in the creation of this list. Check the spoiler below for drives. Unfortunately from what I can see, there are no USB powered drives on the list and some of them are internal drives, however there are HDD's as high as 3TB on this list. I'm thinking of purchasing one of these drives just to be sure I can use DM. Nintendon't high compatibility with GC games might still be very far away.
    512
    A B C D E F
    1 Product Capacity Form Speed Model #
    2 Factor
    3
    4 Barracuda 160 GB 3.5 7200 ST3160318AS 7200.12
    5 Barracuda 160 GB 3.5 7200 RPM ST3160316AS 7200.12
    6 Barracuda 160 GB 3.5 7200 RPM ST3160318AS 7200.12
    7 Barracuda 250 GB 3.5 7200 RPM ST3250312AS 7200.12
    8 Barracuda 250 GB 3.5 7200 RPM ST3250318AS 7200.12
    9 Barracuda 320 GB 3.5 7200 RPM ST3320413AS 7200.12
    10 Barracuda 320 GB 3.5 7200 RPM ST3320418AS 7200.12
    11 Barracuda 500 GB 3.5 7200 RPM ST3500413AS 7200.12
    12 Barracuda 500 GB 3.5 7200 RPM ST3500410AS 7200.12
    13 Barracuda 500 GB 3.5 7200 RPM ST3500418AS 7200.12
    14 Barracuda 750 GB 3.5 7200 RPM ST3750525AS 7200.12
    15 Barracuda 2 TB 3.5 7200 RPM ST32000641AS XT
    16 Barracuda 1 TB 3.5 7200 RPM ST31000524AS 7200.12
    17 Barracuda 1 TB 3.5 7200 RPM ST31000528AS 7200.12
    18 Barracuda 3 TB 3.5 7200 RPM ST33000651AS XT
    19
    20 Momentus 80 GB 2.5 7200 RPM ST980412AS 7200.5
    21 Momentus 80 GB 2.5 7200 RPM ST980412ASG 7200.5
    22 Momentus 120 GB 2.5 5400RPM ST9120317AS FDE.4
    23 Momentus 160 GB 2.5 7200 RPM ST9160412AS 7200.5
    24 Momentus 160 GB 2.5 7200 RPM ST9160412ASG 7200.5
    25 Momentus 160GB 2.5 5400RPM ST9160317AS FDE.4
    26 Momentus 80 GB 2.5 5400RPM ST980314AS FDE.4
    27 Momentus 120 GB 2.5 7200 RPM ST9120410AS 7200.5
    28 Momentus 120 GB 2.5 7200 RPM ST9120410ASG 7200.5
    29 Momentus 160 GB 2.5 5400 RPM ST91603010AS Thin
    30 Momentus 160 GB 2.5 5400 RPM ST9160314AS FDE.4
    31 Momentus 250 GB 2.5 5400 RPM ST92503010AS Thin
    32 Momentus 250 GB 2.5 7200 RPM ST9250410AS 7200.5
    33 Momentus 250 GB 2.5 7200 RPM ST9250410ASG 7200.5
    34 Momentus 250 GB 2.5 7200 RPM ST9250411AS FDE.2
    35 Momentus 250 GB 2.5 7200 RPM ST9250412AS FDE.2
    36 Momentus 250 GB 2.5 5400 RPM ST9250315AS 5400.6
    37 Momentus 320 GB 2.5 5400RPM ST9320327AS FDE.4
    38 Momentus 320 GB 2.5 7200 RPM ST9320423AS 7200.5
    39 Momentus 320 GB 2.5 5400 RPM ST9320325AS 5400.6
    40 Momentus 320 GB 2.5 5400 RPM ST9320325ASG 5400.6
    41 Momentus 320GB 2.5 7200RPM ST9320423AS 7200.5
    42 Momentus 400GB 2.5 5400 RPM ST9400326AS 5400.6
    43 Momentus 500 GB 2.5 5400RPM ST9500327AS FDE.4
    44 Momentus 500 GB 2.5 7200 RPM ST9500420AS 7200.5
    45 Momentus 500 GB 2.5 7200 RPM ST9500420ASG 7200.5
    46 Momentus 500 GB 2.5 7200 RPM ST9500421AS 7200.5
    47 Momentus 500 GB 2.5 7200 RPM ST9500422AS 7200.5
    48 Momentus 500 GB 2.5 5400 RPM ST9500325AS 5400.6
    49 Momentus 500 GB 2.5 5400 RPM ST9500325ASG 5400.6
    50 Momentus 500 GB 2.5 5400 RPM ST9500327AS FDE.4
    51 Momentus 640 GB 2.5 5400 RPM ST9640320AS 5400.7
    52
    4K
    A B C D E
    1 4k sectors
    2 Product Capacity Form Speed Model #
    3 Factor
    4
    5 Momentus 160 GB 2.5 7200 RPM ST160LT007
    6 Momentus 160 GB 2.5 5400 RPM ST160LT003
    7 Momentus 160 GB 2.5 7200 RPM ST160LT009
    8 Momentus 160 GB 2.5 7200 RPM ST160LT011
    9 Momentus 160 GB 2.5 7200 RPM ST160LT014
    10 Momentus 160 GB 2.5 5400 RPM ST160LT015
    11 Momentus 160 GB 2.5 7200 RPM ST160LT016
    12 Momentus 250 GB 2.5 7200 RPM ST3250LT011
    13 Momentus 250 GB 2.5 5400 RPM ST250LT003
    14 Momentus 250 GB 2.5 5400 RPM ST250LT020
    15 Momentus 250 GB 2.5 7200 RPM ST250LT007
    16 Momentus 250 GB 2.5 7200 RPM ST250LT014
    17 Momentus 250 GB 2.5 7200 RPM ST250LT009
    18 Momentus 250 GB 2.5 7200 RPM ST250LT021
    19 Momentus 320GB 2.5 7200 RPM ST320LT011
    20 Momentus 320 GB 2.5 5400 RPM ST320LT020
    21 Momentus 320 GB 2.5 5400 RPM ST320LT022
    22 Momentus 320 GB 2.5 7200 RPM ST320LT007
    23 Momentus 320 GB 2.5 7200 RPM ST320LT014
    24 Momentus 320 GB 2.5 7200 RPM ST320LT009
    25 Momentus 320 GB 2.5 7200 RPM ST320LT023
    26 Barracuda Green 1.5 TB 3.5 5900 RPM ST1500DL003
    27 Barracuda Green 2 TB 3.5 5900 RPM ST2000DL003
    28
    29
    30 Momentus 750 GB 2.5 7200 RPM ST9750420AS
    31 Momentus 750 GB 2.5 5400 RPM ST9750423AS
    32


    REgards,

    Gary M
  3. I wanted more drives as I was sure there were more HDD's since I myself owned a few Seagate drives that were 512k external and USB powered. Finally the last rep I spoke with said that they did not have that kind of information on hand. I didn't argue,.. I will continue to call until I get a knowledgeable rep.
Hope the list can help a few of you guys out.
 

TheSly

Well-Known Member
Newcomer
Joined
Oct 27, 2013
Messages
89
Trophies
0
XP
149
Country
Australia
Does anybody know how I can get the sourcecode from wiiflow-version 4.1.3?
I made a lot of changes on a theme so that it fits for this version - and I want to change the boot-animation with svn-tortoise.
At googlesource I can only find a svn-checkout for a newer beta-version!
I would really prefer to work with the sourcecode for the 4.1.3-version because of my altered theme...
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
Hi all. I think r1046 and r1047 aren't working correctly.

If you try to run a game in real nand it hangs and doesn't get to the progress bar loading graphic.

Switch back to r1045 and it works fine.

I don't use neek2o or anything fancy - just real nand and it doesn't appear to load.

I've tested it against my 2TB and 4TB systems with the exact same results. Both are a single fat32 partition.

Can someone else confirm the problem?

TIA.


Don't know if it matters but it looks like with the addition of the neek2o code the order of a couple of lines was changed...

85​
-​
AES_ResetEngine();
86​
-​
memcpy(iv, raw + 0x3d0, 16);


In non neek2o mode the memcpy occurs before the AES_ResetEngine call now.
 

Th3-Blu3BoMb3r

Mark D.
Member
Joined
Mar 4, 2013
Messages
249
Trophies
1
Age
36
Location
Albany, New York
XP
243
Country
United States
Just want to say thanks to everyone that helped me along the way i am very happy to say that i am just about complete with setting up all of my wiiflow and its been awesome!!! just tweaking things from here on out so thanks again everyone!!!
 

Etheboss

Official LULWUT supporter
Member
Joined
Feb 24, 2009
Messages
2,445
Trophies
0
Location
Around somewhere
XP
851
Country
Netherlands
I'm sorry, I think I'm too stupid for this...
I can't find a SVN checkout for 4.1.3 there
(bevore I tried svn checkout http://open-wiiflow-mod.googlecode.com/svn/trunk - that brought me to the newer versions, but not 4.1.3)
svn checkout http://wiiflow.googlecode.com/svn/trunk/
(you could have found that if you clicked on the link brausm08 gave you and then clicked on the checkout link) :D
 
  • Like
Reactions: TheSly

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
If you guys got some problems with memory with that new rev then I guess its time to hardcore export everything out of the dol:
http://fix94.no-ip.org/wf_test3.zip
Just copy the contents of that test rev into your apps folder and see how it goes.

Thanks fix - that seems to be working now.

So it wasn't a bug in the 1046 code but a memory problem?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: sure, it can be hands free