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
ru:toh:mikrotik:common [2019/05/19 16:23] – [Первоочередное: не потерайте вашу лицензию RouterOS] орфогр. grumblerru:toh:mikrotik:common [2019/05/20 18:19] – [Выбор версии OpenWrt] Убрал оставленную ранее строку оригинала grumbler
Line 5: Line 5:
 В этой стаье описаны процедуры, общие для всех моделей маршрутизаторов MikroTik. когда будете добалвять информацию, специфичную для конкретных моделей, пожалуйста избегайте дублирования с другими инструкциями. В этой стаье описаны процедуры, общие для всех моделей маршрутизаторов MikroTik. когда будете добалвять информацию, специфичную для конкретных моделей, пожалуйста избегайте дублирования с другими инструкциями.
  
-===== Описание установки OpenWrt =====+==== Описание установки OpenWrt ==== 
 + 
 +**Кратко:** 
 +  - [[#Первоочередное: не потеряйте вашу лицензию RouterOS|Сохраняем]] лицензионный ключ RouterOS и, опционально, оригинальную прошивку. 
 +  - [[#Скачиваем образ OpenWrt|Скачиваем]] нужные образы OpenWRT 
 +  - Загружаем маршрутизатор по сети для тестирования, OpenWRT ещё не установлена, но работает с образа в оперативной памяти. Проверяем работоспособность, если не нравится – ищем другую версию OpenWRT. 
 +  - Когда всё понравилось, записываем OpenWRT во флеш-память маршрутизатора и перезагружаем его. 
 +  - Настраиваем OpenWRT. 
 + 
 +**Подробнее**
  
 Все маршрутизаторы RouterBoard могут загружать OpenWrt по сети, обычно это образ initramfs .elf, иногда .bin, загружаемый по TFTP. Работающий в оперативной памяти initramfs используется для проверки работоспособности конкретной версии OpenWrt без прошивки образа в флеш-память маршрутизатора. Все маршрутизаторы RouterBoard могут загружать OpenWrt по сети, обычно это образ initramfs .elf, иногда .bin, загружаемый по TFTP. Работающий в оперативной памяти initramfs используется для проверки работоспособности конкретной версии OpenWrt без прошивки образа в флеш-память маршрутизатора.
  
-Удостоверившись в работоспособности образа OpenWrt, используйте веб-интерфейс LuCI или интерфейс командной строки UCI через SSH, чтобы записать соответствующий sysupgrade-образ .bin во влеш-память маршрутизатора. Это не отличается от обычного обновления OpenWRT.+Удостоверившись в работоспособности образа OpenWrt, используйте веб-интерфейс LuCI или интерфейс командной строки UCI через SSH, чтобы записать соответствующий sysupgrade-образ .bin во флеш-память маршрутизатора. Это не отличается от обычного обновления OpenWRT.
  
 В более ранних версиях OpenWrt требовалось повторная прошивка при последующих обновлениях OpenWRT. В актуальной версии OpenWrt, которая использует UBI-образ (Unsorted Block images), прошивка и обновления проводятся прямо из веб-интерфейса LuCI. В более ранних версиях OpenWrt требовалось повторная прошивка при последующих обновлениях OpenWRT. В актуальной версии OpenWrt, которая использует UBI-образ (Unsorted Block images), прошивка и обновления проводятся прямо из веб-интерфейса LuCI.
Line 16: Line 25:
  
 ==== Первоочередное: не потеряйте вашу лицензию RouterOS ==== ==== Первоочередное: не потеряйте вашу лицензию RouterOS ====
-До начала манипуляций с маршрутизатором сохраните лицензию RouterOS в файл .key, это позволит в дальнейшем вернуть прошивку RouterOS в маршрутизатор. +До начала манипуляций с маршрутизатором сохраните лицензию RouterOS (это текстовый файл .key). Лицензия позволит в дальнейшем вернуть прошивку RouterOS в маршрутизатор и работать с ней\\ 
-Чтобы сохранить файл с лицензие, понадобится win32-программа [[https://download.mikrotik.com/routeros/winbox/3.18/winbox.exe|WinBox]], веб-интерфейс WebFig не предоставляет такую возможность. Либо используйте [[#Сохранение файла с лицензией MikroTik RouterOS|другой способ]], описанный в конце статьи.+Чтобы сохранить файл с лицензией, понадобится win32-программа [[https://download.mikrotik.com/routeros/winbox/3.18/winbox.exe|WinBox]], веб-интерфейс WebFig не предоставляет такую возможность. Либо используйте [[#Сохранение файла с лицензией MikroTik RouterOS|другой способ]], описанный в конце статьи.
  
 В Winbox (адрес маршрутизатора по умолчанию 192.168.88.1, логин admin без пароля): \\ В Winbox (адрес маршрутизатора по умолчанию 192.168.88.1, логин admin без пароля): \\
Line 24: Line 33:
 Сохраните файл в надёжном месте. Сохраните файл в надёжном месте.
 Не повредит также сохранить образ RouterOS, [[#Сохранение образа MikroTik RouterOS|инструкция]] тоже в конце статьи. Не повредит также сохранить образ RouterOS, [[#Сохранение образа MikroTik RouterOS|инструкция]] тоже в конце статьи.
-==== Selecting an OpenWrt version  ==== 
  
-The first supported version of OpenWrt for a particular model should be listed on the OpenWrt [[:toh:start|Table of Hardware]]+==== Выбор версии OpenWrt ==== 
 +Первая версия, которая поддерживает вашу модель маршрутизатора, указана в [[:toh:start?dataflt%5BBrand*%7E%5D=Mikrotik|Таблице оборудования]] OpenWrt
  
-If the OpenWrt table of hardware says 'trunk', the model specific page should explain if 'trunk' already contains the necessary patches for your model or if you need to compile and patch OpenWrt yourselfCompilation / patching is explained further down in this documentIf the documentation is oldthen the model may work already in a newer release.+Если в колонке Версия Таблицы оборудования OpenWrt указано 'trunk', в статье о конкретной модели описано, содержит ли 'trunk' необходимые для работы OpenWRT патчи или нужно самостоятельно собрать OpenWrt с патчамиПроцесс сборки с патчами описан в этой статье нижеЕсли документация устарелановая версия OpenWRT может быть уже работает с вашей моделью маршрутизатора.
  
-If your RouterBoard is not supported in the latest releaseconsider compiling the required patches to make your RouterBoard work with the latest release and install that (as described below).+Если ваша модель маршрутизатора не поддерживается в последнем релизерассмотрите возможность собрать и установить в маршрутизатор собственный вариант прошивки с патчами, процедура описана в этой статье дальше.
  
-==== To Test-Drive OpenWrt, Netboot the initramfs File  ====+Подробно выбор версии описан в [[#Скачиваем образ OpenWrt]] 
 + 
 +==== Загружаем OpenWRT по сети с целью тестирования ====
 Since an initramfs image is just a temporary image (only loaded into RAM), it is safe to test a particular version of OpenWrt by netbooting (using DHCP/BOOTP/TFTP) and downloading the initramfs image.\\    Since an initramfs image is just a temporary image (only loaded into RAM), it is safe to test a particular version of OpenWrt by netbooting (using DHCP/BOOTP/TFTP) and downloading the initramfs image.\\   
 When you power down your RouterBoard after loading an initramfs file, OpenWrt will simply vanish: a power down and reboot of the RouterBoard will revert to the prior version of firmware that is still in flash of the RouterBoard.   When you power down your RouterBoard after loading an initramfs file, OpenWrt will simply vanish: a power down and reboot of the RouterBoard will revert to the prior version of firmware that is still in flash of the RouterBoard.  
Line 38: Line 49:
 If the RAM-based initramfs version you have selected works for you, feel free to try other versions of OpenWrt, such as Latest release or snapshot.\\  If the RAM-based initramfs version you have selected works for you, feel free to try other versions of OpenWrt, such as Latest release or snapshot.\\ 
 Once you are happy with the RAM-based operation of OpenWrt, proceed to the step of [[#Flash OpenWrt|flashing OpenWrt]] in order to permanently write OpenWrt into your RouterBoard. Once you are happy with the RAM-based operation of OpenWrt, proceed to the step of [[#Flash OpenWrt|flashing OpenWrt]] in order to permanently write OpenWrt into your RouterBoard.
-==== Downloading OpenWrt images ====+==== Скачиваем образ OpenWrt ====
  
 Images for the latest OpenWrt image can be downloaded from https://downloads.openwrt.org/\\  Images for the latest OpenWrt image 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.\\   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 18.06.1 OpenWrt images for the (Atheros-based) RB450G, download from https://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/mikrotik/ For example, to download the 18.06.1 OpenWrt images for the (Atheros-based) RB450G, download from https://downloads.openwrt.org/releases/18.06.1/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.\\  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.\\ 
Line 83: Line 93:
 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 https://openwrt.org/docs/guide-user/installation/sysupgrade.cli . 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 https://openwrt.org/docs/guide-user/installation/sysupgrade.cli .
 </WRAP> </WRAP>
-===== Step-By-Step OpenWrt Installation Process on Routerboard =====+ 
 +===== Процесс установки OpenWRT в иаршрутизатор RouterBoard по шагам =====
 Installing and upgrading OpenWrt on a RouterBoard is basically just a couple steps:  Installing and upgrading OpenWrt on a RouterBoard is basically just a couple steps: 
   - You first netboot an initramfs image of OpenWrt from your DHCP/BOOTP/TFTP server into the RAM of the RouterBoard.  This is done from the ether1 port (typically the WAN port) of the RouterBoard.   - You first netboot an initramfs image of OpenWrt from your DHCP/BOOTP/TFTP server into the RAM of the RouterBoard.  This is done from the ether1 port (typically the WAN port) of the RouterBoard.
  • Last modified: 2021/03/01 19:40
  • by tmomas