OpenWrt Quick Start

Original Address :: https://blog.csdn.net/hongwei_1990/article/details/93791798

 

related articles

1, openWRT ____ Baidu Encyclopedia ---- https://baike.baidu.com/item/openWRT/3528947?fr=aladdin

2、OpenWrt下载----https://openwrt.org/zh/downloads

3、OpenWrt官网----https://openwrt.org/

4, openwrt what _openwrt what is the use ---- http://www.elecfans.com/emb/xitong/20171227608056.html

5, OpenWrt boot process analysis + Add custom startup script ---- http://www.eehello.com/?post=107

6, OpenWrt- from the door to the entry ---- https://blog.csdn.net/yufm/article/details/90677837

 

OpenWrt (official website www.openwrt.org) is an embedded Linux distribution, currently used on the router. It is a highly modular, highly automated embedded Linux system, has a strong network components and scalability.

OpenWrt is different from many other releases for the router (the router firmware mainstream have DD-WRT, Tomato, OpenWrt three), it is written from scratch, full-featured, easy to modify router operating system.


1, OpenWrt advantage
quickly build an application by OpenWrt platform, OpenWrt from cross-compiler, into the Linux kernel, file system and then even Bootloader are integrated together to form a SDK environment. That as many as 3,000 kinds of software packages (the number is increasing), to include the tool chain (Toolchain), to the kernel (Linux Kernel), the packages (Packages), and then the root file system (Rootfs) system as a whole, so that the user just make a simple command to quickly and easily customize the embedded system has a specific function to create firmware, greatly reducing the process of embedded software development.
Once you are familiar with these basic embedded Linux development process you are no longer limited MIPS processor and wireless router, you can try other processor, or non-wireless router embedded Linux system migration, custom fit their own application software, and the establishment of a complete embedded product.

OpenWrt's success lies in its file system is writable, developers do not need to recompile the system after each modification, and Linux systems can be like on a PC, like install some installation package with the command, without having to manually configure these We have made it more like a small Linux computer systems.


2, OpenWrt version development
OpenWrt supported platforms include: Broadcom's SoC, ARM, PowerPC, MIPS 24K R2, x86. Appeared to LuCi with Webif headed UI on a variety of software applications and update packages.

Release date code numbers
1 10.03.1 December 2011 Backfire
2 12.09 2013 Nian 4 Yue Adjustment Attitude
3 14.07 2014 Nian 10 Yue Breaker Barrier
4 15.05 Calmer 2015 Nian 9 Yue Chaos
5 15.05.1 Calmer 2016 Nian 3 Yue Chaos
6 18.06 July 2018 -

3, OpenWrt source
number of directories and files described
1 / config kept the overall system configuration file
2 / docs contains the entire description file source host, there is also the target system docs Makefile generator.
Use make -C docs / can be generated for the target system documentation
3 / feeds download management software package
default feeds have downloaded Packages Standard Package, Management, luci, routing, the Telephony
4 / Makefile the include OpenWrt many here are stored in the file name * .mk
file here is include in the Makefile, similar to library files
these files define the compilation process
5 / package store a package OpenWrt system applicable, including for each package Makefile
6 / scripts stored some scripts , using bash, Python, perl and other scripting language
compilation process, feeds for third-party document management software package in this directory is among
the build process, using a script to be unified in this directory
7 / target OpenWrt source code can be compiled binary files suitable for various platforms, each platform defines firmware and kernel compilation process in this directory
8 / toolchain package is stored in compiling cross-compilation chain
, including: binutils, gcc, libc, etc.
9 / When compiling tools, hosts need to use some tools, tools contains the command to get and compile these tools
package inside the Makefile, some also contain a patch
for each Makefile which has a $ (eval $ (call HostBuild)), suggesting that this tool is compiled for use on the host
12 Config.in can be seen in include / toplevel.mk, which is make menuconfig and associated files
13 feeds.conf.default can configure the download section Some packages tripartite address used by
10 Makefile make command at the top level directory entry file
11 rules.mk define some common Makefile variables and functions used in
14 lICENSE software license
15 README basic software Description: describes the compile software the basic process and dependent files
compiled after the first OpenWrt source, there will be some new directory:

Catalog No. Description
1 / build_dir / host software tool used to compile the host in the folder
2 /build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2 object files compiled on this target platform, including various packages and kernel files
3 / build_dir / toolchain-mipsel_24kec + dsp_gcc- 4.8-linaro_uClibc-0.9.33.2 in the folder cross compiler tool chain
4 / bin save the compiled binary file
comprising: a full bin file, all files ipk
5 / dl compiled many software used during
the beginning and download the source code is not included, but during compilation from other servers to download
is here to save the unified directory
6 / staging_dir for saving build_dir directory compiled software
so here and build_dir have the same subdirectory structure
such as: save the target platform compiled header files in the target-XXX folder, libraries
in developing our own ipk file, the compilation process, the pre-header files, dynamic link library, static libraries are to this subfolder
7 / tmp during compilation , A large number of intermediate temporary files need to be saved are here
Information 8 / logs errors during compilation, only when the compiler errors will appear

----------------
Disclaimer: This article is CSDN blogger "still waters run deep _ 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/hongwei_1990/article/details/93791798

Published 136 original articles · won praise 306 · Views 4.37 million +

Guess you like

Origin blog.csdn.net/xqhrs232/article/details/104076566