Skip to content

Instantly share code, notes, and snippets.

View cbrake's full-sized avatar

Cliff Brake cbrake

View GitHub Profile
CXXFLAGS = -DNDEBUG -g -O2
# -O3 fails to link on Cygwin GCC version 4.5.3
# -fPIC is supported. Please report any breakage of -fPIC as a bug.
# CXXFLAGS += -fPIC
# the following options reduce code size, but breaks link or makes link very slow on some systems
# CXXFLAGS += -ffunction-sections -fdata-sections
# LDFLAGS += -Wl,--gc-sections
ARFLAGS = -cr # ar needs the dash on OpenBSD
RANLIB = ranlib
CP = cp
@cbrake
cbrake / populate_sdk.error
Created April 1, 2015 22:11
populate_sdk error
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /scratch/fmc-accuload/oe-build-bbb/build/tmp-angstrom_v2014_12-glibc/work/x86_64-angstromsdk-linux/gcc-crosssdk-initial-x86_64/4.9.1-r0/temp/log.do_configure.23863)
ERROR: Logfile of failure stored in: /scratch/fmc-accuload/oe-build-bbb/build/tmp-angstrom_v2014_12-glibc/work/x86_64-angstromsdk-linux/gcc-crosssdk-initial-x86_64/4.9.1-r0/temp/log.do_configure.23863
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
@cbrake
cbrake / cmake build error
Last active August 29, 2015 14:20
angstrom dizzy SDK issue
[cbrake@mars build-arm]$ cmake ../ -DCMAKE_TOOLCHAIN_FILE=./angstrom.cmake
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc
-- Check for working C compiler: /usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc -- broken
CMake Error at /usr/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler
"/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/arm-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-gcc"
is not able to compile a simple test program.
@cbrake
cbrake / log.txt
Created September 18, 2015 12:58
meteor 1.2 crash
=> Started proxy.
=> Started MongoDB.
W20150918-08:46:20.734(-4)? (STDERR)
W20150918-08:46:20.735(-4)? (STDERR) /home/cbrake/.meteor/packages/meteor-tool/.1.1.7-rc.16.wsdrno++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20150918-08:46:20.735(-4)? (STDERR) throw(ex);
W20150918-08:46:20.735(-4)? (STDERR) ^
W20150918-08:46:20.735(-4)? (STDERR) TypeError: Object [object Object] has no method 'npmRequire'
=> Exited with code: 8
@cbrake
cbrake / postinst
Created October 1, 2015 15:43
postinst
mkdir -p /var/tmp/a4m
mkdir -p /var/tmp/a4m/PIDS
mkfifo /var/tmp/a4m/socat_output_data_fifo
mkfifo /var/tmp/a4m/socat_output_serial_fifo1
mkfifo /var/tmp/a4m/socat_output_serial_fifo2
mkfifo /var/tmp/a4m/socat_output_serial_fifo3
mkfifo /var/tmp/a4m/socat_output_serial_fifo4
mkfifo /var/tmp/a4m/socat_output_command_fifo
mkfifo /var/tmp/a4m/socat_output_mtr_inj_fifo
@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