From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RLBLT-0000Mb-9m for ptxdist@pengutronix.de; Tue, 01 Nov 2011 11:13:27 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RLBLT-0000YL-8B for ptxdist@pengutronix.de; Tue, 01 Nov 2011 11:13:27 +0100 Date: Tue, 1 Nov 2011 11:13:27 +0100 From: Michael Olbrich Message-ID: <20111101101327.GA32220@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Using external toolchain with penguitronix BSP distribution Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sun, Oct 30, 2011 at 11:57:30PM +0000, muntaqa wrote: > Hello, > > I am trying to use OSELAS BSP with CodeSourcery toolchain. > It seems there is a > problem in ptxdist and unable to understand the path setup for external > toolchain using "ptxdist toolchain pathToToolchainBinDir". > > I have performed the following: > > - ptxdist select configs/ptxconfig > - ptxdist toolchain /home/muntaqa/SourceryARMLinux/bin/ > this creates the softlink properly in the current directory. But when I run > the next command, it won't find toolchain and finds Penguintronix's toolchain > which is also installed right now in /opt folder. I had the same issue prior to > installing the penguitronix toolchain that it would not recognize my > CodeSourcery toolchain path. See text below that shows what I have in > /home/muntaqa/SourceryARMLinux/bin folder. > -ptxdist platform configs/platform-friendlyarm-mini2440/platformconfig-NAND-128M > this command won't find my sourcery toolchain and default to penguitronix's > toolchain. Then, I know I need to clear the strings in "ptxdist platformconfig" > dialogs. But still, it keeps wanting to find something in /opt. I have > modified and cleared gcc version, libc version, binaries prefix such as > gnuarm-none-linux-eabi. > > Nothing works, it won't recognize the external toolchain and if I have > penguitronix's toolchain installed, it would find it otherwise it makes a path > from the platformconfig items and complains that toolchain does not exist and > tells me to use ptxdist toolchain command to specify a toolchain path ( but I > have already done that.) > > I have tried this many times with a clean installation of BSP package in > different locations. > > Can someone send me proper instructions on how to get an external toolchain > configured properly. I have followed all of the steps in the QuickStart guide > and they don't work. I need different instructions that will work. [...] > # > # toolchain > # > PTXCONF_CROSSCHAIN_VENDOR="" empty is correct. > PTXCONF_CROSSCHAIN_CHECK="4.5.2" this must be the output of "gnuarm-none-linux-eabi-gcc -dumpversion". This is compared with "${PTXCONF_COMPILER_PREFIX}-gcc -dumpversion". > PTXCONF_LIBC_GLIBC=y > # PTXCONF_LIBC_UCLIBC is not set > PTXCONF_GLIBC_VERSION="2.13" this is only used for toolchain guessing > PTXCONF_GNU_TARGET="arm-v4t-linux-gnueabi" PTXCONF_GNU_TARGET="gnuarm-none-linux-eabi" > PTXCONF_COMPILER_PREFIX="${PTXCONF_GNU_TARGET}-" > PTXCONF_COMPILER_PREFIX_KERNEL="${PTXCONF_COMPILER_PREFIX}" > PTXCONF_COMPILER_PREFIX_BOOTLOADER="${PTXCONF_COMPILER_PREFIX}" Regards, Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de