AP OPENWRT PC

From M1Research

Revision as of 17:17, 12 July 2008 by Verem (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Hardware

For target platform we will use standard PC with D-link DWA-520G (Atheros chipset) WiFi board compatible with hostapd. We install 2 NIC (Intel Ethernet 100) to provide WAN and LAN interfaces.

Build OpenWrt

Downloading

I recommend download latest trunk version. Use subversion repo:
[verem@aipetry ~]$ svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze
After downloading rename directory - append trunk version suffix. I my case:
mv kamikaze kamikaze-r11772

Building prerequisites

For build OpenWrt images i used FC8 (Fedora Core 8) distro. Make sure you have installed:

  • gcc
  • g++
  • bison
  • flex
  • ncurses-devel
  • zlib-devel

Configuration

Goto to source directory and configure:
[verem@dev-2 src]$ cd kamikaze-r11772
[verem@dev-2 kamikaze-r11772]$ make menuconfig

Select:

  • Target system x86 [2.6]
  • Check:
    • Select all packages by default
    • Advanced configuration options (for developers)
    • Buildsystem settings
    • Build the OpenWrt Image Builder
    • Image configuration
  • override built-in for Network:
    • hostapd
    • hostapd-mini
    • hostapd-utils
    • wpa-supplicant
  • override built-in for Kernel modules - Network Devices that will be used in your platform, in my case Intel(R) PRO/100+ cards.
  • override built-in for Kernel modules - Wireless Drivers that will be used in your platform, in my case Driver for Atheros wireless chipsets

After this changes made exit and confirm changes saving

Building

Start building process:
[verem@dev-2 kamikaze-r11772]$ make
++ mkdir -p /home/verem/src/kamikaze-r11772/staging_dir/toolchain-i386_gcc4.1.2
++ cd /home/verem/src/kamikaze-r11772/staging_dir/toolchain-i386_gcc4.1.2
++ mkdir -p bin lib include stamp

............

Personal tools