Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: led_aging.sh
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
/*
* Copyright 2014 Mutli-Tech Systems, Inc.
*
* Author: Robert Nelson <robertcnelson@gmail.com>
*
* Cape http://xyz.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
From a1d20ba78d04571d86224922fc6116a066dd054c Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Fri, 22 Aug 2014 11:57:49 -0500
Subject: [PATCH] testing
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
arch/arm/boot/dts/am335x-bone-common-pinmux.dtsi | 7 +++++++
arch/arm/boot/dts/am335x-bone-rtc-01-00a1.dtsi | 21 +++++++++++++++++++++
2 files changed, 28 insertions(+)
[Desktop Entry]
Version=1.0
Name=Chromium Web Browser viewing BONE101
Exec=/home/debian/bone101.sh
Terminal=false
Type=Application
@RobertCNelson
RobertCNelson / gist:34eedeae27bce1ce6358
Last active August 29, 2015 14:13
BeagleBoard-X15: ducati...
sudo apt-get install autopoint libdrm-dev libgstreamer1.0-dev \
libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev linux-headers-`uname -r`
git clone git://git.ti.com/ipc/ipcdev.git --depth=1
cd ipcdev/
./configure --prefix=/usr PLATFORM=DRA7XX KERNEL_INSTALL_DIR=/lib/modules/`uname -r`/build/
make ; sudo make install
git clone git://git.omapzoom.org/repo/libdce.git --depth=1
cd libdce/
@RobertCNelson
RobertCNelson / build
Last active August 29, 2015 14:14
Shamrock
Debian Jessie:
sudo apt-get update
sudo apt-get install check cmake llvm-3.6 clang-3.6 libboost-dev libclang-3.6-dev \
mesa-common-dev opencl-headers
git clone https://github.com/RobertCNelson/shamrock.git
cd shamrock/
git checkout origin/ocl_1_2-jessie-llvm-3.6 -b tmp
@RobertCNelson
RobertCNelson / gist:89a1ac57b5b232794f45
Created March 1, 2015 19:56
v3.14.x: [PATCH] ARM: dts: am335x-bone*: usb0 is hardwired for peripheral
From d057554c24c600e0db3a8074043ef526be9f938d Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Tue, 24 Feb 2015 10:10:43 -0600
Subject: [PATCH] ARM: dts: am335x-bone*: usb0 is hardwired for peripheral
commit 67fd14b3eca63b14429350e9eadc5fab709a8821 upstream.
Fixes: http://bugs.elinux.org/issues/127
the bb.org community was seeing random reboots before this change.
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
voodoo@a3-imx6q-wandboard-2gb:~$ sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1f:7b:b4:02:62
inet addr:192.168.1.32 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:7bff:feb4:262/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:961380 errors:0 dropped:0 overruns:0 frame:0
TX packets:287290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1163744014 (1.0 GiB) TX bytes:304919836 (290.7 MiB)
@RobertCNelson
RobertCNelson / g_ether
Last active August 29, 2015 14:18
g_multi vs g_ether
KERNEL[22913.100093] add /devices/pci0000:00/0000:00:10.1/usb8/8-2 (usb)
KERNEL[22913.101822] add /devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.0 (usb)
KERNEL[22913.101871] add /devices/pci0000:00/0000:00:10.1/usb8/8-2/8-2:1.1 (usb)
UDEV [22913.106738] add /devices/pci0000:00/0000:00:10.1/usb8/8-2 (usb)
KERNEL[22913.133973] add /module/mii (module)
UDEV [22913.135153] add /module/mii (module)
KERNEL[22913.143606] add /module/usbnet (module)
UDEV [22913.143987] add /module/usbnet (module)
KERNEL[22913.151724] add /module/cdc_ether (module)
UDEV [22913.152086] add /module/cdc_ether (module)