Install some tools you'll need with: apt-get install -y hostapd dnsmasq wireless-tools iw wvdial
Note that some wifi cards just plain don't work with hostapd. Sorry.
This is done in /etc/network/interfaces
:
These are notes I've taken while rying to get srslte
up and running. This is messy, sorry...
Dependencies:
sudo apt install tree vim git g++ make cmake pkg-config libpython-dev python-numpy swig libi2c-dev libusb-1.0-0-dev libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev gnuradio
The BPM is basically the best flashing tool for STM32/ARM chips. Get the hex file for whatever you're flashing (build it, download it, whatever), then follow these directions.
First install the arm compiler:
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
Note that because radare2 uses Capstone to disassemble ARM code, there are issues with the disassembly. arm-none-eabi-objdump -d compiledbinary.elf
actually does a better job in some cases. For example, msr
isn't decompiled correctly...
First, you have to either strip the default ELF binaries the default Makefiles build when you run make
OR you need to just compile .bin
files using something like:
make binaryname.bin
This thing is a bit of a beast. People don't give it NEARLY the credit, or the documentation it deserves.
Two ways of using this thing: rfcat
directly, or write a python script for it.
Basically, writing a python script is easier. Using rfcat directly is great but often, there are just too many silly settings to configure
#!/bin/bash | |
logger "Telling kernel to turn on ipv4 ip_forwarding" | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
logger "Done. Setting up iptables rules to allow FORWARDING" | |
DOWNSTREAM=wlan0 # wlan0 is client network (running hostapd) | |
UPSTREAM=eth0 # eth0 is upstream network (internet) | |
# Allow IP Masquerading (NAT) of packets from clients (downstream) to upstream network (internet) |
I tested these steps under WSL with Ubuntu.
I no longer have an official LEGO IR Tower, but in 2014 I created one with a simple IR receiver and an IR LED. The Arduino firmware and Eagle files are here: https://github.com/JamesHagerman/HardwareProjects/tree/master/LEGO_RCX_Tower Boards can be ordered from OSHPark here: https://oshpark.com/shared_projects/MtLGHYuW
Big shout out goes to John Holbrook (@johnholbrook on GitHub, @whole_brook on Twitter) for his awesome, up to date article found here: https://www.johnholbrook.us/RCX_guide.html
The following writeup (and my 2014 IR Tower hack) should provide a more complete answer to one of the FAQ's on that page ("Can I send data to the RCX from a [TV remote/IR port on an old laptop/IR LED and an Arduino]?").