Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| user:ja [2021/10/31 04:01] – Edited wording, layout and info. ja | user:ja [2021/11/26 00:37] – Table tested routers modified and message added. ja | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== My OpenWrt firmware image build guide ====== | ====== My OpenWrt firmware image build guide ====== | ||
| - | <hidden onHidden=" | + | <WRAP important> |
| - | ^[[toh: | + | This method is NOT OFFICIALLY supported. |
| - | |[[toh:belkin: | + | A native |
| - | |[[toh:d-link:dir-615|D-Link DIR-615]] rev D3 | + | </WRAP> |
| - | |::: |21.02.0 |" | + | |
| - | |[[toh: | + | |
| - | |[[toh: | + | |
| - | |::: |21.02.0 |" | + | |
| - | </hidden> | + | |
| Build guide mainly based on [[https:// | Build guide mainly based on [[https:// | ||
| + | |||
| ===== 1. Prerequisites ===== | ===== 1. Prerequisites ===== | ||
| [[faq: | [[faq: | ||
| Tested on [[docs: | Tested on [[docs: | ||
| <hidden onHidden=" | <hidden onHidden=" | ||
| - | See Windows [[https:// | + | See Windows [[wp>Ver_(command)|version]] information with [[wp>Cmd.exe|cmd.exe]] command: |
| < | < | ||
| ver | ver | ||
| Line 24: | Line 20: | ||
| </ | </ | ||
| :!: Mind issue with path! | :!: Mind issue with path! | ||
| + | |||
| ==== 1.1 Download package information ==== | ==== 1.1 Download package information ==== | ||
| Debian terminal command: | Debian terminal command: | ||
| Line 49: | Line 46: | ||
| :?: What about "sudo apt dist-upgrade"? | :?: What about "sudo apt dist-upgrade"? | ||
| </ | </ | ||
| + | |||
| ==== 1.2 Install required dependencies ==== | ==== 1.2 Install required dependencies ==== | ||
| See [[docs: | See [[docs: | ||
| Line 61: | Line 59: | ||
| exit | exit | ||
| </ | </ | ||
| + | |||
| ===== 2. Get OpenWrt source code ===== | ===== 2. Get OpenWrt source code ===== | ||
| ==== 2.1 Clone repository ==== | ==== 2.1 Clone repository ==== | ||
| - | <columns 100% - -> | + | <columns 100% 50% -> |
| For OpenWrt 19.07 Debian terminal command: | For OpenWrt 19.07 Debian terminal command: | ||
| < | < | ||
| Line 84: | Line 83: | ||
| '' | '' | ||
| </ | </ | ||
| + | |||
| ==== 2.2 Change working directory ==== | ==== 2.2 Change working directory ==== | ||
| - | <columns 100% - -> | + | <columns 100% 50% -> |
| For OpenWrt 19.07 Debian terminal command: | For OpenWrt 19.07 Debian terminal command: | ||
| < | < | ||
| Line 103: | Line 103: | ||
| '' | '' | ||
| </ | </ | ||
| - | ==== 2.3 Select | + | |
| - | <columns 100% - -> | + | ==== 2.3 Update local branch==== |
| + | If there is a new release in the branch, update local branch repository with Debian terminal command: | ||
| + | < | ||
| + | git pull | ||
| + | </ | ||
| + | <hidden onHidden=" | ||
| + | See [[https:// | ||
| + | </ | ||
| + | |||
| + | ==== 2.4 Select version | ||
| + | <columns 100% 50% -> | ||
| For OpenWrt 19.07 Debian terminal command: | For OpenWrt 19.07 Debian terminal command: | ||
| < | < | ||
| Line 135: | Line 145: | ||
| See [[https:// | See [[https:// | ||
| </ | </ | ||
| - | ==== 2.4 Update and install feeds ==== | + | |
| + | ==== 2.5 Update and install feeds ==== | ||
| Debian terminal command: | Debian terminal command: | ||
| < | < | ||
| Line 159: | Line 170: | ||
| '' | '' | ||
| </ | </ | ||
| + | |||
| ===== 3. OpenWrt Configuration ===== | ===== 3. OpenWrt Configuration ===== | ||
| Debian terminal command: | Debian terminal command: | ||
| Line 164: | Line 176: | ||
| make menuconfig | make menuconfig | ||
| </ | </ | ||
| + | |||
| ==== 3.1 Configure target system ==== | ==== 3.1 Configure target system ==== | ||
| For router hardware select corresponding values in menu (:!: link to router hardware table): | For router hardware select corresponding values in menu (:!: link to router hardware table): | ||
| Line 169: | Line 182: | ||
| * “Subtarget” ⇒ “Select” ⇒ < | * “Subtarget” ⇒ “Select” ⇒ < | ||
| * “Target Profile” ⇒ “Select” ⇒ <target profile> ⇒ “Select” | * “Target Profile” ⇒ “Select” ⇒ <target profile> ⇒ “Select” | ||
| + | <hidden onHidden=" | ||
| + | ^[[toh: | ||
| + | |[[toh: | ||
| + | |[[toh: | ||
| + | |::: |21.02.0 |"bin is too big: 3932975 > 3866624" | ||
| + | |[[toh: | ||
| + | |[[toh: | ||
| + | |::: |21.02.0 |" | ||
| + | |[[toh: | ||
| + | </ | ||
| + | |||
| ==== 3.2 Options ==== | ==== 3.2 Options ==== | ||
| To add “LuCI”: | To add “LuCI”: | ||
| Line 175: | Line 199: | ||
| * " | * " | ||
| To remove " | To remove " | ||
| + | <columns 100% 50% -> | ||
| + | For OpenWrt 19.07: | ||
| * " | * " | ||
| + | < | ||
| + | For OpenWrt 21.02: | ||
| + | * " | ||
| + | </ | ||
| To add " | To add " | ||
| + | <columns 100% 50% -> | ||
| + | For OpenWrt 19.07: | ||
| * " | * " | ||
| + | < | ||
| + | For OpenWrt 21.02: | ||
| + | * " | ||
| + | </ | ||
| + | |||
| ==== 3.3 Exit configuration ==== | ==== 3.3 Exit configuration ==== | ||
| To exit OpenWrt Configuration and save target with options settings do following: | To exit OpenWrt Configuration and save target with options settings do following: | ||
| * “Exit” ⇒ " | * “Exit” ⇒ " | ||
| + | |||
| ===== 4. Build image ===== | ===== 4. Build image ===== | ||
| Debian terminal command: | Debian terminal command: | ||