Hi All,
I am trying to cross compile a Ubuntu kernel (2.6.35) to run on a
Beagleboard xM.
I am running Ubuntu under VMWare on a Windows XP system. I the Ubuntu
environment I execute the following commands to prepare the system for
cross compiling.
Sudo apt-get install fakeroot build-essential
Sudo apt-get install crash kexec-tools makedumpfile kernel-wedge
Sudo apt-get build-dep linux
Sudo apt-get install git-core libncurses5 libncurses5-dev
Sudo apt-get install libelf-dev libdw-dev asciidoc binutils-dev
sudo apt-get install gcc-arm-linux-gnueabi
I then get the source files and compile, at this stage without any
configuration changes.
sudo apt-get source linux-source-2.6.35
cd linux-2.6.35
sudo CROSS_COMPILE=arm-linux-gnueabi- dpkg-buildpackage -b –aarmel
The compile proceeds for several hours fails with the following
dh_testdir
dh_testroot
dh_clean -k -plinux-tools-common
dh_clean: dh_clean -k is deprecated; use dh_prep instead
install -d /home/ernie/NewKernel/linux-2.6.35/debian/linux-tools-
common/usr/bin
install -d /home/ernie/NewKernel/linux-2.6.35/debian/linux-tools-
common/usr/share/man/man1
install -m755 debian/tools/perf /home/ernie/NewKernel/linux-2.6.35/
debian/linux-tools-common/usr/bin/perf
install -d /home/ernie/NewKernel/linux-2.6.35/debian/build/tools
for i in *; do ln -s /home/ernie/NewKernel/linux-2.6.35/$i /home/ernie/
NewKernel/linux-2.6.35/debian/build/tools/; done
rm /home/ernie/NewKernel/linux-2.6.35/debian/build/tools/tools
rsync -a tools/ /home/ernie/NewKernel/linux-2.6.35/debian/build/tools/
tools/
cd /home/ernie/NewKernel/linux-2.6.35/debian/build/tools/tools/perf &&
make man
make[1]: Entering directory `/home/ernie/NewKernel/linux-2.6.35/debian/
build/tools/tools/perf'
Makefile:512: No libdw.h found or old libdw.h found or elfutils is
older than 0.138, disables dwarf support. Please install new elfutils-
devel/libdw-dev
Makefile:548: *** No libelf.h/libelf found, please install libelf-dev/
elfutils-libelf-devel and glibc-dev[el]. Stop.
make[1]: Leaving directory `/home/ernie/NewKernel/linux-2.6.35/debian/
build/tools/tools/perf'
make: *** [install-tools] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
But the libdw.h was found it /usr/include/elfutils
Can anyone suggest what the problem is?
Ernie