Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| ru:toh:mikrotik:common [2019/05/19 10:20] – created grumbler | ru:toh:mikrotik:common [2019/05/20 18:19] – [Выбор версии OpenWrt] Убрал оставленную ранее строку оригинала grumbler | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| В этой стаье описаны процедуры, | В этой стаье описаны процедуры, | ||
| - | ===== Описание установки 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 15: | Line 24: | ||
| После установки OpenWrt, в зависимости от модели, | После установки OpenWrt, в зависимости от модели, | ||
| - | ==== Первоочередное: | + | ==== Первоочередное: |
| - | До начала манипуляций с маршрутизатором сохраните лицензию RouterOS в файл .key, это | + | До начала манипуляций с маршрутизатором сохраните лицензию RouterOS |
| - | Чтобы сохранить файл с лицензие, | + | Чтобы сохранить файл с лицензией, понадобится win32-программа |
| - | В Winbox: \\ | + | В Winbox |
| **System** ⇒ **License** ⇒ **Export Key** | **System** ⇒ **License** ⇒ **Export Key** | ||
| Сохраните файл в надёжном месте. | Сохраните файл в надёжном месте. | ||
| + | Не повредит также сохранить образ RouterOS, [[# | ||
| - | ==== Selecting an OpenWrt | + | ==== Выбор версии |
| + | Первая версия, | ||
| - | The first supported version of OpenWrt | + | Если в колонке Версия Таблицы оборудования |
| - | If the OpenWrt table of hardware says ' | + | Если ваша модель маршрутизатора не поддерживается в последнем релизе, рассмотрите возможность собрать и установить в маршрутизатор собственный вариант прошивки с патчами, процедура описана в этой статье дальше. |
| - | If your RouterBoard is not supported in the latest release, consider 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 по сети с целью тестирования |
| 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/ | 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/ | ||
| 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 | + | ==== Скачиваем образ |
| Images for the latest OpenWrt image can be downloaded from https:// | Images for the latest OpenWrt image can be downloaded from https:// | ||
| Most OpenWrt supported Routerboards are Atheros-based hardware: in that case, after selecting a release, go to the targets/ | Most OpenWrt supported Routerboards are Atheros-based hardware: in that case, after selecting a release, go to the targets/ | ||
| For example, to download the 18.06.1 OpenWrt images for the (Atheros-based) RB450G, download from https:// | For example, to download the 18.06.1 OpenWrt images for the (Atheros-based) RB450G, download from https:// | ||
| - | |||
| After the commit of [[https:// | After the commit of [[https:// | ||
| 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:// | 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:// | ||
| </ | </ | ||
| - | ===== 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/ | - You first netboot an initramfs image of OpenWrt from your DHCP/ | ||
| Line 433: | Line 444: | ||
| The differences between the obtained key file and a key exported with Winbox are that the // | The differences between the obtained key file and a key exported with Winbox are that the // | ||
| - | ==== Saving | + | ==== Сохранение образа |
| From TFTP booted OpenWrt: | From TFTP booted OpenWrt: | ||