ts-7000
[Top] [All Lists]

[ts-7000] Re: ts11 Time resolution

To:
Subject: [ts-7000] Re: ts11 Time resolution
From: "fabianmejia" <>
Date: Sun, 23 Sep 2007 18:15:04 -0000
As usual your answers are helpful!

After your suggestion and some reading, I made the following.

make 7200_config
make oldonfig

Neither make dep or make bzImage worked. I always get this error:
"... include/linux/rbtree.h:11:24: #if with no expression"
And a lot more. 

I think I will give up with the kernel reconfig. (There's must be some
folder not configured :S ). I made a lot of reading including 2
courses from skillport, but there are no clues about how setting up
the environment, only how to compile and install.

So I used your adc driver as a timer. I suggest if somebody is facing
the same issue with the time resolution this driver can be helpful. In
about 15 minutes I took the code from the example you provided and
created a timer each 5msec.

As a homework, I tried to use the code to create my own timer using
request_irq, writel, readl, etc with no luck.
Again, I get a lot of errors, starting with this:
"include/asm/system.h:43: error: parse error before string constant"

I followed several tutorials on the internet regarding interrupts,
modules, etc, but I am not able to compile them. 

I am not setting up something properly, because your Driver compiled
succesfuly.

Another post helped me with the services question. Thanks for that
tip. I will start reading about deamons (I hope I can compile them).

Regards

--- In  "Phil" <> wrote:
>
> --- In  "fabianmejia" <fabianmejia@> 
> wrote:
> > Last night I faced the Linux kernel source, 
> > and after some reading, there was only needed to "make config" on
> > the kernel source and answer a plethora of questions :S.
> 
> Just to let you know, you don't need to do the full "make config", 
> that's why you get all the questions. If you do "make ts7250config" 
> first it will answer most of the questions for you, setting most 
> options to how the TS's kernels are setup. And then do "make 
> oldconfig" and that will make sure any answers not set in the TS 
> defaults are answered. This way you get the configuration as close 
> as possible to how TS ship their kernels, and don't have to answer 
> many questions at all!!
> 
> 
> > Reading further, this is a LKM (Loadable Kernel Module), right? It 
> > looks like a service in the Microsoft World?
> 
> Yes, it is a Kernel Module (which most/all are loadable). There are 
> quite a few differences between Linux and Windows, meaning that 
> making comparisons between modules and services is not really valid.
> 
> 
> > It looks interesting as I need a service running in the SBC
> > accessing fast timers, etc.
> 
> In light of the above, could I suggest a different way phrasing this 
> statement... "I need a daemon that communicates with a kernel module 
> that accesses fast timers, etc". In this context, the daemon is 
> similar to a Microsoft service, but is nothing more complicated than 
> a userland program that never exits (normally). And the kernel 
> module is similar to a Microsoft device driver in that it interfaces 
> between hardware only accessible from the kernel to any userland 
> program (your daemon).
> 
> 
> I guess the next question to ask then is why you need access to the 
> fast timers? In a previous post you mentioned that your need for 
> high resolution timing was for the purposes of sampling the ADC, 
> which the driver is doing both jobs for you (timing and sampling). 
> Do you have to time other events as well? The reason I ask is that 
> the processor has a limited number of timers and some are already 
> taken up by the standard Linux "tick" timer and the ADC driver if 
> you are using that as well.
> 
> The other possibility is that you can use the ADC driver just to 
> regulate the timing of your aplpication. Set it to the regular 
> frequency that you want to do whatever, and then wait for the 
> sample. You don't have to do anything with the sample but you can 
> still use the timing.
> 
> 
> > Thanks everybody for you help!
> 
> Not a problem !!
> 
> 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/
 

<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