Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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. jauser: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="Click to display more info about tested router hardware and relevant build information." onVisible="Click to hide table with tested router hardware and relevant build information."+<WRAP important
-^[[toh:start|Hardware]]                                 ^Branch  ^Target System        ^Subtarget                  ^Target Profile        ^Target directory ^ +This method is NOT OFFICIALLY supported. 
-|[[toh:belkin:f5d8235-4|Belkin F5D8235-4]] v1           |21.02.0 |MediaTek Ralink MIPS |RT288x based boards        |Belkin F5D8235 V1     |ramips\rt288x    | +A native [[docs:guide-developer:build-system:install-buildsystem|GNU/Linux environment]] is recommended
-|[[toh:d-link:dir-615|D-Link DIR-615]] rev D3           |19.07.8 |MediaTek Ralink MIPS |RT3x5x/RT5350 based boards |D-Link DIR-615 D      |ramips\rt305x    | +</WRAP>
-|:::                                                    |21.02.0 |"bin is too big: 3932975 > 3866624"                                                    |||| +
-|[[toh:tp-link:archer_mr200|TP-Link Archer MR200]] v1.0 |?       |?                    |?                          |?                     |?                | +
-|[[toh:tp-link:tl-wa730re|TP-Link TL-WA730RE]] v1       |19.07.8 |Atheros ATH79 (DTS)  |Devices with small flash   |TP-LINK TL-WA730RE v1 |ath79\tiny       | +
-|:::                                                    |21.02.0 |"images are too big by 306444 bytes"                                                   |||| +
-</hidden>+
 Build guide mainly based on [[https://openwrt.org/docs/guide-developer/quickstart-build-images?rev=1618756598|an old revision of OpenWrt document "Quick Image Building Guide"]]. Build guide mainly based on [[https://openwrt.org/docs/guide-developer/quickstart-build-images?rev=1618756598|an old revision of OpenWrt document "Quick Image Building Guide"]].
 +
 ===== 1. Prerequisites ===== ===== 1. Prerequisites =====
 [[faq:what_system_can_i_build_openwrt_on|A suitable case-sensitive file system]].\\ [[faq:what_system_can_i_build_openwrt_on|A suitable case-sensitive file system]].\\
 Tested on [[docs:guide-developer:toolchain:wsl|WSL2 (Windows Version 10.0.19043.1202)]] with [[https://www.microsoft.com/en-us/p/debian/9msvkqc78pk6|Debian GNU/Linux 10 (buster)]]. Tested on [[docs:guide-developer:toolchain:wsl|WSL2 (Windows Version 10.0.19043.1202)]] with [[https://www.microsoft.com/en-us/p/debian/9msvkqc78pk6|Debian GNU/Linux 10 (buster)]].
 <hidden onHidden="Click to display more info" onVisible="Click to hide the extra info"> <hidden onHidden="Click to display more info" onVisible="Click to hide the extra info">
-See Windows [[https://en.wikipedia.org/wiki/en:Ver_(command)|version]] information with [[https://en.wikipedia.org/wiki/en:Cmd.exe|cmd.exe]] command:+See Windows [[wp>Ver_(command)|version]] information with [[wp>Cmd.exe|cmd.exe]] command:
 <code> <code>
 ver ver
Line 24: Line 20:
 </hidden> </hidden>
 :!: 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"?
 </hidden> </hidden>
 +
 ==== 1.2 Install required dependencies ==== ==== 1.2 Install required dependencies ====
 See [[docs:guide-developer:toolchain:install-buildsystem#examples_of_package_installations|examples of package installations]].\\ See [[docs:guide-developer:toolchain:install-buildsystem#examples_of_package_installations|examples of package installations]].\\
Line 61: Line 59:
 exit exit
 </code> </code>
 +
 ===== 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:
 <code> <code>
Line 84: Line 83:
 ''fatal: destination path 'openwrt_21.02' already exists and is not an empty directory.'' ''fatal: destination path 'openwrt_21.02' already exists and is not an empty directory.''
 </hidden> </hidden>
 +
 ==== 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:
 <code> <code>
Line 103: Line 103:
 ''-bash: cd: openwrt_21.02: No such file or directory'' ''-bash: cd: openwrt_21.02: No such file or directory''
 </hidden> </hidden>
-==== 2.3 Select branch ==== + 
-<columns 100% ->+==== 2.3 Update local branch==== 
 +If there is a new release in the branch, update local branch repository with Debian terminal command: 
 +<code> 
 +git pull 
 +</code> 
 +<hidden onHidden="Click to display more info" onVisible="Click to hide the extra info"> 
 +See [[https://manpages.debian.org/git-man/git-pull.html|Debian git pull manpage]]. 
 +</hidden> 
 + 
 +==== 2.4 Select version ==== 
 +<columns 100% 50% ->
 For OpenWrt 19.07 Debian terminal command: For OpenWrt 19.07 Debian terminal command:
 <code> <code>
Line 135: Line 145:
 See [[https://manpages.debian.org/git-man/git-status.html|Debian git status manpage]]. See [[https://manpages.debian.org/git-man/git-status.html|Debian git status manpage]].
 </hidden> </hidden>
-==== 2.Update and install feeds ====+ 
 +==== 2.Update and install feeds ====
 Debian terminal command: Debian terminal command:
 <code> <code>
Line 159: Line 170:
 ''-bash: ./scripts/feeds: No such file or directory'' ''-bash: ./scripts/feeds: No such file or directory''
 </hidden> </hidden>
 +
 ===== 3. OpenWrt Configuration ===== ===== 3. OpenWrt Configuration =====
 Debian terminal command: Debian terminal command:
Line 164: Line 176:
 make menuconfig make menuconfig
 </code> </code>
 +
 ==== 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”   * “Subtarget” ⇒ “Select” ⇒ <subtarget> ⇒ “Select”
   * “Target Profile” ⇒ “Select” ⇒ <target profile> ⇒ “Select”   * “Target Profile” ⇒ “Select” ⇒ <target profile> ⇒ “Select”
 +<hidden onHidden="Click to display more info about tested router hardware and relevant firmware image build information." onVisible="Click to hide table with tested router hardware and relevant build information.">
 +^[[toh:start|Hardware]]                                 ^Branch  ^Target System        ^Subtarget                  ^Target Profile        ^Target directory ^
 +|[[toh:belkin:f5d8235-4|Belkin F5D8235-4]] v1           |21.02.0 |MediaTek Ralink MIPS |RT288x based boards        |Belkin F5D8235 V1     |ramips\rt288x    |
 +|[[toh:d-link:dir-615|D-Link DIR-615]] rev D3           |19.07.8 |MediaTek Ralink MIPS |RT3x5x/RT5350 based boards |D-Link DIR-615 D      |ramips\rt305x    |
 +|:::                                                    |21.02.0 |"bin is too big: 3932975 > 3866624"                                                    ||||
 +|[[toh:tp-link:archer_mr200|TP-Link Archer MR200]] v1.0 |?       |?                    |?                          |?                     |?                |
 +|[[toh:tp-link:tl-wa730re|TP-Link TL-WA730RE]] v1       |19.07.8 |Atheros ATH79 (DTS)  |Devices with small flash   |TP-LINK TL-WA730RE v1 |ath79\tiny       |
 +|:::                                                    |21.02.0 |"images are too big by 306444 bytes"                                                   ||||
 +|[[toh:ubiquiti:unifi|Ubiquiti UniFi AP-LR]]            |21.02.1 |Atheros ATH79        |Generic                    |Ubiquiti UniFi        |ath79\generic    |
 +</hidden>
 +
 ==== 3.2 Options ==== ==== 3.2 Options ====
 To add “LuCI”:\\ To add “LuCI”:\\
Line 175: Line 199:
   * "Network" ⇒ “Select” ⇒ on “ppp” press <N> to exclude (= “ ” excluded) ⇒ “Exit”   * "Network" ⇒ “Select” ⇒ on “ppp” press <N> to exclude (= “ ” excluded) ⇒ “Exit”
 To remove "wpad-mini" To remove "wpad-mini"
 +<columns 100% 50% ->
 +For OpenWrt 19.07:
   * "Network" ⇒ “Select” ⇒ on "wpad-mini" press <N> to exclude (= “ ” excluded) ⇒ “Exit”   * "Network" ⇒ “Select” ⇒ on "wpad-mini" press <N> to exclude (= “ ” excluded) ⇒ “Exit”
 +<newcolumn>
 +For OpenWrt 21.02:
 +  * "Network" ⇒ “Select” ⇒ "WirelessAPD" ⇒ “Select” ⇒ on "wpad-basic-wolfssl" press <N> to exclude (= “ ” excluded) ⇒ “Exit” ⇒ “Exit”
 +</columns>
 To add "wpad" To add "wpad"
 +<columns 100% 50% ->
 +For OpenWrt 19.07:
   * "Network" ⇒ “Select” ⇒ on "wpad" press <Y> to include (= “*” built-in) ⇒ “Exit”   * "Network" ⇒ “Select” ⇒ on "wpad" press <Y> to include (= “*” built-in) ⇒ “Exit”
 +<newcolumn>
 +For OpenWrt 21.02:
 +  * "Network" ⇒ “Select” ⇒ "WirelessAPD" ⇒ “Select” ⇒ on "wpad" press <Y> to include (= “*” built-in) ⇒ “Exit” ⇒ “Exit”
 +</columns>
 +
 ==== 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” ⇒ "Yes"   * “Exit” ⇒ "Yes"
 +
 ===== 4. Build image ===== ===== 4. Build image =====
 Debian terminal command: Debian terminal command:
  • Last modified: 2021/11/27 12:31
  • by ja