Skip to content

Instantly share code, notes, and snippets.

View cmicali's full-sized avatar

Chris Micali cmicali

View GitHub Profile
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.8.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
/*
* 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/ "am33xx.dtsi"
/*
* 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.
*/
/dts-v1/;
/include/ "am33xx.dtsi"
diff -ru original/core/rtw_mp.c new/core/rtw_mp.c
--- original/core/rtw_mp.c 2012-07-30 13:51:05.000000000 +0100
+++ new/core/rtw_mp.c 2013-04-27 01:03:54.803246633 +0100
@@ -1140,8 +1140,7 @@
_rtw_memset(ptr, payload, pkt_end - ptr);
//3 6. start thread
- pmp_priv->tx.PktTxThread = kernel_thread(mp_xmit_packet_thread, pmp_priv, CLONE_FS|CLONE_FILES);
- if(pmp_priv->tx.PktTxThread < 0)
+ if(!start_kthread(&pmp_priv->tx.PktTxThread, mp_xmit_packet_thread, pmp_priv, "8192cu-mp-xmit"))
#!/bin/bash -e
# Note: You need to have these packages installed (assuming Ubuntu 12.10)
# apt-get install build-essential gcc-arm-linux-gnueabi git lzop u-boot-tools
# Build the kernel
make -j 8 CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm uImage dtbs modules
rm -rf dist
mkdir dist
#!/bin/bash -e
if [ -f "dist/kernel.tar.gz" ]
then
scp dist/kernel.tar.gz root@BeagleBoneBlack2:/home/root/kernel.tar.gz
ssh root@BeagleBoneBlack2 'tar xovfz ~/kernel.tar.gz -C /; sync;'
else
echo "You must run build.sh first"
diff -ru original/core/rtw_mp.c new/core/rtw_mp.c
--- original/core/rtw_mp.c 2012-07-30 13:51:05.000000000 +0100
+++ new/core/rtw_mp.c 2013-04-27 01:03:54.803246633 +0100
@@ -1140,8 +1140,7 @@
_rtw_memset(ptr, payload, pkt_end - ptr);
//3 6. start thread
- pmp_priv->tx.PktTxThread = kernel_thread(mp_xmit_packet_thread, pmp_priv, CLONE_FS|CLONE_FILES);
- if(pmp_priv->tx.PktTxThread < 0)
+ if(!start_kthread(&pmp_priv->tx.PktTxThread, mp_xmit_packet_thread, pmp_priv, "8192cu-mp-xmit"))
# Example wpa_supplicant build time configuration
#
# This file lists the configuration options that are used when building the
# hostapd binary. All lines starting with # are ignored. Configuration option
# lines must be commented out complete, if they are not to be included, i.e.,
# just setting VARIABLE=n is not disabling that variable.
#
# This file is included in Makefile, so variables like CFLAGS and LIBS can also
# be modified from here. In most cases, these lines should use += in order not
# to override previous values of the variables.
@cmicali
cmicali / gist:6984888
Last active December 25, 2015 13:39
PRU SPI Example
#define NOP MOV r0, r0, r0
#define SPI_TX r8.w0
#define SPI1_SCLK R30.t7
#define SPI1_MOSI R30.t14
#define SPI1_MISO R31.t15
#define SPI1_CS0 R30.t0
#define SPI1_CS1 R30.t1
#define SPI1_CS SPI1_CS0
public class CurrentUserLoggingFilter implements Filter {
public static final String MDC_CURRENT_ACCOUNT_ID_KEY = "CurrentAccountId";
@Context
HttpContext context;
@Override
public void init(FilterConfig filterConfig) throws ServletException { /* unused */ }