a openwrt Development Notes: download and compile the source code

1.1 Environmental Requirements

Build system: Linux distributions (as used herein, Ubuntu)

A compilation that can be installed OpenWrt firmware image file (approximately 8MB size), you need:

  • A pure OpenWrt build system requires approximately 200MB of space.
  • Containing feeds of OpenWrt build system requires approximately 300MB of space.
  • Packages compiled feeds in takes about 2.1GB of space for storing downloaded to the source code.
  • Build and generate OpenWrt firmware file takes approximately 3-4 GB of space.
  • Compile OpenWrt takes about 1-4 GB of memory.

1.2 Download Source

Make sure the next Ubuntu git and subversion tool has been installed, the laity is not, use the following command to install:

sudo apt-get install git subversion

Different versions of cloning address

Download Command:

#版本号为chaos_calmer 15.05
git clone git://github.com/openwrt/chaos_calmer.git

#开发版版本号为LEDE 17
git clone https://git.openwrt.org/openwrt/openwrt.git
#gitbub镜像
git clone https://github.com/openwrt/openwrt.git

Github domestic connection is slow, be patient to wait for the download is complete git.

Here I choose to download chaos_calmer version (which is not found Raspberry Pi 3B +)

Recommended Download: git clone https://gitee.com/greenice897/openwrt.git

1.3 compiler

After downloading the source code into the root directory

The first compilation may refer to the root directory of the README file

cd openwrt
#更新feeds.conf中的种子包
./scripts/feeds update -a
#安装软链接到package/feeds/,这样make menuconfig才能进行相关配置
./scripts/feeds install -a

Compilation dependencies:

Installation gitto download OpenWrt source, feeds part of the package may only be subversion(abbreviation: svn), or mercurialdownload the source code.

sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev

If you miss the make menuconfig installation will give an error prompt

make menuconfig

Then the configuration is complete

make V=s

Wait compilation process is slow, because a lot of things to download, download 404 if you encounter an error, you can manually copy the link with the Thunder download, download good throw dl in the following directory, missing libraries, then switch to root below for installation.

Select LuCI configuration: Common

Select LuCI configuration:
LuCI ---> Applications ---> # AccessControl luci-App-time access control
LuCI ---> Applications ---> luci- app-adbyby-plus # ad blocking guru + Plus
LuCI --- > Applications ---> luci-app- arpbind # IP / MAC binding
luCI ---> Applications ---> luci- app-autoreboot # support plans to restart
luCI ---> Applications ---> luci- app- ddns # dynamic DNS DNS (DDNS client integrated Ali)
luCI ---> Applications ---> luci-App-FileTransfer # file transfer (web can install ipk package)
luCI ---> Applications ---> luci-App -firewall # adding firewall
luCI ---> Applications ---> luci- app-flowoffload #Turbo ACC network accelerated (integrated the FLOW, BBR, NAT, the DNS .. *
luCI ---> Applications ---> luci-App # -frpc within the network through Frp
luCI ---> Applications ---> luci-App-wifi #WiFi the Guest-guest network
luCI ---> Applications --->luci-app-ipsec-virtuald #virtual IPSec server
LuCI ---> Applications ---> luci- app-mwan3 # MWAN3 load balancing
LuCI ---> Applications ---> luci- app-mwan3helper # MWAN3 shunt assistant
LuCI ---> Applications ---> luci- app-nlbwmon # bandwidth monitor
luCI ---> Applications ---> luci- app-p pt p-server # virtual ** server PPTP
luCI ---> the Applications ---> luci-App-release ramfree # memory
luCI ---> Applications ---> luci- app-samba # network share (Samba)
luCI ---> Applications ---> luci-App-SQM # intelligent traffic management queue (the QOS)
----- -------------------------------------------------- ------------------------------------
luCI ---> Applications ---> luci-APP- SS R-plus #SS R + Tian towards Internet Plus
luCI ---> Applications ---> luci App-SS-R-PLUS ---> new Versiong the Include SS # SS new agency
luCI ---> Applications --- >luci-app-SS R-plus ---> Include v2 Swiss transparent proxy #
-------------------------------------------------- -----------------------------------------
LuCI ---> Applications --- > luci-app-syncdial # allocate more virtual NICs (formerly macvlan)
luCI ---> Applications ---> luci-App-unblockmusic # to unlock the Netease cloud gray songs
luCI ---> Applications ---> luci- app- upnp # the UPnP universal Plug and Play (Auto port forwarding)
luCI ---> the Applications ---> luci-App-vlmcsd #KMS server provided
luCI ---> Applications ---> luci- app-vsftpd #FTP server
luCI ---> Applications ---> luci- app-wifischedule #WiFi plan
luCI ---> Applications ---> luci- app-wol #WOL WOL
luCI ---> Applications ---> luci- app -wrtbwmon # Real-time traffic monitoring
luCI ---> Applications ---> luci- app-xlnetacc # Thunder QuickBird
luCI ---> Applications --->luci-app-zerotier within #ZeroTier network penetration
Extra packages ---> ipv6helper # ipv6 support

The following are all:
---------------------------------------------- -------------------------------------------
LuCI ---> Applications - -> luci-app-accesscontrol # access-time control
luCI ---> Applications ---> luci- app-adblock #ADB ad filtering
luCI ---> Applications ---> luci- app-adbyby-plus # ad masters shield + Plus
luCI ---> Applications ---> luci-App-adbyby # ad filtering guru (already abandoned)
luCI ---> Applications ---> luci-App-adkill # ad filtering (already abandoned)
luCI ---> Applications ---> luci-app -advanced-reboot #Linksys senior restart
luCI ---> Applications ---> luci- app-ahcp # support AHCPd
luCI ---> Applications ---> luci- app-aliddns # Ali DDNS client (has been abandoned, integrated into the DDNS)
luCI ---> Applications ---> luci-App-Download aMule #aMule tool
luCI ---> Applications --->luci-app-aria2 # Aria2 download tool
LuCI ---> Applications ---> luci- app-arpbind # IP / MAC binding
LuCI ---> Applications ---> luci- app-asterisk # supports Asterisk telephony server
LuCI ---> Applications --- > luci-app-attendedsysupgrade # firmware upgrade of related
luCI ---> Applications ---> luci- app-autoreboot # support plans to restart
luCI ---> Applications ---> luci- app-baidupcs-web # Baidu network disk management
luCI ---> Applications ---> luci- app-bcp38 # bCP38 inlet filter network (uncertain)
luCI ---> the Applications ---> luci-App-bird4 #Bird. 4 (unknown)
luCI - -> Applications ---> luci-app -bird6 #Bird 6 ( unknown)
luCI ---> Applications ---> luci- app -bmx6 # BMX6 routing protocol
luCI ---> Applications ---> luci- app -bmx7 # BMX7 routing protocol
luCI ---> Applications ---> luci- app-caldav # contacts (already abandoned)
luCI ---> Applications --->luci-app-cjdns # encryption IPV6 network-related
LuCI ---> Applications ---> luci- app-clamav #ClamAV antivirus software
LuCI ---> Applications ---> luci- app-commands #Shell command module
LuCI ---> Applications ---> luci- app-cshark #CloudShark capture tool
luCI ---> Applications ---> luci- app-ddns # dynamic DNS DNS (DDNS client integrated Ali)
luCI ---> Applications ---> luci-App-diag-Core #core diagnostic tools
luCI ---> Applications ---> luci- app-dnscrypt-proxy #DNSCrypt resolve DNS poisoning
luCI ---> Applications ---> luci- app-dnsforwarder #DNSForwarder DNS anti-pollution
luCI --- > the Applications ---> luci-App-DNSPod #DNSPod
luCI ---> the Applications ---> luci-App-Docker #Docker container

luCI ---> Applications ---> luci- app-dump1090 # aviation radio frequency (not sure)
luCI ---> Applications ---> luci-App-dynapoint #DynaPoint (unknown)
LuCI ---> Applications ---> luci- app-e2guardian #Web content filters
LuCI ---> Applications ---> luci- app-familycloud # family cloud disk
LuCI ---> Applications ---> luci -app-filetransfer # file transfer (ipk be installed web packages)
luCI ---> --- the Applications> App-firewall-luci # add firewall
luCI ---> Applications ---> luci- app-flowoffload #Turbo ACC network acceleration (integrated the FLOW, the BBR, the NAT, the DNS .. *
luCI ---> the Applications ---> luci-App-Freifunk-component diagnostics diagnostics #freifunk (unknown)
luCI ---> the Applications ---> luci- app-freifunk-policyrouting #freifunk components PBR (unknown)
luCI ---> Applications ---> luci-App Widgets #freifunk-Freifunk-component index (unknown)
luCI ---> Applications ---> luci-App network penetration within -frpc # Frp
luCI ---> Applications ---> luci-App-fwknopd #Firewall Knock Operator server
LuCI ---> Applications ---> luci- app-guest-wifi #WiFi guest network
LuCI ---> Applications ---> luci- app-gfwlist #GFW list of domain names (already abandoned)
LuCI ---> Applications ---> luci-app-haproxy- tcp #HAProxy load balancing - tCP
luCI ---> Applications ---> luci- app -hd-IDLE # HDD hibernation
luCI ---> Applications ---> luci- app -hnet #Homenet Status home network control protocol
luCI ---> Applications ---> luci- app-ipsec-virtuald #virtual server the IPSec
luCI ---> the Applications ---> luci-App-channel cloud can kodexplorer #KOD private network disk
luCI ---> Applications ---> luci- app-kooldns #virtual server ddns alternatives (already abandoned)
luCI ---> Applications ---> luci-App-koolproxy #KP to advertising (already abandoned )
luCI ---> Applications ---> luci-App-LXC #LXC container management
luCI ---> Applications ---> luci- app-meshwizard # network Setup Wizard
LuCI ---> Applications ---> luci- app-minidlna # fully compatible DLNA / UPnP-AV client server software
LuCI ---> Applications ---> # compatible luci-app-mjpg-streamer Linux -UVC of camera program
luCI ---> Applications ---> luci- app-mmc-over-gpio # added SD card interface (already abandoned)
luCI ---> Applications ---> luci-App-multiwan # allocate more virtual NIC (has been abandoned, moved syncdial)
luCI ---> Applications ---> luci-App-MWAN #MWAN load balancing (already abandoned)
luCI ---> Applications ---> luci-App-mwan3 # mWAN3 load balanced
luCI ---> Applications ---> luci- app-mwan3helper # MWAN3 shunt assistant
luCI ---> Applications ---> luci- app-n2n_v2 # N2N N2N v2 virtual network penetration service
luCI ---> Applications ---> luci-app-netdata #Netdata real-time monitoring (chart)
luCI ---> Applications ---> luci-App-NFT-qos #QOS flow control Nftables version (already abandoned)
luCI --->Applications ---> luci-app-ngrokc #Ngrok network penetration (already abandoned)
LuCI ---> Applications ---> luci- app-nlbwmon # Network Bandwidth Monitor
LuCI ---> Applications ---> luci- app-noddos #NodDOS Clients prevent DDoS attacks
LuCI ---> Applications --- > within luci-app-nps # network through the NPS

luCI ---> Applications ---> luci-App-NTPC #NTP time synchronization server
luCI ---> Applications ---> luci- app-ocserv #OpenConnect virtual service
luCI ---> Applications ---> luci- app-olsr #OLSR configuration and status module
luCI ---> Applications ---> luci- app-olsr-services #OLSR server
luCI ---> Applications - -> luci-app-olsr- viz #OLSR visualization
luCI ---> Applications ---> luci- app-openvirtual #Openvirtual client
luCI ---> Applications ---> luci- app-openvirtual-server # easy Openvirtual use the UI-server Web
luCI ---> Applications ---> luci-App-oscam #OSCAM server (already abandoned)
LuCI ---> Applications ---> luci- app-p910nd # print server module
LuCI ---> Applications ---> luci- app-pagekitec within #Pagekite network through client
LuCI ---> Applications - -> luci-app-polipo #Polipo agent (is a small, fast web caching proxy)
luCI ---> Applications ---> luci-App-PPPoE Relay #PPPoE NAT-penetrating point to point protocol (PPP)
luCI - -> Applications ---> luci-app -p pt p-server #virtual server PPTP
luCI ---> the Applications ---> # Privoxy Privoxy luci-App-network proxy (cache with no filter)
luCI --- > Applications ---> luci-app- qbittorrent #BT download tool (qBittorrent)
luCI ---> Applications ---> # qos luci-App-flow quality of service (QoS) flow control
luCI ---> Applications - -> luci-app-radicale # CalDAV / CardDAV sync tool
luCI ---> Applications ---> luci- app-ramfree # free up memory
LuCI ---> Applications ---> luci- app-rp-pppoe-server #Roaring Penguin PPPoE Server server
LuCI ---> Applications ---> luci- app-samba # network share (Samba)
LuCI --- > Applications ---> luci-app- samba4 # network share (samba4)
luCI ---> Applications ---> luci-App-SFE #Turbo the ACC network accelerated (has been abandoned, moved flowoffload)
luCI ---> Applications ---> luci-app-ss #SS Tian towards the Internet (already abandoned)
luCI ---> Applications ---> luci-App-SS-Libes # SS-libev server
luCI ---> Applications - -> luci-app-shairplay # supports AirPlay function
luCI ---> Applications ---> luci- app-siitwizard #SIIT -Wizzard configuration Wizard SIIT
luCI ---> Applications ---> the Simple-luci-App-Adblock # simple ad-blocking
luCI ---> Applications ---> luci- app-softethervirtual ** #SoftEther virtual server NAT Traversal
LuCI ---> Applications ---> luci- app-splash # Client-Splash is a hotspot authentication system wireless MESH network
LuCI ---> Applications ---> luci- app-sqm # intelligent traffic management queue (QOS )
luCI ---> Applications ---> luci-App-#Squid Squid proxy server
------------------------------ -------------------------------------------------- -----------
luCI ---> the Applications ---> luci the SS-App-PLUS-R & lt #SS towards Internet R & lt Tian + Plus
luCI ---> the Applications ---> luci-APP- SS R-plus ---> Include ss new Versiong # SS new proxy
luCI ---> Applications ---> luci- app-SS R-plus ---> Include v2 # transparent proxy Swiss
luCI ---> Applications ---> luci-app-SS R -plus ---> Include Kcptun #Kcptun agent
luCI ---> Applications ---> luci- app-SS R-plus ---> Include s-sR Server #SS R server
LuCI ---> Applications ---> luci- app-SS R-plus ---> Include s-sR Socks and Tunnel #SS R Agent
----------------- -------------------------------------------------- ------------------------
luCI ---> Applications ---> App luci-R-SS-R-#SS Pro Pro (has been abandoned )
luCI ---> Applications ---> luci-App-rserver-SS # S-sR Python Python server
luCI ---> Applications ---> luci- app-statistics # traffic monitoring tool
luCI ---> Applications ---> luci-app-syncdial # allocate more virtual NICs (formerly macvlan)
luCI ---> Applications ---> luci-App-tinyproxy #Tinyproxy is HTTP (S) proxy server
luCI ---> Applications - -> luci-app-transmission #BT download tool
luCI ---> Applications ---> luci- app-travelmate # travel router
luCI ---> Applications ---> luci- app-ttyd # web terminal command line
LuCI ---> Applications ---> luci- app-udpxy #udpxy do multicast server
LuCI ---> Applications ---> luci- app-uhttpd #uHTTPd Web server
LuCI ---> Applications ---> luci-app-unblockmusic # to unlock the Netease cloud gray songs
luCI ---> Applications ---> luci- app-unbound #Unbound DNS resolver
luCI ---> Applications ---> luci- app-upnp # universal plug and Play which uses UPnP (Auto port forwarding)
luCI ---> Applications ---> luci-App-the USB-Printer #USB print server
luCI ---> Applications ---> luci- app-v2 Swiss -server # server
luCI ---> Applications ---> luci-app -v2 Swiss -pro # transparent proxy (already discarded, R & lt integrated the SS)
luCI ---> the Applications ---> luci-App-verysync # Merak synchronization

luCI --- > Applications ---> luci-app- vlmcsd #KMS server provided
luCI ---> Applications ---> luci- app-vnstat #vnStat monitoring network (graph)
LuCI ---> Applications ---> luci- app-virtualbypass # virtual ** BypassWebUI bypass the virtual set
LuCI ---> Applications ---> luci- app-vsftpd #FTP server
LuCI ---> Applications - -> luci-app-watchcat # disconnection detection timing reboot
luCI ---> Applications ---> luci- app-webadmin #Web management page provided
luCI ---> Applications ---> luci- app-webshell # pages command line terminal (already abandoned)
luCI ---> Applications ---> luci-App-wifischedule #WiFi plan
luCI ---> Applications ---> luci- app-wireguard #virtual server wireGuard state
luCI - -> Applications ---> luci-app -wireless-regdb #WiFi wireless
luCI ---> Applications ---> luci- app-wol #WOL WOL
luCI ---> Applications ---> luci- app- wrtbwmon # Real-time traffic monitoring
luCI ---> Applications ---> luci- app-xlnetacc # Thunder QuickBird
LuCI ---> Applications ---> within luci-app-zerotier #ZeroTier network penetration
----------------------------- -------------------------------------------------- --------------------
support iPv6:
Extra Packages Standard Package ---> ipv6helper (after selecting the next few selected automatically)
Network ---> odhcp6c
Network - -> odhcpd-ipv6only
luCI ---> Protocols ---> luci-proto-ipv6
luCI ---> Protocols ---> luci-proto-ppp

Utilities ---> open-vm-tools # open for VMware VM Tools

Guess you like

Origin www.cnblogs.com/silencehuan/p/12056381.html