
Arcom Embedded Linux Technical Manual Developing software for AEL
Installing additional packages into the host environment
When the host environment is installed, all of the library runtime and development
packages that are supplied on the Development Kit CD are installed into it. If you obtain
a library package from some other source, such as Arcom Technical Support, you must
install the runtime and development packages yourself.
This section explains installing packages in the host environment, whilst Package
management
, on page 29, explains installing packages in the target device. The
installation into both the host and target environments of applications and binaries that
you have built yourself (i.e. not using packages) is explained later in this section.
Many of the packages you want to install in the host environment are in the form of .deb
packages, suitable for installation on the target device. These must be converted into
LSB-compliant .rpm packages suitable for installation in the host environment. A small
minority of packages (for example cross compilers) are strictly intended for the host
environment only, and so are supplied directly as LSB .rpm packages.
The host environment contains a tool, ael-cross-rpm, that is used to convert a .deb
package into an LSB-compliant .rpm package. A .deb package ‘foo’ is converted by the
tool into an RPM package ‘lsb-arcom-ARCH-linux-foo’, with the correct metadata for an
LSB package and the correct file system layout for the Arcom host environment.
A .deb package or set of .deb packages can be converted to LSB compliant .rpm
packages by passing them to ael-cross-rpm. To do this, enter:
$ ael-cross-rpm libc6_2.3.1-3_arm.deb libc6-dev_2.3.1-3_arm.deb
When you enter this command, the following is displayed:
libc6_2.3.1−3_arm.deb
libc6−dev_2.3.1−3_arm.deb
You can see the newly created LSB .rpm packages in the current folder by entering:
$ ls *.rpm
When you enter this command, the following is displayed:
lsb−arcom−arm−linux−libc6−2.3.1−3.noarch.rpm
lsb−arcom−arm−linux−libc6−dev−2.3.1−3.noarch.rpm.
If ael-cross-rpm determines that a .deb package contains no files that would be useful
in the host environment, it does not produce any output for that package.
Once you have created the LSB .rpm packages, you must install them on your host
system. The method for doing this varies between Linux distributions.
On a distribution that uses the RPM package manager, for example Red Hat Linux, you
can install the LSB .rpm packages directly using the rpm tool:
# rpm -ivh lsb-arcom-arm-linux-libc6-2.3.1-3.noarch.rpm
When you enter this command, the following is displayed:
Preparing... ################################ [100%]
1:lsb−arcom−arm−linux−lib ################################# [100%]
© 2006 Arcom Issue G 35
Kommentare zu diesen Handbüchern