Skip to content

Instantly share code, notes, and snippets.

View scottellis's full-sized avatar

Scott Ellis scottellis

View GitHub Profile
@scottellis
scottellis / gist:756608
Created December 27, 2010 22:01
linux-omap3_2.6.34.bb
DESCRIPTION = "Linux kernel for OMAP3 processors"
KERNEL_IMAGETYPE = "uImage"
COMPATIBLE_MACHINE = "beagleboard|omap3-multi|overo"
require linux.inc
MUSB_MODE ?= "host"
SRCREV = "cb89736af28f583598e49a05249334a194d00f1d"
@scottellis
scottellis / gist:756609
Created December 27, 2010 22:03
musb-enable-revert.patch
diff --git git/drivers/usb/musb/musb_gadget.c git/drivers/usb/musb/musb_gadget.c
index 6fca870..80d1a71 100644
--- git/drivers/usb/musb/musb_gadget.c
+++ git/drivers/usb/musb/musb_gadget.c
@@ -896,14 +896,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
/* REVISIT if can_bulk_split(), use by updating "tmp";
* likewise high bandwidth periodic tx
*/
- /* Set TXMAXP with the FIFO size of the endpoint
- * to disable double buffering mode. Currently, It seems that double
@scottellis
scottellis / gist:798395
Created January 27, 2011 11:41
arduino-lis35de-simulator
/*
* lis35de MEMS accelerometer simulator
*/
#include <Wire.h>
#define I2C_SLAVE_ADDRESS 0x1D
#define BUFFER_SIZE 8
#define CTRL_REG1 0x20
@scottellis
scottellis / qt4-console-image.bb
Created February 14, 2011 12:47
qt4-console-image
# console image for omap3
inherit image
DEPENDS = "task-base"
TOUCH = ' ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-calibrate tslib-tests", "",d)}'
RDEPENDS_append += " \
qt4-embedded \
@scottellis
scottellis / gist:856661
Created March 5, 2011 19:50
linux-omap-caspapx-musb-defconfig.patch
diff --git a/recipes/linux/linux-omap3-caspapx-2.6.34/overo/defconfig b/recipes/linux/linux-omap3-caspapx-2.6.34/overo/defconfig
index e3491cd..667038c 100644
--- a/recipes/linux/linux-omap3-caspapx-2.6.34/overo/defconfig
+++ b/recipes/linux/linux-omap3-caspapx-2.6.34/overo/defconfig
@@ -1974,8 +1974,7 @@ CONFIG_USB_GADGET_SELECTED=y
# CONFIG_USB_GADGET_ATMEL_USBA is not set
# CONFIG_USB_GADGET_FSL_USB2 is not set
# CONFIG_USB_GADGET_LH7A40X is not set
-CONFIG_USB_GADGET_OMAP=y
-CONFIG_USB_OMAP=y
@scottellis
scottellis / gist:860216
Created March 8, 2011 12:26
0001-Respect-the-V4L2_CTRL_FLAG_NEXT_CTRL-flag-in-queryctl.patch
From 4ea444c0d6023ce5610c4859608ed4ee0b4248ce Mon Sep 17 00:00:00 2001
From: Scott Ellis <scott@jumpnowtek.com>
Date: Tue, 8 Mar 2011 05:54:47 -0500
Subject: [PATCH] Respect the V4L2_CTRL_FLAG_NEXT_CTRL flag in queryctl
---
drivers/media/video/mt9v032.c | 77 +++++++++++++++++++++++++----------------
1 files changed, 47 insertions(+), 30 deletions(-)
diff --git a/drivers/media/video/mt9v032.c b/drivers/media/video/mt9v032.c
@scottellis
scottellis / gist:860264
Created March 8, 2011 13:39
mt9v032-queryctl-ordering.patch
diff --git git/drivers/media/video/mt9v032.c git/drivers/media/video/mt9v032.c
index ba5cb87..a2dab8b 100644
--- git/drivers/media/video/mt9v032.c
+++ git/drivers/media/video/mt9v032.c
@@ -121,24 +121,6 @@ static int mt9v032_num_formats;
*/
static const struct v4l2_queryctrl mt9v032_controls [] = {
{
- .id = V4L2_CID_VFLIP,
- .type = V4L2_CTRL_TYPE_BOOLEAN,
@scottellis
scottellis / gist:866228
Created March 11, 2011 17:25
mt9p031-image-sensor-simulator
/*
* MT9P031 image sensor simulator
*/
#include <Wire.h>
#define I2C_SLAVE_ADDRESS 0x5D
#define BUFFER_SIZE 8
#define NUM_REGS 256
@scottellis
scottellis / Configure-multilib.patch
Created April 18, 2011 08:38
OE perl-native patch for Ubuntu 11.04
diff --git perl-5.10.1/Configure.orig perl-5.10.1/Configure
old mode 100755
new mode 100644
index 01fa3c0..637ba32
--- perl-5.10.1/Configure.orig
+++ perl-5.10.1/Configure
@@ -1307,11 +1307,13 @@ loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
: general looking path for locating libraries
@scottellis
scottellis / 0002-iputils-remove-docbook-utils-and-sgmlspl-dependency.patch
Created April 18, 2011 08:40
OE remove docbook-utils-native and sgmlspl-native as dependencies for iputils
From 22347565b1e55b076d0bf890f6feda745546207d Mon Sep 17 00:00:00 2001
From: Scott Ellis <scott@jumpnowtek.com>
Date: Mon, 18 Apr 2011 04:25:28 -0400
Subject: [PATCH 2/2] iputils remove docbook-utils and sgmlspl dependencies
---
recipes/iputils/iputils_20071127.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/iputils/iputils_20071127.bb b/recipes/iputils/iputils_20071127.bb