---
title: "airserv-ng 在dd-wrt下的编译问题"
author: "steeven"
date: "2007-11-18T14:48:28Z"
tags: []
slug: "airserv-ng-dd-wrt"
draft: false
lastmod: "2007-11-18T14:48:28Z"
id: 141504
url: "https://steeven.iteye.com/blog/141504"
---

前提：dd-wrt svn 1.0rc 1. osdep/linux.c下面wiToolsPath() 下面增加/jffs/usr/bin, /jffs/usr/sbin 2. common.mak修改，CC前面增加TOOL\_PREFIX = mipsel-linux-uclibc- 修改 CFLAGS = -g -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -Wunused -I/work/DD-WRT/src/linux/brcm/linux.v23/include -Iinclude/ -fpic 3. 编译要用静态编译：make airserv-ng, 然后mipsel-linux-uclibc-gcc -g -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -Wall -Wunused -I/work/DD-WRT/src/linux/brcm/linux.v23/include -Iinclude/ -fpic -D\_FILE\_OFFSET\_BITS=64 -D\_REVISION=\`../evalrev\` -Iinclude airserv-ng.o common.o -o airserv-ng -Losdep -losdep -static 4. 在dd-wrt上先安装wireless-tools, 然后airserv-ng -d prsim0