[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rtl-digest V1 #140




rtl-digest         Wednesday, November 7 2001         Volume 01 : Number 140




----------------------------------------------------------------------

Date: Tue, 6 Nov 2001 13:03:14 -0800 (PST)
From: A V <anumula_rtl@yahoo.com>
Subject: Re: [rtl] runtime image of module

Hi,

     Thanks for your replies.
First let me tell what i am doing.
    As part of my thesis i am developing debugger for
realtime tasks. It should run in Real-time Kernel and
access the module of user interest and give
information of that module. 

    Regarding Kernel knowledge i have just studied
Memory management of Linux and some scheduling related
things. And i have idea of ELF format. To get
practical knowledge about ELF format i wrote some
simple programs to display various sections of an
executable file. 
I know how run-time memory image of an executable is 
formed.
    
     Now my problems are :
As Kernel modules are different from executable files
i need to know how its memory image will be. And one
more doubt is...
   I can get address of a module using query_module
system call. And i know that first 52 bytes of memory
image will be ELF header. So can i directly read 52
bytes beginning at that address ?

Once again thanks for nice replies.
Venkat


- --- Norm Dresner <ndrez@att.net> wrote:
> Before anyone even begins to think about answering
> the
> question, we'd need to know why you want this
> information
> and how much you already understand about the
> kernel's
> internal architecture so the answer can be tailored
> appropriately.
> 
>     Norm
> 
> ----- Original Message -----
> From: Calin A. Culianu <calin@ajvar.org>
> To: <rtl@fsmlabs.com>
> Sent: Monday, November 05, 2001 11:29 AM
> Subject: Re: [rtl] runtime image of module
> 
> 
> > On Sun, 4 Nov 2001, A V wrote:
> > >
> > > Hi all,
> > >
> > >   I want to know how the runtime image of a will
> > > be.i.e where the stack will be and bss . Can
> somebody
> > > help me.
> >
> > All modules run in kernel space. This means that
> the
> address space of a
> > running module is the same logical address space
> that the
> kernel itself
> > uses -- this is because a module IS the kernel. 
> Memory
> for modules is
> > cleanly allocated during the module's creation and
> cleanly free'd during
> > the module's destruction. (with the exception for
> memory
> the module itself
> > explicitly allocates using kmalloc).
> >
> > As far as stacks go: Well, that depends... you may
> have
> several stacks if
> > you go and create yourself several threads inside
> your
> module.  The other
> > data and code segments and such all get allocated
> by the
> kernel in kernel
> > space via kmalloc probably during the
> create_module()
> system call. For
> > more info, module.c in the kernel/ subtree of the
> linux
> source tree can
> > answer many of your questions... :)
> >
> > As for where exactly stacks come from in the linux
> kernel
> when tasks run
> > on behalf of users or during bottom-halves of
> drivers:
> that's a good
> > question. I would imagine that actually there are
> fewer
> kernel stacks than
> > there are kernel tasks.  Most of the time tasks
> spend
> their time running
> > in user mode, where they get their own user
> stacks.. as
> for when they run
> > in kernel mode during system calls, they probably
> get
> these temporary
> > stacks that go away completely as soon as the
> system call
> returns to user
> > mode.
> >
> > I kind of wish I knew more about the kernel and
> the
> relationship between
> > different threads of execution and dedicated
> kernel
> tasks.... Oh well..
> > maybe someone else can shed more light on this
> matter...
> >
> > -Calin
> >
> >
> >
> >
> > >
> > > Regards
> > > Venkat
> 
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org
> OR
> echo "unsubscribe rtl <Your_email>" | mail
> majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
> 


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Wed, 07 Nov 2001 01:02:34 +0300
From: "Red Commie" <redcommie@hotmail.com>
Subject: [rtl] installing rtl modules

i've never installed rtlinux before.  i followed all the instructions ( i 
downloaded the rtl_2.4linux prepatch) and installed the kernel and booted 
into linux with the rtl kernel.  the final step (installing the modules) is 
giving me problems.  the directions say
"cd /usr/src/rtlinux-2.0/rtl"   and run "make" , "make install" to install 
the rtl modules.  i changed to the directory /usr/src/rtlinux-3.0  and 
looked for the rtl directory.  i don't have it.  i looked every where for a 
make file to install the modules. no luck   Whats up??

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Tue, 6 Nov 2001 18:58:15 -0500 (EST)
From: <bionic@vassalboro.bu.edu>
Subject: [rtl] Compiling 3.1

Redhat 7.1, using kgcc. Trying to compile linux 2.4.4, patched w/ rtl-3.1.
bzImage goes fine, keep getting the same error in several module compiles:
"KMALLOC_MAXSIZE undeclared". I can't find KMALLOC_MAXSIZE in any header
files. Advice?

- -Chuck

- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Tue, 6 Nov 2001 20:26:18 -0500
From: "Norm Dresner" <ndrez@att.net>
Subject: Re: [rtl] runtime image of module

Every real-time module -- in fact every kernel module,
real-time or normal -- is a .o file created by a
"partial-link" of the constituent individual files.  The
format of a .o file is AFAIK well documented and you can
discover a lot by using the program objdump to determine
what the headers and body of the files contain and matching
that to a hex-dump of the file.

    Norm


- ----- Original Message -----
From: A V <anumula_rtl@yahoo.com>
To: <rtl@fsmlabs.com>
Sent: Tuesday, November 06, 2001 4:03 PM
Subject: Re: [rtl] runtime image of module


>
> Hi,
>
>      Thanks for your replies.
> First let me tell what i am doing.
>     As part of my thesis i am developing debugger for
> realtime tasks. It should run in Real-time Kernel and
> access the module of user interest and give
> information of that module.
>
>     Regarding Kernel knowledge i have just studied
> Memory management of Linux and some scheduling related
> things. And i have idea of ELF format. To get
> practical knowledge about ELF format i wrote some
> simple programs to display various sections of an
> executable file.
> I know how run-time memory image of an executable is
> formed.
>
>      Now my problems are :
> As Kernel modules are different from executable files
> i need to know how its memory image will be. And one
> more doubt is...
>    I can get address of a module using query_module
> system call. And i know that first 52 bytes of memory
> image will be ELF header. So can i directly read 52
> bytes beginning at that address ?
>
> Once again thanks for nice replies.
> Venkat
>
>
> --- Norm Dresner <ndrez@att.net> wrote:
> > Before anyone even begins to think about answering
> > the
> > question, we'd need to know why you want this
> > information
> > and how much you already understand about the
> > kernel's
> > internal architecture so the answer can be tailored
> > appropriately.
> >
> >     Norm
> >
> > ----- Original Message -----
> > From: Calin A. Culianu <calin@ajvar.org>
> > To: <rtl@fsmlabs.com>
> > Sent: Monday, November 05, 2001 11:29 AM
> > Subject: Re: [rtl] runtime image of module
> >
> >
> > > On Sun, 4 Nov 2001, A V wrote:
> > > >
> > > > Hi all,
> > > >
> > > >   I want to know how the runtime image of a will
> > > > be.i.e where the stack will be and bss . Can
> > somebody
> > > > help me.
> > >
> > > All modules run in kernel space. This means that
> > the
> > address space of a
> > > running module is the same logical address space
> > that the
> > kernel itself
> > > uses -- this is because a module IS the kernel.
> > Memory
> > for modules is
> > > cleanly allocated during the module's creation and
> > cleanly free'd during
> > > the module's destruction. (with the exception for
> > memory
> > the module itself
> > > explicitly allocates using kmalloc).
> > >
> > > As far as stacks go: Well, that depends... you may
> > have
> > several stacks if
> > > you go and create yourself several threads inside
> > your
> > module.  The other
> > > data and code segments and such all get allocated
> > by the
> > kernel in kernel
> > > space via kmalloc probably during the
> > create_module()
> > system call. For
> > > more info, module.c in the kernel/ subtree of the
> > linux
> > source tree can
> > > answer many of your questions... :)
> > >
> > > As for where exactly stacks come from in the linux
> > kernel
> > when tasks run
> > > on behalf of users or during bottom-halves of
> > drivers:
> > that's a good
> > > question. I would imagine that actually there are
> > fewer
> > kernel stacks than
> > > there are kernel tasks.  Most of the time tasks
> > spend
> > their time running
> > > in user mode, where they get their own user
> > stacks.. as
> > for when they run
> > > in kernel mode during system calls, they probably
> > get
> > these temporary
> > > stacks that go away completely as soon as the
> > system call
> > returns to user
> > > mode.
> > >
> > > I kind of wish I knew more about the kernel and
> > the
> > relationship between
> > > different threads of execution and dedicated
> > kernel
> > tasks.... Oh well..
> > > maybe someone else can shed more light on this
> > matter...
> > >
> > > -Calin
> > >
> > >
> > >
> > >
> > > >
> > > > Regards
> > > > Venkat
> >
> >
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail majordomo@rtlinux.org
> > OR
> > echo "unsubscribe rtl <Your_email>" | mail
> > majordomo@rtlinux.org
> > --
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail
majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Tue, 6 Nov 2001 18:22:23 -0800
From: spam_filter@linuxfreemail.com
Subject: Re: [rtl] Low Cost Term Life Insurance                         XMUM

>>>>>don´t spam me again !!!!, i´am not interessted in your fucking insurance

>>>>>QuoteSupport49@excite.com wrote:

>>>>>> 
>>>>>> 
>>>>>>                   Term Quotes    Life Insurance Companies
>>>>>> 
>>>>>>             
>>>>>> 
>>>>>>  
>>>>>> 
>>>>>>  
>>>>>> 
>>>>>>   Since 1996, term life insurance rates have been reduced by as much as 70%
>>>>>> 
>>>>>> 40 year old male - $250,000 - 10 year level term
>>>>>> As low as $10.44 per month!
>>>>>> 
>>>>>> At TermQuotes Life Insurance Companies of America, we will survey the 
>>>>>> top life insurance companies for you and provide you with the best rates 
>>>>>> available. The quote is free. There is no obligation to buy. Compare the 
>>>>>> rates and see for yourself. Fill out this quick form below for further 
>>>>>> information.
>>>>>> 
>>>>>> Results of computer survey 07-09-01
>>>>>> Sample Annual Premiums
>>>>>> * 10 Year Level Premium Term Rates *
>>>>>> Age $250,000 $500,000 $1,000,000
>>>>>> 35 $115 $175 $305
>>>>>> 45 $210 $375 $670
>>>>>> 55 $500 $935 $1,370
>>>>>> 65 $1,305 $2,550 $4,920
>>>>>> 70 $2,265 $4,480 $7,510
>>>>>> 
>>>>>> 
>>>>>> *Above rates guaranteed to remain level for 10 years
>>>>>> Rates based on male preferred class 1 non-smoker
>>>>>> Policies are guaranteed renewable to age 95
>>>>>> Policies with 15, 20, 25, and 30 year level premiums also available
>>>>>> 
>>>>>> Attention All Smokers,
>>>>>> you may qualify for special reduced smoker rates!
>>>>>> 
>>>>>> Universal Life, Second-to-Die and Estate Planning products also provided.
>>>>>> 
>>>>>> Submit This Form for a Free Term Insurance Quote!
>>>>>> 
>>>>>> Name Insured: 
>>>>>> Amount of Coverage:  
>>>>>> Date of Birth: Month   Day Year
>>>>>> Sex:  Male Female
>>>>>> Height:  FT in
>>>>>> Weight:  lbs.
>>>>>> Occupation: 
>>>>>> xxx
>>>>>> Have You Ever Had:
>>>>>> High Blood Pressure  Yes No
>>>>>> Heart Attack or Stroke  Yes No
>>>>>> Cancer  Yes No
>>>>>> Diabetes  Yes No
>>>>>> Mother, Father, Sister, Brother Diagnosed or Died of Cancer or 
>>>>>> Cardiovascular Disease Before Age 60  Yes No
>>>>>> Have You  Smoked Within the Last 12 Months  Yes No
>>>>>> xxx
>>>>>> Person Completing Request: 
>>>>>> Mailing Address: 
>>>>>> City:  State Zip
>>>>>> Daytime Phone: 
>>>>>> Evening Phone:  
>>>>>> Email Address:  
>>>>>> Best time to contact:
>>>>>> 
>>>>>> When you click submit it may start your spell check, so please click 
>>>>>> "Ignore" if it does.
>>>>>> 
>>>>>>  
>>>>>> YOUR INTERNET ADVERTISING
>>>>>> CopyrightÿFFFFA92000-2001 . All Rights Reserved
>>>>>> 
>>>>>> This could be your ad!
>>>>>> 
>>>>>> Email Us <mailto:IllIlllIIIIIlllIIII@excite.com?subject=Direct Marketing 
>>>>>> Inquiry> with your name and a good phone number to reach you.
>>>>>> 
>>>>>> If you think, that you will not benefit from this correspondence, please 
>>>>>> click here. <http://www.removeyou.com>
>>>>>> 
>>>>>> -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail 
>>>>>> majordomo@rtlinux.org OR echo "unsubscribe rtl " | mail 
>>>>>> majordomo@rtlinux.org -- For more information on Real-Time Linux see: 
>>>>>> http://www.rtlinux.org/


>>>>>-- 
>>>>>Thomas Sauter                               Tel. 06221/75933-15
>>>>>20/10 Perfect Vision                        sauter@2010pv.com
>>>>>Waldhofer Str. 100
>>>>>D-69123 Heidelberg

>>>>>-- [rtl] ---
>>>>>To unsubscribe:
>>>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>>>--
>>>>>For more information on Real-Time Linux see:
>>>>>http://www.rtlinux.org/

>>>>*** Your message did not reach its recipient ***
>>>>It was caught by the mailing system as spam.
>>>>If this message is not spam and you feel that
>>>>this message was caught in error, please email
>>>>a note to spam_filter@netfx-2000.net.
>>>>If this message is spam, knock it off!
>>>>This server is in California where it is illegal 
>>>>to spam! We do not accept spam here!
>>>>We will go after all spammers to the maximum
>>>>extent of the law!
>>>>-- [rtl] ---
>>>>To unsubscribe:
>>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>>--
>>>>For more information on Real-Time Linux see:
>>>>http://www.rtlinux.org/

>>>*** Your message did not reach its recipient ***
>>>It was caught by the mailing system as spam.
>>>If this message is not spam and you feel that
>>>this message was caught in error, please email
>>>a note to spam_filter@netfx-2000.net.
>>>If this message is spam, knock it off!
>>>This server is in California where it is illegal 
>>>to spam! We do not accept spam here!
>>>We will go after all spammers to the maximum
>>>extent of the law!
>>>-- [rtl] ---
>>>To unsubscribe:
>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>--
>>>For more information on Real-Time Linux see:
>>>http://www.rtlinux.org/

>>*** Your message did not reach its recipient ***
>>It was caught by the mailing system as spam.
>>If this message is not spam and you feel that
>>this message was caught in error, please email
>>a note to spam_filter@netfx-2000.net.
>>If this message is spam, knock it off!
>>This server is in California where it is illegal 
>>to spam! We do not accept spam here!
>>We will go after all spammers to the maximum
>>extent of the law!
>>-- [rtl] ---
>>To unsubscribe:
>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>--
>>For more information on Real-Time Linux see:
>>http://www.rtlinux.org/

>*** Your message did not reach its recipient ***
>It was caught by the mailing system as spam.
>If this message is not spam and you feel that
>this message was caught in error, please email
>a note to spam_filter@netfx-2000.net.
>If this message is spam, knock it off!
>This server is in California where it is illegal 
>to spam! We do not accept spam here!
>We will go after all spammers to the maximum
>extent of the law!
>-- [rtl] ---
>To unsubscribe:
>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>--
>For more information on Real-Time Linux see:
>http://www.rtlinux.org/

*** Your message did not reach its recipient ***
It was caught by the mailing system as spam.
If this message is not spam and you feel that
this message was caught in error, please email
a note to spam_filter@netfx-2000.net.
If this message is spam, knock it off!
This server is in California where it is illegal 
to spam! We do not accept spam here!
We will go after all spammers to the maximum
extent of the law!
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Wed, 7 Nov 2001 09:18:52 +0700 
From: Adolf Ahmad MS <adolf@ratelindo.co.id>
Subject: RE: [rtl] Low Cost Term Life Insurance                         XM UM

This is Garbage e-mail

> -----Original Message-----
> From:	spam_filter@linuxfreemail.com [SMTP:spam_filter@linuxfreemail.com]
> Sent:	Tuesday, November 06, 2001 5:14 PM
> To:	rtl@fsmlabs.com
> Subject:	Re: [rtl] Low Cost Term Life Insurance
> XMUM
> 
> >>>don´t spam me again !!!!, i´am not interessted in your fucking
> insurance
> 
> >>>QuoteSupport49@excite.com wrote:
> 
> >>>> 
> >>>> 
> >>>>                   Term Quotes    Life Insurance Companies
> >>>> 
> >>>>             
> >>>> 
> >>>>  
> >>>> 
> >>>>  
> >>>> 
> >>>>   Since 1996, term life insurance rates have been reduced by as much
> as 70%
> >>>> 
> >>>> 40 year old male - $250,000 - 10 year level term
> >>>> As low as $10.44 per month!
> >>>> 
> >>>> At TermQuotes Life Insurance Companies of America, we will survey the
> 
> >>>> top life insurance companies for you and provide you with the best
> rates 
> >>>> available. The quote is free. There is no obligation to buy. Compare
> the 
> >>>> rates and see for yourself. Fill out this quick form below for
> further 
> >>>> information.
> >>>> 
> >>>> Results of computer survey 07-09-01
> >>>> Sample Annual Premiums
> >>>> * 10 Year Level Premium Term Rates *
> >>>> Age $250,000 $500,000 $1,000,000
> >>>> 35 $115 $175 $305
> >>>> 45 $210 $375 $670
> >>>> 55 $500 $935 $1,370
> >>>> 65 $1,305 $2,550 $4,920
> >>>> 70 $2,265 $4,480 $7,510
> >>>> 
> >>>> 
> >>>> *Above rates guaranteed to remain level for 10 years
> >>>> Rates based on male preferred class 1 non-smoker
> >>>> Policies are guaranteed renewable to age 95
> >>>> Policies with 15, 20, 25, and 30 year level premiums also available
> >>>> 
> >>>> Attention All Smokers,
> >>>> you may qualify for special reduced smoker rates!
> >>>> 
> >>>> Universal Life, Second-to-Die and Estate Planning products also
> provided.
> >>>> 
> >>>> Submit This Form for a Free Term Insurance Quote!
> >>>> 
> >>>> Name Insured: 
> >>>> Amount of Coverage:  
> >>>> Date of Birth: Month   Day Year
> >>>> Sex:  Male Female
> >>>> Height:  FT in
> >>>> Weight:  lbs.
> >>>> Occupation: 
> >>>> xxx
> >>>> Have You Ever Had:
> >>>> High Blood Pressure  Yes No
> >>>> Heart Attack or Stroke  Yes No
> >>>> Cancer  Yes No
> >>>> Diabetes  Yes No
> >>>> Mother, Father, Sister, Brother Diagnosed or Died of Cancer or 
> >>>> Cardiovascular Disease Before Age 60  Yes No
> >>>> Have You  Smoked Within the Last 12 Months  Yes No
> >>>> xxx
> >>>> Person Completing Request: 
> >>>> Mailing Address: 
> >>>> City:  State Zip
> >>>> Daytime Phone: 
> >>>> Evening Phone:  
> >>>> Email Address:  
> >>>> Best time to contact:
> >>>> 
> >>>> When you click submit it may start your spell check, so please click 
> >>>> "Ignore" if it does.
> >>>> 
> >>>>  
> >>>> YOUR INTERNET ADVERTISING
> >>>> CopyrightÿFFFFA92000-2001 . All Rights Reserved
> >>>> 
> >>>> This could be your ad!
> >>>> 
> >>>> Email Us <mailto:IllIlllIIIIIlllIIII@excite.com?subject=Direct
> Marketing 
> >>>> Inquiry> with your name and a good phone number to reach you.
> >>>> 
> >>>> If you think, that you will not benefit from this correspondence,
> please 
> >>>> click here. <http://www.removeyou.com>
> >>>> 
> >>>> -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail 
> >>>> majordomo@rtlinux.org OR echo "unsubscribe rtl " | mail 
> >>>> majordomo@rtlinux.org -- For more information on Real-Time Linux see:
> 
> >>>> http://www.rtlinux.org/
> 
> 
> >>>-- 
> >>>Thomas Sauter                               Tel. 06221/75933-15
> >>>20/10 Perfect Vision                        sauter@2010pv.com
> >>>Waldhofer Str. 100
> >>>D-69123 Heidelberg
> 
> >>>-- [rtl] ---
> >>>To unsubscribe:
> >>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> >>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> >>>--
> >>>For more information on Real-Time Linux see:
> >>>http://www.rtlinux.org/
> 
> >>*** Your message did not reach its recipient ***
> >>It was caught by the mailing system as spam.
> >>If this message is not spam and you feel that
> >>this message was caught in error, please email
> >>a note to spam_filter@netfx-2000.net.
> >>If this message is spam, knock it off!
> >>This server is in California where it is illegal 
> >>to spam! We do not accept spam here!
> >>We will go after all spammers to the maximum
> >>extent of the law!
> >>-- [rtl] ---
> >>To unsubscribe:
> >>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> >>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> >>--
> >>For more information on Real-Time Linux see:
> >>http://www.rtlinux.org/
> 
> >*** Your message did not reach its recipient ***
> >It was caught by the mailing system as spam.
> >If this message is not spam and you feel that
> >this message was caught in error, please email
> >a note to spam_filter@netfx-2000.net.
> >If this message is spam, knock it off!
> >This server is in California where it is illegal 
> >to spam! We do not accept spam here!
> >We will go after all spammers to the maximum
> >extent of the law!
> >-- [rtl] ---
> >To unsubscribe:
> >echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> >echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> >--
> >For more information on Real-Time Linux see:
> >http://www.rtlinux.org/
> 
> *** Your message did not reach its recipient ***
> It was caught by the mailing system as spam.
> If this message is not spam and you feel that
> this message was caught in error, please email
> a note to spam_filter@netfx-2000.net.
> If this message is spam, knock it off!
> This server is in California where it is illegal 
> to spam! We do not accept spam here!
> We will go after all spammers to the maximum
> extent of the law!
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Wed, 7 Nov 2001 09:50:35 +0100 
From: Thomas Lehwald <thomas.lehwald@ruetz.de>
Subject: AW: [rtl] 16Ko limit with rt_com ?

Hello Stephane,

if I remeber rigth now, some times ago a message was posted here about wrong
"FIFO/BUFFER Full detection" inside the rt_com device driver. This my be the
reason for the misbehavior of your code. God luck for searching the archive.

A nice day
thomas


- -----Ursprüngliche Nachricht-----
Von: Stephane GALLES - Syntegra FR [mailto:stephane.galles@syntegra.fr]
Gesendet: Dienstag, 6. November 2001 15:16
An: rtl@rtlinux.org
Betreff: [rtl] 16Ko limit with rt_com ?



I try to send data (an array of 'double')
from a PC to an other, using a Null-Modem
cable.

I've modified the rtlinux COM driver to be able to
wake up a thread each time an interrupt is triggered, because
the target must get the data as soon as they are arrived.

actually the thread that reads the data is in an other module, and the
custom
isr handler is called thrue a fonction pointer :

So in rt_linux.c I wrote :

- -------------------------------------------------------------------------
static unsigned int rt_com0_isr( unsigned int num, struct pt_regs *r)
{

 unsigned int ret =  rt_com_isr(0, NULL);

 if (custom_isr_handler)
 {
  custom_isr_handler();
 }

 return ret;

}
- -------------------------------------------------------------------------

and in the module that reads the data we find :

- -------------------------------------------------------------------------
static void my_isr_handler(void){
 pthread_wakeup_np(thread_app);
}
- -------------------------------------------------------------------------

with custom_isr_handler = my_isr_handler (initialized when the module that
reads the data is loaded).

the thread 'thread_app' reads available data each time it is waken up,
with a rt_com_read.

I send my data from COM1 to COM0 with a user space program that sends these
data
continously, with no pause.

The rtlinux driver wait for the data on COM0, and wakeup my thread that
reads
the data

Everything is OK if the total amount of sent data does not exced 16Ko
I get all my data, even with a 115200Bd rate.

But, when I try to send more than 16Ko, it seems that the data above 16Ko
are
lost : the handler is called, the tread is waken up, the rt_com_read
function
is called and returns 8 (so 8 chars must have been received), but the chars
in the buffer filled by rt_com_read are all equal to 0.

The user space program I uses to send my doubles :
(I'm sorry for the french language used for some variables)

- ------------------------------------------------------------------------
include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>


#define BAUD_RATE B115200

/*
- ----------------------
- ----------------------
here is the 16Ko limit
2050 works, 2055 fails) :
- ----------------------
- ----------------------
*/

#define NOMBRE_DOUBLE  2054


const char *DEVICE = "/dev/ttyS1";

int
main (int ac, char **av)
{

 int fd, i, n;
 struct termios tty;
 double d = 1;
 double swap = 1;
 double cumul = 0;
 int taille_restante;
 double source;


 if ((fd = open (DEVICE, O_RDWR | O_NOCTTY | O_NDELAY)) < 0)
 {

  perror (DEVICE);

  exit (1);
 }
 else
 {


  tcgetattr (fd, &tty);
  cfsetispeed (&tty, BAUD_RATE);
  cfsetospeed (&tty, BAUD_RATE);
  tcsetattr (fd, TCSANOW, &tty);

  tcgetattr (fd, &tty);
  tty.c_cflag |= (CLOCAL | CREAD);
  tcsetattr (fd, TCSANOW, &tty);

  tcgetattr (fd, &tty);
  tty.c_cflag &= ~PARENB;
  tcsetattr (fd, TCSANOW, &tty);



  tcgetattr (fd, &tty);
  tty.c_cflag &= ~CSTOPB;
  tcsetattr (fd, TCSANOW, &tty);

  tcgetattr (fd, &tty);
  tty.c_cflag &= ~CSIZE;
  tcsetattr (fd, TCSANOW, &tty);


  tcgetattr (fd, &tty);
  tty.c_cflag |= CS8;
  tcsetattr (fd, TCSANOW, &tty);


  for (i = 0; i < NOMBRE_DOUBLE; i++)
  {
   if (i != NOMBRE_DOUBLE - 1)
   {
    source = i + 1;
    cumul = cumul + swap * source;
    swap *= (-1);
   }
   else


    /* the lastest value will be 1000000*/
    source = 1000000;
   }

   taille_restante = sizeof (double);
   do
   {
    n = write (fd,
        (char *) (&source) +
        (sizeof (double) -
         taille_restante),
        taille_restante);
    if (n > 0)
    {

     taille_restante -= n;
     printf ("Element=%d n=%d\n",
      (int) source, n);
    }
   }
   while (taille_restante);

  }
  printf ("Element envoyes : %d, CUMUL=%d\n", NOMBRE_DOUBLE,
   (int) cumul);


  close (fd);

 }


 return 0;

}

- ------------------------------------------------------------------------

And, the module that reads the data :

(I uses the value 1000000 to catch the
lastest double (but, when it fails,I never get
1000000, I get 0...) )

rt_com_set_isr_handler is a function I added to the rt_com
driver. It allow to dynamically register your own function for isr

Sorry again for the french stuff everywhere...

- --------------------------------------------------------------------------
#include <rtl.h>
#include <rtl_fifo.h>

#include <time.h>
#include <pthread.h>
#include <asm/io.h>
#include "rt_com.h"
#define BAUD_RATE 115200


static void* func_app(void* param);
static void my_isr_handler(void);

static pthread_t thread_app = 0;
static int stop_thread_app = 0;


static void my_isr_handler(void)
{

 pthread_wakeup_np(thread_app);
}

int init_module(void)
{
 struct sched_param p;
 pthread_attr_t attr;



   rtl_printf ("Mise en place des parametres du port serie\n");
 rt_com_setup(0, BAUD_RATE, RT_COM_PARITY_NONE, 1, 8);

 rtl_printf ("tentative de demarrage du thread de lecture des
parameters\n");
 pthread_attr_init(&attr);
 pthread_attr_setfp_np(&attr, 1);
 pthread_create (&thread_app, &attr, func_app, NULL);
 p . sched_priority = 1;
 pthread_setschedparam (thread_app, SCHED_FIFO, &p);


 rtl_printf ("Mise en place du handler d'IRQ\n");
 rt_com_set_isr_handler(my_isr_handler);

 return 0;
}


void cleanup_module(void)
{

 stop_thread_app = 1;
        pthread_wakeup_np(thread_app);
        pthread_join(thread_app, NULL);

 rtl_printf ("Suppression du handler d'IRQ\n");
 rt_com_set_isr_handler(0);


        rtl_printf ("Suppression des parametres du port serie\n");
 rt_com_setup(0, -1, 0, 0, 0);
}



static void *func_app(void* param)
{


    int n,i =0;

    double swap = 1;
    double cumul = 0;
    double target = 0;
    int taille_restante;
    int progression = 0;


    int dernier_element_valide =0;

    rtl_printf( "Demarrage du Thread de lecture du port série.\n" );


    taille_restante = sizeof(double);
    pthread_suspend_np(pthread_self());
    while(!stop_thread_app)
    {

 n = rt_com_read(0,
(char*)(&target)+(sizeof(double)-taille_restante),taille_restante);
 if (n > 0)
 {
  taille_restante -= n;
  rtl_printf("r=%d\n",taille_restante);

 }


  if(  0 == taille_restante)
  {
   taille_restante = sizeof(double);

  rtl_printf("t=%d\n",(int)target);
   i++;
   if(target != 1000000)
  {
      cumul = cumul + swap * target;
             swap *=(-1);

  }
  else
  {
              rtl_printf("Element recus=%d CUMUL = %d\n", i, (int)cumul);
      swap = 1;
      cumul = 0;
       i = 0;

  }
 }


      pthread_suspend_np(pthread_self());

    }

    rtl_printf("Fin du Thread de lecture du port série.\n" );

   return 0;

}
- -------------------------------------------------------------------------



Any idea for this problem ?









L'intégrité de ce message n'étant pas assurée sur Internet, SYNTEGRA ne peut
être tenu responsable de son contenu.
Si vous n'êtes pas destinataire de ce message confidentiel, merci de le
détruire et d'avertir immédiatement l'expéditeur.

The integrity of this message cannot be guaranteed on the Internet. SYNTEGRA
can not therefore be considered responsible for the contents.
If you are not the intended recipient of this confidential message, then
please delete it and notify immediatly the sender.
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Wed, 7 Nov 2001 15:42:12 +0530 (IST)
From: Gopalkrishna M R <gkrishna@rri.res.in>
Subject: [rtl] compilation problem.

Hello,

Can someone help me for compiling in
Kernel 2.2.18-rtl
It gives the following message while
compiling the device driver for the ISA
device driver.
- -----------------
/tmp/ccSkuPmI.s:Assembler messages:
/tmp/ccSkuPmi.s:9: Warning : Ignoring changed section
 attributes for .modinfo.

unresolved symbol for isa_readb
       -do-           isa_readl
       -do-           isa_writel
- ----------------

Can somebody help to overcome this?

Thanks.
gopalkrishna
  --------------------------------------------------------------
  | Gopalkrishna M R           | Phone : +91 80 3340122 to 7   |
  | RAMAN RESEARCH INSTITUTE   | Fax   : +91 80 3340492        |
  | Sadashivnagar              | email : gkrishna@rri.res.in   |
  | BANGALORE - 560 080        |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  | Karnataka                  |         o  o  o  o  o         |
  | INDIA.                     |        o  o  o  o  o          |
  --------------------------------------------------------------


- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

Date: Wed, 7 Nov 2001 02:41:27 -0800
From: spam_filter@linuxfreemail.com
Subject: Re: [rtl] Low Cost Term Life Insurance                         XMUM

>>>>>>don´t spam me again !!!!, i´am not interessted in your fucking insurance

>>>>>>QuoteSupport49@excite.com wrote:

>>>>>>> 
>>>>>>> 
>>>>>>>                   Term Quotes    Life Insurance Companies
>>>>>>> 
>>>>>>>             
>>>>>>> 
>>>>>>>  
>>>>>>> 
>>>>>>>  
>>>>>>> 
>>>>>>>   Since 1996, term life insurance rates have been reduced by as much as 70%
>>>>>>> 
>>>>>>> 40 year old male - $250,000 - 10 year level term
>>>>>>> As low as $10.44 per month!
>>>>>>> 
>>>>>>> At TermQuotes Life Insurance Companies of America, we will survey the 
>>>>>>> top life insurance companies for you and provide you with the best rates 
>>>>>>> available. The quote is free. There is no obligation to buy. Compare the 
>>>>>>> rates and see for yourself. Fill out this quick form below for further 
>>>>>>> information.
>>>>>>> 
>>>>>>> Results of computer survey 07-09-01
>>>>>>> Sample Annual Premiums
>>>>>>> * 10 Year Level Premium Term Rates *
>>>>>>> Age $250,000 $500,000 $1,000,000
>>>>>>> 35 $115 $175 $305
>>>>>>> 45 $210 $375 $670
>>>>>>> 55 $500 $935 $1,370
>>>>>>> 65 $1,305 $2,550 $4,920
>>>>>>> 70 $2,265 $4,480 $7,510
>>>>>>> 
>>>>>>> 
>>>>>>> *Above rates guaranteed to remain level for 10 years
>>>>>>> Rates based on male preferred class 1 non-smoker
>>>>>>> Policies are guaranteed renewable to age 95
>>>>>>> Policies with 15, 20, 25, and 30 year level premiums also available
>>>>>>> 
>>>>>>> Attention All Smokers,
>>>>>>> you may qualify for special reduced smoker rates!
>>>>>>> 
>>>>>>> Universal Life, Second-to-Die and Estate Planning products also provided.
>>>>>>> 
>>>>>>> Submit This Form for a Free Term Insurance Quote!
>>>>>>> 
>>>>>>> Name Insured: 
>>>>>>> Amount of Coverage:  
>>>>>>> Date of Birth: Month   Day Year
>>>>>>> Sex:  Male Female
>>>>>>> Height:  FT in
>>>>>>> Weight:  lbs.
>>>>>>> Occupation: 
>>>>>>> xxx
>>>>>>> Have You Ever Had:
>>>>>>> High Blood Pressure  Yes No
>>>>>>> Heart Attack or Stroke  Yes No
>>>>>>> Cancer  Yes No
>>>>>>> Diabetes  Yes No
>>>>>>> Mother, Father, Sister, Brother Diagnosed or Died of Cancer or 
>>>>>>> Cardiovascular Disease Before Age 60  Yes No
>>>>>>> Have You  Smoked Within the Last 12 Months  Yes No
>>>>>>> xxx
>>>>>>> Person Completing Request: 
>>>>>>> Mailing Address: 
>>>>>>> City:  State Zip
>>>>>>> Daytime Phone: 
>>>>>>> Evening Phone:  
>>>>>>> Email Address:  
>>>>>>> Best time to contact:
>>>>>>> 
>>>>>>> When you click submit it may start your spell check, so please click 
>>>>>>> "Ignore" if it does.
>>>>>>> 
>>>>>>>  
>>>>>>> YOUR INTERNET ADVERTISING
>>>>>>> CopyrightÿFFFFA92000-2001 . All Rights Reserved
>>>>>>> 
>>>>>>> This could be your ad!
>>>>>>> 
>>>>>>> Email Us <mailto:IllIlllIIIIIlllIIII@excite.com?subject=Direct Marketing 
>>>>>>> Inquiry> with your name and a good phone number to reach you.
>>>>>>> 
>>>>>>> If you think, that you will not benefit from this correspondence, please 
>>>>>>> click here. <http://www.removeyou.com>
>>>>>>> 
>>>>>>> -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail 
>>>>>>> majordomo@rtlinux.org OR echo "unsubscribe rtl " | mail 
>>>>>>> majordomo@rtlinux.org -- For more information on Real-Time Linux see: 
>>>>>>> http://www.rtlinux.org/


>>>>>>-- 
>>>>>>Thomas Sauter                               Tel. 06221/75933-15
>>>>>>20/10 Perfect Vision                        sauter@2010pv.com
>>>>>>Waldhofer Str. 100
>>>>>>D-69123 Heidelberg

>>>>>>-- [rtl] ---
>>>>>>To unsubscribe:
>>>>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>>>>--
>>>>>>For more information on Real-Time Linux see:
>>>>>>http://www.rtlinux.org/

>>>>>*** Your message did not reach its recipient ***
>>>>>It was caught by the mailing system as spam.
>>>>>If this message is not spam and you feel that
>>>>>this message was caught in error, please email
>>>>>a note to spam_filter@netfx-2000.net.
>>>>>If this message is spam, knock it off!
>>>>>This server is in California where it is illegal 
>>>>>to spam! We do not accept spam here!
>>>>>We will go after all spammers to the maximum
>>>>>extent of the law!
>>>>>-- [rtl] ---
>>>>>To unsubscribe:
>>>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>>>--
>>>>>For more information on Real-Time Linux see:
>>>>>http://www.rtlinux.org/

>>>>*** Your message did not reach its recipient ***
>>>>It was caught by the mailing system as spam.
>>>>If this message is not spam and you feel that
>>>>this message was caught in error, please email
>>>>a note to spam_filter@netfx-2000.net.
>>>>If this message is spam, knock it off!
>>>>This server is in California where it is illegal 
>>>>to spam! We do not accept spam here!
>>>>We will go after all spammers to the maximum
>>>>extent of the law!
>>>>-- [rtl] ---
>>>>To unsubscribe:
>>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>>--
>>>>For more information on Real-Time Linux see:
>>>>http://www.rtlinux.org/

>>>*** Your message did not reach its recipient ***
>>>It was caught by the mailing system as spam.
>>>If this message is not spam and you feel that
>>>this message was caught in error, please email
>>>a note to spam_filter@netfx-2000.net.
>>>If this message is spam, knock it off!
>>>This server is in California where it is illegal 
>>>to spam! We do not accept spam here!
>>>We will go after all spammers to the maximum
>>>extent of the law!
>>>-- [rtl] ---
>>>To unsubscribe:
>>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>>--
>>>For more information on Real-Time Linux see:
>>>http://www.rtlinux.org/

>>*** Your message did not reach its recipient ***
>>It was caught by the mailing system as spam.
>>If this message is not spam and you feel that
>>this message was caught in error, please email
>>a note to spam_filter@netfx-2000.net.
>>If this message is spam, knock it off!
>>This server is in California where it is illegal 
>>to spam! We do not accept spam here!
>>We will go after all spammers to the maximum
>>extent of the law!
>>-- [rtl] ---
>>To unsubscribe:
>>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>>--
>>For more information on Real-Time Linux see:
>>http://www.rtlinux.org/

>*** Your message did not reach its recipient ***
>It was caught by the mailing system as spam.
>If this message is not spam and you feel that
>this message was caught in error, please email
>a note to spam_filter@netfx-2000.net.
>If this message is spam, knock it off!
>This server is in California where it is illegal 
>to spam! We do not accept spam here!
>We will go after all spammers to the maximum
>extent of the law!
>-- [rtl] ---
>To unsubscribe:

*** Your message did not reach its recipient ***
It was caught by the mailing system as spam.
If this message is not spam and you feel that
this message was caught in error, please email
a note to spam_filter@netfx-2000.net.
If this message is spam, knock it off!
This server is in California where it is illegal 
to spam! We do not accept spam here!
We will go after all spammers to the maximum
extent of the law!
- -- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
- --
For more information on Real-Time Linux see:
http://www.rtlinux.org/

------------------------------

End of rtl-digest V1 #140
*************************