ci/docker: update nintendo switch buildroot image for theofficialgman… (#382)

* ci/docker: update nintendo switch buildroot image for theofficialgman kernel fork

* buildroot: switch to modified boot.scr from noble

only change from noble is the default id to SWR-VAN

* buildroot: gzip switch kernel (matches switchroot)

* test adjust accel/gyro
This commit is contained in:
theofficialgman authored and GitHub committed 2026-05-14 09:50:02 -07:00
1 parent 0acf922319
commit 0b42dee05a
9 files changed
+246 -364

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ RUN dpkg --add-architecture i386 && \
g++ \
bash \
patch \
python3 \
gzip \
bzip2 \
perl \
+16 -2
View File
@@ -18,7 +18,22 @@ cp /vanilla/gui/res/switch/icon_vanilla.bmp /install/switchroot/vanilla/
cp /vanilla/gui/res/switch/vanilla.ini /install/bootloader/ini/
# Create U-Boot image of kernel
/build/host/bin/mkimage -A arm64 -O linux -T kernel -C none -a 0x80200000 -e 0x80200000 -d /build/images/Image /install/switchroot/vanilla/uImage
# Image.gz and zImage are both gzip compressed kernel data and are identical. Use Image.gz because buildroot doesn't support zImage on aarch64 for some reason.
/build/host/bin/mkimage -A arm64 -O linux -T kernel -C gzip -a 0x80200000 -e 0x80200000 -d /build/images/Image.gz /install/switchroot/vanilla/uImage
# Create combined device tree
wget https://android.googlesource.com/platform/system/libufdt/+archive/refs/heads/master/utils.tar.gz
tar xvf utils.tar.gz --exclude tests --exclude README.md
cp src/mkdtboimg.py /build/host/bin/mkdtimg
chmod +x /build/host/bin/mkdtimg
rm -rf utils.tar.gz src
/build/host/bin/mkdtimg create /install/switchroot/vanilla/nx-plat.dtimg --page_size=1000 \
/build/build/linux-linux-theofficialgman-5-2-2026/arch/arm64/boot/dts/tegra210-odin.dtb --id=0x4F44494E \
/build/build/linux-linux-theofficialgman-5-2-2026/arch/arm64/boot/dts/tegra210b01-odin.dtb --id=0x4F44494E --rev=0xb01 \
/build/build/linux-linux-theofficialgman-5-2-2026/arch/arm64/boot/dts/tegra210b01-vali.dtb --id=0x56414C49 \
/build/build/linux-linux-theofficialgman-5-2-2026/arch/arm64/boot/dts/tegra210b01-fric.dtb --id=0x46524947
# Copy pre-made config
cp /vanilla/gui/res/switch/config.xml /install/switchroot/vanilla/data/
@@ -27,4 +42,3 @@ cp /vanilla/gui/res/switch/config.xml /install/switchroot/vanilla/data/
cp /vanilla/gui/res/switch/bl31.bin /install/switchroot/vanilla/
cp /vanilla/gui/res/switch/bl33.bin /install/switchroot/vanilla/
/build/host/bin/mkimage -A arm64 -T script -d /vanilla/gui/res/switch/boot.txt /install/switchroot/vanilla/boot.scr
cp /vanilla/gui/res/switch/nx-plat.dtimg /install/switchroot/vanilla/