Как разрабатывать ПО для Wiren Board/en: различия между версиями

Материал из Wiren Board
(Новая страница: «The development environment is provided as a Docker container. For its use in Linux, there is a convenient script wbdev. When using an environment, cross-compilat…»)
(не показано 10 промежуточных версий этого же участника)
Строка 32: Строка 32:
The development environment is provided as a Docker container. For its use in Linux, there is a convenient script wbdev. When using an environment, cross-compilation is not necessary. The wbdev script automatically runs the appropriate commands in a virtualized environment with the armel architecture corresponding to the Wiren Board processor architecture.
The development environment is provided as a Docker container. For its use in Linux, there is a convenient script wbdev. When using an environment, cross-compilation is not necessary. The wbdev script automatically runs the appropriate commands in a virtualized environment with the armel architecture corresponding to the Wiren Board processor architecture.


The Assembly of packages is made by calling the wbdeb, for example:
Сборка пакетов производится с помощью вызова wbdeb, например так:


<pre>
<pre>
$ wbdev chroot #run virtualized qemu chroot environment with Debian 7 armel architecture
$ wbdev chroot #запустить виртуализованное qemu сhroot окружение с Debian 7 архитектуры armel
$ wbdev make # call 'make' in a virtualized qemu chroot environment
$ wbdev make # вызвать make в виртуализованном qemu chroot окружении
$ wbdev cdeb # build a package written in C++ in a virtualized qemu chroot environment
$ wbdev cdeb # собрать пакет, написанный на C++ в виртуализованном qemu chroot окружении
$ wbdev gdeb # build a package written in Go using cross-compile Go
$ wbdev gdeb # собрать пакет, написанный на Go, с использованием кросс-компиляции Go
$ wbdev ndeb # collect architecture-independent package, containing for example a project in Python
$ wbdev ndeb # собрать архитектурно-независимый пакет, например содержащий проект на Python
</pre>
</pre>


Full description of the work with the environment is in the
Полное описание работы с окружением - в [https://github.com/contactless/wirenboard/blob/master/README.md документации].
[https://github.com/contactless/wirenboard/blob/master/README.md documentation].






=== Other articles ===
=== Другие статьи ===


[[Сборка ядра/en|Kernel compilation]]
[[Special:MyLanguage/Сборка ядра|Сборка ядра]]


[[Сборка образов прошивки/en|Firmware image biulding]]
[[Special:MyLanguage/Сборка образов прошивки|Сборка образов прошивки]]


[[Уникальные идентификаторы/en|Unique identifiers]]
[[Special:MyLanguage/Уникальные идентификаторы|Уникальные идентификаторы]] - для идентификации устройства, привязки софта


[[eMMC flash storage wear level|eMMC flash storage wear level]]  
[[Special:MyLanguage/eMMC flash storage wear level|Узнать степень износа внутреннего накопителя]]  


[[Device Tree/en|Device Tree]]
[[Special:MyLanguage/Пересборка Device Tree|Пересборка Device Tree]]

Версия 13:45, 7 июня 2019

Другие языки:

Note: this article is about how to create new software for Wiren Board, and is intended for programmers;



Environment

All Wiren Board controllers come with full Debian Linux. Processor architecture: armel. The controller uses libc version 2.13.

It is recommended to install the software using the Debian package Manager and package the SOFTWARE in deb packages


General consideration

Wiren Board controllers have from 64 to 512MB of RAM, depending on the model. This means that you need to consider memory consumption when developing your programs. For information about how to control memory consumption in Linux, see the website http://www.linuxatemyram.ru/.


Building packages and programs

It is recommended to build programs on a Linux computer using a special development environment. Compiling and developing directly on the Wiren Board 5 is not recommended due to the small amount of RAM.


Development environment

The development environment is provided as a Docker container. For its use in Linux, there is a convenient script wbdev. When using an environment, cross-compilation is not necessary. The wbdev script automatically runs the appropriate commands in a virtualized environment with the armel architecture corresponding to the Wiren Board processor architecture.

Сборка пакетов производится с помощью вызова wbdeb, например так:

$ wbdev chroot #запустить виртуализованное qemu сhroot окружение с Debian 7 архитектуры armel
$ wbdev make # вызвать make в виртуализованном qemu chroot окружении
$ wbdev cdeb # собрать пакет, написанный на C++ в виртуализованном qemu chroot окружении
$ wbdev gdeb # собрать пакет, написанный на Go, с использованием кросс-компиляции Go
$ wbdev ndeb # собрать архитектурно-независимый пакет, например содержащий проект на Python

Полное описание работы с окружением - в документации.


Другие статьи

Сборка ядра

Сборка образов прошивки

Уникальные идентификаторы - для идентификации устройства, привязки софта

Узнать степень износа внутреннего накопителя

Пересборка Device Tree