Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
fr:toh:mikrotik:common [2020/11/30 20:33] – created bikepunkfr:toh:mikrotik:common [2022/11/12 19:20] – [Downloading OpenWrt images for Mikrotik RouterBoards] remove outdated info f00b4r0
Line 47: Line 47:
  
 The latest OpenWrt images can be downloaded from [[https://downloads.openwrt.org/]]\\  The latest OpenWrt images can be downloaded from [[https://downloads.openwrt.org/]]\\ 
-Most OpenWrt supported RouterBoards are Atheros-based hardware: in that case, after selecting a release, go to the targets/ar71xx/mikrotik folder to see a list of all files available for that release.\\   
-For example, to download the 19.07.4 OpenWrt images for the (Atheros-based) RB450G, download from [[https://downloads.openwrt.org/releases/19.07.4/targets/ar71xx/mikrotik/]] 
-  
- 
-After the commit of [[https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=9db9072d6767e5910e01b8962171c89359ab7a14|Introduce sysupgrade + 64MB/Large NAND sysupgrade images]], there is no longer a tar.gz image, but instead there are multiple sysupgrade .bin images, only one of which will be used for any particular RouterBoard model.\\  
-This page has been updated to reflect this simplifying change used in OpenWrt Version 18 for the Mikrotik RouterBoards. 
- 
 There will be just two images needed to install OpenWrt for any particular Mikrotik RouterBoard hardware platform: There will be just two images needed to install OpenWrt for any particular Mikrotik RouterBoard hardware platform:
   - The specific initramfs image to be downloaded into RAM during an initial netboot of the RouterBoard.   - The specific initramfs image to be downloaded into RAM during an initial netboot of the RouterBoard.
-  - The specific sysupgrade .bin image to be flashed into the Mikrotik router using the LuCI web interface.  The correct sysupgrade .bin file must be selected for the: +  - The specific sysupgrade .bin image to be flashed into the Mikrotik router using the LuCI web interface or the sysupgrade command.
-    * Type of WiFi (AC vs. non-AC) installed on the RouterBoard. The 802.11 a/b/g/n WiFi products are 'non-AC': only the 802.11 AC WiFi products are type 'AC'+
-    * Size and type (NAND vs. NOR) of flash on the RouterBoard +
  
 <WRAP leftalign round info 60%> <WRAP leftalign round info 60%>
Line 66: Line 57:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
-  
-The following table explains the general convention of initramfs and sysupgrade file names, but does have exceptions. For example, for the nand-large images, it is quite model-specific whether you use the initramfs.elf or initramfs-lzma.elf image.\\  
-The above [[toh:views:toh_fwdownload?datasrt=model&dataflt%5BBrand%2A~%5D=mikrotik|link Table of Hardware - Firmware Downloads]], or the wiki for your specific RouterBoard, are the most accurate resources for the correct file names. 
  
-^   Flash Size            sysupgrade .bin File Naming Convention                       ^^^  File Names to Download from OpenWrt.org (Please Verify [[toh:views:toh_fwdownload?datasrt=model&dataflt%5BBrand%2A~%5D=mikrotik|At This Link]])  ^^   RouterBoard Type                 ^ 
-^     :::                ^  Image Name Prefix=>  ^  AC Wifi?=>  ^  Image Name Suffix=>     ^ sysupgrade .bin File Name                    initramfs File Name     :::                                                                ^ 
-| 16 MB NOR              | rb-nor-flash-16M      |  -ac-        | squashfs-sysupgrade.bin  | rb-nor-flash-16M-ac-squashfs-sysupgrade.bin | rb-nor-flash-16M-ac-initramfs-kernel.bin                               | RouterBoard with 16 MB NOR (includes AC WiFi)                    | 
-| :::                    | :::                    -           | :::                      | rb-nor-flash-16M-squashfs-sysupgrade.bin    | rb-nor-flash-16M-initramfs-kernel.bin                                  | RouterBoard with 16 MB NOR (includes a/b/g/n WiFi)               | 
-| 64 MB NAND             | nand-64m              |  -           | :::                      | nand-64m-squashfs-sysupgrade.bin            | vmlinux-initramfs.elf                                                  | RouterBoard with 64 MB NAND (includes a/b/g/n WiFi)              | 
-|128 MB NAND (or larger) | nand-large            |  -ac-        | :::                      | nand-large-ac-squashfs-sysupgrade.bin       | vmlinux-initramfs.elf                                                  | RouterBoard with 128 MB NAND (or larger) (includes AC WiFi)      | 
-|:::                     | :::                    -           | :::                      | nand-large-squashfs-sysupgrade.bin          | vmlinux-initramfs.elf or vmlinux-initramfs-lzma.elf (model-dependent)  | RouterBoard with 128 MB NAND (or larger) (includes a/b/g/n WiFi) | 
- 
-Refer to the OpenWrt [[toh:views:toh_available_864|Table Of Hardware-Ideal]] to determine the type and size of flash for your particular RouterBoard.  The type of WiFi may depend on optional WiFi cards you may have installed in your RouterBoard. 
- 
-<WRAP leftalign round important 60%> 
-If you add packages to your installed version of OpenWrt (via opkg or LuCI), be careful to use the packages that are compiled specifically for the version of sysupgrade .bin you have running on your RouterBoard. 
-For example, if you decide to run nightly snapshots, be aware you'll want to also install and run the packages from that specific snapshot - each time you update the snapshot, you'll want to update both the sysupgrade .bin AND the packages you are using. 
-</WRAP> 
- 
-<WRAP leftalign round important 60%> 
-If you are using a snapshot (e.g. for the RB750Gr3), there is no LuCI contained. The flashing can still be done using SSH as outlined in [[docs:guide-user:installation:sysupgrade.cli|Upgrading OpenWrt firmware via CLI]]. 
-</WRAP> 
 ===== Netboot of OpenWrt Uses DHCP/BOOTP/TFTP ===== ===== Netboot of OpenWrt Uses DHCP/BOOTP/TFTP =====
  
Line 340: Line 310:
  
 ===== Step-By-Step OpenWrt Installation Processes on Routerboard ===== ===== Step-By-Step OpenWrt Installation Processes on Routerboard =====
-==== With a Linux and other unix-like OS ==== +==== Avec un système d'exploitation linux ou autre unix-like ==== 
-  * [[#saving_mikrotik_routerboard_license_key_without_using_winbox|Save the license key.]] +  * [[#saving_mikrotik_routerboard_license_key_without_using_winbox|Sauvegarder la clé de licence de RouteurOS.]] 
-  * Download [[#downloading_openwrt_images_for_mikrotik_routerboards|Download OpenWrt images]] (initramfs and sysupgrade) +  * [[#downloading_openwrt_images_for_mikrotik_routerboards|Télécharger les images OpenWrt]] (initramfs and sysupgrade) 
-  * Connect to web interface http://192.168.88.1 +  * Dans un navigateur web, ouvir http://192.168.88.1 
-  * Go to "System"-"Routerboard" then "Settings". \\ At the "boot device" line Select "try ethernet-if fail-nand". \\ At the "Boot Protocol" line Select "DHCP". \\ Tick the  "Force Backup Booter" box. \\ Click "Apply"+  * Aller dans "System"-"Routerboard" puis onglet "Settings". \\ À la ligne "boot device"Selectionner "try ethernet-if fail-nand". \\ À la ligne "Boot Protocol"Selectionner "DHCP". \\ Cocher "Force Backup Booter". \\ Cliquer "Apply"
-  * Go to "System"-"Shutdown" \\ Click "Shutdown"  +  * Aller dans "System"-"Shutdown" \\ Cliquer sur "Shutdown"  
-  * Unplug power+  * Débrancher l'alimentation
-  * Create the following script using a text editor such as vivi ~/tftp/loader.sh+  * Avec un éditeur de texte, créer le script suivant vim ~/tftp/loader.sh
  
-Note: Don't forget to change USER, IFNAME, IP/DHCP IP-range and file name/folder path for your needs and replace openwrt-19.07-*-initramfs-* with the appropriate filename+Note : Ne pas oublier de changer USER, IFNAME, IP/DHCP IP-range et le nom du nom du dossier qui correspondent à vos besoins. Remplacer openwrt-19.07-*-initramfs-* avec le nom de fichier approprié
  
   #!/bin/bash   #!/bin/bash
Line 369: Line 339:
   --tftp-root=$(pwd)   --tftp-root=$(pwd)
  
-  * Copy openwrt-19.07-*-initramfs-* file to the folder where the script is located+  * Copier le fichier openwrt-19.07-*-initramfs-* dans le même dossier que le script. 
-  * Make the script executable +  * Rendre le scipt exécutable :
  
   $ chmod +x loader.sh   $ chmod +x loader.sh
  
-  * Run script loader.sh as root+  * Lancer le script loader.sh en tant que root
  
   # ./loader.sh   # ./loader.sh
  
-  * Plug ethernet cable from DHCP/TFTP server to "WAN" portplug power cord back in+  * Brancher le câble ethernet entre le serveur DHCP/TFTP et le port "WAN" du MikroTikpuis rebrancher l'alimentation du Mikrotik
-  * In the terminal you ran the script fromwait until you read "dnsmasq-tftp: sent /path/to/file" +  * Dans le terminal dans lequel le script a été lanc"attendre jusqu'à ce que la ligne "dnsmasq-tftp: sent /path/to/file" apparaisse. 
-  * Kill the script (Ctrl + c).+  * Arrêter le script (Ctrl + c).
   * [[#Flash OpenWrt]]   * [[#Flash OpenWrt]]
-    * Connect ethernet cable from your PC with turned on DHCP client to port "2", "3" or "4"+    * Connecter le câble ethernet entre le PC avec un client DHCP lancé dans le port "2", "3" ou "4" du MikroTik
-    * Connect to web interface http://192.168.1.1 +    * Dans un navigateur web, ouvrir http://192.168.1.1 
-    * Check correct functioning of OpenWrt. +    * Vérifier que OpenWrt fonctionne bien
-    * Go to System->Backup/Flash Firmware +    * Aller dans System->Backup/Flash Firmware 
-    * Click on 'Choose File' under 'Flash new firmware image'.  Select the sysupgrade .bin file you previously downloaded for your RouterBoard +    * Cliquer sur 'Choose File' sous 'Flash new firmware image'.  Selectionner le fichier *sysupgrade.bin téléchargé précedement. 
-    * Click on 'Flash image'.  This will flash the sysupgrade .bin file into your RouterBoard and reboot it +    * Cliquer sur 'Flash image'.  Cela va flasher le fichier sysupgrade.bin dans le MikroTik et le rebooter. 
-  * Congratulationsyou installed OpenWrt on your MikroTik RouterBoard.+  * Félicitations, OpenWrt est installé dans le RouterBoard MikroTik !
  
 ==== using SSH instead on LuCI ==== ==== using SSH instead on LuCI ====
Line 435: Line 405:
 If your model is not yet supported by trunk, you need to download compile and patch OpenWrt sources. Always check if the model specific wiki instructions could already be obsolete and the necessary patches have already been integrated before embarking into compilation. If your model is not yet supported by trunk, you need to download compile and patch OpenWrt sources. Always check if the model specific wiki instructions could already be obsolete and the necessary patches have already been integrated before embarking into compilation.
  
-Full instructions are at [[docs:guide-developer:build-system:install-buildsystem|Build system – Installation]]. The following is a mostly a cheat sheet specifically for routerboards.+Full instructions are at [[docs:guide-developer:toolchain:install-buildsystem|Build system – Installation]]. The following is a mostly a cheat sheet specifically for routerboards.
  
 OpenWrt sources are available via two release management systems, svn and git. If the model specific instructions specified one, use that, otherwise use git (faster). OpenWrt sources are available via two release management systems, svn and git. If the model specific instructions specified one, use that, otherwise use git (faster).
  • Last modified: 2023/06/15 15:38
  • by bikepunk