Cross-compiler tip for Xscale ARM?

I play with the PXA270 Xscale development board (similar to Gumstix) and I was provided with a cross-compiler, but this is GCC 3.3.3. I would like to learn how to create my own cross-compiler, so I can customize the setup, but I had problems getting crosstools and crosstools-ng to successfully build the tool chain. My basic needs are using GCC 4.2.X and the ability to use a soft float. I am running Ubuntu 9. Does anyone have any recommendations or tips for creating a toolchain for such a system?

Thanks in advance,

Ben

+1
source share
5 answers

www.gnuarm.com - ARM, . GCC 4.2.x, , , .

? ; (read: integers).

+2

, . , , , , , . Xscale . , . , , , gcc, . , , , , , , .

+1

Dan Kegel crosstool . , .

, gcc, glibc, binutils linux kernel .

script, . , , .

#!/bin/sh

set -ex

# Extract crosstool
tar zxf crosstool-0.43.tar.gz
ln -sf crosstool-0.43 crosstool

# Create .dat file for toolchain
cat << EOF > $HOME/arm-cross.dat

BINUTILS_DIR=binutils-2.15
GCC_DIR=gcc-3.4.5
GCC_EXTRA_CONFIG=--with-float=soft
GCC_LANGUAGES=c,c++
GLIBC_ADDON_OPTIONS==linuxthreads,
GLIBC_DIR=glibc-2.3.6
GLIBC_EXTRA_CONFIG=--without-fp
GDB_DIR=gdb-6.5
KERNELCONFIG="\$HOME/crosstool/arm.config"
LINUX_DIR=linux-2.6.12.6
LINUX_SANITIZED_HEADER_DIR=
SHARED_MODE=--enable-shared
TARGET=arm-softfloat-linux-gnu
TARGET_CFLAGS=-O

BUILD_DIR="\$HOME/crosstool/build/\$TARGET/\$GCC_DIR-\$GLIBC_DIR"
PREFIX="/usr/crossgnu/\$GCC_DIR-\$GLIBC_DIR/\$TARGET"
SRC_DIR="\$HOME/crosstool/build/\$TARGET/\$GCC_DIR-\$GLIBC_DIR"
TARBALLS_DIR="\$HOME/downloads"
TOP_DIR="\$HOME/crosstool"

EOF

# Create toolchain directory
sudo mkdir -p /usr/crossgnu
sudo chown $USER /usr/crossgnu

# Build toolchain
pushd crosstool
eval `cat $HOME/arm-cross.dat` sh all.sh --gdb --notest
popd

. crosstool-0.43.tar.gz tarball , script .

+1

- crosstool *, . !

However, you can easily get the latest cross-compilers on Ubuntu by editing /etc/apt/sources.listto enable

deb http://www.emdebian.org/debian/ lenny main

then saying

Apt-get update
apt-get install g {cc, ++} - 4.3-arm-linux-gnueabi
+1
source

I also used crosstool and was able to create arm-xscale-linux-gcc under Cygwin. Instructions here: http://sourceforge.net/apps/mediawiki/imote2-linux/index.php?title=ToolsGccArm

+1
source

Source: https://habr.com/ru/post/1734452/


All Articles