Skip to content

Instantly share code, notes, and snippets.

@bonnieking
bonnieking / bbb rcn bb-kernel linux 4.1
Created October 31, 2015 21:05
bbb rcn bb-kernel linux 4.1
[bonniek@featherfall bb-kernel]$ ./build_kernel.sh
+ Detected build host ["Fedora release 22 (Twenty Two)"]
+ host: [x86_64]
+ git HEAD commit: [c674bb1cd71beb7e6a24dc2255f71bf50ca94597]
RPM distro version: [22]
Installing:
-----------------------------
--2015-10-31 16:04:59-- https://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz
Resolving releases.linaro.org (releases.linaro.org)... 54.225.141.114
Connecting to releases.linaro.org (releases.linaro.org)|54.225.141.114|:443... connected.
@bonnieking
bonnieking / bbb rcn bb-kernel linux 4.3
Last active November 2, 2015 05:38
bbb rcn bb-kernel linux 4.3
############################################################
[bonniek@featherfall bb-kernel-v2]$ git checkout am33x-v4.3
Already on 'am33x-v4.3'
Your branch is up-to-date with 'origin/am33x-v4.3'.
[bonniek@featherfall bb-kernel-v2]$ cat .git/cop
cat: .git/cop: No such file or directory
[bonniek@featherfall bb-kernel-v2]$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
@bonnieking
bonnieking / bbb rcn bb-kernel am33x-v3.8: part 2
Last active November 2, 2015 05:38
bbb rcn bb-kernel am33x-v3.8: part 2
[bonniek@featherfall KERNEL]$ git diff
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index a0c757a..fbbb7cc 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -15,6 +15,8 @@ config SH_MIPI_DSI
config SH_LCD_MIPI_DSI
bool
+source "drivers/video/fbtft/Kconfig"
@bonnieking
bonnieking / bbb rcn bb-kernel am33x-v3.8
Last active November 2, 2015 05:38
bbb rcn bb-kernel am33x-v3.8
#################################################################
[bonniek@featherfall bb-kernel]$ git checkout am33x-v3.8
Already on 'am33x-v3.8'
Your branch is up-to-date with 'origin/am33x-v3.8'.
[bonniek@featherfall bb-kernel]$
[bonniek@featherfall bb-kernel]$ ./build_kernel.sh
+ Detected build host ["Fedora release 22 (Twenty Two)"]
+ host: [x86_64]
if len(self.args) != 1:
#print >> sys.stderr, "You must specify one file name, or maybe you need --help?"
#sys.exit(1)
self.stdin_mode = True
self.xml_string = i.read()
else:
self.stdin_mode = False
self.file = self.args[0]
@bonnieking
bonnieking / lighthouse notes 2015-12-14
Last active December 14, 2015 17:55
lighthouse notes 2015-12-14
########################################################################
root@outernet:~# find /sys |grep bcm
/sys/bus/sdio/drivers/bcmsdh_sdmmc
/sys/bus/sdio/drivers/bcmsdh_sdmmc/bind
/sys/bus/sdio/drivers/bcmsdh_sdmmc/sdio:0001:1
/sys/bus/sdio/drivers/bcmsdh_sdmmc/sdio:0001:2
/sys/bus/sdio/drivers/bcmsdh_sdmmc/uevent
/sys/bus/sdio/drivers/bcmsdh_sdmmc/unbind
root@outernet:~# find /sys -type f |grep broadcm
@bonnieking
bonnieking / lighthouse ps
Created December 12, 2015 05:19
lighthouse ps
outernet@outernet:~$ ps -ef
PID USER COMMAND
1 root init
2 root [kthreadd]
3 root [ksoftirqd/0]
5 root [kworker/0:0H]
6 root [kworker/u4:0]
7 root [migration/0]
8 root [rcu_preempt]
9 root [rcu_bh]
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Aug 17 2014, 17:46:40.
Port /dev/ttyUSB0, 23:10:00
Press CTRL-A Z for help on special keys
Password:
@bonnieking
bonnieking / gist:5427019
Last active December 16, 2015 11:19
beaglebone USB
http://lazarenko.me/2013/03/04/python-in-trading/
# opkg update
# opkg install python-setuptools
path is wrong in `which easy_install`
# okpg install python-ctypes
# git clone http://github.com/walac/pyusb.git
# cd pyusb
@bonnieking
bonnieking / gist:5427575
Created April 20, 2013 21:54
beagle tweet
File found, taking pic
debug: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"}
info: stacheMessage = {"tweet":"New BeagleStache captured!","filename":"/home/root/stache/tmp/captured003.jpg"}
info: LED on
info: contents.length = 278
info: --0.ed429920.3836aa6d
Content-Disposition: form-data; name="status"
New #BeagleBone BeagleStache image captured! @BeagleBoardOrg