找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9439|回复: 11

TP-LINK 841n V7编译教程(fw300r可以用。。。)

[复制链接]
发表于 2011-5-30 23:50 | 显示全部楼层 |阅读模式
本帖最后由 aahhwwrrjj 于 2011-5-31 08:27 编辑

很有想买FW300R的冲动,于是乎上tp下了源代码编译的玩了下,没时间折腾现在放出步骤
额,本人不鄙视伸手党,因为我也是,但是作为伸手党的我不指责别人无私的劳动。大家鼓掌,哈哈~
一、首先当然是官网下载源代码了,网址:http://www.tp-link.com/support/gpl.asp
额,V7的下载地址是这个:http://www.tp-link.com/support/t ... L%5FCode%2Etar%2Egz
下载好了之后,把文件放到linux某个目录下面。打开终端,输入如下命令进行解压:
tar vxf GPL_Code.tar.gz
GPL_Code.tar.gz当然就是你下载下来的源代码的压缩包名称了。
解压之后得到的文件目录大致是这样的,如果和我的不一样不要担心,因为我的这个是已经编译过了的:
.
├── ap81fus
│   ├── apps -> ../ap93fus/apps
│   ├── boot
│   ├── linux -> ../ap93fus/linux/
│   └── wlan -> ../ap93fus/wlan
├── ap83fus
│   ├── apps -> ../ap93fus/apps
│   ├── boot
│   ├── linux -> ../ap93fus/linux/
│   └── wlan -> ../ap93fus/wlan
├── ap91fus
│   ├── apps -> ../ap93fus/apps/
│   ├── boot -> ../ap93fus/boot/
│   ├── linux -> ../ap93fus/linux/
│   └── wlan -> ../ap93fus/wlan/
├── ap93fus
│   ├── apps
│   ├── boot
│   ├── linux -> ../ap99/linux/
│   └── wlan
├── ap99
│   ├── apps
│   ├── boot
│   ├── linux
│   └── wlan
├── ap99tpl
│   ├── apps -> ../ap93fus/apps
│   ├── boot -> ../ap99/boot
│   ├── linux -> ../ap99/linux
│   └── wlan -> ../ap93fus/wlan
├── apps
│   ├── 3g_tools
│   ├── arp
│   ├── bpalogin-2.0.2
│   ├── busybox-1.01
│   ├── iproute2-2.6.15
│   ├── iproute2-2.6.31
│   ├── iptables-1.3.7
│   ├── iptables-1.4.5
│   ├── lltd
│   ├── nas
│   ├── net-snmp-5.4.2.1
│   ├── ppp-2.4.3
│   ├── pptp-1.7.1
│   ├── rp-l2tp-0.4
│   └── xl2tpd-1.1.12
├── build
│   ├── gcc-3.4.4-2.16.1
│   ├── gcc-4.3.3
│   └── scripts
├── filesystem
│   └── ap93fus
├── images
│   └── ap99
├── kernel_modules
│   ├── pppol2tp-kmod-0.17
│   └── pptp_driver-0.8.3
├── rootfs.build
│   ├── bin
│   ├── etc
│   ├── lib
│   ├── mnt
│   ├── proc
│   ├── root
│   ├── sbin
│   ├── tmp
│   ├── usr
│   └── var
├── tftpboot
│   └── ap99
├── toolchain
│   ├── build
│   └── gcc-4.3.3
├── util
│   ├── fakeroot
│   ├── lzma
│   └── squashfs33-tool
└── web_server
    └── msglogd
三、OK源代码已经有了,现在就开始准备编译了。编译当然就是make咯。。。但是呢,怎么make呢。。。看了readme之后,我自己写了一个脚本,大家把这个脚本make.sh放到build目录下,然后执行
chmod +x make.sh添加可执行属性,然后再./make.sh就好啦!
make.sh内容如下:
echo -e "\033[41;1m  Prepare toolchain\033[0m"
make BOARD_TYPE=ap99 toolchain_prep
echo -e "\033[41;1m  Prepare basic root filesystem \033[0m"
make BOARD_TYPE=ap99 fs_prep
echo -e "\033[41;1m  Build fake root tool\033[0m"
make BOARD_TYPE=ap99 fakeroot_build
echo -e "\033[41;1m  Build components\033[0m"
echo -e "\033[41;1m  Build u-boot bootloader\033[0m"
make BOARD_TYPE=ap99 uboot
echo -e "\033[41;1m  Build linux kernel image\033[0m"
make BOARD_TYPE=ap99 kernel_build
echo -e "\033[41;1m  Build kernel modules, such as netsched, netsched\033[0m"
make BOARD_TYPE=ap99 kernel_modules_prep
make BOARD_TYPE=ap99 netfilter netsched ts_kmp pppol2tp pptp_module
echo -e "\033[41;1m  Build wireless support software, such as hostapd, wpa supplicant\033[0m"
make BOARD_TYPE=ap99 wireless_prep
make BOARD_TYPE=ap99 wireless_tools
make BOARD_TYPE=ap99 wpa2
echo -e "\033[41;1m  Build some application, such as busybox, iptables and so on\033[0m"
make BOARD_TYPE=ap99 busybox pppoe l2tp bpa iptables tc_build lltd arp
或者到附件下载,然后解压好了。
有木有:

四、耐心等待编译完成,然后在顶层目录下你会发现多了tftpboot目录、images等目录,进去看看你就知道怎么回事了。
更多详情大家可以参考源代码目录下的readme.txt
究竟有木有:
images文件夹:

tftp:

总体来说编译还是很简单的,弄多了你就发现其实都那样。。。。。好了,祝大家玩得开心,看好开源哦,看好openwrt

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 +3 收起 理由
phantom-gy + 3 支持分享

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2011-5-30 23:56 | 显示全部楼层
占楼睡觉~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-5-31 20:16 | 显示全部楼层
授道贴,力顶
加感谢..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-6-1 09:49 | 显示全部楼层
不是一般的好! 菜鸟向你致敬!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-6-1 09:52 | 显示全部楼层
再请问一下,readme中提到要用  Redhat Enterprise Linux 4.0 Workstation
这个版本现在已经很老了,是否可以用其他的版本代替? 推荐一个.
感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-6-1 10:02 | 显示全部楼层
5# kennyli530


随便一个发行版就好了,要不装fedora~吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-6-1 11:55 | 显示全部楼层
清楚了,感谢指点!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-6-18 22:58 | 显示全部楼层
很详细的教程贴。。。不错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-11-5 22:09 | 显示全部楼层
很好,很有用,支持一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-11-9 01:01 | 显示全部楼层
多谢了,学习下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2012-4-5 14:57 | 显示全部楼层
学习一下,慢慢看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-6-10 21:19 | 显示全部楼层
  1. ifndef WIRELESSTOOLNAMES
  2. $(warning "Should specify WIRELESSTOOLNAMES value")
  3. ## Note: WIRELESSTOOLNAMES can contain more files that we actually have...
  4. ## e.g. WIRELESSTOOLNAMES := athstats athstatsclr athdebug 80211stats 80211debug \
  5.                 athkey athampdutrc athcwm atrc pktlogconf pktlogdump radartool
  6. WIRELESSTOOLNAMES :=
  7. endif
复制代码

这块的WIRELESSTOOLNAMES 该如何赋值?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 09:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表