|
|
[ Cross building ] [ Root filesystem ] [ Mixing Emdebian and Debian ] Emdebian HowtoScopeEmdebian methods, the emdebian-tools scripts and this tutorial are inherently reliant on Debian and are only expected to operate normally when running on a Debian system. Ubuntu and other Debian derivatives are not fully supported yet. Non-Debian distributions are not supported at all. Ubuntu users are recommended to create a Debian chroot for Debian sid and work with emdebian-tools inside that chroot. Patches are welcome but the primary focus of Emdebian is getting Debian to cross-build successfully and to prepare an Emdebian distribution that provides a Debian installation for embedded devices, within the limits of the device. Introduction to emdebian-toolsemdebian-tools supports various ways of using Emdebian:
Building new Emdebian packagesThe emdebian-tools Debian package is a collection of scripts to ease the process of cross-building Debian packages for Emdebian, reducing package size, separating translations into individual files and handling dependencies. emdebian-tools depends on each of the other packages built from the main source package. During installation, emdebian-tools configures an extra apt source for the Emdebian toolchain repository which also provides interim updates for emdebian-tools and other similar tools developed within Emdebian. e.g. $ sudo apt-get install emdebian-tools After installation, it is important to update and upgrade to get any updates to emdebian-tools between Debian releases. $ sudo apt-get update $ sudo apt-get upgrade (and similarly with aptitude). Contents of the emdebian-tools package
Using existing Emdebian packagesemdebian-rootfs is a separate package for users who only need to use binary packages from Emdebian, rather than build new ones or modify existing ones from Debian sources and Emdebian patches. Currently, Emdebian only has root filesystem packages for ARM but also supports machine:variant customisations. Contents of the emdebian-rootfs package
Emdebian cross-compiler toolchainsModifying the Emdebian packages requires a cross-compiler and the supporting packages. Emdebian provides pre-built toolchains for the architectures supported by Debian for installation on i386, amd64 or powerpc. Toolchains are complex sets of packages and it remains difficult to maintain a full set of installable packages, especially during transitions in gcc or glibc. emsetup tries to automate the process of identifying and installing all the packages necessary to provide a cross-compiler on a given system for a specified host architecture. Where a suitable toolchain is not available from Emdebian, emchain can assist in cross-building gcc and preparing suitable versions of other packages for you. Even with this assistance, it is not always possible to provide an installable toolchain for all requirements. Feel free to nag Emdebian on IRC or the mailing list for help if your requirements are not currently met and /or available packages cannot be installed. The Emdebian website does include instructions for preparing a toolchain manually but this may involve patching gcc and other packaging tasks. Repackaging Debian packages for a smaller installation.Emdebian Grip is currently being tested (Nov 08) - repositories will be available on this site once testing is complete. The emdebian-grip package (which can be installed separately from emdebian-tools) contains scripts to obtain, unpack, remove certain files, repack and include into a dedicated repository. Packages for Emdebian Grip are not cross-built (not rebuilt at all) which has a few effects:
The aim of Emdebian Grip is to reduce the size on various levels:
[ Cross building ] [ Root filesystem ] |
Last Modified: Sat, Nov 15 06:25:13 UTC 2008
Copyright © 2000-2008
The Embedded Debian Project;
Emdebian is an offical subproject of Debian.