... | ... | @@ -11,9 +11,29 @@ Table of Contents |
|
|
+ [subdirectory](#subdirectory)
|
|
|
* [Setting Up a Linux Host](#setting-up-a-linux-host)
|
|
|
- [Equivalent runtime](#equivalent-runtime)
|
|
|
* [Image handling](#image-handling)
|
|
|
+ [Image format](#image-format)
|
|
|
+ [Supported compression](#supported-compression)
|
|
|
- [HybridOS package management system](#hybridos-package-management-system)
|
|
|
* [hpm](#hpm)
|
|
|
+ [hpm command](#hpm-command)
|
|
|
+ [update](#update)
|
|
|
+ [search](#search)
|
|
|
+ [show](#show)
|
|
|
+ [install](#install)
|
|
|
+ [remove](#remove)
|
|
|
+ [clean](#clean)
|
|
|
+ [runt](#runt)
|
|
|
- [init](#init)
|
|
|
- [config](#config)
|
|
|
+ [get](#get)
|
|
|
+ [set](#set)
|
|
|
+ [show](#show)
|
|
|
+ [eit](#edit)
|
|
|
+ [apply](#apply)
|
|
|
- [install](#runt-install)
|
|
|
- [list](#list)
|
|
|
- [import](#import)
|
|
|
- [export](#export)
|
|
|
- [Workflows](#workflows)
|
|
|
* [initialize development environment](#initialize-development-environment)
|
|
|
* [developer application and test](#developer-application-and-test)
|
... | ... | @@ -236,6 +256,27 @@ It provides some service programs to simulate hardware that does not exist on th |
|
|
host, such as bluetooth, gps and so on.
|
|
|
|
|
|
|
|
|
### Image handling
|
|
|
|
|
|
Equivalent runtime uses an image based workflow. It comes with a built-in image store
|
|
|
where the user or external tools can import images.
|
|
|
Equivalent runtime are then started from those images.
|
|
|
|
|
|
|
|
|
#### Image format
|
|
|
|
|
|
Tarball, can be compressed and contains:
|
|
|
|
|
|
* rootfs/
|
|
|
* metadata.yaml
|
|
|
* templates/ (optional)
|
|
|
* HybridOS.yaml
|
|
|
|
|
|
#### Supported compression
|
|
|
|
|
|
The tarball(s) can be compressed using bz2, gz, xz, lzma,
|
|
|
tar (uncompressed) or it can also be a squashfs image.
|
|
|
|
|
|
## HybridOS package management system
|
|
|
|
|
|
HybridOS package management system is a package management system.It provides the
|
... | ... | @@ -247,14 +288,72 @@ and packaging the image |
|
|
hpm is the software at the base of the package management system in
|
|
|
the HybridOS.
|
|
|
|
|
|
#### hpm command
|
|
|
|
|
|
* init : Used to initialize HybridOS Development Environment. It provides
|
|
|
basic configuration for development enviroment and embedded device such as
|
|
|
#### update
|
|
|
|
|
|
Update the Package Index, The HPM package index is essentially
|
|
|
a database of available packages from the repositories defined in
|
|
|
the /{Root directory}/etc/hpm/sources.list file and in
|
|
|
the /{Root directory}/etc/hpm/sources.list.d directory.
|
|
|
|
|
|
```
|
|
|
sudo hpm update
|
|
|
```
|
|
|
|
|
|
#### search
|
|
|
|
|
|
search in package descriptions
|
|
|
|
|
|
```
|
|
|
sudo hpm search hibus
|
|
|
```
|
|
|
|
|
|
#### show
|
|
|
|
|
|
show package details
|
|
|
|
|
|
```
|
|
|
sudo hpm show hibus
|
|
|
```
|
|
|
|
|
|
#### install
|
|
|
|
|
|
Install a Package
|
|
|
|
|
|
```
|
|
|
sudo hpm install hibus
|
|
|
```
|
|
|
|
|
|
#### remove
|
|
|
|
|
|
Remove a Package
|
|
|
|
|
|
```
|
|
|
sudo hpm remove hibus
|
|
|
```
|
|
|
|
|
|
|
|
|
#### clean
|
|
|
|
|
|
cleans the packages and install script in /{Root directory}/var/cache/hpm/archives/
|
|
|
|
|
|
```
|
|
|
sudo hpm clean
|
|
|
```
|
|
|
|
|
|
#### runt
|
|
|
|
|
|
HybridOS Equivalent runtime command
|
|
|
|
|
|
|
|
|
##### init
|
|
|
|
|
|
Used to initialize Equivalent runtime. It provides
|
|
|
basic configuration for equivalent runtime and embedded device such as
|
|
|
cpu architecture,memory, wifi, bluetooth and so on.
|
|
|
|
|
|
```
|
|
|
$ sudo hpm init
|
|
|
$ sudo hpm runt init nameOfruntime
|
|
|
|
|
|
What is the cpu architecture? (i386, amd64, arm) [default=amd64]: amd64
|
|
|
What is the number of cpus? (1, 2, 4): 2
|
... | ... | @@ -263,44 +362,94 @@ Would you like to create a wifi device? (yes/no) [default=no]: no |
|
|
...
|
|
|
```
|
|
|
|
|
|
##### config
|
|
|
|
|
|
* edit : It will open the default profile using the default editor(EDITOR environment varialbe).
|
|
|
manage equivalent runtime configuration options
|
|
|
|
|
|
###### get
|
|
|
|
|
|
get values for runtime configuration keys
|
|
|
|
|
|
```
|
|
|
sudo hpm edit
|
|
|
sudo hpm runt get nameOfruntime key
|
|
|
```
|
|
|
|
|
|
* update : Update the Package Index, The HPM package index is essentially
|
|
|
a database of available packages from the repositories defined in
|
|
|
the /{Root directory}/etc/hpm/sources.list file and in
|
|
|
the /{Root directory}/etc/hpm/sources.list.d directory.
|
|
|
###### set
|
|
|
|
|
|
set runtime configuration keys
|
|
|
|
|
|
```
|
|
|
sudo hpm update
|
|
|
sudo hpm runt set nameOfruntime key value
|
|
|
```
|
|
|
|
|
|
* install:Install a Package
|
|
|
|
|
|
###### show
|
|
|
|
|
|
show runtime configuration
|
|
|
|
|
|
```
|
|
|
sudo hpm install hibus
|
|
|
sudo hpm show nameOfruntime
|
|
|
```
|
|
|
|
|
|
* remove: Remove a Package
|
|
|
###### edit
|
|
|
|
|
|
It will open the profile using the default editor(EDITOR environment varialbe).
|
|
|
|
|
|
```
|
|
|
sudo hpm remove hibus
|
|
|
sudo hpm runt config edit nameOfruntime
|
|
|
```
|
|
|
|
|
|
* clean: cleans the packages and install script in /{Root directory}/var/cache/hpm/archives/
|
|
|
###### apply ?
|
|
|
|
|
|
apply runtime profile
|
|
|
|
|
|
|
|
|
```
|
|
|
sudo hpm clean
|
|
|
sudo hpm runt config apply nameOfruntime
|
|
|
```
|
|
|
|
|
|
|
|
|
##### runt install
|
|
|
|
|
|
This install program copies files (often just compiled) into destination
|
|
|
equivalent runtime you choose.
|
|
|
|
|
|
```
|
|
|
sudo hpm runt install src dst
|
|
|
```
|
|
|
|
|
|
* mount host directory to container
|
|
|
1. mount (Root diretory)[#root-directory) to container.
|
|
|
1. copies files into destination directories.
|
|
|
|
|
|
|
|
|
* use lxc file command
|
|
|
|
|
|
```
|
|
|
sudo lxc file push src container/path
|
|
|
```
|
|
|
|
|
|
* build: build image
|
|
|
##### list
|
|
|
|
|
|
list local equivalent runtime
|
|
|
|
|
|
```
|
|
|
sudo hpm runt list
|
|
|
```
|
|
|
|
|
|
##### import
|
|
|
|
|
|
import equivalent runtime into the local store
|
|
|
|
|
|
```
|
|
|
sudo hpm runt import tarball
|
|
|
```
|
|
|
|
|
|
##### export
|
|
|
|
|
|
export equivalent runtime
|
|
|
|
|
|
```
|
|
|
sudo hpm build
|
|
|
sudo hpm runt export nameOfruntime destTarball
|
|
|
```
|
|
|
|
|
|
|
... | ... | |