Skip to content

Instantly share code, notes, and snippets.

#!/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:

Common Problems with GNU Radio/VOLK submodules

This is a list of problems that we expect people to run in to when working with GNU Radio and the VOLK submodule. Each problem has a probable cause, the error message, and a solution.

Problem 1

Cause

@n-west
n-west / capital bikeshare.md
Created January 9, 2018 06:09
washington dc transportation apis
@n-west
n-west / bootlog
Created January 2, 2014 02:42
A bootlog that triggers kernel panic on first attempt booting custom insulaudit distro.
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.5.7
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1786136 Bytes = 1.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
@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)
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:
| 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
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++){
// 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() ),
#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 {