Перейти к содержанию

Навигация

Сборка образов прошивки/en: различия между версиями

Новая страница: «* Firmware update * Wiren Board 5: Восстановление прошивки/en|Wiren Board…»
(Новая страница: «Additional repositories are necessary if you want to add your own versions of packages to the root FS being built.»)
(Новая страница: «* Firmware update * Wiren Board 5: Восстановление прошивки/en|Wiren Board…»)
 
(не показано 12 промежуточных версий этого же участника)
Строка 51: Строка 51:
Additional repositories are necessary if you want to add your own versions of packages to the root FS being built.
Additional repositories are necessary if you want to add your own versions of packages to the root FS being built.


В скрипт передаются ''только адреса'' репозиториев. Например:
Only'' the address'' of the repository are sent to the script. For example:


<pre>
<pre>
Строка 57: Строка 57:
</pre>
</pre>


Формат репозиториев соответствует тому, который создаётся с помощью утилиты [[Special:MyLanguage/wbrepo|wbrepo]]. Конкретно, к дополнительному репозиторию предъявляются следующие требования:
The format of the repositories corresponds to the one created by the [[Special:MyLanguage/wbrepo/en|wbrepo]] utility. Specifically, the additional repository has the following requirements:


* В корне на сервере репозитория должен храниться публичный GPG-ключ в файле /repo.gpg.key. Например, если репозиторий расположен по адресу http://localhost:8086/, то ключ должен быть доступен по ссылке http://localhost:8086/repo.gpg.key
* The repository server root must contain the public GPG key in the /repo file.gpg.key. For example, if the repository is located at http://localhost:8086/, then the key should be available via link http://localhost:8086/repo.gpg.key
* Имя используемого дистрибутива - testing
* name - testing
* Используемый компонент - main
* component used - main


То есть, если передан адрес репозитория http://localhost:8086/, то в sources.list он будет представлен как
E.g., if the repository address is passed http://localhost:8086/, then in sources.list it will be presented as


<pre>
<pre>
Строка 70: Строка 70:




== Сборка образа для загрузки на контроллер ==
== Build an image to upload to the controller ==


''TODO: раздел требует дополнения''
''TODO: this section is incomplete ''


Скрипты для сборки образов находятся в директории images. Перед сборкой образа необходима готовая корневая ФС.
The scripts for building images are located in the images directory. Before you build the image, you need a ready-made root FS.


Дополнительно на хост-машине потребуются утилиты (названия приведены для Debian/Ubuntu):
Additionally, the host machine will require utilities (names are given for Debian/Ubuntu):


* kpartx
* kpartx
Строка 82: Строка 82:
* u-boot-tools
* u-boot-tools


Пример: собираем образ прошивки для Wiren Board 5, корневая ФС находится по пути rootfs/rootfs/:
Example: building firmware for Wiren Board 5, the root filesystem is located here: rootfs/rootfs/:


<pre>
<pre>
Строка 89: Строка 89:
</pre>
</pre>


Здесь ''tag'' - суффикс, который будет добавлен к имени файла образа.
Here ''tag'' is the suffix to be added to the image file name.


Готовый образ будет лежать по пути image/image/wb5/<current_datetime>/<current_datetime>_emmc_<tag>.img.
The finished image will lie in the path image/image/wb5/<current_datetime>/<current_datetime>_emmc_<tag>.img.




== См. также ==
== See also ==


* [[Special:MyLanguage/Обновление прошивки|Обновление прошивки]]
* [[Special:MyLanguage/Обновление прошивки/en|Firmware update]]
* [[Wiren Board 5: Восстановление прошивки|Wiren Board 5: Восстановление прошивки]]
* [[Wiren Board 5: Восстановление прошивки/en|Wiren Board 5: Firmware recovery]]
12 063

правки