UDPIH: USB Host Stack exploit + Recovery Menu

It's been a while without any major exploits in the Wii U scene, so I present to you:

USB Descriptor Parsing Is Hard (UDPIH)

An exploit for the Wii U's USB Host Stack. Pronounced like "mud pie" without the M.

The write-up can be found here!

What does this mean?​

Since the USB Stack is running before anything on the PPC side of the Wii U is booted, this allows unbricking things like CBHC bricks without any soldering!


Requirements​

  • A Wii U
  • One of the devices listed below
    Note: Any other linux device capable of USB device emulation should work as well.
    Prebuilt releases are only available for the Pico and Zero.
    I will add more devices below which are confirmed to work.

Supported devices:​

  • A Raspberry Pi Pico or Zero
  • A Nintendo Switch capable of running udpih_nxpayload

Instructions​

Pico​

  • Download the latest udpih.uf2 from the releases page.
  • Hold down the BOOTSEL button on the board and connect the Pico to your PC.
    Your PC will detect the Pi as a storage device.
  • Copy the .uf2 file to the Pico. It will disconnect after a few seconds.
The Pico is now flashed and can be used for udpih. Continue with "Booting the recovery_menu" below.

Raspberry Pi Zero (Linux)​

  • Install the required dependencies:
    Bash:
    sudo apt install build-essential raspberrypi-kernel-headers
  • Clone the repo:
  • Bash:
    git clone https://github.com/GaryOderNichts/udpih.git
    cd udpih
  • Download the latest arm_kernel.bin.h from the releases page and copy it to the arm_kernel directory.
  • Now build the kernel module:
  • Bash:
    cd linux
    make
  • You can now run sudo insmod udpih.ko to insert the kernel module into the kernel.
The Zero is now ready to be used for udpih.
Note that you'll need to insert the module again after rebooting the Zero. You will need 2 USB cables, one for powering the Zero and one which can be connected to the Wii U.

Continue with "Booting the recovery_menu" below.

Booting the recovery_menu​

warning
Important notes for this to work:
  • Make sure no other USB Devices are attached to the console.
  • Only use USB ports on the front of the console, the back ports will not work.
  • If your console has standby mode enabled, pull the power plug and turn it on from a full coldboot state.
  • Copy the latest release of the recovery_menu to the root of your FAT32 formatted SD Card.
  • Insert the SD Card into the console and power it on.
  • As soon as you see the "Wii U" logo on the TV or Gamepad plug in your Zero/Pico.
    This timing is important. If you're already in the menu, the exploit won't work..
  • After a few seconds you should be in the recovery menu.
So what's this recovery menu? The recovery menu allows you to fix several bricks:
screenshot

Wii U Recovery Menu

A simple recovery menu running on the IOSU for unbricking.

Options​

Set Coldboot Title
Allows changing the current title the console boots to.
Useful for unbricking CBHC bricks.
Possible options are:
  • Wii U Menu (JPN) - 00050010-10040000
  • Wii U Menu (USA) - 00050010-10040100
  • Wii U Menu (EUR) - 00050010-10040200
On non-retail systems the following additional options are available:
  • System Config Tool - 00050010-1F700500
  • DEVMENU (pre-2.09) - 00050010-1F7001FF
  • Kiosk Menu - 00050010-1FA81000
Dump Syslogs
Copies all system logs to a logs folder on the root of the SD Card.

Dump OTP + SEEPROM
Dumps the OTP and SEEPROM to otp.bin and seeprom.bin on the root of the SD Card.

Start wupserver
Starts wupserver which allows connecting to the console from a PC using wupclient.

Load Network Configuration
Loads a network configuration from the SD, and temporarily applies it to use wupserver.
The configurations will be loaded from a network.cfg file on the root of your SD.
For using the ethernet adapter, the file should look like this:
Code:
type=eth

For using wifi:
Code:
type=wifi
ssid=ssidhere
key=wifikeyhere
key_type=WPA2_PSK_AES

Pair Gamepad
Displays the Gamepad Pin and allows pairing a Gamepad to the system. Also bypasses any region checks while pairing.
The numeric values represent the following symbols: ♠ = 0, ♥ = 1, ♦ = 2, ♣ = 3.
Note that rebooting the system might be required to use the newly paired gamepad.

Install WUP
Installs a valid signed WUP from the install folder on the root of your SD Card.
Don't place the WUP into any subfolders.

Edit Parental Controls
Displays the current Parental Controls pin configuration.
Allows disabling Parental Controls.

Debug System Region
Fixes bricks caused by setting productArea and/or gameRegion to an invalid value. Symptoms include being unable to launch System Settings or other in-region titles.

System Information
Displays info about several parts of the system.
Including serial number, manufacturing date, console type, regions, memory devices...

Credits​

Special thanks to Maschell, rw-r-r-0644, QuarkTheAwesome, vgmoose, exjam, dimok789, and everyone else who contributed to the Wii U scene!
 
Last edited by GaryOderNichts,

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,263
Trophies
0
Age
28
XP
1,382
Country
Germany
You need to put the fw.img back on. You formatted it for redNAND which deleted everything and created the other partitions.
 

DGP_Maluco

Active Member
Newcomer
Joined
Dec 20, 2023
Messages
28
Trophies
0
Age
32
XP
12
Country
Germany
You need to put the fw.img back on. You formatted it for redNAND which deleted everything and created the other partitions.
Ok only with fw.img it was giving me a purple led and no image. I copied the boot1.img as well and now I'm back into minute.
Was that correct?
What should I do know? I a little confused to what I should be achiving now?
 

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,263
Trophies
0
Age
28
XP
1,382
Country
Germany
no, the boot1.img isn't needed. It seems more like your SD isn't making good contact.

Create a minute folder with the rednand.ini in it and then boot the redNAND option in minute and see what happens
 

DGP_Maluco

Active Member
Newcomer
Joined
Dec 20, 2023
Messages
28
Trophies
0
Age
32
XP
12
Country
Germany
no, the boot1.img isn't needed. It seems more like your SD isn't making good contact.

Create a minute folder with the rednand.ini in it and then boot the redNAND option in minute and see what happens
Not seeing a boot redNAND option
 

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,263
Trophies
0
Age
28
XP
1,382
Country
Germany
Ok that means there isn't anything interesting on it, because it was factory reset.

Then I would suggest you go into minute, delete scfm.img, erase the mlc and follow the instructions on how to rebuild the mlc with the wafel_install. Then you have a 100% clean system. Also get the SLC titles, since your firmware is a little bit outdated.

You might want to restore slccmpt. Maybe you are lucky and it has WiiWare on it (it was erased by the Factory reset you saw when you booted the redNAND.)
 

DGP_Maluco

Active Member
Newcomer
Joined
Dec 20, 2023
Messages
28
Trophies
0
Age
32
XP
12
Country
Germany
Ok that means there isn't anything interesting on it, because it was factory reset.

Then I would suggest you go into minute, delete scfm.img, erase the mlc and follow the instructions on how to rebuild the mlc with the wafel_install. Then you have a 100% clean system. Also get the SLC titles, since your firmware is a little bit outdated.

You might want to restore slccmpt. Maybe you are lucky and it has WiiWare on it (it was erased by the Factory reset you saw when you booted the redNAND.)
Ok I will have to proceed tomorrow and I will get back to you on it. Thank you very much!
Post automatically merged:

Ok that means there isn't anything interesting on it, because it was factory reset.

Then I would suggest you go into minute, delete scfm.img, erase the mlc and follow the instructions on how to rebuild the mlc with the wafel_install. Then you have a 100% clean system. Also get the SLC titles, since your firmware is a little bit outdated.

You might want to restore slccmpt. Maybe you are lucky and it has WiiWare on it (it was erased by the Factory reset you saw when you booted the redNAND.)
Hey there, so next step is to follow this correct?

https://gbatemp.net/threads/fixing-...-soldering-using-rednand-with-isfshax.642268/

EDIT 2:
Post automatically merged:

After running trough the process and deleting wafel_setup_mlc.ipx the Wii u freezes in the mii avatar setup process
Post automatically merged:

Ok redid most of the steps and now I'm the main menu! is there something I should consider doing? I'm not understanding the part where "Booting without sd" where do I find FTPiiU?
 
Last edited by DGP_Maluco,

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,263
Trophies
0
Age
28
XP
1,382
Country
Germany
No that sets up a redNAND. You don't need that, you just want to reinstall to the eMMC.
After deleting scfm.img and erasing the mlc, just follow the rebuilding steps here: https://gbatemp.net/threads/how-to-upgrading-rebuilding-wii-u-internal-memory-mlc.636309/ don't select any redNAND option while rebuilding.

You don't need to install the files to the slc for SD less boot, if you plan to remove ISFShax again after rebuilding. But before removing ISFShax, make really sure the sysnand is working.
 

DGP_Maluco

Active Member
Newcomer
Joined
Dec 20, 2023
Messages
28
Trophies
0
Age
32
XP
12
Country
Germany
So I will keep it this way. Everything seems to be working. I was able to go trough the whole setup process and even got Tiramisu exploit working. Event found out how to install FTPiiU. I will still have to test a game but for now I'm quite happy with the result :)
 

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,263
Trophies
0
Age
28
XP
1,382
Country
Germany
But now it is running from the SD card. Your internal memory is fine, you can just do the setup again, but this time to the internal memory
 

DGP_Maluco

Active Member
Newcomer
Joined
Dec 20, 2023
Messages
28
Trophies
0
Age
32
XP
12
Country
Germany
But now it is running from the SD card. Your internal memory is fine, you can just do the setup again, but this time to the internal memory
You mean after deleting scfm.img and erasing the mlc I should reinstall the mlc and slc titles but instead of choosing sd rednand I should choose sd .. slc? That way it installs to slc and not the SD?
 

km_feih2rohv

New Member
Newbie
Joined
Jan 16, 2024
Messages
1
Trophies
0
Age
20
XP
12
Country
Korea, South
hello, I was bricked by the unofficial wii u menu korean language patch.
so I tried a wii u recovery menu, but I failed to unbrick it.
I tried to enter 'Load Network Configuration', Then It doesn't works.
It says just "FAILED TO OPEN NETWORK.CFG: fffcffe9"
So, I tried to dump syslogs, OTP + SEEPROM, dang.. It doesn't works either..
FAILED TO CREATE DIRECTORY : fffcffbe
FAILED TO CREATE OTP.BIN : fffcffbe
how can I solve this problem? I just use the wupserver to remove korean language patch, and insert japanese language..
is there anyone can help?
 

Attachments

  • photo_0.jpg
    photo_0.jpg
    1.9 MB · Views: 13
  • photo_1.jpg
    photo_1.jpg
    1.9 MB · Views: 11
  • photo_2.jpg
    photo_2.jpg
    1.9 MB · Views: 13

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Lol rappers still promoting crypto