Jivin Phil Wilshire wrote:
> > Which architecture are you using ? Which tools ?
I use lpc2292 (arm7tdmi) with arm-elf-tools-20040427 on a suse-10.1 box.
> > It would probably take less time to fix the problems with the latest
> > build than to find what you are looking for.
The first problems seem to be related to the build environment. While
uClinux-dist-20051014 used CROSS_COMPILE=arm-elf- (which worked
perfectly with arm-elf-tools-20040427.sh), uClinux-dist-20070130 uses
CROSS_COMPILE=arm-linux- by default. I tried to fix this by
--- uClinux-dist-20070130.orig/vendors/config/armnommu/config.arch
2006-07-31 01:24:35.000000000 +0200
+++ uClinux-dist-20070130/vendors/config/armnommu/config.arch
2007-02-07 17:14:07.000000000 +0100
@@ -61,7 +61,7 @@
ARCH = armnommu
endif
ENDIAN ?= little
-CROSS_COMPILE = arm-linux-
+CROSS_COMPILE = arm-elf-
CROSS = $(CROSS_COMPILE)
CONFIGURE_HOST = arm-linux
But now I get errors about missing header files:
make ARCH=armnommu CROSS_COMPILE=arm-elf- -j1 -C linux-2.4.x || exit
1
make[2]: Entering directory
`/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32'
arm-elf-gcc -D__KERNEL__
-I/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM
-mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float
-DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/pa
ram.h:1,
from
/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include/linux/s
ched.h:4,
from
/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include/linux/m
m.h:4,
from
/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include/linux/s
lab.h:14,
from
/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include/linux/p
roc_fs.h:5,
from init/main.c:15:
/m/l/embedded/uclinux/uClinux-dist-20070130/linux-2.4.32/include/asm-arm
/param.h:14: asm/proc/page.h: File not found
I remember long time ago (the times when you compiled kernel yourself,
instead of using packet management) similar problems with
/usr/include/asm
and /usr/include/sys directories. Those were fixed by symlinking. I
guess I need to
ln -s uClinux-dist-20070130/linux-2.4.32/include/asm-arm
uClinux-dist-20070130/linux-2.4.32/include/asm
but I doubt this is the right way to fix it.
Any suggestions?
David McCullough wrote:
> Agreed, dpomg the search should be a last resort :-)
^^^^^
What does that mean?
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev