ELBE Overview: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
No edit summary
m little corrections
Line 2: Line 2:
<big>'''This site is being reworked at the moment!'''</big>
<big>'''This site is being reworked at the moment!'''</big>


ELBE (Embedded Linux Build Environment) is a system to generate root-filesystems for embedded devices. This is only a short explanation what ELBE is and a brief tutorial for using ELBE, '''please go to the [https://elbe-rfs.org/docs/sphinx/index.html official documentation of ELBE] for a detailed documentation'''. This article was made when version 12.4 was the current version of ELBE.
ELBE (Embedded Linux Build Environment) is a buildsystem to generate root-filesystems for embedded devices. This is only a short explanation what ELBE is and a brief tutorial for using ELBE, '''please go to the [https://elbe-rfs.org/docs/sphinx/index.html official documentation of ELBE] for a detailed documentation'''. This article was made when version 12.4 was the current version of ELBE.


==Overview==
==Overview==
Line 16: Line 16:


The form of the finished root-filesystem is customizeable. The following variants are possible:
The form of the finished root-filesystem is customizeable. The following variants are possible:
* Tarball: The root-filesystem can be packed as a tarball (usually compressed with gzip). The tarball can be extracted onto an empty partition.
* Tarball: The root-filesystem can be packed as a tarball (usually compressed with gzip). The tarball can be extracted onto an empty partition or can be used for the [[DHCOM Update Mechanism]].
* Disk-/SD-card-image: An image with full partition table can be created. This can be a image of a hard disk or a sd-card. The size, type, label and mountpoint of each partition can be customized via the xml-file.
* Disk-/SD-card-image: An image with full partition table can be created. This can be a image of a hard disk or a sd-card. The size, type, label and mountpoint of each partition can be customized via the xml-file.
* UBIFS-Image: ELBE can output images for "Unsorted Block Image"-devices (UBI). In the case of our DHSOM modules this can be raw NAND-Flash. More information about that type of filesystem can be found under [[UBI/UBIFS Filesystem]].
* UBIFS-Image: ELBE can output images for "Unsorted Block Image"-devices (UBI). These are needed if you want to use the NAND-Flash of our DHSOM modules for the root-filesystem. More information about that type of filesystem can be found under [[UBI/UBIFS Filesystem]].
As an addition ELBE is able to create a cdrom image which can be used as a input to reconstruct the exact root-filesystem that was created.
As an addition ELBE is able to create a cdrom image which can be used as a input to reconstruct the exact root-filesystem that was created.


ELBE can also create a Software Development Kit (SDK) for the built root-filesystem. The SDK contains the toolchain with the cross compiler and other tools and the corresponding sysroot with needed headers. These can be used to create software for the spefific root-filesystem. The SDK is very similar to Yocto's Standard-SDK and can be used in the same way. An explanation how to use the SDK with some IDEs/buildsystems can be found here: ''Link following''
ELBE can also create a Software Development Kit (SDK) for the built root-filesystem. The SDK contains the toolchain with the cross compiler and other tools and the corresponding sysroot with needed headers. These can be used to create software for the specific root-filesystem. The SDK is very similar to Yocto's Standard-SDK and can be used in the same way. An explanation how to use the SDK with some IDEs/buildsystems can be found here: ''Link following''


==Installation==
==Installation==
Line 55: Line 55:
==Usage==
==Usage==


The ELBE system consists of the program elbe which is implemented in Python. Similar to git, it can be called with several sub commands. If you installed ELBE through the Debian package, the program is inside your PATH environment and can be called by "<tt>elbe</tt>", else you have to call it by the complete path. The most important commands are:
The ELBE buildsystem consists of the program elbe which is implemented in Python. Similar to git, it can be called with several sub commands. If you installed ELBE through the Debian package, the program is inside your PATH environment and can be called by "<tt>elbe</tt>", else you have to call it by the complete path. The most important commands are:
  <tt>elbe initvm create --directory /example example.xml</tt>
  <tt>elbe initvm create --directory /example example.xml</tt>
This command initializes a new initvm in the directory "/example" and builds a new root-filesystem based on "example.xml" . This command can only be used if there isn't any initvm defined yet. If you cloned ELBE from git, you can add the switch "<tt>--devel</tt>", then ELBE copies the local ELBE version into the initvm (instead of downloading ELBE from their repository).  
This command initializes a new initvm in the directory "/example" and builds a new root-filesystem based on "example.xml" . This command can only be used if there isn't any initvm defined yet. If you cloned ELBE from git, you can add the switch "<tt>--devel</tt>", then ELBE copies the local ELBE version into the initvm (instead of downloading ELBE from their repository).  

Revision as of 15:22, 30 June 2020