On Tue, 25 Nov 2008 11:32:29 +0530
Sivakumar.R.J <email@example.com> wrote:This is the ARM toolchain:
> > > after running emsetup successfully, it finishes like saying
> > > "Setup appears OK for Emdebian. Nothing to do". But i dont know
> > > where the toolchain have been installed and how i will make use
> > > of it to build our own filesystem.
> > Use --verbose and/or --report to see the packages. The toolchain has
> > been installed in the normal packaging places, as normal Debian
> > packages. Use dpkg -l 'gcc*'
> yes, i got the toolchain installed in our machine, but when i gave
> 'dpkg -l gcc' its showing many gcc packages, i dont know which
> toolchain for armel.Anyway i got arm-linux-gnu-* binaries.
ii binutils-arm-linux-gnu 2.18.1~cvs20080103-7 The GNU binary utilities, for arm-linux-gnu target
ii cpp-4.3-arm-linux-gnu 4.3.2-1 The GNU C preprocessor
ii g++-4.3-arm-linux-gnu 4.3.2-1 The GNU C++ compiler
ii gcc-4.3-arm-linux-gnu 4.3.2-1 The GNU C compiler
ii gcc-4.3-arm-linux-gnu-base 4.3.2-1 The GNU Compiler Collection (base package)
ii libc6-arm-cross 2.7-15 GNU C Library: Shared libraries (for cross-compiling)
ii libc6-dev-arm-cross 2.7-15 GNU C Library: Development Libraries and Header Files (for cross-compiling
ii libc6-dev-i386 2.7-16 GNU C Library: 32bit development libraries for AMD64
ii libgcc1-arm-cross 1:4.3.2-1 GCC support library
ii libstdc++6-4.3-dev-arm-cross 4.3.2-1 The GNU Standard C++ Library v3 (development files)
ii libstdc++6-4.3-pic-arm-cross 4.3.2-1 The GNU Standard C++ Library v3 (shared library subset kit)
ii libstdc++6-arm-cross 4.3.2-1 The GNU Standard C++ Library v3
ii linux-libc-dev-arm-cross 2.6.26-8 Linux support headers for userspace development (for cross-compiling)
armel will be -arm-linux-gnueabi or -armel-cross
To get the same output for armel:
$ emsetup -a armel --report
Depends on what you want your root filesystem to be capable of doing.
> Can you tell me which are basic packages to cross compile for
> create a minimal root filesystem for our armel platform.
The smallest package set currently used for Emdebian Crush is listed in:
The autobuilder will use that set by default.
The actual set is subject to change, always take the actual package
names from the emdebian.crossd file. Add the list of "required"
binaries to the list of "base" binaries to get the complete package set.
required="busybox dpkg libstdc++6 libgcc1 libc6 cdebconf
debconf-shell libdebian-installer4 zlib1g libnewt0.52
base="apt gpgv libncurses5 libreadline5 readline-common
debianutils makedev whiptail gnupg udev base-files
util-linux module-init-tools initscripts"
The autobuilder converts that into a set of source packages that it
builds with emdebuild and you can replicate the same step:
$ emdepends busybox dpkg libstdc++6 libgcc1 libc6 cdebconf debconf-shell libdebian-installer4 zlib1g libnewt0.52 libslang2 base-passwd apt gpgv libncurses5 libreadline5 readline-common debianutils makedev whiptail gnupg udev base-files debian-archive-keyring dhcp3-client util-linux module-init-tools initscripts
apt base-files base-passwd busybox bzip2 cdebconf debconf debian-archive-keyring debianutils dhcp3 dpkg e2fsprogs gcc-4.3 glibc gnupg libdebian-installer libselinux libtextwrap lsb makedev module-init-tools ncurses newt popt readline5 slang2 sysvinit tzdata udev util-linux zlib
emdepends converts a list of binary packages into a unique list of
source packages. With the exception of busybox, all the rest will build
using emsource and emdebuild as normal. You can build those in any order.
Busybox is a manual build at the moment because we need to use a
> Anyway i
> started with busybox from emsource ,but when i try to run #emdebuild
> --build-dep its giving me a error
version that is ahead of Debian. (It is the only package in that
condition because of the chpasswd bug.)
$ dget http://www.emdebian.org/packages/pool/main/b/busybox/busybox_1.11.1-1em1.dsc
$ cd busybox-1.11.1/
$ emdebuild -a armel
As it is a manual build, the second and third runs through the build
(for the static and udeb packages) are not fully configured (I haven't
adapted the build config for the changes since busybox 1.10) so you
will get some questions you will need to answer. I just accept the
busybox default for each one.
busybox does not need an xcontrol file, it has no build dependencies
> Checking for debian/control
> Checking for buildtime cross dependencies in 'debian/xcontrol'.
> No xcontrol file. Nothing to do.
outside the toolchain itself.
No need. All the xcontrol files you need are already available as
> How can i get this xcontrol file inside the debian.
patches in Emdebian SVN.
? that is to cross-build packages that are completely unknown to
> > You can also use it in any package build using:
> > $ dpkg-buildpackage -aarm
> > which in turn calls
> > $ ./configure --host=arm-linux-gnu --build=
> > (where build is either the full i386 or full amd64 triplet)
> I have to try this one after emdebuild work.
Emdebian and Debian - there should be no need for you to call this,
emdebuild does it for you.
Description: Binary data