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,264
Trophies
0
Age
28
XP
1,382
Country
Germany
That is strange, just two logs, 1 and 5. And I think they are both from the boot into recovery, where the recovery shuts down the Disc drive, which causes the Disc drive errors. Can you try to dump the logs again to see if it produces more?

But I see a lot of
Code:
00:00:15:352: MCP: rear usb error
That is not normal. Do you have anything connected to the USB ports?
 

HaseoArmahem

Member
Newcomer
Joined
Mar 12, 2020
Messages
22
Trophies
0
Age
33
XP
197
Country
Ukraine
That is strange, just two logs, 1 and 5. And I think they are both from the boot into recovery, where the recovery shuts down the Disc drive, which causes the Disc drive errors. Can you try to dump the logs again to see if it produces more?

But I see a lot of
Code:
00:00:15:352: MCP: rear usb error
That is not normal. Do you have anything connected to the USB ports?
Yes, I have usb charger for tablet. And it blink some times.
I understand what I need to do: disconnect all the items except SD card and pico drive, load to recovery menu, disconect pico and create new logs. On my way.
I can also try to enter in Wii U menu and select date(it freeze after), or selecet Wii U Settings from ColdBoot - and tap something there if it can help.
 

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,264
Trophies
0
Age
28
XP
1,382
Country
Germany
Can you try to remove the battery and power, leave it for a minute or so and then try again, with only power and the TV connected?
 

HaseoArmahem

Member
Newcomer
Joined
Mar 12, 2020
Messages
22
Trophies
0
Age
33
XP
197
Country
Ukraine
@SDIO you are the bright mind! So, I open up the cover and find battery with some corrosion on it, get the old one (hoped it work), put in console and it now work and update under process. It freezed at first second of updating, so it work.
I'm not the sharpest tool in the set, but be so stupid and not to try the battery. It is a shame.
Sorry for your time, and big thank you for help.
The battery, the small baterry almoust destroy my day)

UPD: It freeze on update, but I suspect on the bad battery as it lay around, so I just will buy new one and try again. For now the question is in suspend mode as it can be battery again.
 
Last edited by HaseoArmahem,

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,264
Trophies
0
Age
28
XP
1,382
Country
Germany
Please don't try installing any updates if the console isn't running stable.
Dump the logs aain, maybe we see more now.
The Wii U is able to run without battery, it is only for time keeping. My idea was that something in the RTC chip was messed up and that removing power form it would reset it.
 

HaseoArmahem

Member
Newcomer
Joined
Mar 12, 2020
Messages
22
Trophies
0
Age
33
XP
197
Country
Ukraine
Ou, I see, I misunderstanding the message. I'm at morning redo the steps and create logs.

The logs new is here.
What I did: remove the battery and leave console for 10 min or more. Then enter in the menu and it freeze after pressing A button on the date(freeze when time need to enter).
Then I try to start UDPIH menu to get logs - it freeze again.
I get the logs on second try. But it freeze right before I press the Shutdown option from menu.
It seems it can freeze even in the recovery menu.
@SDIO maybe I have bad graphic? I never faced with such issues on nintendo consoles, and all what I know is graphics glitches on XBox 360 and it look different.
 

Attachments

  • logs.rar
    25.8 KB · Views: 10
Last edited by HaseoArmahem,

V10lator

Well-Known Member
Member
Joined
Apr 21, 2019
Messages
2,635
Trophies
1
Age
36
XP
5,494
Country
Germany
maybe I have bad graphic?
No, sadly your last log shows a MEDIA ERROR on Hynix, aka a bad eMMC:
Code:
00:00:21:528: mmc_core card err: idx=3, lba=60523520, blks=256, xfer=0x1, ret=0x00200b40
00:00:21:549: mmc_core card err: idx=3, lba=60523520, blks=256, xfer=0x1, ret=0x00200b40
00:00:21:549: mdblk: err=-131099, mid=0x90, prv=0x5c, pnm=[HYNIX ]
00:00:21:560: mmc_core card err: idx=3, lba=60523776, blks=256, xfer=0x1, ret=0x00200b40
00:00:21:581: mmc_core card err: idx=3, lba=60523776, blks=256, xfer=0x1, ret=0x00200b40
00:00:21:581: mdblk: err=-131099, mid=0x90, prv=0x5c, pnm=[HYNIX ]
00:01:13:143: FSA: ### MEDIA ERROR ###, dev:mlc01, err:-2228230, cmd:23, path:/

So you need to replace that eMMC with an SD card. See https://gbatemp.net/threads/ultimat...reset-black-screen-after-stuck-update.642339/ section Solutions -> Failing eMMC for your options.
 

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,264
Trophies
0
Age
28
XP
1,382
Country
Germany
Yup, that looks like bad eMMC. Install ISFShax asap, before it bricks completely. Don't do anything else with the console until ISFShax is installed.
 

alban1700

Member
Newcomer
Joined
Feb 24, 2024
Messages
7
Trophies
0
Age
27
XP
11
Country
Switzerland
Hi everyone,

When I switch on the console to configure it, I encounter a problem when creating my Mii and I end up with error 160-0103. I therefore tried the method with the Raspberry Pico and it worked fine (I have no problems with the installation or the procedure). But it didn't change anything, my console still has error 160-0103 when creating my Mii.

Unfortunately, I don't know anything about the console's past and I don't seem to have found MEDIA ERROR in the logs. If I'd known that such an error existed on the Wii U, I'd have been very careful.
 

Attachments

  • logs.rar
    99.3 KB · Views: 10

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,264
Trophies
0
Age
28
XP
1,382
Country
Germany
If it can boot to the initial setup, then it can't be CBHC brick (that's what setting the Coldboot Title would fix).
So this is most likely a problem with the eMMC. Looking at the logs we indeed don't see MEDIA ERROR but we see DATA CORRUPTION. Very likely this is caused by a bad eMMC.
We probably wouldn't have needed the Pico, since the DNSpresso exploit would also have worked. But since you already have the pico we are going to use that.
To see what state the MLC is in please run the MLC Checker from this recovery menu: https://github.com/jan-hofmeier/recovery_menu/releases and post the log that creates on the SD card.
 

alban1700

Member
Newcomer
Joined
Feb 24, 2024
Messages
7
Trophies
0
Age
27
XP
11
Country
Switzerland
If it can boot to the initial setup, then it can't be CBHC brick (that's what setting the Coldboot Title would fix).
So this is most likely a problem with the eMMC. Looking at the logs we indeed don't see MEDIA ERROR but we see DATA CORRUPTION. Very likely this is caused by a bad eMMC.
We probably wouldn't have needed the Pico, since the DNSpresso exploit would also have worked. But since you already have the pico we are going to use that.
To see what state the MLC is in please run the MLC Checker from this recovery menu: https://github.com/jan-hofmeier/recovery_menu/releases and post the log that creates on the SD card.

Thank's a lot for helping. I've done it and i find 10 errors.
 

Attachments

  • mlc_checker.txt
    1 KB · Views: 15

SDIO

Well-Known Member
Member
Joined
Feb 13, 2023
Messages
2,264
Trophies
0
Age
28
XP
1,382
Country
Germany
OK there are some 30041, which equals a MEDIA error, so the eMMC seems to be failing. Can you check in the System Information in the recovery what brand it is and what the MfG date of the MLC is?

To solve this, it would be best to install ISFShax and to rebuild the MLC either on redNAND or an internal SD card, as we can expect the eMMC to become worse, even tho the corruption currently is very limited
 
  • Like
Reactions: alban1700

alban1700

Member
Newcomer
Joined
Feb 24, 2024
Messages
7
Trophies
0
Age
27
XP
11
Country
Switzerland
OK there are some 30041, which equals a MEDIA error, so the eMMC seems to be failing. Can you check in the System Information in the recovery what brand it is and what the MfG date of the MLC is?

To solve this, it would be best to install ISFShax and to rebuild the MLC either on redNAND or an internal SD card, as we can expect the eMMC to become worse, even tho the corruption currently is very limited
Thanks. I took a picture of the information system :)
 

Attachments

  • thumbnail_IMG_0782.jpg
    thumbnail_IMG_0782.jpg
    70.1 KB · Views: 15

ononpnrpqcpa

Member
Newcomer
Joined
Feb 19, 2014
Messages
6
Trophies
1
Age
33
XP
221
Country
Italy
Last edited by ononpnrpqcpa,

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