GaryOderNichts / udpih

Exploit for the Wii U's USB Host Stack
https://garyodernichts.blogspot.com/2022/06/exploiting-wii-us-usb-descriptor-parsing.html
GNU General Public License v2.0
285 stars 18 forks source link

issue when using make for pi zero w #4

Closed keganpowers34 closed 1 year ago

keganpowers34 commented 2 years ago

make -C /lib/modules/5.15.32+/build M=/home/pi/udpih/linux modules make[1]: /lib/modules/5.15.32+/build: No such file or directory. Stop. make: [Makefile:11: all] Error 2

keganpowers34 commented 2 years ago

am i doing something wrong when compiling the kernel?

GaryOderNichts commented 2 years ago

Did you install the dependencies?

From the README:

keganpowers34 commented 2 years ago

Yes I did

keganpowers34 commented 2 years ago

it might be the os i have on the pi zero what did you use for your pi zero?

keganpowers34 commented 1 year ago

i have not been able to fix this any ideas?

GaryOderNichts commented 1 year ago

Make sure you're on the latest stable Raspberry Pi OS version by running:

sudo rpi-update stable

Otherwise the kernel headers won't match your currently running kernel version.

keganpowers34 commented 1 year ago

alright so i did get it working but when plugging in the usb cable for the pi when the wii u menu comes up the recovery menu doesn't popup the pi is powered and the recovery menu is on the root of the sd card and the sd card is fat 32 formated

GaryOderNichts commented 1 year ago

Make sure to plug it in once the Wii U logo comes up. If you already see the Wii U menu it's too late.

keganpowers34 commented 1 year ago

it did not work i also tried all the usb ports to see if that would make a change

GaryOderNichts commented 1 year ago

Make sure no other devices are plugged in and that you're using the front USB ports. Also check the logs on your Pi using dmesg.

keganpowers34 commented 1 year ago

nothing out of the ordinary happened except for this [ 130.768655] udpih: loading out-of-tree module taints kernel. [ 130.769807] udpih_init [ 130.769838] udc-core: couldn't find an available UDC - added [Wii U USB Host Stack exploit] to list of pending drivers

keganpowers34 commented 1 year ago

[ 92.543042] udpih: loading out-of-tree module taints kernel. [ 92.544193] udpih_init [ 92.544226] udc-core: couldn't find an available UDC - added [Wii U USB Host Stack exploit] to list of pending drivers [ 113.610501] dwc2 20980000.usb: new device is high-speed [ 113.670555] dwc2 20980000.usb: new address 1 [ 113.688828] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready [ 163.970738] dwc2 20980000.usb: new device is high-speed [ 164.521812] dwc2 20980000.usb: new device is full-speed [ 192.802763] dwc2 20980000.usb: new device is high-speed [ 192.862278] dwc2 20980000.usb: new address 1 so it is doing something

GaryOderNichts commented 1 year ago

:information_source: To use USB gadgets on the Pi Zero you need to enable the dwc2 module by running the commands below: echo "dtoverlay=dwc2" | sudo tee -a /boot/config.txt echo "dwc2" | sudo tee -a /etc/modules After running the commands reboot the system.

Did you do this?

keganpowers34 commented 1 year ago

yes

keganpowers34 commented 1 year ago

nothing is printing after the line Nov 13 01:19:17 raspberrypi kernel: [ 155.720422] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready

keganpowers34 commented 1 year ago

ill try the other recovery menu file to see if that works

keganpowers34 commented 1 year ago

yeah nothing

keganpowers34 commented 1 year ago

this wii u is not repairible will try on a new one once i get one

ProfEibe commented 1 year ago

Make sure you're on the latest stable Raspberry Pi OS version by running:

sudo rpi-update stable

Otherwise the kernel headers won't match your currently running kernel version.

you should add this to the readme. It helped me to get it working!

partduex commented 1 year ago

I did all the steps mentioned above and still cannot get this to work. I've gotten as far as to the part where I'm supposed to insmod udpih.ko but it gives me an error every time. Oh I also had to use buster os as i wasn't getting as far with bullseye and the echo file and the dwc2 file are 0 bytes is that correct? Oh by the way I'm a complete noob to this any help would be greatly appreciated . Thank you