12 063
правки
(Новая страница: «== Preparing rootfs ==») |
(Новая страница: «* Firmware update * Wiren Board 5: Восстановление прошивки/en|Wiren Board…») |
||
(не показано 20 промежуточных версий этого же участника) | |||
Строка 15: | Строка 15: | ||
== Preparing rootfs == | == Preparing rootfs == | ||
The script for preparing the root FS is located in the rootfs folder. | |||
How to use create_rootfs.sh script: | |||
<pre> | <pre> | ||
Строка 23: | Строка 23: | ||
</pre> | </pre> | ||
Here: | |||
* ''path_to_new_rootfs'' - | * ''path_to_new_rootfs'' - the name of the directory in which to create the root filesystem. The directory will be created automatically; | ||
* ''board_ver'' - | * ''board_ver'' - controller revision version. Valid values: | ||
** 5 - | ** 5 - for Wiren Board 5 | ||
** 55 - | ** 55 - for Wiren Board 5.5 | ||
** 4 - | ** 4 - for Wiren Board 4 | ||
** 32 - | ** 32 - for WB Smart Home (3.2) | ||
** 28 | ** 28 | ||
** NETMON | ** NETMON | ||
Строка 37: | Строка 37: | ||
** MKA31 | ** MKA31 | ||
** AC-E1 | ** AC-E1 | ||
* ''list of additional repos'' - | * ''list of additional repos'' -addresses of additional repositories with test packages (see below). This parameter is optional. | ||
Example. Build basic (without additional repositories) root FS in the directory rootfs/rootfs for Wiren Board 5.5: | |||
<pre> | <pre> | ||
Строка 47: | Строка 47: | ||
=== | === Additional repositories=== | ||
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> | ||
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: | |||
* | * 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 | ||
* | * name - testing | ||
* | * component used - main | ||
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 '' | ||
The scripts for building images are located in the images directory. Before you build the image, you need a ready-made root FS. | |||
Additionally, the host machine will require utilities (names are given for Debian/Ubuntu): | |||
* kpartx | * kpartx | ||
Строка 82: | Строка 82: | ||
* u-boot-tools | * u-boot-tools | ||
Example: building firmware for Wiren Board 5, the root filesystem is located here: rootfs/rootfs/: | |||
<pre> | <pre> | ||
Строка 89: | Строка 89: | ||
</pre> | </pre> | ||
Here ''tag'' is the suffix to be added to the image file name. | |||
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]] |
правки