Hi Jaspreet,
> My system is running on kernel 2.6.22-14-generic (OS: Ubuntu 7.10).
Ok, this is a fairly recent host, so if you are trying to
build code for a 2.4 kernel on the TS-7300 you will run into
problems due to the host compiler being 4.x based.
> The scripts themselves downloaded linux-2.6.8.
This means you are trying to build an ARM compiler for a 2.6
kernel. Is this what you are trying to do? If so, sorry,
I haven't tried.
> As I mentioned in my previous post I was getting error:
>
> /scripts/kconfig/mconf.c:91:error: static declaration of
> 'current_menu' follows non-static declaration
Right, but what package are you building that produces this error?
The build of the gcc compiler for the target, the build of the
kernel for the target?
> Now I encountered some other error which said that my gcc was too old a
> version. Reading carefully i saw that it wanted a gcc version that was
> 3.x but with mine being 4.1.2 it was considered bad and compiling
> stopped :(
You've got too much confused.
If you want a 2.4 kernel on the TS-7300, you will need a gcc 3.x
compiler on the host for building the target source. You will
then use that to build a gcc 3.x cross-compiler on the host.
That cross-compiler will then be used to build the 2.4 kernel
for the target.
If you want a 2.6 kernel on the TS-7300, you will need a gcc 4.x
compiler on the host, and you will use that to build a gcc 4.x
cross-compiler on the host. That cross-compiler will then be
used to build the 2.6 kernel for the target.
> Now it worked still longer this terminating by another error:
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> In file included from version.c:33:
> /home/jaspreet/Desktop/porting/new_crosstool/crosstool-0.28/build/arm-unknown-linux-gnu/gcc-3.4.2-glibc-2.3.3/build-glibc/csu/version-info.h:1:
>
> error: missing terminating " character
Ok, so you're building the tool chain for the TS-7300 2.4 kernel.
But which kernel source are you using? You stated
"I changed linux 2.6.8.tar.bz2", - that would be wrong for
the case of a Linux 2.4 kernel build. This crosstools is for
a 2.4 build. I'm not sure what has been used for the 2.6 build,
but I'm pretty sure it'll be a gcc 4.x version.
Please be very explicit in what you are trying to do, and then
in the combination of tools being used. Its too confusing to guess.
Cheers,
Dave
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|