Hi All,
I followed this thread, but I haven't been able to have the Max197
working.
I performed the following steps:
Downloaded:
tskernel-2.4.26-ts11-src.tar.gz
tskernel-2.4.26-ts10-src.tar.gz
(I tried both versions)
adc-0.0.2.tar.gz
crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2
crosstool-linux-gcc-4.0.1-glibc-2.3.5.tar.bz2
(I also tried with this)
I decompressed them and copied somewhere in the system (Please note I
tried all combinations between crosstools and tskernels).
Next, I modified the Makefile inside the ADC according to the files I
extracted.
I followed Phil guide by pointing to the inner arm-linux directory,
where there's a bin directory and a lib folder with several files.
when typing make I get also a lot of error messages, starting with:
/usr/local/opt/crosstool/linux24/include/linux/types.h:21: error:
parse error before "dev_t"
and
/usr/local/opt/crosstool/linux24/include/linux/jffs2_fs_i.h:42: error:
field `vfs_inode' has incomplete type
Let me start with this basic question: Do I have to compile the
TS-kernel before trying to compile the ADC? (My steps were
uncompressing, pointing the Makefile and typing Make)
Second: Is there any guide to read from the external ADC without using
this kernel stuff? I mean from the user-space? (I read some messages
mention this, but I haven't found any details)
Thanks for your help.
--- In "gertjan_hofman" <>
wrote:
>
>
> Hi Phil,
>
> Thanks, as usual, for the response.
>
> Thins are looking up a little. Indeed, I should have added
> 'arm-linux' to the path to the cross compiler. Now, compiling against
> kernel version 10, it builds properly.
>
> However, (nothing is ever simple), I have version 11 running on my
> board. So I unpacked that, tried the usual make steps and it dies at
> the make dep level. I have contacted Technologic about this since I am
> merely following their manual (and I have been building kernels since
> the early nineties....)
>
> Just trying to make your driver against the kernel 11 source does not
> work, lots of header file errors. So I need to resolve the kernel
> build issue first.
>
>
> Thanks
>
> Gertjan
>
>
>
>
>
>
>
> --- In "Phil" <mccarl1978@> wrote:
> >
> > 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
> >
> >
> >
> >
>
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/
|