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 \ |
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
// https://wiki.henkaku.xyz/vita/SDIF_Registers | |
typedef struct sd_mmc_registers { | |
uint32_t sdma_system_addr; | |
uint16_t block_size; | |
uint16_t block_count; | |
uint32_t argument1; | |
uint16_t transfer_mode; | |
uint16_t command; | |
uint16_t resp0; | |
uint16_t resp1; |
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/sh | |
if [ "$#" -ne 2 ]; then | |
echo -e "Invalid arguments:\n\tswitchpush src dst" | |
exit 1 | |
fi | |
curl -u nxthemer:nxthemer -T "$1" ftp://$SWITCHIP:5000/"$2" |
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
/ { | |
cam_clk: cam_clk { | |
#clock-cells = <0>; | |
compatible = "fixed-clock"; | |
clock-frequency = <24000000>; | |
}; | |
}; | |
&i2csw_2 { | |
imx219@10 { |
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
export GCC_VER=13.1.0 | |
export BINUTILS_VER=2.40 | |
export NEWLIB_VER=4.3.0.20230120 | |
export TARGET=arm-none-eabi | |
export PREFIX=$DEVKITPRO/devkitARM | |
export PATH=$PREFIX/bin:$PATH | |
# download | |
wget https://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/gcc-$GCC_VER.tar.gz |
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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; | |
fragment@0 { | |
target = <&spi0>; | |
__overlay__ { | |
status = "okay"; |
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
/* | |
SHA1 dictionary attack program v2.0 (c) 2005 adresd | |
based on original by djhuevo | |
hash searchtable and other mods by adresd | |
performance checked by gorim | |
added OpenMP support by xerpi | |
compile with: |
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
.section ".rodata.sceResident", "a" | |
version: | |
.long 0x0 | |
name: | |
.asciz "cellCamera" | |
.section ".lib.stub", "a" | |
.long 0x2c000001 | |
.short 0x9 | |
.short 0 |
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
/* | |
* SceKermit (MIPS side): | |
* - https://gist.github.com/TheOfficialFloW/4fdec09e53a7c93a0d07d9e3e982dff4#file-kermit-c-L145 | |
* - https://github.com/Total-Noob/kermit_reverse/blob/master/main.c | |
*/ | |
/* | |
* Initial state: | |
* MIPS ARM | |
* Consumer ready = true Producer ready = true |
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 | |
last=$(curl -s "ftp://${PSVITAIP}:1337/ux0:/data/" | grep psp2core | tail -1 | cut -d ' ' -f 9) | |
curl -s "ftp://${PSVITAIP}:1337/ux0:/data/$last" --output "$last" | |
echo "$last" |
NewerOlder