Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adam-lee on github.
  • I am b1gtuna (https://keybase.io/b1gtuna) on keybase.
  • I have a public key whose fingerprint is BB1F C7A6 CEF6 A851 60F6 91F5 9220 1890 C942 16B9

To claim this, I am signing this object:

@adam-lee
adam-lee / gist:9235884
Created February 26, 2014 18:50 — forked from 17twenty/gist:2718613
Beaglbone u-boot parameters (uEnv.txt)
So the Beaglebone uses the file uEnv.txt to store settings as it doesn't have any NAND allocated to do it with, by
default the file is pretty empty save from the line:
optargs=run_hardware_tests quiet
You may have read a number of things about boot.scr etc - ignore it, it's not correct.
The bootcmd is hardwired in uboot to do the following (i've seperated it all out to make things clearer) - you can see it by
interrupting the bootsequence and performing a 'printenv'.
bootcmd=
@adam-lee
adam-lee / 0_reuse_code.js
Created March 3, 2014 18:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@adam-lee
adam-lee / Mass Unfollow
Last active December 17, 2015 07:03
Twitter Unfollow Script
#!/usr/bin/env ruby
# step 1 install t - https://github.com/sferik/t
# step 2 generate a list of followings - '$ t followings > followings'
# step 3
f = File.open("followings", "r")
f.each_line do |line|
system 't', 'unfollow', line
sleep(1.0)
end
f.close
@adam-lee
adam-lee / rm-file
Last active August 29, 2015 13:57
rm-file
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-core/busybox/busybox_1.21.1.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-multimedia/musicpd/mpd_0.17.1.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-connectivity/neard/neard_0.10.bbappend
f = File.open("to-be-removed", "r")
f.each_line do |line|
system 'rm', line.chomp
end
f.close
From e83e315af0f7d94f1375cdfab801b17aaec6ae62 Mon Sep 17 00:00:00 2001
From: Adam YH Lee <adam.yh.lee@gmail.com>
Date: Wed, 21 Jan 2015 14:57:02 -0800
Subject: [PATCH] Add NAND support to Overo Device Tree
This adds the support for PoP style Micron MT29C4G96MAZ 512MB NAND, which is
used in many, but not all, Gumstix Overo COMs.
---
arch/arm/boot/dts/omap3-overo-base.dtsi | 48 +++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
[rpmsys]
type = rpm-sys
[url0-all]
type = rpm-md
priority = 25
baseurl = https://packages.gumstix.com/dev//rpm/all
[url0-cortexa8hf_vfp_neon]
type = rpm-md
@adam-lee
adam-lee / qt5-test.cpp
Created August 11, 2015 18:31
HelloQt.cpp
/* qt5-test.cpp */
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel label("Hello, World!");
label.resize(400, 200);

###QtCreator Remote Development And Deployment with SDK

####Install On Ubuntu 15.04's PPA has an outdated version of QtCreator (3.1.1). Remote deploy and debug do not work with the version of QT5 included in meta-qt5 (qt5.4.3). Instead, we will use an up-to-date version from Qt.io.The web installer from qt.io (https://www.qt.io/download/) lets you pick the version of QTCreator (3.4.2 in this case) you want. The binary of the web installer is named qt-unified-linux-x64-online.run for a system running 64bit Ubuntu 14.04. Download the installer suitable for your workstation. The installer lets you pick the version of QT5. Make sure to choose Qt5.4 to match with meta-qt5. Also note that you will have to create an account for Qt to install.

qt5-web-install

####Configuration We will configure QtCreator with

@adam-lee
adam-lee / Running-QT5-with-SGX-on-Gumstix-Pepper.md
Last active October 9, 2015 00:58
Running-QT5-with-SGX-on-Gumstix-Pepper.md

Enabling SGX (hardware accelerated graphics) on Pepper SBC is straight forward with Gumstix Yocto Project. Note that SGX does not support X11.

The custom, SGX enabled, image builds on the development branch of the Gumstix Yocto Project. A couple things need to be modified to add TI's Graphics SDK (v5) and Qt5-SGX demo applications. So be sure to set up the Yocto Project build environment first. Note that you need the development branch. The master branch has not been updated with necessary kernel patches.

Now you can make necessary changes to add SGX, build an image, and boot your device:

  1. Uncomment these lines from local.conf located in build/conf/:
    # Specify SGX GFX providers for Pepper
    PREFERRED_PROVIDER_virt