找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 43254|回复: 37

小白编译openwrt实现ftp、samba共享、ushare共享、aria2下载、动态域名(二)

 火.. [复制链接]
发表于 2013-4-4 00:06 | 显示全部楼层 |阅读模式
本帖最后由 vsamlee 于 2013-4-19 12:16 编辑

1、 下载源码
Trunk版下载命令: svn co svn://svn.openwrt.org/openwrt/trunk/  会下载到主文件夹下的trunk文件夹中。
Backfire下载命令:svn co svn://svn.openwrt.org/openwrt/branches/backfire/  会下载到主文件夹下的backfire文件夹中。
关闭终端

2、 开始编译
重新打开终端
2.1、 cd trunk 我选择了trunk版本,如果是backfire版本请输入cd backfire
2.2、 更新软件包:
./scripts/feeds update -a
./scripts/feeds install -a
svn update
3.3、 进入定制界面
make defconfig
make menuconfig

3、 定制界面功能选择,以下是根据我自己的功能需求做出的选择。
Garget---system---atherosar7xxx/ar9xxx  
路由芯片
Target---profile---buffalowzr-hp-ag300h
我的路由型号
Base---system---block-mount
USB挂载
                         libstdcpp
安装aria2需要
luci---collections---luci
添加luci界面
         applications---luci-app-ddns
dns界面
                               luci-app-hd-idle
磁盘休眠控制界面
                               luci-app-multiwan
多拨控制界面
                               luci-app-qos
qos界面
                               luci-app-samba
samba界面
                               luci-app-ushare
ushare界面
        translations---luci-i18n-chinese
luci中文语言包
kernelmodules---filesytems---kmod-fs-ext4
硬盘ext4格式支持
                          nativelanguagesupport---kmod-nls-utf8
utf8支持??
                          usbsupport---kmod-usb-ohci
Ohci控制器
                                               kmod-usb-storage
添加储存设备驱动
                                               kmod-usb-storage-extras
储存设备扩展
                                               kmod-usb-uhci
Uhci控制器
                                               kmod-usb2
Uusb2.0
bootloaders---uboot-ar71xx-nbg460n_550n_550nh
默认
libraries---filesystem---libext2fs
硬盘格式化工具
               ssl---libopenssl
安装aria2需要
               libffmpeg-mini
ushare需要
               libxml2
安装aria2需要
network---filetransfer---aria2
aria2(我没选)
                                    vsfpd
ftp服务器
                                    multiwan
多拨软件
                                    ppp
默认
                                       ppp-mod-pppoe
默认
                                    samba36-server
Samba共享
                                    wpad-mini
默认
multimedia---ushare
ushare媒体共享

4、 编译
make v=99
第一次编译时间较久,4M网速大约在3小时左右。测试了很多命令,make v=99最稳定,就老实点用该命令吧。

5、 编译完成后,编译好的固件在主文件夹/trunk/bin中,拷贝出来到自己要保存的文件夹中。以下命令是清理后以便于下次编译的。
清除缓存 make dirclean
彻底清理make distclean    或  make clean

另:恩山网站上有很多有用的补丁,个人认为比较实用的是RA-MOD大神的busybox、samba(会明显提高共享文件拷贝速度)、block-mount(自动挂载,非常好用)补丁,可以下载按照教程使用。

点评

make v=99应该是make V=99吧,看别人都是用大写,不知道区别。  发表于 2014-1-9 02:00
顶一下!  发表于 2013-4-8 17:15

评分

参与人数 8恩山币 +8 收起 理由
a937983423 + 1 这样老实的帖子不多了,感谢楼主
pass3389 + 1 泥马,真给力,我要顶!
冷意灰心 + 1 泥马,真给力,我要顶!
jzmno1 + 1 膜拜下
czht1662 + 1 支持楼主。。共享出来..
树``` + 1 我是来打酱油的,老婆说酱油要涨价了,顺便再买两块豆腐~
┽→寂寞·不畏 + 1 很早前就想写篇编译教程了,写完后会退出openwrt,被楼主先写了,呵呵
qutongming + 1 支持你共亨精神,不像xx人

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2013-4-4 00:06 | 显示全部楼层
本帖最后由 vsamlee 于 2013-4-19 12:17 编辑

                        
蛋疼的表格。

4月19日重新编辑了一下,好看多了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-4 06:53 | 显示全部楼层
支持一个。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-4 13:22 | 显示全部楼层
大力顶你,支持你发挥opnewrt的共亨精神
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-4 13:51 来自手机 | 显示全部楼层
你现在已经是高手了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-4 23:46 | 显示全部楼层
我也来说下吧
kmod-usb-uhci 据说是intel芯片兼容性驱动
boot  loaders---uboot-ar71xx-nbg460n_550n_550nh  为uboot编译选项,可选可不选,不影响使用的
libffmpeg-full个人觉得太大,不如选libffmpeg-mini,二选其一,即可选择luci-ushare(这个是过期的可乐 告诉俺滴)
另外也要告诉楼主,很多组件你选择相关软件的时候是会一并选择的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-4-5 07:46 | 显示全部楼层
┽→寂寞·不畏 发表于 2013-4-4 23:46
我也来说下吧
kmod-usb-uhci 据说是intel芯片兼容性驱动
boot  loaders---uboot-ar71xx-nbg460n_550n_550 ...

谢谢。libffmpeg-mini和libffmpeg-full我都不知道干嘛的。都是到处收集的,希望有大神们好好的把里面所有的东西都写写。哎,定制就不是很悲剧的事情了,openwrt的门槛自然就降低了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-5 13:40 | 显示全部楼层
vsamlee 发表于 2013-4-5 07:46
谢谢。libffmpeg-mini和libffmpeg-full我都不知道干嘛的。都是到处收集的,希望有大神们好好的把里面所有 ...

这两个东西我以前在哪看到过解析来着,真忘了
libffmpeg-mini和libffmpeg-full其实是一样的,full即完全版,mini可以说是迷你版,也可以说是精简版
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-8 07:03 | 显示全部楼层
libffmpeg-mini 与libffmpeg-full 是 ushare 需要的  ,硬盘挂载 安装 mountd 就可以了,好像没有 ntfs-3g.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-8 15:56 | 显示全部楼层
继续学习的了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-4-8 21:49 | 显示全部楼层
gnix_oag 发表于 2013-4-8 07:03
libffmpeg-mini 与libffmpeg-full 是 ushare 需要的  ,硬盘挂载 安装 mountd 就可以了,好像没有 ntfs-3g.

我已经将磁盘直接格式化为ext4格式啦。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-10 00:01 | 显示全部楼层
都是高手哈,不错不错,mark一下回头认真学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-17 21:52 | 显示全部楼层
占个位。。等经验多了继续学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-18 14:37 | 显示全部楼层
现在高手们都在编译自己特色的rom,不得不羡慕!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-18 22:47 | 显示全部楼层
谢谢楼主,很好
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 00:01

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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