Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@n-west
n-west / angstromv2012.12
Last active December 12, 2015 02:09
Debugging the hso kernel module for use on Option GlobeTrotter Icon 322
$ modinfo hso
filename: /lib/modules/3.2.28/kernel/drivers/net/usb/hso.ko
license: GPL
description: USB High Speed Option driver
author: Option Wireless
alias: usb:v0AF0pC100d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0AF0pD058d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0AF0pD357d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0AF0pD257d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0AF0pD157d*dc*dsc*dp*ic*isc*ip*
$ pon
NO CARRIER
AT
OK
AT+CFUN=1
OK
AT+CGDCONT=1,"IP","internet"
OKScript /usr/sbin/chat -V -f /etc/ppp/beagle-chat finished (pid 431), status = 0x0
Serial connection established.
using channel 10
@n-west
n-west / ctest1.mak
Last active December 12, 2015 12:08
nathan@ginger:~/gnuradio/gr-howto/build$ ctest -V
UpdateCTestConfiguration from :/home/nathan/gnuradio/gr-howto/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/nathan/gnuradio/gr-howto/build/DartConfiguration.tcl
Test project /home/nathan/gnuradio/gr-howto/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: test_howto
#ifndef INCLUDED_WATERMARKING_PHASEDITHER_CFC_H
#define INCLUDED_WATERMARKING_PHASEDITHER_CFC_H
#include <watermarking/api.h>
#include <gr_sync_block.h>
namespace gr {
namespace watermarking {
// construction
std::vector<int> get_in_size(void )
{
std::vector<int> input_sizes;
input_sizes.push_back(sizeof( gr_complex ));
input_sizes.push_back(sizeof( char ));
}
phase_watermark_cbc_impl::phase_watermark_cbc_impl(float angle)
: gr_sync_block("phase_watermark_cbc",
gr_make_io_signaturev(2, 2, get_in_size() ),
static inline void volk_arm_32f_x2_add_32f_a_inlineneon(float* cVector, const float* aVector, const float* bVector, unsigned int num_points) {
unsigned int number;
const unsigned int quarterPoints = num_points / 4;
float* cPtr = cVector;
const float* aPtr = aVector;
const float* bPtr= bVector;
for(number=0; number < quarterPoints; number++){
#!/usr/bin/python
#!/usr/bin/env python
from gnuradio import gr, digital, blocks
from math import pi
def main( ):
fg = transmit_topblock(pi/8, sps=2)
fg.start()
while True:
| arm-oe-linux-gnueabi-gcc: numpy/linalg/python_xerbla.c
| arm-oe-linux-gnueabi-gcc: numpy/linalg/lapack_litemodule.c
| /usr/bin/gfortran -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-i686-2.7/numpy/linalg/python_xerbla.o -L/usr/lib -L/home/nathan/oe/build/tmp-eglibc/sysroots/zc702-zynq7/usr/lib -Lbuild/temp.linux-i686-2.7 -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-i686-2.7/numpy/linalg/lapack_lite.so
| /usr/bin/ld: build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
| /usr/bin/ld: build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
| /usr/bin/ld: build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
| /usr/bin/ld: build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o: Relocations in generic ELF (EM: 40)
| /usr/bin/ld: build/temp.linux-i686-2.7/numpy/linalg/lapack_litemodule.o: Relo
class volk_qa_mem_pool
{
/* QA mem pool returns an aligned and unaligned buffer with sizes
* of N * itemsize. The buffers do not overlap so that the user
* need not be concerned about reallocating identical vectors.
*
* This class exists mostly to guarantee that allocated buffers
* are cleaned up properly on exit
*/
public:
@n-west
n-west / gist:8200321
Created December 31, 2013 18:06
Gumstix overo on a way small silverlode. Booting first time with newly built 3.5.7 kernel.
U-Boot SPL 2013.07 (Dec 30 2013 - 23:40:26)
i2c_write: pads on bus 0 probably not configured (status=0x10)
i2c_read (addr phase): pads on bus 0 probably not configured (status=0x10)
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2013.07 (Dec 30 2013 - 23:40:26)