Last active
June 11, 2025 01:19
-
-
Save xerpi/2af0cf61f7400e1bdca733caf357865a to your computer and use it in GitHub Desktop.
Vita3K Arm (32-bit)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sysroot=/mnt/arm | |
toolchain=arm-linux-gnueabihf | |
cmake .. \ | |
-G Ninja \ | |
-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja \ | |
-DCMAKE_LINKER_TYPE=MOLD \ | |
-DCMAKE_SYSTEM_NAME=Linux \ | |
-DCMAKE_SYSTEM_PROCESSOR=arm \ | |
-DCMAKE_FIND_ROOT_PATH=$sysroot \ | |
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ | |
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ | |
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ | |
-DCMAKE_C_COMPILER=$toolchain-gcc \ | |
-DCMAKE_CXX_COMPILER=$toolchain-g++ \ | |
-DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath-link,$sysroot/usr/lib" \ | |
-DCMAKE_C_FLAGS="-mfp16-format=ieee" \ | |
-DCMAKE_CXX_FLAGS="-mfp16-format=ieee" \ | |
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | |
-DCMAKE_COLOR_DIAGNOSTICS=ON \ | |
-DUSE_DISCORD_RICH_PRESENCE=OFF \ | |
-DUSE_VITA3K_UPDATE=OFF \ | |
$@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mount -o loop,ro,offset=$((2048 * 512)) archlinuxarm.img /mnt/arm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
qemu-system-arm \ | |
-M virt \ | |
-cpu cortex-a15 \ | |
-smp cores=4,threads=1,sockets=1 \ | |
-m 4G \ | |
-kernel zImage \ | |
-append "root=/dev/vda1 rootfstype=ext4 rw" \ | |
-initrd initramfs-linux-full.img \ | |
-drive "file=archlinuxarm.img,if=none,id=hd0,format=raw" \ | |
-device virtio-blk-device,drive=hd0 \ | |
-netdev user,id=mynet \ | |
-device virtio-net-device,netdev=mynet \ | |
-device virtio-gpu-pci \ | |
-device virtio-keyboard-pci \ | |
-device virtio-tablet-pci \ | |
-nographic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment