Homebrew Official Mocha CFW - The sweet chocolate to your latte!

Pepois

Well-Known Member
Member
Joined
Aug 24, 2013
Messages
340
Trophies
0
Age
50
XP
582
Country
Argentina
Hello,

with "freakishly slow" I really meant the loading times. They look about the same as games on loadiine from SD when running native titles from fat32 usb through the system menu. Maybe a bit slower but that was just an impression.

What you want (loadiine loading games from USB if i understand correct or homebrews in generell) is actually quite easy to do and should already be fully working. You only need a small part of my current code to achieve that. More precisely you only need these changes if i remember it correctly:
https://github.com/dimok789/mocha/blob/master/ios_fs/source/main.c#L25:L47
https://github.com/dimok789/mocha/blob/master/ios_kernel/source/ios_fs_patches.c#L86-L87

You might also want to use that part to avoid USB format nagging on System Menu:
https://github.com/dimok789/mocha/blob/master/ios_acp/source/main.c#L26:L41

Once those patches are applied everything is loaded from the mounted FAT32 partition on the USB drive that is normally loaded from SD card. Meaning even when you run the web exploit or haxchi, the homebrew launcher elf or any other elf is loaded from USB (same paths as on SD). That also means that loadiine elf is loaded from usb and all the redirections loadiine does go straight to USB. They all use the same path "/vol/external01". The downside of this is that the data on SD is not accessable anymore as soon as this is done (well i didn't really try but its not accessable as usual, maybe external02?) but I don't think this is a problem and it probably can be fixed. So you only need to put mocha on the SD card and after it is run everything is loaded from fat32 USB.

Though I am sorry to say that I won't have time to make the necessary changes to mocha and remove the not required parts of what i commited for a stable release but its all there on github and already usable. You just might not want to have some unrelated parts in the current code in your every day usage. Someone else will have to cut the parts together.
Wow Dimok!!!

Thank you for the quick reply!!!!!!!!! That's great news indeed... I guess we only need a developer to compile a new version with all these since we all know you are extremely busy! Thank you for the pointers, I am sure someone will likely show up and implement this in a release.

Thank you and may God bless you!

Pepois
 
Last edited by Pepois,

Columbo2811

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
1,399
Trophies
0
XP
1,064
Country
Yes thanks @dimok for the info. As above hopefully someone can implement this. Loadiine USB would be great for virtual console games and speed running them shouldn't be any issue.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
maybe some users don't like installing ticket or titles internally ?
I never messed my vWii (it has no cIOS) and never did I mess my WiiU either (no game installed using WUP installer).
I like keeping my console as clean as possible, I'm sure some users like it too, or are just afraid of using tools messing with the console.
Remember Casper on Wii ? some users liked to keep their console super clean, not even HBC installed.

Loadiine is a good temporary solution.

having choices is there for users to choose from.
not everybody want to use the same method. I would also prefer loadiine, I really don't care about loading speed or lag. I prefer a clean system and only temporary patches, even if it's harder/longer to launch (hey, I'm still on OFW3.41 PS3 using a dongle, no CFW installed, that's my choice)
 
Last edited by Cyan,

GR-DRACULA

Well-Known Member
Member
Joined
Sep 14, 2015
Messages
281
Trophies
0
Age
24
Location
crete
XP
522
Country
Greece
Hello,

with "freakishly slow" I really meant the loading times. They look about the same as games on loadiine from SD when running native titles from fat32 usb through the system menu. Maybe a bit slower but that was just an impression.

What you want (loadiine loading games from USB if i understand correct or homebrews in generell) is actually quite easy to do and should already be fully working. You only need a small part of my current code to achieve that. More precisely you only need these changes if i remember it correctly:
https://github.com/dimok789/mocha/blob/master/ios_fs/source/main.c#L25:L47
https://github.com/dimok789/mocha/blob/master/ios_kernel/source/ios_fs_patches.c#L86-L87

You might also want to use that part to avoid USB format nagging on System Menu:
https://github.com/dimok789/mocha/blob/master/ios_acp/source/main.c#L26:L41

Once those patches are applied everything is loaded from the mounted FAT32 partition on the USB drive that is normally loaded from SD card. Meaning even when you run the web exploit or haxchi, the homebrew launcher elf or any other elf is loaded from USB (same paths as on SD). That also means that loadiine elf is loaded from usb and all the redirections loadiine does go straight to USB. They all use the same path "/vol/external01". The downside of this is that the data on SD is not accessable anymore as soon as this is done (well i didn't really try but its not accessable as usual, maybe external02?) but I don't think this is a problem and it probably can be fixed. So you only need to put mocha on the SD card and after it is run everything is loaded from fat32 USB.

Though I am sorry to say that I won't have time to make the necessary changes to mocha and remove the not required parts of what i commited for a stable release but its all there on github and already usable. You just might not want to have some unrelated parts in the current code in your every day usage. Someone else will have to cut the parts together.
Alright, thank you dimok, OP update?
 

Mr Objection

Well-Known Member
Member
Joined
Jul 10, 2016
Messages
339
Trophies
0
Age
28
XP
394
Country
Argentina
users can still use loadiine, but now from USB. (USB has priority over SD).
speed might not be improved (might be slower?), but at least users will have more space to fit more games at the same time.

How I can use loadiine with my fat 32 hdd? Can I use the same hdd I use for the vwii???
 

Toni456

Well-Known Member
Member
Joined
Oct 31, 2012
Messages
344
Trophies
1
XP
490
Country
Australia
So i have a question about the USB redirection patch, if we were to enable it by modifying the haxchi coldboot code would that allow haxchi to load it's files via USB instead of an SD card? and will it cause problems if we want to use the official Nintendo USB partition after booting? reason why i ask is because i had to uninstall my coldboot recently due to my wii u not correctly reading the SD card and thus failing to boot at all.

Also great work @dimok you have done an amazing job and if you feel you need a break i encourage you to do so you really deserve it, and if it comes down to it i'm sure someone else can pick up where you left off though i would prefer if you could continue working on this project in the future.
 
Last edited by Toni456,

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,817
Trophies
1
Age
44
XP
6,587
Country
Germany
So i have a question about the USB redirection patch, if we were to enable it with coldboot installed would that allow haxchi to load it's files via USB instead of an SD card? and will it cause problems if we want to use the official Nintendo USB partition after booting? reason why i ask is because i had to uninstall my coldboot recently due to my wii u not correctly reading the SD card and thus failing to boot at all.

Also great work @dimok you have done an amazing job and if you feel you need a break i encourage you to do so you really deserve it, and if it comes down to it i'm sure someone else can pick up where you left off though i would prefer if you could continue working on this project in the future.
From the moment where Mocha is being launched you won't need a SD card. I dunno if CBHC launches something from SD first or if everything it needs is already injected into that DS VC game but the Mocha.elf would definitely be launched from SD even if you launch it from CBHC so there's no way to use homebrew without a SD card right now.
 

Toni456

Well-Known Member
Member
Joined
Oct 31, 2012
Messages
344
Trophies
1
XP
490
Country
Australia
From the moment where Mocha is being launched you won't need a SD card. I dunno if CBHC launches something from SD first or if everything it needs is already injected into that DS VC game but the Mocha.elf would definitely be launched from SD even if you launch it from CBHC so there's no way to use homebrew without a SD card right now.
i realized that and edited my post, if modifying the CBCH code instead of mocha that would surely work as well right? my only concern is that if i try this myself i have no way to recover from a brick if it happens so it may just be better to wait for other devs to look into it first.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,817
Trophies
1
Age
44
XP
6,587
Country
Germany
i realized that and edited my post, if modifying the CBCH code instead of mocha that would surely work as well right? my only concern is that if i try this myself i have no way to recover from a brick if it happens so it may just be better to wait for other devs to look into it first.
Never mess around with CBHC! What Haxchi/CBHC does is replacing the rom file in a DS Virtual Console. If this could be replaced with Mocha then yeah ... it would be on your internal memory (sysNAND) and should work but you would have to check the source codes of Haxchi to get to know how it works and then you can try around with the normal Haxchi (not CBHC) until it works launching Mocha without a SD card. If it works you could use it for CBHC but on your own risk. I won't ever recommend doing such things.
 

N1k0_VE

Member
Newcomer
Joined
Jan 27, 2017
Messages
19
Trophies
0
Age
39
XP
72
Country
Belgium
From the moment where Mocha is being launched you won't need a SD card. I dunno if CBHC launches something from SD first or if everything it needs is already injected into that DS VC game but the Mocha.elf would definitely be launched from SD even if you launch it from CBHC so there's no way to use homebrew without a SD card right now.

CBHC doesn't launch anything from SD. Have run coldboot several times without my SD inside and can perfectly play CFW needed games.
 

Toni456

Well-Known Member
Member
Joined
Oct 31, 2012
Messages
344
Trophies
1
XP
490
Country
Australia
CBHC doesn't launch anything from SD. Have run coldboot several times without my SD inside and can perfectly play CFW needed games.
I don't believe that.. i was not able to boot the system at all unless it was able to read my SD card, my mate also had the same problem when taking out the card.. do you perhaps have mocha set to automatically boot in haxchi/CBHC settings? because i do and it just would not load the system menu without having the SD card inserted it would always lead to a black screen with a -1 or -2 error can't remember exactly.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,817
Trophies
1
Age
44
XP
6,587
Country
Germany
N1k0_VE, Shinigati:
As I said Haxchi (and CBHC) are in place of the rom file of an installed VC DS game in sysNAND so no SD is needed for Haxchi unless something from the SD is in your SD:\haxchi\config.txt
But Mocha isn't Haxchi. To at least launch Mocha you would need a SD card. No matter if you launch it through Haxchi, CBHC or Internet Exploit unless the Haxchi installer is changed in a way to inject Mocha into the VC game instead of Haxchi.
 

N1k0_VE

Member
Newcomer
Joined
Jan 27, 2017
Messages
19
Trophies
0
Age
39
XP
72
Country
Belgium
I don't believe that.. i was not able to boot the system at all unless it was able to read my SD card, my mate also had the same problem when taking out the card.. do you perhaps have mocha set to automatically boot in haxchi/CBHC settings? because i do and it just would not load the system menu without having the SD card inserted it would always lead to a black screen with a -1 or -2 error can't remember exactly.

Weird, cause for me it works without SD inside.

I only put System Menu as autoboot option the first time you start your console after installing coldboot.
 
Last edited by N1k0_VE,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
How I can use loadiine with my fat 32 hdd? Can I use the same hdd I use for the vwii???
you will need :

- New Mocha build (the latest sources from github with FAT32 support .... no pre-build yet! you need to compile it yourselflook on next page)
- put Mocha.elf on SD ! (yes, the SD is still the default path before mocha is launched)
- Put HBL on SD (same reason)
- run mocha from HBL (browser or cbhc or haxchi) or Mocha directly from haxchi instead of using hbl.

once Mocha has been launched, your SD card will no longer work.
every homebrew trying to access the SD card will read the first FAT32 partition from USB.
so, put your games into :
USB1:/wiiu/games/Title/ content+code+meta folder here

and all your homebrew to the expected path on SD, except you put them on USB:
USB1:/wiiu/apps/homebrew launcher/homebrew_launcher.elf
USB1:/wiiu/apps/loadiine GX2/loadiine_gx2.elf
USB1:/wiiu/apps/whatever/filename.elf

Run HBL from "miimaker", it will list all homebrew located in usb:/wiiu/apps/
then select loadiine
 
Last edited by Cyan,

epicboy

Well-Known Member
Member
Joined
Jun 23, 2011
Messages
147
Trophies
0
XP
381
Country
United States
The Wii had a homebrew filesystem called WBFS, which has not been created by Nintendo and is managed by cIOS (>200).
The Wii also had an official USB file system by Nintendo, called "WFS", and the driver to use that is in IOS59. And maybe that is the same file system they use on WiiU.
One way to test that maybe is to get a usb that is formatted by wii to WFS and then plug that into a Wii U and see if there is a prompt to format? If no then the filesystems are the same. If there is a format dialogue then they are not the same.
 

Mr Objection

Well-Known Member
Member
Joined
Jul 10, 2016
Messages
339
Trophies
0
Age
28
XP
394
Country
Argentina
you will need :

- New Mocha build (the latest revision from github)
- put Mocha.elf on SD ! (yes, the SD is still the default path before mocha is launched)
- Put HBL on SD (same reason)
- run mocha from HBL (browser or cbhc or haxchi)

once Mocha has been launched, your SD card will no longer work.
every homebrew trying to access the SD card will read the first FAT32 partition from USB.
so, put your games into :
USB1:/wiiu/games/Title/ content+code+meta folder here

and all your homebrew to the expected path on SD, except you put them on USB:
USB1:/wiiu/apps/homebrew launcher/homebrew_launcher.elf
USB1:/wiiu/apps/loadiine GX2/loadiine_gx2.elf
USB1:/wiiu/apps/whatever/filename.elf

Run HBL from "miimaker", it will list all homebrew located in usb:/wiiu/apps/
then select loadiine
Thanks, I will try it first by browser, and then I Will buy a ds virtual console game and use haxchi
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://gfuel.com/products/goth-gf-collectors-box?utm_source=Klaviyo_campaign&utm_medium=email&ut...