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,

Lazr1026

Well-Known Member
Member
Joined
Oct 30, 2020
Messages
110
Trophies
0
Age
17
XP
722
Country
United States
but I'm not able to boot into the recovery menu.
How are you sure you arent able to boot it? does the Power LED stay blue or does it become purple?

The late TV might be an issue (also the Nintendo logo is only on the gamepad). What I do is plug in the pico right after the disc check and it works every time.
 

GammaGulp

Well-Known Member
Newcomer
Joined
Jul 1, 2007
Messages
51
Trophies
1
XP
212
Country
United States
How are you sure you arent able to boot it? does the Power LED stay blue or does it become purple?

The late TV might be an issue (also the Nintendo logo is only on the gamepad). What I do is plug in the pico right after the disc check and it works every time.
Yes, the power LED stays blue. I think I will need to try on a different display just to be safe. Also, there is no GamePad connected to either bricked Wii U console. Hoping that doesn't matter?
 

Lazr1026

Well-Known Member
Member
Joined
Oct 30, 2020
Messages
110
Trophies
0
Age
17
XP
722
Country
United States
Yes, the power LED stays blue. I think I will need to try on a different display just to be safe. Also, there is no GamePad connected to either bricked Wii U console. Hoping that doesn't matter?
Have you tried plugging in the pico a little earlier? Timing for pico is earlier than the others.

whether a GamePad is connected or not wont affect this
 

dustinrue

Member
Newcomer
Joined
Jan 26, 2023
Messages
7
Trophies
0
Age
45
XP
32
Country
United States
I don't remember if the behavior of the disc drive changed or not between firmware versions but for my 5.5.5 system it gives me one really quick sound, followed by a longer sound and then a final short sound. Split second after the sound stops is when I insert the pico. I had some issues initially with it being unable to load the software from the sdcard though and had to reseat it
 

Sombersnow

Member
Newcomer
Joined
Jan 29, 2023
Messages
12
Trophies
0
Age
24
XP
47
Country
France
Hello @GaryOderNichts,
I tried your UDPIH recovery menu for my wii u, it did not work.
My wii u has been bricked for around 7 years, how? Well i went on Miiverse for the first time and it froze, i waited for the gamepad to run out of battery and unplugged the console. when i switched on the console it had a solid blue light and the disk drive would spin swice, it would not connect to the tv nor the gamepad (which was working perfectly fine).

Do you have any solutions?
Did i do the UDPIH steps wrong?

A response would be greatly appreciated.
 
Last edited by Sombersnow,

Black_1986

New Member
Newbie
Joined
Sep 12, 2018
Messages
3
Trophies
0
Age
37
XP
47
Country
Jordan
i tried this on tow wii u my and get inset shutdown used 2 differt sd reader and sd i cant get recovery menu or any thing on working wii u and one with error 160-0103 any help
 

GammaGulp

Well-Known Member
Newcomer
Joined
Jul 1, 2007
Messages
51
Trophies
1
XP
212
Country
United States
Have you tried plugging in the pico a little earlier? Timing for pico is earlier than the others.

whether a GamePad is connected or not wont affect this
Yes I've tried plugging it in earlier with no luck. The timing is still very confusing to figure out, though.

Another issue is the HDMI signal. I feel like it displays the Wii U logo too late / much after the sound of the disc drive. This applies to the 4KTV, BenQ monitor, and internal capture card I've tried. Perhaps I should try connecting with an analog signal like composite or component.
 

Deleted member 586536

Returned shipping and mailing
Member
Joined
Feb 26, 2022
Messages
1,050
Trophies
1
XP
2,024
Yes I've tried plugging it in earlier with no luck. The timing is still very confusing to figure out, though.

Another issue is the HDMI signal. I feel like it displays the Wii U logo too late / much after the sound of the disc drive. This applies to the 4KTV, BenQ monitor, and internal capture card I've tried. Perhaps I should try connecting with an analog signal like composite or component.
If you can try seeing if you can force the rgb range to 0-235. Reason I say this is to increase the speed the monitor picks up the signal. As otherwise it tries to autodetect it which takes a little bit more time.
I have a benq2710 monitor, and that's how I got it to pick up faster.
 

Deekman15

Member
Newcomer
Joined
Nov 18, 2022
Messages
5
Trophies
0
Age
25
XP
55
Country
United States
Is it possible to do this on a Wii U that isn't synced? I am constantly getting the message that says that it "Could not connect to the Wii U console". The gamepad also boots to the quick start menu when turned on which might also be why I can't do this.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
Is it possible to do this on a Wii U that isn't synced? I am constantly getting the message that says that it "Could not connect to the Wii U console". The gamepad also boots to the quick start menu when turned on which might also be why I can't do this.
yes, buttons are controlled by the buttons on the console itself.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
best way is to watch when it appears on the gamepad. that's when I insert the cable. as for not displaying on the tv, I think other people have had this problem, and there's a patch to fix it. if you insert too the cable too late, it either won't work or you'll have a garbled recovery menu. the timing is very specific. I didn't brick my wiiu, but I bought a pico just in case, and I tested it. not just cbhc brick can be fixed with it either. I think parental controls can be reset, and you can access the system software through wup in case you bricked with say a menu that got corrupted.
 

Deekman15

Member
Newcomer
Joined
Nov 18, 2022
Messages
5
Trophies
0
Age
25
XP
55
Country
United States
best way is to watch when it appears on the gamepad. that's when I insert the cable. as for not displaying on the tv, I think other people have had this problem, and there's a patch to fix it. if you insert too the cable too late, it either won't work or you'll have a garbled recovery menu. the timing is very specific. I didn't brick my wiiu, but I bought a pico just in case, and I tested it. not just cbhc brick can be fixed with it either. I think parental controls can be reset, and you can access the system software through wup in case you bricked with say a menu that got corrupted.
So my Wii U gamepad only displays the quick start menu and I cannot access anything else because it cant connect.

One thing I noticed which is odd is that when I do inject the UDPIH at the right time, it says that it is Finished however it turns my Wii U off for some reason which ruins the connection between the gamepad and console, preventing me from doing anything.
 

fadafwet

Well-Known Member
Member
Joined
May 22, 2015
Messages
100
Trophies
0
XP
754
Country
Canada
Hi

I just finis readning all 28 pages of this topic in hope I would find solution to my problem using this great tool you made.
is it possible to know what are the options for those os us who can get into the menu (with the purple light) but cannot see anything on the tv screen not the gamepad.

Which version display on the tv and which on the gamepad
would that help to plug other cable than the hdmi on the console

Are the version on this page any different that the main ones ?
https://github.com/GaryOderNichts/recovery_menu/issues/3

I have try
this file recovery_menu_dc_init (renamed) or that file recovery_menu version 0.4 but I have same thing black screen or white garbage on tv (which seem to be when the menu is loading)
Since my gamepad is in sync with the console If I can get a version that load the menu on the gamepad I think I would work for us who have this issue

I have also try on 2 differents tv (HD and 4K) would that help to try another one ?

Any help would be greatly appreciated
Thank you
 
Last edited by fadafwet,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Also nice. Never really watched Fallout on Prime, but sounds like a good show. +1