Git Product home page Git Product logo

sbwtw / rtl819x-toolchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frederic/rtl819x-toolchain

0.0 1.0 0.0 295.59 MB

rtl819x-toolchain-v3.2.3 - Linux SDK for ALFA AIP-W512

C 92.37% Assembly 1.93% Shell 1.08% Perl 1.37% XSLT 0.18% TeX 0.18% Scala 0.08% C++ 2.34% Objective-C 0.27% JavaScript 0.07% UnrealScript 0.01% Python 0.06% R 0.01% Erlang 0.02% Scilab 0.01% ASP 0.02% Awk 0.01% IDL 0.01% XC 0.03% PHP 0.01%

rtl819x-toolchain's Introduction

Linux SDK for ALFA AIP-W512
---------------------------

== Overview
This toolchain allows you to build custom firmware image for the ALFA Network AIP-W512 Wireless AP/router. 
The SoC of this board is RTL8196E, based on a Lexra core (modified MIPS).

Some applications have been added in the source tree:
* dropbear
* libpcap
* tcpdump
* ettercap

== Disclaimer

Flash at your own risk.

== Requirements

A linux host.
This toolchain has been tested on 32-bit Ubuntu 9.10, 13.10 and on 64-bit Debian Jessie.

== Configuration

To configure the toolchain for the AIP-W512 board, use this command in top directory:
> $ make menuconfig

	> Selected Target : rtl8196e
	> Selected Kernel : linux-2.6.30
	> Selected Busybox : busybox-1.13
	> Selected toolchain : rsdk-1.3.6-4181-EB-2.6.30-0.9.30
	> Selected board configuration : 96E+88E GW
	> Config users : yes

Then exit and save this new configuration.
The next configuration screen allows you to choose built-in applications.
(Only ettercap, dropbear and tcpdump have been tested at this time.)
Again, exit and save this new configuration.

** Known issue **
If you get the error "Error :  error opening terminal xterm", create this symbolic link:
> # ln -s /lib/terminfo/x/xterm /usr/share/terminfo/x/xterm

== Build

> $ make

Generated firmware image (rootfs+kernel)
$top/image/fw.bin

** Known issue **
If you get the error:
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
...

you have to link /bin/sh file to /bin/bash :
> # unlink /bin/sh
> # ln -s /bin/bash /bin/sh
> $ export SHELL=/bin/bash

== Filesystem customization

To customize /etc/ directory, you can edit files in $top/target/etc.default/.

Otherwise, you can edit 'romfs' target in $top/target/Makefile to add files.
e.g. to add a root directory: $(ROMFSINST) root /root

You must rebuild to apply changes:

> $ make

== Flash

A successful build generates few images:
$top/image/linux.bin (kernel)
$top/image/root.bin (rootfs)
$top/image/webpages.bin (web pages)
$top/image/fw.bin (kernel+rootfs+web pages)

You have to flash fw.bin (never tried others) by following one of these methods:

 * TFTP (bootloader):
	- Connect LAN ethernet port of the device to your network
	- Find out serial port
		UART Pinout
		->1 VCC (with arrow on PCB)
		  2 TX
		  3 RX
		  4 GND
	- Connect UART port with settings: 38400 8N1
		> # screen /dev/ttyUSB0 38400 8N1
	- Press 'Esc' key at boot to interrupt
	- Here a shell. Enter '?' to get help message
	- Enter 'IPCONFIG' command to display device's IP address, and modify if needed
	- Upload image by TFTP
		> $ atftp -p -l $top/image/fw.bin 192.168.1.6

 * Web interface (tcp/80): In the menu >Management>Upgrade firmware

Network configuration won't be altered.
Default root password is 'root'.

rtl819x-toolchain's People

Contributors

frederic avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.