ts-7000
[Top] [All Lists]

[ts-7000] Re: ADC driver for the TS-7250 card

To:
Subject: [ts-7000] Re: ADC driver for the TS-7250 card
From: "Phil" <>
Date: Wed, 15 Nov 2006 12:28:34 -0000
Hi Gertjan,

I can see a few things that you might want to check. Firstly, I 
realise that I haven't specified this in my INSTALL file (and I have 
now changed it) but the kernel source needs to be properly 
_configured_, i.e. following the initial steps to compiling the 
kernel, such as 'make oldconfig', 'make ts7250config', 'make dep' 
(you just might need to check exactly what those commands are, I am 
just recalling from memory).

Second thing, is to check that DEVFS is enabled in the 'configured' 
kernel sources. You can type 'grep DEVFS /path/to/kernel/.config' to 
find out. It is probably all ok, but just a check.

Third and last thing to check is your setting of the CROSSDIR 
variable. The way the crosstools are packaged can be a little 
confusing (there may be a reason for it but I just never really 
understood it). I will try and explain with a diagram...

gcc-3.3.4-glibc-2.3.2
|-- arm-linux
|   |-- bin           <-- my Makefile setting ends up here
|   |-- etc
|   |-- include
|   |-- info
|   |-- lib           <-- and here
|   |-- libexec
|   |-- sbin
|   |-- share
|   |-- sys-include
|   `-- usr
|-- bin               <-- your setting ends up here
|-- include
|-- info
|-- lib               <-- and here
|-- libexec
|-- man
`-- tmp


As I said above, I'm not quite sure why the structure is this way, 
but it is on my crosstools installation. So just add the '/armlinux' 
to the end of what you already have for CROSSDIR, if your crosstools 
are arranged the same way. And why I highlight this is because on my 
system, the lib directory that you wound be pointing to (./lib) only 
contains a handful of libs, whereas the one under ./arm-linux/lib 
contains a whole lot of libs. This shouldn't be causing you current 
problem, but it might be something to look out for if you get 
further.


Let us know how you go.

Cheers
Phil





--- In  "gertjan_hofman" 
<> wrote:
>
> Hi Phil,
> 
> Thanks for your response. So i decided I should start with baby 
steps 
> and replicate the conditions under which you build your system.
> 
> On my (Ubuntu 6.06 host) I unpacked the kernel source for 
> tskernel-2.4.26-ts10-src.tar which I presume is what you used.
> 
> I unpacked the cross tool chain:
> crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar
> 
> which I think is the one use you used, at least is says 3.3.4 in 
your 
> Makefile.
> 
> I unpack the adc_0.0.02 tar file and edit the Make file, changing 
> only:
> 
> LINUXDIR=/arm/kernels/linux24_10 (where I unpacked the kernel 
source)
> CROSSDIR=/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2
> 
> Make immediately dies on a stream of messages, the first part of 
> which I attach at the end.
> 
> I get lots of headers from the header files.  Any ideas what I am 
> doing wrong at this point ? Am I missing any environmental 
variables 
> or -I includes ? Is this the config that you were using ? If not, 
is 
> possible for you to send me a tar file of your build system ? (I 
can 
> give you an address to upload to offline - ghofman ..at.. 
gmail.com)
> 
> Much appreciated. I am looking forward to getting this driver 
running 
> so  can test out the board.
> 
> Cheers
> 
> Gertjan
> 
> 
> 
> 
> root:/arm/drivers/adc-0.0.2_cross_gcc_3.3.4# make
> /usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/gcc -
B/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin -
isystem /arm/kernels/linux24_10/include -
I /arm/kernels/linux24_10/include -L /usr/local/opt/crosstool/arm-
linux/gcc-3.3.4-glibc-2.3.2/lib  -Wno-trigraphs -Os -mshort-load-
bytes -fno-strict-aliasing -fno-common -Uarm -pipe -mapcs-32 -
D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=arm9tdmi -msoft-float  -
I.  -D_DEBUG -D__KERNEL__ -DMODULE -D 
> APPLIANCE -D LITTLE_ENDIAN -Wall -Werror -o obj/adc_main.o 
> adc_main.c -c
> 
> In file included 
> from /arm/kernels/linux24_10/include/linux/kernel.h:13,
>                  from adc_main.c:4:
> /arm/kernels/linux24_10/include/linux/types.h:21: error: parse 
error 
> before "dev_t"
> In file included 
from /arm/kernels/linux24_10/include/linux/fs.h:325,
>                  
> from /arm/kernels/linux24_10/include/linux/capability.h:17,
>                  
> from /arm/kernels/linux24_10/include/linux/binfmts.h:5,
>                  
> from /arm/kernels/linux24_10/include/linux/sched.h:9,
>                  from /arm/kernels/linux24_10/include/linux/mm.h:4,
>                  
> from /arm/kernels/linux24_10/include/linux/slab.h:14,
>                  from adc_main.c:9:
> /arm/kernels/linux24_10/include/linux/jffs2_fs_i.h:42: error: 
field 
> `vfs_inode' has incomplete type
> In file included 
> from /arm/kernels/linux24_10/include/linux/capability.h:17,
>                  
> from /arm/kernels/linux24_10/include/linux/binfmts.h:5,
>                  
> from /arm/kernels/linux24_10/include/linux/sched.h:9,
>                  from /arm/kernels/linux24_10/include/linux/mm.h:4,
>                  
> from /arm/kernels/linux24_10/include/linux/slab.h:14,
>                  from adc_main.c:9:
> /arm/kernels/linux24_10/include/linux/fs.h:424: error: parse error 
> before "dev_t"
> /arm/kernels/linux24_10/include/linux/fs.h:427: error: parse error 
> before '}' token
> /arm/kernels/linux24_10/include/linux/fs.h:433: error: parse error 
> before "dev_t"
> /arm/kernels/linux24_10/include/linux/fs.h:438: error: parse error 
> before '}' token
> In file included 
> from /arm/kernels/linux24_10/include/linux/capability.h:17,
>                  
> from /arm/kernels/linux24_10/include/linux/binfmts.h:5,
>                  
> from /arm/kernels/linux24_10/include/linux/sched.h:9,
>                  from /arm/kernels/linux24_10/include/linux/mm.h:4,
>                  
> from /arm/kernels/linux24_10/include/linux/slab.h:14,
>                  from adc_main.c:9:
> /ar
> 
> 
> 






 
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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU