Skip to content

Instantly share code, notes, and snippets.

View cbrake's full-sized avatar

Cliff Brake cbrake

View GitHub Profile
@cbrake
cbrake / platform.c
Created March 23, 2012 17:46
testing
function(int a, char * b) {
printf("Hello world\n");
}
@cbrake
cbrake / ts.conf
Created March 30, 2012 20:39
tslib files
root@cm-x270:~# opkg list_installed | grep ts
gst-plugins-base-audiotestsrc - 0.10.32-r1
kbd-consolefonts - 1.15.2-r0
kernel-module-ucb1400-ts - 3.1-r9
liberation-fonts - 1:1.04-r2
libnetsnmp25 - svn-r7.2
libts-1.0-0 - 1.0+gitr1+e17263ef401ee885a27d649b90b577cfb44500e0-r0.pp9
pam-plugin-limits - 1.1.4-r2
systemd-compat-units - 1.0-r10
tslib-calibrate - 1.0+gitr1+e17263ef401ee885a27d649b90b577cfb44500e0-r0.pp9
@cbrake
cbrake / gist:2344005
Created April 9, 2012 14:50
async programming in C
• async programming
∘ http://software.schmorp.de/pkg/libeio.html
‣ Libeio is a full-featured asynchronous I/O library for C, modelled in similar style and spirit as libev. Features include: asynchronous read, write, open, close, stat, unlink, fdatasync, mknod, readdir etc. (basically the full POSIX API). sendfile (native on solaris, linux, hp-ux, freebsd, emulated everywehere else), readahead (emulated where not available).
‣ It is fully event-library agnostic and can easily be integrated into any event-library (or used standalone, even in polling mode). It is very portable and relies only on POSIX threads.
∘ http://software.schmorp.de/pkg/libev.html
‣ A full-featured and high-performance (see benchmark) event loop that is loosely modelled after libevent, but without its limitations and bugs. It is used, among others, in the GNU Virtual Private Ethernet and rxvt-unicode packages, and in the Deliantra MORPG Server and Client.
‣ Features include child/pid watchers, periodic timers based on wallclock (a
@cbrake
cbrake / enable-oprofile.patch
Created May 24, 2012 17:59
Enable oprofile in kernel
diff --git a/arch/arm/configs/svs_defconfig b/arch/arm/configs/svs_defconfig
index be51787..08cea61 100644
--- a/arch/arm/configs/svs_defconfig
+++ b/arch/arm/configs/svs_defconfig
@@ -136,7 +136,8 @@ CONFIG_PERF_EVENTS=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
-# CONFIG_PROFILING is not set
+CONFIG_PROFILING=y
@cbrake
cbrake / gist:2790004
Created May 25, 2012 19:20
OE GUI images
 œcbrake@happy:/scratch/oe/oe-build-core-testing/sources$ find -name "*image*" | grep -v scripts | grep -e sato -e gnome -e gtk
./openembedded-core/meta/recipes-sato/images
./openembedded-core/meta/recipes-sato/images/core-image-sato-sdk.bb
./openembedded-core/meta/recipes-sato/images/core-image-sato.bb
./openembedded-core/meta/recipes-sato/images/core-image-sato-dev.bb
./openembedded-core/meta/recipes-graphics/images/core-image-gtk-directfb.bb
./meta-angstrom/recipes-images/angstrom/systemd-gnome-image.bb
./meta-ti/recipes-misc/images/cloud9-gnome-image.bb
@cbrake
cbrake / gist:2790382
Created May 25, 2012 20:24
qt4-embedded
cbrake@happy:/scratch/oe/oe-build-core-testing/sources$ find -name "*qt4-embedded*"
./openembedded-core/meta/recipes-qt/qt4/qt4-embedded_4.8.1.bb
./openembedded-core/meta/recipes-qt/qt4/qt4-embedded_4.7.4.bb
./openembedded-core/meta/recipes-qt/qt4/qt4-embedded.inc
./meta-openembedded/meta-oe/recipes-qt/qt4/qt4-embedded_4.8.1.bbappend
./meta-openembedded/meta-oe/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
@cbrake
cbrake / log.do_rootfs
Created May 26, 2012 21:27
cloud9-image failure
This file has been truncated, but you can view the full file.
DEBUG: Executing shell function do_rootfs
+ rm -f /scratch/oe/oe-build-core-testing/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/cloud9-image-1.0-r0/opkg.conf
+ touch /scratch/oe/oe-build-core-testing/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/cloud9-image-1.0-r0/opkg.conf
+ package_update_index_ipk
+ set -x
+ ipkgarchs='all any noarch arm armv4 armv5 armv5-vfp armv5e armv5e-vfp armv6-vfp armv7a armv7a-vfp armv7a-vfp-neon beagleboard all any noarch x86_64-nativesdk'
+ '[' '!' -z '' ']'
+ packagedirs=/scratch/oe/oe-build-core-testing/build/tmp-angstrom_2010_x-eglibc/deploy/ipk
+ for arch in '$ipkgarchs'
+ packagedirs='/scratch/oe/oe-build-core-testing/build/tmp-angstrom_2010_x-eglibc/deploy/ipk /scratch/oe/oe-build-core-testing/build/tmp-angstrom_2010_x-eglibc/deploy/ipk/all'
@cbrake
cbrake / console.log
Created May 29, 2012 12:04
gnome-systemd-image hang on boot
Started Remount Root FS [ OK ]
Starting Recreate Volatile Files and Directories...
Starting Load Random Seed...
Started Machine ID first boot configure [ OK ]
Starting Run pending postinsts...
Started Load Random Seed [ OK ]
Started Recreate Volatile Files and Directories [ OK ]
[ 7.710144] twl_rtc twl_rtc: Power up reset detected.
[ 7.718566] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 7.824523] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
@cbrake
cbrake / gist:2918077
Created June 12, 2012 15:08
combo-layer-tools
Paul Eggleton paul.eggleton@intel.com
6/13/11
to Otavio, openembedded-c.
On Monday 13 June 2011 16:33:47 Otavio Salvador wrote:
> I think it is duplicating many features of git submodule. It seems
> more logical to put a script above git submodule rather then use a
> full repository for it.
You're right in that git submodule provides a lot of these things. However,
@cbrake
cbrake / error.log
Created June 19, 2012 18:27
nodemailer install error on beaglebone
root@beaglebone:~/alarm-gateway# node -pe process.versions
{ node: '0.6.14',
v8: '3.6.6.24',
ares: '1.7.5-DEV',
uv: '0.6',
openssl: '1.0.0h' }
root@beaglebone:~/alarm-gateway# npm install serialport
npm http GET https://registry.npmjs.org/serialport