Skip to content

Commit c56ff9e

Browse files
Update workflow and documentation
1 parent 68e4085 commit c56ff9e

File tree

5 files changed

+37
-18
lines changed

5 files changed

+37
-18
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,41 @@ jobs:
66
build-binary:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- name: Checkout udpih
10+
uses: actions/checkout@v4
1011
with:
12+
path: udpih
1113
submodules: recursive
12-
- name: Build pico
14+
15+
- name: Checkout pico-sdk
16+
uses: actions/checkout@v4
17+
with:
18+
repository: raspberrypi/pico-sdk
19+
ref: master
20+
path: pico-sdk
21+
submodules: recursive
22+
23+
- name: Setup pico-sdk
1324
run: |
25+
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
26+
27+
- name: Build arm_kernel code
28+
run: |
29+
cd ${{github.workspace}}/udpih
1430
docker build -t udpihbuilder .
15-
docker run --rm -v ${PWD}:/project udpihbuilder make pico
31+
docker run --rm -v ${PWD}:/project udpihbuilder make arm_kernel
32+
33+
- name: Build pico code
34+
run: |
35+
export PICO_SDK_PATH=${{github.workspace}}/pico-sdk
36+
cd ${{github.workspace}}/udpih/pico
37+
make
38+
1639
- uses: actions/upload-artifact@v4
1740
with:
1841
name: udpih
1942
path: |
20-
arm_kernel/arm_kernel.bin.h
21-
pico/build_rp2040/udpih.uf2
22-
pico/build_rp2350/udpih.uf2
43+
${{github.workspace}}/udpih/arm_kernel/arm_kernel.bin.h
44+
${{github.workspace}}/udpih/pico/build_rp2040/udpih.uf2
45+
${{github.workspace}}/udpih/pico/build_rp2350/udpih.uf2
2346
if-no-files-found: error

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
FROM devkitpro/devkitarm:20240511
1+
FROM devkitpro/devkitarm:20241111
22

33
ENV PATH=$DEVKITARM/bin:$PATH
44

5-
RUN apt-get update && apt-get -y install --no-install-recommends build-essential cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib && rm -rf /var/lib/apt/lists/*
6-
7-
# clone pico-sdk
8-
RUN git clone https://github.com/raspberrypi/pico-sdk
9-
ENV PICO_SDK_PATH=/pico-sdk
10-
115
WORKDIR /project

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@ Exploits the Wii U's USB Host Stack descriptor parsing. Pronounced like "mud pie
1212
I will add more devices below which are confirmed to work.*
1313

1414
### Supported devices:
15-
- Raspberry Pi Pico
15+
- Raspberry Pi Pico (W) / Pico 2 (W)
1616
- Raspberry Pi Zero (W) / A / A+ / Zero 2 W / 4 / 5
1717
- Steam Deck
1818
- Nintendo Switch capable of running [udpih_nxpayload](https://github.com/GaryOderNichts/udpih_nxpayload)
1919

2020
## Instructions
2121
### Device Setup
2222
Follow the setup guide for the device you want to use below:
23-
- [Raspberry Pi Pico](./docs/setup-pico.md)
23+
- [Raspberry Pi Pico / Pico 2](./docs/setup-pico.md)
2424
- [Raspberry Pi Zero (W) / A / A+ / Zero 2 W / 4 / 5](./docs/setup-linux.md)
2525
- [Steam Deck](./docs/setup-linux.md)
2626
- [Nintendo Switch](https://github.com/GaryOderNichts/udpih_nxpayload#Instructions)
2727

2828
### Booting the recovery_menu
29-
> :warning: Important notes for this to work:
29+
> [!IMPORTANT]
30+
> Important notes for this to work:
3031
> - Make sure **no** other USB devices are attached to the console.
3132
> - Only use USB ports on the **front** of the console, the back ports **will not** work.
3233
> - If your console has standby mode enabled, pull the power plug and turn it on from a full coldboot state.

docs/setup-linux.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ sudo insmod udpih.ko
8787

8888
The device is now ready to be used for udpih.
8989

90-
> :information_source: If you reboot your udpih device, you will need to load the kernel module again with the above command.
90+
> [!NOTE]
91+
> If you reboot your udpih device, you will need to load the kernel module again with the above command.
9192

9293
Continue with ["Booting the recovery_menu"](../README.md#booting-the-recovery_menu).
9394

docs/setup-pico.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pico
22
## Instructions
3-
- Download the latest `udpih.uf2` from the [releases page](https://github.com/GaryOderNichts/udpih/releases).
3+
- Download the latest `udpih_pico.uf2` for the Pico, or `udpih_pico2.uf2` for the Pico 2, from the [releases page](https://github.com/GaryOderNichts/udpih/releases).
44
- Hold down the `BOOTSEL` button on the board and connect the Pico to your PC.
55
Your PC will detect the Pi as a storage device.
66
- Copy the `.uf2` file to the Pico. It will disconnect after a few seconds.

0 commit comments

Comments
 (0)