资源预览内容
第1页 / 共13页
第2页 / 共13页
第3页 / 共13页
第4页 / 共13页
第5页 / 共13页
第6页 / 共13页
第7页 / 共13页
第8页 / 共13页
第9页 / 共13页
第10页 / 共13页
亲,该文档总共13页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
极路由1S编译OpenWRT教程(终稿)一、编译环境极路由 1S 型号 HC5661 ( CPUMT7620A580MHZ,内存 DDR2 128M,闪存 W25Q128 16M )。WIN7或XP安装VMware虚拟机,安装Ubuntu 14.04 server (具体安装方法自行查找 百度,默认安装无桌面,需开启openssh server方便文件管理)。需要的软件下载地址(VMware、WinSCP、PUTTY、Ubuntu 14.04):http:/rj.baidu.com/soft/detail/15150.html?aldhttp:/rj.baidu.com/soft/detail/13808.html?aldhttp:/rj.baidu.com/soft/detail/15699.html?aldhtt p:/mirrors.163.com/ubu ntu-releases/14.04.1/ubu ntuT4.04-server-i386.iso二、编译方法1在终端内输入以下命令:更新Ubuntu系统软件:abcHiwifi:$ sudo apt-get updateabcHiwifi:$ sudo apt-get upgrade删除系统更新文件:abcHiwifi:$ sudo apt-get clean安装编译需要的软件:abcHiwifi:$ sudo apt-get install gcc g+ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip zip unrar p7zip p7zip-rar p7zip-full sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk git-core下载OpenWRT源码包:abcHiwifi:$ svn checkout svn:/svn.openwrt.org/openwrt/trunk 进入源码文件夹:abcHiwifi:$ cd trunk更新扩展软件包:abcHiwifi:$ ./scripts/feeds update -a安装扩展软件包:abcHiwifi:$ ./scripts/feeds install -a进入定制界面(里面可以选择芯片的型号,集成的组件等等,根据实际情况选择): abcHiwifi:$ make menuconfig 开始编译:abcHiwifi:$ make V=99剩下的就是等待了,第一次编译需要的时间相对比较长,这个跟你的电脑配置和网速有关。 过一段时间可以使用更新命令,更新下源码和扩展包,然后重新编译下: abcHiwifi:$ cd trunk abcHiwifi:$ svn update abcHiwifi:$ ./scripts/feeds update -a abcHiwifi:$ ./scripts/feeds install -a abcHiwifi:$ make V=99编译后清理文件:(修改设置后不需要清理,除非出了问题才需要清理文件。) abcHiwifi:$ make clean比clean更彻底的恢复编译环境,多彻底,暂无法形容,非要问我只能冷酷表情: abcHiwifi:$ make dirclean2进入make menuconfig的设置部分选择CPU型号:Target System Ralink RT288x/RT3xxxSubtarget MT7620a based boards.config - OpenWrt Configuration qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq lqqqqqqqqqqqqqqqqqqqqqqqqqConfiguration qqqqqqqqqqqqqqqqqqqqqqqqqkx Arrow keys navigate the menu. selects submenus .xx Highlighted letters are hotkeys. Pressing includes, excludes, x x modularizes features. Press to exit, for Help, x x for Search. Legend:古built-in excluded module xx iqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk xTarget WYSlsem (Ralink RT288X/RT3XXX)Subtarget (JrT7620a based boacds) Target Profile (Default Pcofile) Target Images lobal build settings the OpenWrt. Image Builder the OpenWrt. SDKthe OpenWct. based Tool chain configuration -Advanced configuration options (for developers)BuildBuildBuildImageBase system - ftdiiini s tr ati on E oot Loadersx mqqqqv(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqquxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj选择LuCI配置(web网页管理程序):LuCI - 1. Collections - luci 启用 LuCILuCI - 3. Applications - luci-app-commands 网页 ShellLuCI-3.Applications-luci-app-ddns 动态域名LuCI-3.Applications-luci-app-firewall 防 火 墙LuCI-3.Applications-luci-app-mwan3 网络叠力口LuCI-3.Applications-luci-app-multiwan 网络叠力口LuCI - 3. Applications - luci-app-ntpc 时间同步服务器LuCI - 3. Applications - luci-app-ocserv VPN ServerLuCI - 3. Applications - luci-app-qosLuCI - 3. Applications - luci-app-samba 网络共享LuCI - 3. Applications - luci-app-upnpLuCI - 3. Applications - luci-app-wol 网络唤醒LuCI - 4. Themes - luci-theme-bootstrap 默认主题LuCI - 4. Themes - luci-theme-openwrt openwrt 主题LuCI - 5. Translations - luci-i18n-chinese 支持中文大家可以自行增减插件,保存设置后,重新编译下即可。文件系统、SD卡、USB配置:Base system - block-mount USB挂载Kernel modules - Filesystems - kmod-fs-ext4 支持 ext4 文件系统Kernel modules - Filesystems - kmod-fs-nfs 支持 NFS 文件系统Kernel modules-Filesystems-kmod-fs-nfs-commonKernel modules-Filesystems-kmod-fs-ntfs 支持 NTFS 文件系统Kernel modules - Filesystems - kmod-fs-vfat 支持 FAT32 文件系统Kernel modules-Native LanguageSupport-kmod-nls-cp437 支持中文Kernel modules-Native LanguageSupport-kmod-nls-iso8859-1支持中文Kernel modules-Native LanguageSupport-kmod-nls-utf8 支持中文Kernel modules-Other modules-kmod-mmc 支持SD卡Kernel modules-Other modules-kmod-sdhci 支持SD卡Kernel modules-Other modules-kmod-sdhci-mt7620 ,支持 SD 卡Kernel modules-USB Support-kmod-usb-ohci 支持USB1.0Ker nel modules-USB Supp ort-kmod-usb-st or ageKernel modules-USB Support-kmod-usb-storage-extrasKernel modules-USB Support-kmod-usb-uhci 支持USB1.1Kernel modules-USB Support-kmod-usb2 支持USB2.0网络配置:Network - ppp-mod-pppoe PPPOE 拨号模式Network - ppp-mod-pptp VPN 客户端Network - SSH - openssh-client SSH 客户端其实里面有很多软件,大家可以编译试一试的,番茄软件很多的哦! 应用程序配置:Utilities-bzip2 解压缩工具Utilities-
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号