All Projects → seemoo-lab → lede-ad7200

seemoo-lab / lede-ad7200

Licence: GPL-2.0 License
LEDE environment ported to support TP-Link TALON AD7200 devices.

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
shell
77523 projects
C++
36643 projects - #6 most used programming language
Roff
2310 projects
perl
6916 projects

Projects that are alternatives of or similar to lede-ad7200

Django Netjsonconfig
Configuration manager for embedded devices, implemented as a reusable django-app
Stars: ✭ 213 (+719.23%)
Mutual labels:  lede
openwrt-build-env
OpenWrt build environment in docker | Docker 中的 OpenWrt 编译环境
Stars: ✭ 77 (+196.15%)
Mutual labels:  lede
apm82181-lede
APM82181 LEDE Repository
Stars: ✭ 18 (-30.77%)
Mutual labels:  lede
Lede
Lean's OpenWrt source
Stars: ✭ 19,062 (+73215.38%)
Mutual labels:  lede
CloudFlare-DDNS-Script
CloudFlare-DDNS-Script Support LEDE/Openwrt with IPv4/IPv6
Stars: ✭ 40 (+53.85%)
Mutual labels:  lede
lede-dockerbuilder
A (container based) LEDE/OpenWrt image builder.
Stars: ✭ 53 (+103.85%)
Mutual labels:  lede
Xfrp
xfrps&frp client for openwrt&LEDE
Stars: ✭ 205 (+688.46%)
Mutual labels:  lede
ansible-nnxx
Ansible configurations for the nnxx infrastructure
Stars: ✭ 11 (-57.69%)
Mutual labels:  lede
plan44-feed
OpenWrt feed containing plan44 packages
Stars: ✭ 25 (-3.85%)
Mutual labels:  lede
luci-openwisp
OpenWISP configuration interface implemented as LuCI extensions
Stars: ✭ 21 (-19.23%)
Mutual labels:  lede
Easybox-904-XDSL
Fork of openwrt with vendor specific changes from open sourced firmware 3.10.
Stars: ✭ 19 (-26.92%)
Mutual labels:  lede
gluon-firmware-selector
Firmware selector for gluon router images
Stars: ✭ 19 (-26.92%)
Mutual labels:  lede
HomeLede
An Openwrt firmware for home use scenarios.
Stars: ✭ 925 (+3457.69%)
Mutual labels:  lede
Ddns Scripts aliyun
OpenWrt/LEDE DDNS support for aliyun (阿里云)
Stars: ✭ 224 (+761.54%)
Mutual labels:  lede
meta-openwrt
OE/Yocto metadata layer for OpenWRT
Stars: ✭ 75 (+188.46%)
Mutual labels:  lede
Opkg Upgrade
List and install OpenWRT / LEDE opkg upgradable packages
Stars: ✭ 215 (+726.92%)
Mutual labels:  lede
ansible-openwrt
Ansible collection to configure your OpenWrt devices more quickly and automatically (without Python)
Stars: ✭ 34 (+30.77%)
Mutual labels:  lede
OpenWrts
OPENWRT 固件(Raspberry Pi4B/3B+,NanoPi R4S,Orange Pi R1Plus,x86) 依源码更新自动编译
Stars: ✭ 100 (+284.62%)
Mutual labels:  lede
OpenWrtAction
Openwrt automatic compilation project of github action
Stars: ✭ 28 (+7.69%)
Mutual labels:  lede
openwrt-scripts
A collection of some useful scripts running on OpenWrt/LEDE routers
Stars: ✭ 43 (+65.38%)
Mutual labels:  lede

LEDE for Talon AD7200

This project contains the source code to compile a LEDE image for the TP-Link Talon AD7200. With the wil6210 driver and firmware already integrated, it supports to configure the 60 GHz interface in AP, managed, and monitor mode. Therewith it allows to easily establish mm-wave links between multiple devices. Through the Linux based operating system, this allows to use the Talon AD7200 routers for arbitrary application scenarios.

Usage Report and Statistics

Our Talon Tools framework is a research project that we share with the community so that others can reproduce our results and benefit from it. We aim to record basic statistics on where and for what purpose our tools are used. Please consider filling our short usage report that will only take a few minutes. You can also use this to report your publications. Doing so, you support us to keep track on the usage and allow us to continuously refine our work.

WARNING

This software might damage your hardware and may void your hardware’s warranty. Use our tools at your risk and responsibility.

Download Pre-Build Image

To save time compiling the complete buildsystem, you can download our pre-build images and directly flash it to the device (see "Device Flashing" below). If you want to integrate own functionality continue with the following build instructions.

Quick Image Build Instructions

This is a quick build instruction guide to compile a LEDE image for the Talon AD7200. Parts of this instruction has been taken from the official LEDE documentation and has been adapted for the given architecture.

First we need to make sure the dependencies are installed, you can install those on an Ubuntu/Debian machine (tested with ubuntu 16.4.2) with:

sudo apt-get install build-essential git git-core flex quilt xsltproc libxml-parser-perl 
sudo apt-get install mercurial bzr ecj cvs subversion g++ zlib1g-dev build-essential 
sudo apt-get install python libncurses5-dev gawk gettext unzip file libssl-dev wget

Obtain the source code from GitHub via:

git clone https://github.com/seemoo-lab/lede-ad7200.git lede-ad7200
cd lede-ad7200

Fetch the latest package definitions and install corresponding symlinks:

./scripts/feeds update -a
./scripts/feeds install -a

To build an image with the default configuration for the Talon AD7200, simply prepare the build process with:

cp default.config .config
make defconfig

Alternatively, if you need to refine your configuration, start with a clean configuration and select your preferred configuration for the toolchain and firmware:

cp legacy.config .config
make defconfig
make menuconfig

The last command will open the kernel configuration menu. Please ensure that you should select at least:

  • Target System => Qualcomm Atheros IPQ806X
  • Target Profile => TP-Link Talon AD7200

Simply running "make" will build your firmware:

make

It will download all sources, build the cross-compile toolchain, the kernel and all chosen applications. This may take some time on the first compilation, but definitely speeds up the next time when the toolchain has been build already.

To speed-up compilation using several CPU cores on multi-core computers, use:

make -j N

where N is your number of CPU cores + 1. However, this may lead to strange and hard-to-detect errors. Use the '-j' option only if you are familiar with the build system.

To build your own firmware you need to have access to a Linux, BSD or MacOSX system (case-sensitive filesystem required). Cygwin will not be supported because of the lack of case sensitiveness in the file system.

Afterwards, the images can be found in ./bin/targets/ipq806x/generic/ The lede-ipq806x-AD7200-squashfs-factory.bin image should be used for installation. Please do not use the lede-ipq806x-AD7200-squashfs-sysupgrade.bin image, as this is not supported yet.

Device Flashing

To flash an image to the device, you need to run a TFTP server on your machine. During recovery boot, the device will start a TFTP client and fetch the image file. This proceedure is default recovery mode in OpenWRT/LEDE. Check the documentation at https://lede-project.org/docs/user-guide/tftpserver and https://wiki.openwrt.org/doc/howto/generic.flashing.tftp You can e.g. use tftpd-hpa,

sudo apt-get install tftpd-hpa

and place your image file in '/var/lib/tftpboot/'. The file must be named AD7200_1.0_tp_recovery.bin, and your machine must be setup with fixed IP address according to the following table.

  • image name: AD7200_1.0_tp_recovery.bin
  • ip address: 192.168.0.66
  • net mask: 255.255.255.0

Only at this address and with exactly this filename the bootloader checks firmware updates.

Next, you connect the Talon device with any of the LAN ports to your machine, press and hold the reset pin, and power-on the device. All LEDs should turn on. Keep the reset button pressed for a couple of seconds until one of the LEDs starts blinking. During the flash process, most LEDs stay on. If they went off again after a few seconds, something went wrong and the device restarts. In this case, you should check your network settings again. Most likely, the router cannot find find the image file.

If everything went well, the LEDs stay on and flashing takes some minutes. Some devices reboot after flashing, some stuck and need to be rebooted manually. Unfortunately, there is no easy way to check if flashing is completed. After around 10 - 15 minutes, you could take the risk and manually power off and on the device. If it does not boot up with your new firmware, try flashing again and be little more patient. Good luck.

Accessing Device via SSH

The devices are configured by default with fixed IP address and SSH server running. You can login remotely as root via:

Please ensure that you have configured your client accordingly.

Customizing the Image

You can add additional files to the image by placing them in the /files folder.

Establish a 60 GHz Link

To establish a link, you need to configure one device as AP. The default image comes with a predefined configuration, you just need to start the hostapd daemon for the wlan2 interface:

hostapd -B /etc/hostapd_wlan2.conf

This will start the AP with SSID TALON_AD7200 on channel 2 without any encryption. Other devices in manged mode and range can connect using the wpa_supplicant:

wpa_supplicant -Dnl80211 -iwlan2 -c/etc/wpa_supplicant.conf -B

Up 8 managed stations are supported to connect to one AP simultaneously. Finally you need to configure the IP Addresses (replace XXX by any number less than 255):

$ ifconfig wlan2 192.168.100.XXX

Set-up Monitor Mode

To configure a device in monitor mode on channel 2 use:

ifconfig wlan2 up
iw dev wlan2 set type monitor
iw dev wlan2 set freq 60480
ifconfig wlan2 down
ifconfig wlan2 up

Take note, that under heavy load the monitor mode might not catch all network packets correctly.

Talon Tools

This software has been released as part of Talon Tools: The Framework for Practical IEEE 802.11ad Research. Any use of it, which results in an academic publication or other publication which includes a bibliography is encouraged to appreciate this work and include a citation the Talon Tools project and any of our papers. You can find all references on Talon Tools in our bibtex file. Please also check the project page for supplemental tools.

Give us Feedback

We want to learn how people use this software and what aspects we might improve. Please report any issues or comments using the bug-tracker and do not hesitate to approach us via e-mail.

Contact

Powered By

SEEMOO logo   NICER logo   CROSSING logo  CRSIP logo  MAKI logo   CYSEC logo  TU Darmstadt logo 

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].