Skip to content

Instantly share code, notes, and snippets.

@n-west
n-west / sinalaysis.cs
Created Oct 22, 2015 — forked from dosomder/sinalaysis.cs
Xperia SIN Structure analysis
View sinalaysis.cs
// ==========================================================
// Sony Xperia SIN (Firmware flashable files) analysis
//
// Author: zxz0O0
// Started: 2014-06-05
// Notes: Numbers are big endian
// Credits: Androxyde
// ==========================================================
struct SinFile
@n-west
n-west / gr-radar.json
Last active Aug 29, 2015
yaml_json_xlate.py
View gr-radar.json
{
"brief": "A radar toolbox from GSoC '14",
"contact": {
"author": "Stefan Wunsch",
"email": "stefan.wunsch@student.kit.edu"
},
"copyright_owner": "Communications Engineering Lab, KIT",
"dependencies": [
"UHD",
"Qt",
View gr-volk-errors.md

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

View bthread.cc
#include <iostream>
#include <boost/thread.hpp>
void workerFunc()
{
std::cout << "Worker: running" << std::endl;
std::cout << "Worker: finished" << std::endl;
}
int main(int argc, char* argv[])
@n-west
n-west / bootlog
Created Jan 2, 2014
A bootlog that triggers kernel panic on first attempt booting custom insulaudit distro.
View bootlog
## 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 Dec 31, 2013
Gumstix overo on a way small silverlode. Booting first time with newly built 3.5.7 kernel.
View gist:8200321
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)
View mem_pool.cc
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:
View bitbake-numpy-build-failure
| 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
View ber_tx.py
#!/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: