Skip to content

Instantly share code, notes, and snippets.

@neagix
neagix / build-retroarch.sh
Created July 9, 2013 19:43
complete build script for RetroArch on ARM Linux ODROID devices
#!/bin/bash
## build script for RetroArch on ARM Linux (ODROID)
## @author neagix
#
export CFLAGS='-marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard'
export CXXFLAGS='-marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard'
export ASFLAGS='-marm -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard'
CONFIGOPTS="--enable-alsa --disable-oss --disable-jack --disable-pulse --enable-xvideo --enable-fbo --enable-x11 "

Keybase proof

I hereby claim:

  • I am neagix on github.
  • I am neagix (https://keybase.io/neagix) on keybase.
  • I have a public key ASBmo4msQwafEQqIO8THyuMt6eVtooMsNdQIXE5NVN-_pgo

To claim this, I am signing this object:

@neagix
neagix / libretro-build-mupen64plus.log
Created October 5, 2013 03:38
errors when building on ARM cortex A9
$ ./libretro-build.sh build_libretro_mupen64
armv7l CPU detected
Script: ~/libretro-super/libretro-build.sh
CC = gcc
CXX = g++
STRIP =
Compiler: CC="gcc" CXX="g++"
=== ARM NEON opts enabled... ===
=== Cortex A9 opts enabled... ===
=== ARM hardfloat ABI enabled... ===
@neagix
neagix / openxcom
Last active December 22, 2015 13:38
small patch needed to compile OpenXCOM on ODROIDs
#!/bin/bash
## @author neagix
## automatic OpenXcom game directory association script
##
if [ $# -gt 0 ]; then
for DIR in GEODATA GEOGRAPH MAPS ROUTES SOUND TERRAIN UFOGRAPH UFOINTRO UNITS; do
FOUNDDIR=$(find ./ -maxdepth 1 -iname $DIR -type d)
@neagix
neagix / kernel.config
Last active December 21, 2015 16:38
kernel 3.8 config with FIMC support, plus patch on top of current github's odroid-linux-3.8-y
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.8.13.7 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT=y
CONFIG_STACKTRACE_SUPPORT=y
@neagix
neagix / bsnes-compile-on-arm.diff
Created June 22, 2013 16:05
a quick patch to compile bsnes/higan on ARM v8/v9
diff --git a/higan/Makefile b/higan/Makefile
index 73b1a56..4da52ca 100755
--- a/higan/Makefile
+++ b/higan/Makefile
@@ -14,8 +14,8 @@ target := ethos
# console := true
# compiler
-c := $(compiler) -std=gnu99
-cpp := $(subst cc,++,$(compiler)) -std=gnu++0x
@neagix
neagix / neagix-linux-fixes.diff
Last active December 18, 2015 20:29
neagix' Linux patches and build script for eduke32
Index: Makefile
===================================================================
--- Makefile (revision 3893)
+++ Makefile (working copy)
@@ -28,9 +28,9 @@
OURCOMMONFLAGS=$(BASECOMMONFLAGS) \
-I$(INC) -I$(EINC) -I$(SRC)/jmact -I$(JAUDIOLIBDIR)/include -I$(ENETDIR)/include
OURCFLAGS=$(OURCOMMONFLAGS) $(BASECFLAGS)
-OURCXXFLAGS=$(BASECXXFLAGS)
-OURCONLYFLAGS=$(BASECONLYFLAGS)
@neagix
neagix / flashbench-find-fat.log
Created June 1, 2013 08:14
some flashbench figures on the 4GB SD card used for odroid-debian-wheezy
flashbench -f /dev/mmcblk0
sched_setscheduler: Operation not permitted
4MiB 2.34M/s 3.68M/s 2.86M/s 5.28M/s 5.27M/s 5.32M/s
2MiB 3.69M/s 4.04M/s 5.27M/s 5.24M/s 5.23M/s 5.34M/s
1MiB 3.69M/s 4.04M/s 5.25M/s 5.28M/s 5.29M/s 5.31M/s
512KiB 3.11M/s 4.03M/s 5.27M/s 5.24M/s 5.31M/s 5.22M/s
256KiB 3.68M/s 4.02M/s 5.28M/s 5.25M/s 5.26M/s 5.3M/s
128KiB 3.3M/s 4.02M/s 5.22M/s 5.24M/s 5.29M/s 5.21M/s
64KiB 3.4M/s 4M/s 5.28M/s 5.22M/s 5.19M/s 5.24M/s
32KiB 3.05M/s 3.67M/s 5.07M/s 5.08M/s 5.11M/s 5.06M/s
@neagix
neagix / 3.0-es2gears-mali-fullscreen.log
Last active December 17, 2015 23:19
(incomplete) permutations of following combinations (es2gears, glmark2-es2, glxgears) (kernel 3.0.79, kernel 3.8.13) (xf86-video-sunxi, xf86-video-mali) by using an ODROID-U2
=======================================================
glmark2 2012.08
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-400 MP
GL_VERSION: OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 98 FrameTime: 10.204 ms
[build] use-vbo=true: FPS: 101 FrameTime: 9.901 ms
@neagix
neagix / 91-custom-gpg-agent
Last active August 29, 2015 14:14
gpg-agent Xsession script to cleanup the Ubuntu mess
## http://neagix.blogspot.nl/2014/09/setup-gpg-smartcard-reader-in-ubuntu-14.html
##
##
## NOTE: this script is sourced via dash
##
: ${GNUPGHOME=$HOME/.gnupg}
## customize this entry if you have a binary diversion
GPGAGENT=/usr/bin/gpg-agent