首页 > 程序 > 4530的固件编译的差不多了,整理一下

作者:ghostry 发布时间:2013-03-12 浏览: 29450

转载注明出处: https://blog.1ge.fun/program/4530-de-gu-jian-bian-yi-de-chai-bu-duo-le---zheng-li-yi-xia.html

之前说不自己编译了.结果我总是有点特殊需求.不自己编译还真不行.
我这里选择的trunk,编译的r39500版本.
首先是下载文件.

svn co svn://svn.openwrt.org/openwrt/trunk/ 4530trunk

然后编辑feeds.conf.default文件.把里边的luci源换成svn://svn.openwrt.org.cn/luci/luci/trunk 自带的luci源不知道是国内问题还是怎么的.连不上,这个是中文网的镜像源.
编辑target/linux/ar71xx/image/Makefile,
$(call Image/Build/Template/$(fs_64kraw)/$(1),TPLINK-LZMA,tl-wdr4300-v1,$(tlwdr4300_cmdline),0x43000001,1,8Mlzma)
里0x4300改为0x4530(固件识别码)
编辑target/linux/ar71xx/base-files/lib/ar71xx.sh
"430000"*)
        model="TP-Link TL-WDR4300"
把"430000"*)改为"430000"*|"453000"*),TP-Link TL-WDR4300改为TP-Link TL-MW4530R(型号显示和固件识别码)
编辑target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
找到WDR4300改成MW4530R(型号显示)
编辑target/linux/ar71xx/files/drivers/mtd/tplinkpart.c
找到uboot部分,parts[0].mask_flags = MTD_WRITEABLE;这行删掉或注释掉(uboot可写)
编辑package/mac80211/files/lib/wifi/mac80211.sh
$ht_capab
        option disableed 1    改为 0    (默认无线打开)

编辑target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c(修改按键设定)参考https://github.com/ghostry/4530/blob/master/diff.txt
下载https://github.com/ghostry/4530/blob/master/blockmount.zip 解包放到package/block-mount/files/(这个没看出有什么效果.估计不做也没什么.)
点击这里下载transmission固件集成.zip解包.把里边的luci-transmission替换现有的.zhcn里边的po文件替换现有的.删掉templates里边的transmission.pot文件.
从这里http://code.google.com/p/transmission-control/ 下载web控制端文件.解包,得到web文件夹放到luci-transmission的root文件夹里,相对路径为usr/share/transmission
添加luci-aria2参考http://www.right.com.cn/forum/thread-107368-1-1.html 我修改了下源码,不再集成yaaw到固件里.而是改用http://aria2.ghostry.cn/yaaw-master/ 反正下载时候肯定联网的,就不占用固件空间 了.
修复ssh中文乱码用http://www.right.com.cn/forum/thread-109719-1-1.html 这个帖子提供的补丁.z00-fix-CJK-charset-display.patch.tar.gz
然后我修改了默认主题,语言,在feeds/luci/contrib/package/luci/makefile里边修改依赖关系.可以去掉英语和默认的主题.我比较喜欢Freifunk主题.
然后make menuconfig的时候有几个必选的.
target system选atheros ar7xxx/ar9xxx
target profile选tp-link tl-wdr3500/3600/3400/3410
base system增加block-mount
kernel modules->block devices->kmod-block2mtd
kernel modules->filesystems里选需要的磁盘格式.
kernel modules->native language support->komd-nls-utf8
kernel modules->usb support里边选上kmod-usb-ohci,kmod-usb-storage-extras,kmod-usb2
然后在luci里选需要的
差不多就是这样,以后如果想到了再补充.
最后放图片

标签: openwrt 编译 mw4530r

上一篇: 已配置博客支持ipv6访问
下一篇: 新玩意,漂移板

已有 10 条评论 »

  1. [...]4530的固件编译的差不多了,整理一下 2016年5月15日 原文链接:http://blog.ghostry.cn/program/4530-de-gu-jian-bian-yi-de-[...]

  2. [...]原文链接:http://blog.ghostry.cn/program/4530-de-gu-jian-bian-yi-de-chai-bu-duo-le—zheng-li-yi-xia.html[...]

  3. [...]转载注明出处: http://blog.ghostry.cn/program/4530-de-gu-jian-bian-yi-de-chai-bu-duo-le—zheng-li-yi-xia.html[...]

  4. 额,好专业!

  5. 我也想要个固件
    无奈我的vps过期了....

    1. 要不要我借你用一下vps?

  6. 我想问。。。。这是什么啊

  7. 文章分享的好有深度,支持一下

  8. 啥意思?给路由器改程序并刷新软件,是这样吗?

  9. 我肿么完全看不懂,像是翻译,还有固件。。。

添加新评论 »

*
*

欢迎评论!歡迎評論!Comments welcome!komentoj bonvenaj!댓글 오신 것을 환영합니다!
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :cold: :cryy: :cute: :shy: :sleep: :struggle: :tea: :yahou: