[ELDK] eldk-switch.sh has no effect

Maik Ritter ritter at aerodata.de
Mon Sep 2 09:34:08 CEST 2013


Hi all,
 
this is my very first post on a mailing list, ever. I hope I'm doing everything the right way.
 
Okay, I visited an Altera SoC FPGA Workshop organized by EBV some weeks ago.
During that workshop we were introduced to the Denx ELDK. Now, that I have some time on a buisness trip, I try to work with the ELDK.
 
I use ELDK version 5.4 and I'm targeting the ARM armv7a-hf architecture. I would like to test everything with a QEMU Emulator which I succesfully installed and tested on a Debian Linux which runs in a Virtual Box on my Windows XP computer.
Puh, what a setup . . . 
 
I downloaded everything which I think I need according to the documentation on that site: http://www.denx.de/wiki/ELDK-5/WebHome
 
The installation with the install.sh script worked out fine.
 
The installation of the eldk-switch tool worked out fine.
 
Next thing I tried was to use eldk-switch.sh to set the toolchain to the cross compiler for the target. Here, I got some problems. Please read the outcome of the eldk-switch command (at the end of this log you can also find the information about the Debian version I am using):
 
Script started on Mon 02 Sep 2013 09:08:24 AM CEST
root at ad-rts-devel:/opt/eldk_test_sources# eldk-switch.sh -r 5.4 -v armv7a-hf
Setup for armv7a-hf (using ELDK 5.4)
export PATH=/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin/armv7ahf-vfp-neon-linux-gnueabi:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin/armv7ahf-vfp-neon-linux-gnueabi:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ; export CROSS_COMPILE=arm-linux-gnueabi- ; export PKG_CONFIG_SYSROOT_DIR=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi ; export PKG_CONFIG_PATH=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi/usr/lib/pkgconfig ; export CONFIG_SITE=/opt/eldk-5.4/armv7a-hf/site-config-armv7ahf-vfp-neon-linux-gnueabi ; export CC="arm-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export CXX="arm-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export CPP="arm-linux-gnueabi-gcc -E -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export AS="arm-linux-gnueabi-as " ; export LD="arm-linux-gnueabi-ld --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export GDB=arm-linux-gnueabi-gdb ; export STRIP=arm-linux-gnueabi-strip ; export RANLIB=arm-linux-gnueabi-ranlib ; export OBJCOPY=arm-linux-gnueabi-objcopy ; export OBJDUMP=arm-linux-gnueabi-objdump ; export AR=arm-linux-gnueabi-ar ; export NM=arm-linux-gnueabi-nm ; export M4=m4 ; export TARGET_PREFIX=arm-linux-gnueabi- ; export CONFIGURE_FLAGS="--target=arm-linux-gnueabi --host=arm-linux-gnueabi --build=i686-linux --with-libtool-sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types" ; export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive" ; export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" ; export CPPFLAGS="" ; export OECORE_NATIVE_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux" ; export OECORE_TARGET_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export OECORE_ACLOCAL_OPTS="-I /opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/share/aclocal" ; export OECORE_DISTRO_VERSION="5.4" ; export OECORE_SDK_VERSION="5.4" ; export PYTHONHOME=/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr ; export ARCH=arm ;
export PATH=/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin/armv7ahf-vfp-neon-linux-gnueabi:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin:/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin/armv7ahf-vfp-neon-linux-gnueabi:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export CROSS_COMPILE=arm-linux-gnueabi-
export PKG_CONFIG_SYSROOT_DIR=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi
export PKG_CONFIG_PATH=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi/usr/lib/pkgconfig
export CONFIG_SITE=/opt/eldk-5.4/armv7a-hf/site-config-armv7ahf-vfp-neon-linux-gnueabi
export CC="arm-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export CXX="arm-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export CPP="arm-linux-gnueabi-gcc -E -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export AS="arm-linux-gnueabi-as "
export LD="arm-linux-gnueabi-ld --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export GDB=arm-linux-gnueabi-gdb
export STRIP=arm-linux-gnueabi-strip
export RANLIB=arm-linux-gnueabi-ranlib
export OBJCOPY=arm-linux-gnueabi-objcopy
export OBJDUMP=arm-linux-gnueabi-objdump
export AR=arm-linux-gnueabi-ar
export NM=arm-linux-gnueabi-nm
export M4=m4
export TARGET_PREFIX=arm-linux-gnueabi-
export CONFIGURE_FLAGS="--target=arm-linux-gnueabi --host=arm-linux-gnueabi --build=i686-linux --with-libtool-sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive"
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
export CPPFLAGS=""
export OECORE_NATIVE_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux"
export OECORE_TARGET_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
export OECORE_ACLOCAL_OPTS="-I /opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/share/aclocal"
export OECORE_DISTRO_VERSION="5.4"
export OECORE_SDK_VERSION="5.4"
export PYTHONHOME=/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr
export ARCH=arm ;
root at ad-rts-devel:/opt/eldk_test_sources# eldk-switch.sh -q
Currently using eldk unknown from /opt/eldk_5.4/eldk-switch/
CROSS_COMPILE=
root at ad-rts-devel:/opt/eldk_test_sources# exit
Script done on Mon 02 Sep 2013 09:09:11 AM CEST
Script started on Mon 02 Sep 2013 09:20:27 AM CEST
root at ad-rts-devel:/opt/eldk_test_sources# cat /proc/version
Linux version 3.2.0-4-486 (debian-kernel at lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.46-1+deb7u1
root at ad-rts-devel:/opt/eldk_test_sources# exit
Script done on Mon 02 Sep 2013 09:20:45 AM CEST

So the problem is (as you might see) that the command "eldk-switch -r 5.4 -v armv7a-hf" is doing a lot of stuff but in the end, the command "eldk-switch -q" reveals that actual nothing happened.
 
Why is that so? What could be the cause for this?
 
As you can see, I'm root. So the environments should just be set correctly, shouldn't they?
 
Regards,
Maik
 

------------------------------------------------------------------------------------------------------------------------------------
Aerodata AG, Hermann-Blenk-Strasse 34-36, 38108 Braunschweig, Germany
Telefon: 0531-2359-0; Fax: 0531-2359-158
Vorstand: Hans J. Stahl; Vorsitzender des Aufsichtsrates: Prof. Dr. Gunther Schänzer;
Registergericht: Amtsgericht Braunschweig HRB 5217

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5357 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/eldk/attachments/20130902/4d8a8cc2/attachment.bin>


More information about the eldk mailing list