--- In "j.chitte" <> wrote:
>
> --- In "Gonzalo A. de la
> Vega" <gadelavega@> wrote:
> >
> > On Sat, May 24, 2008 at 6:35 PM, j.chitte <j.chitte@> wrote:
> > >
> > > --- In "j.chitte" <j.chitte@> wrote:
> > >>
> > >> Hi,
> > >>
> > >> I have been using a ts11 vmlinux kernel on 7250 for about 6
mths
> > >> with few problems. In order to resolve a remaining issue I
> grabbed
> > >> the lasted ts11 for the board: zImage-7250_2k-ts11
> > >>
> > >> This boots ok and the board runs but if I boot to my copy of
> debian
> > >> image via nfs where I develop I can not longer compile
anything.
> > >>
> > >> What worked last time I looked now does not get off the
ground.
> > >>
> > >> :adc_logger# make adc_logger
> > >> gcc -c -O -Wall -g3 -I. -I. adc_logger.c
> > >> adc_logger.c:55:19: stdio.h: No such file or directory
> > >> adc_logger.c:57:20: string.h: No such file or directory
> > >> adc_logger.c:58:19: errno.h: No such file or directory
> > >> adc_logger.c:59:19: fcntl.h: No such file or directory
> > >> adc_logger.c:60:20: signal.h: No such file or directory
> > >> adc_logger.c:61:19: ctype.h: No such file or directory
> > >>
> > >> unfortunately the server has gone through some housecleaning
and
> I
> > >> can no longer find the same vmlinux kernel I originally
> installed.
> > >>
> > >> there seems an odd mix of vm* for some boards and zImage* for
> 7250-
> > > 2k
> > >> (except for rt kernels) . I guess there's some logic to it
but
> it's
> > >> less than obvious, and not readme in there to explain.
> > >>
> > >> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/binaries/
ts-
> > >> kernels/
> > >>
> > >>
> > >> :src# uname -a
> > >> Linux arm 2.4.26-ts11 #3 Tue Jun 6 14:13:14 MST 2006 armv4l
GNU/
> > > Linux
> > >> :src# ls -ail /usr/src/
> > >> total 4
> > >> 256196 drwxr-xr-x 3 root root 4 Aug 20 2007 ./
> > >> 254324 drwxr-xr-x 12 root root 13 Apr 25 22:20 ../
> > >> 305653 lrwxrwxrwx 1 root root 17 Aug 20 2007 linux -> linux-
> > > 2.4.26-
> > >> ts11/
> > >> 287952 drwxr-xr-x 17 root root 36 Sep 13 2007 linux-2.4.26-
ts11/
> > >>
> > >>
> > >> :src# ls /usr/src/linux/include/linux/string.h
> > >> /usr/src/linux/include/linux/string.h
> > >>
> > >>
> > >> since all the files are still in include/linux something must
> have
> > >> lost a link. Can anyone suggest what may have moved?
> > >>
> > >> TIA.
> > >>
> > >
> > > Well having wasted an entire day trawling google , I'm still no
> > > nearer to compiling what worked last time I looked at it .
> > >
> > > It seems the compiler is not able to include the basic
> directories in
> > > the kernel tree any more.
> > >
> > > Can anyone tell me how this path is infered?
> > >
> > > The kernel boots and the system runs but no way to compile
> anything.
> > >
> > > :(
> >
> > Try passing the path to gcc with the -I parameter, e.g. gcc
> > -I/usr/src/linux/include/linux/ source.c -o target
> > When linking you must use -L to pass directories where the
> libraries lie.
> >
>
> Thanks for your help.
>
> I had tried passing the path explicitly but then it hit an error
that
> it could not find files in asm . So I concluded something must
have
> fundementally got broken and it should find the cause rather than
> messing with bandaid solutions.
>
> Last time I compliled my adc prog I just called make adc_logger ,
no
> one has touched either the source or the Makefile since.
>
> It seems related to the kernel change I put into the board.
>
> Correct me if I'm wrong but I should not need to explicitly add
the
> kernel include and asm paths with -I , so where do they get picked
up?
>
> That should put me on the trail of what is broken.
>
> Thanks again.
>
Hell, I'm not surprised the compiler's confused , so am I:
>>
Debian GNU/Linux 3.1 arm ttyAM0
arm login: root
Password:
Linux ts7000 2.4.26-ts10 #31 Thu Mar 23 13:01:48 MST 2006 armv4l GNU/
Linux
The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
:root# uname -a
Linux arm 2.4.26-ts11 #3 Tue Jun 6 14:13:14 MST 2006 armv4l GNU/Linux
:root# dmesg
Linux version 2.4.26-ts11 (gcc version 3.3.4) #3 Tue
Jun 6 14:13:16
CPU: Arm920Tid(wb) revision 0
Machine: ep9301
>>
so the first line printed after I login tells me ts10, uname says
ts11 and dmesg recorded ts11 but a different build time.
now I always thought uname was the definitive answer but where the
hell do the other conflicting answers come from?
If the compiler believes ts10 I'm not surprised it can't find the
tree.
Looks like time to give Sid the bullet and get a less antiquated OS
and root fs on these boards.
:?
------------------------------------
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/
|