mw4530r compile openwrt whole process record
This article turns from: http://blog.chinaunix.net/uid-9688646-id-5083240.html
1. Installation Ubuntu14.04
2, install the required components of the compilation OpenWrt
sudo apt-get install g++ Libncurses5-dev Zlib1g-dev Bison flex unzip autoconf gawk make gettext gcc binutils patch bzip2 L Ibz-dev asciidoc Subversion sphinxsearch libtool sphinx-common git
3, download the source code
Create a directory where source code resides
mkdir OpenWrt
sudo chmod 777 OpenWrt
CD OpenWrt
Select the version you want and execute the download command, and the download will display the version number:
Trunk version Download command:
SVN Co svn://svn.openwrt.org/openwrt/trunk/
Backfire version download command:
SVN Co svn://svn.openwrt.org/openwrt/branches/backfire/
Add the Software expansion pack and modify the Feeds.conf.default to feeds.conf:
CP Feeds.conf.default feeds.conf
Update extensions, install extensions:
Scripts/feeds update-a
Scripts/feeds install-a
4, Configuration
Default configuration
Make Defconfig
Configure Menu
Make Menuconfig
Add Luci
LUCI--->collections---> <*> luci
Add a Luci Chinese language pack
LUCI--->translations---> <*>luci-i18n-chinese
Add DDNS
LUCI--->applications---><*>luci-app-ddns.
Add hard disk hibernation
LUCI--->applications---><*> luci-app-hd-idle
Add OpenVPN
LUCI--->applications---><*> luci-app-openvpn
Add Print server
LUCI--->applications---><*> luci-app-p910nd
Add QoS
LUCI--->applications---><*> luci-app-qos
Add Samba
LUCI--->applications---><*> luci-app-samba
Add UPnP
LUCI--->applications---><*> luci-app-upnp
Add Network Wakeup
LUCI--->applications---><*> luci-app-wol
Add USB Mount
Base System---><*>block-mount
Add hard drive format support
Kernel Modules---> filesystems---><*> kmod-fs-ext4
Add UTF8 Encoding
Kernel Modules---> Native Language Support---><*> kmod-nls-utf8
Add USB extension Support
Kernel Modules---> Usbsupport---> <*> kmod-usb-storage-extras
Add Print Driver
Kernel Modules---> Usbsupport---> <*> kmod-usb-printer
Add Formatting Tools
Utilities--->filesystem---> <*> badblocks
Add Reset key Support
Utilities---> <*>restorefactory
Add Transmission Download Tool
Network--->bittorrent---> <*> transmission-daemon
Network--->bittorrent---> <*> transmission-remote
Network--->bittorrent---> <*> transmission-web
Add FTP
Network---> Filetransfer---> <*> vsftpd
Network---> Filetransfer---> <*> wget
Add Blkid to view mounted hard drive UUID
Utilities---> Disc---> <*> blkid
Add MiniDLNA