Skip to content

Instantly share code, notes, and snippets.

@neagix
neagix / find-SD-vold-block.sh
Last active August 29, 2015 14:01
my scripts to manage Debian chroot environments on Android 4.2+
cd /dev/block/vold/
for D in `ls`; do fdisk -l $D | grep ^`echo $D | awk '{ print substr($1, 1, 3) }'`; done | grep '*' | awk '{ print substr($1, 1, length($1)-2) }' > /data/local/boot-device.txt
clear && echo -e "**********************\nThe individuated device of your external SD is: $PWD/`ls | grep -v $(</data/local/boot-device.txt )`\nPlease double check with output of fdisk -l before proceeding!!!\n**********************\n" && rm /data/local/boot-device.txt
@neagix
neagix / make-kernel.sh
Last active August 29, 2015 14:02
Script used to compile kernels for U2
#!/bin/bash
## generate kernel image & modules + u-boot script
## @author neagix
#
set -e
if [ ! $# -eq 1 ]; then
echo "Please specify kernel directory" 1>&2
exit 1
@neagix
neagix / uboot001.txt
Created June 14, 2014 23:11
attempts at booting 3.15.y
U-Boot 2010.12-svn (Dec 21 2012 - 19:44:04) for Exynox4412
CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]
APLL = 1000MHz, MPLL = 880MHz
DRAM: 2047 MiB
PMIC VERSION : 0x00, CHIP REV : 2
TrustZone Enabled BSP
BL1 version: 20121128
@neagix
neagix / ubiquity-disable-grub.diff
Created September 7, 2014 08:17
Linux Mint / Ubuntu 14 install wizard (Ubiquity) patch for non-grub installs
--- plugininstall.py 2014-09-07 08:01:43.030820224 +0000
+++ plugininstall.py.orig 2014-09-07 08:00:47.790454123 +0000
@@ -1018,7 +1018,30 @@
try:
if arch in ('amd64', 'i386'):
- self.db.set('grub-installer/bootdev', 'skip')
+ from ubiquity.components import grubinstaller
+ while 1:
+ dbfilter = grubinstaller.GrubInstaller(None, self.db)
@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
@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 / 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 / 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 / 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 / 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