On Sat, Jun 02, 2001 at 08:36:25AM -0700, gavin li wrote:
>    I read the article
> http://www.armlinux.org/docs/toolchain and tried to
> compile gcc according to it, but I got big problem!!
> I tried even more that Marr, I tried gcc-2.8.1.tar.gz
>  gcc-2.95.2.tar.gz gcc-core-2.95.3.tar.gz
> gcc-2.95.3.tar.gz nothing works!! I couldn't compile
> any of them.

I didn't have any problem with gcc-2.95.*. Never tried gcc-2.8.1
because it is too old to be useful anyway.

> According to the article, I downloaded the latest
> version linux-2.4.5.tar.gz, and edit Makefile changed
> ARCH := $(shell uname -m ...) to ARCH=arm, (I also
> find another paper says change it to ARCH := arm,
> which is correct????????), I don't know what I should

Doesn't matter, it's just a make subtlety that doesn't break anyway.

> put after CrossCompile = .  and  the make menuconfig

You shouldn't change CROSS_COMPILE at this stage because you can't
build the kernel anyway. This kernel is only needed to supply gcc and
libc with system header files.

> didn't display the configure menu correctly! it only
> displays 
> three menu item,
>     ------
>     Load an Alternate configuration File
>     Save Configuration to an Alternate File
> So, there is not 'System and processor type' menu item
> at all! Then, I tried linux-2.4.4.tar.gz, it is the
> same as linux-2.4.5.tar.gz, and Finally I found
> linux-2.4.2.tar.gz works, it could has that menu item,
> and I fired make dep

Possible that the standard linux tree is broken for ARM, but you should
*always* apply Russell's patch on top of it (patch-2.4.5-rmk3.gz is the
latest at time of writing).

> After that I tried to compile that 3 version of gcc,
> none could be compiled. (by the way, I tried to access
> ftp://ftp.armlinux.org/pub/toolchain to get patch for
> gcc, but ftp can be accessed), I also applied the
> -Dinhibit_libc hack. but I alway got libgccl.S(maybe
> libgccl.c) error, can't find unistd.h

I don't have control over it (Phil? Wookey?).

> I am using RedHat 7.0 the kernel should be 2.2.16-22
> Please read attachment to find what I did exactly.
> 
> Please help me, I have do that for one week!

I keep on saying this to people with toolchain problems: Why don't you
just download a precompiled toolchain?

And if you do want to build a toolchain yourself: first try to build
one *exactly* according to the documentation before you start
experimenting.

> TARGET=arm-coff
>     which arm= armv2, armv3l, armv3b, armv4l, armv4b, armv5l, armv5b 

Why arm-coff? All modern arm-linux system use ELF, so you should use an
arm-linux target (which automatically selects ELF).

> --- unpack the archieves
> cd src
> tar -zxvf ../binutils-2.11.tar.gz
> tar -zxvf ../gcc-2.95.3.tar.gz
> tar -zxvf ../gdb-5.0.tar.gz
> tar -zxvf ../newlib-1.9.0.tar.gz
> cd $MyHome/arm
> tar -zxvf targz/linux-2.4.2.tar.gz

tar zxvf targz/linux-2.4.5.tar.gz
cd linux
gzcat ../targz/patch-2.4.5-rmk3.gz | patch -p1
cd ..

> make menuconfig
>     System Type  ---> (SA1100-based) ARM system type 
>                       SA11x0 Implementations  ---> [*]   LART (NEW) 
> make dep

Just do:

make lart_config
make oldconfig
make dep


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to