Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@xerpi
Last active April 27, 2023 10:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xerpi/b4f7e02076497032ca83d2a9a2bbc8ae to your computer and use it in GitHub Desktop.
Save xerpi/b4f7e02076497032ca83d2a9a2bbc8ae to your computer and use it in GitHub Desktop.
Linux 3DS scripts
#!/bin/sh
TOOLCHAIN=/opt/armv6-eabihf--glibc--bleeding-edge-2020.02-2/bin/arm-buildroot-linux-gnueabihf-
cp arch/arm/configs/nintendo3ds_defconfig .config
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN -j8
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN nintendo3ds_ctr.dtb
echo "Output file: ./arch/arm/boot/zImage"
echo "Output DTB: ./arch/arm/boot/dts/nintendo3ds_ctr.dtb"
#!/bin/bash
partprobe
mkdir -p /media/sd
mount /dev/nintendo3ds_mmc1 /media/sd
echo "SD mounted at /media/sd"
#!/bin/bash
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
openvt -c 2 -- weston -Bfbdev-backend.so --config=/weston.ini
/bin/bash
[output]
name=fbdev
transform=90
[libinput]
enable_tap=true
@KurtinChains
Copy link

where to put the scripts on sd card?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment