[rtl] Real-time Linux based open-source software development position

2001-02-22 Thread David Christini

I apologize in advance if I'm crossing some sort of mailing-list
etiquette line by posting this to the list:

I've received a 2-year NSF grant to extend my RealTime Linux based
scientific experiment control system (everything will be open-source
and free), and I need to hire a full-time software developer for the
2-year position here at Cornell University in New York City (the
medical campus is in NYC, not Ithaca). This seemed like the best forum
to look for someone.

-Dave

---

-
Open-Source Software Development Position
Weill Medical College of Cornell University, New York, NY
-

Applications are invited for an open-source software development
position at the Weill Medical College of Cornell University, New York,
NY.

We are seeking a full-time software developer for a two-year
appointment, supported by a recently-funded National Science
Foundation grant, aimed at the development of a Linux general-purpose,
open-source real-time experiment interface system.  The system, which
will be developed under an open-source license and will be released
free of charge, will utilize Real-Time Linux (RTLinux and/or RTAI),
Qt, and the COMEDI Linux hardware driver system.  To maximize its
utility for the scientific experimentation community, the system will
emphasize ease-of-implementation, intuitive GUI, and versatility.  For
more information, including prototype systems, please visit
http://cardiodyn.med.cornell.edu/~dchristi/software_index.html

The accepted candidate will have strong C/C++ project development
experience. Ideally the candidate will be adept in Linux/gcc
development, Qt, and real-time programming.

Interested candidates should email the following to David Christini
([EMAIL PROTECTED]):

  1. a cover letter that includes a brief description of software
  development experience,

  2. a resume (PostScript, PDF, or ASCII preferred),

  3. the names and addresses of three references (please do not send
  or solicit any actual reference letters at this time).

Consideration of applicants will begin immediately and continue until
the position is filled.

--
  David Christini, Ph.D. [EMAIL PROTECTED]
  Asst Prof of Medicine (Cardiology); Asst Prof of Physiology
  Weill Medical College of Cornell University
  http://cardiodyn.med.cornell.edu/~dchristi
--

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Can't use stuff from stdlib.h or stdio.h? Ack!

2001-02-22 Thread bionic

[rtl] Can't use stuff from stdlib.h or stdio.h? Ack!

That's correct. If you're running X, you can't print directly to the
screen from a real time module. Try using rtl_printf() instead. That'll
print to a log that you can check with the 'dmesg' command from any
terminal. 

{If you want to see it print out while it's running, you'll need
to write the 'hello' to either mbuff or a fifo and have a user space
program dump the contents of mbuff of the fifo to the screen.}

As for the rand(): include math.h, and make sure you link the math library
to your module when you compile it, via the '-lm' gcc option.

-Chuck


On Thu, 22 Feb 2001, Kiran Garimella wrote:

> Hey everybody,
>   I'm pondering over a little problem I'm having with a realtime program
> I'm writing... nothing fancy, just a hello world type program that
> outputs "Hello World" and random times.  However, it seems I can't use
> rand() to generate these random times!  I keep getting errors
> complaining first that rand() was implicitly declared and then that it's
> an "unresolved symbol."  Same errors with printf.  Any ideas why?
> 
>   Thanks in advance,
>   -Kiran
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




RE: Re[2]: [rtl] isr priority level

2001-02-22 Thread Stephen D. Cohen

Heinz,

I'll only speak for the uniprocessor case, as I really have no clue
as to what happens in the multi-processor case.


> I  guess  whenever  an  ISR  is  running, no regular (RT)task could be
> active? So there shouldn't be a way an ISR could be 'interrupted' by a
>  regular process. Am I right?

This is true (sort of).  The ISR runs in the context of whatever
thread had the CPU when the interrupt was generated.  If the ISR *chooses*
to allow the scheduler to do its thing: by calling pthread_wakeup_np, for
example, then the task (and thus the ISR) may get pre-empted.  Thus the ISR
will not complete until the other task returns the CPU and the task the ISR
had interrupted gets rescheduled.  Then the ISR will complete.

This is why it is vitally important to complete all of our hardware
wrangling in the ISR before doing anything that causes the scheduler to be
called.

It is important to note that when the scheduler does the pthread
swap, the interrupt state, etc. is restored/saved.  Thus the machine is able
to accept new interrupts while the other process is running.  You are not in
a perpetually interrupted state until the first ISR completes.  Thus the
fact that the system will make a brief trip back through the ISR to hit the
IRET before continuing with the original task is of little consequence.

Regards,

Steve

P.S. I hope Victor or Michael will jump in here if I say something
incorrect...
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] rtl_printf()s causing panic?

2001-02-22 Thread Eric Peterson

Hi,

I have an RT-Linux (2.2.14-rtl2.2) program that is doing quite a few
rtl_printf()s (for tracing), that (after a moment) panic'd the
kernel (consistently).  Disabling a subset of these print statements
seemed to make the problem go away.  Is this a known problem, or
should I start learning how to debug the kernel crashes?  (Yeah, I
know, I should probably learn that anyway...)



If anybody is interested, below is the debug macro I cooked up that
I use from my code:

#ifdef DEBUG
extern int DebugLevel;  /* define this in your RT module */

#define dprintf(level, fmt, args...)do {\
if (level < DebugLevel) { \
rtl_printf("<"#level">" "!" fmt, ## args); \
} } while(0)
#else 
#define dprintf(level, fmt, args...)do {/*nothing*/} while(0)
#endif  /* DEBUG */

Explanations for the curious:

1. The if statement lets me keep from spending CPU on the rtl_printf()
call without actually compiling out the code.  For more detailed
debugging, you may want to use DebugLevel as a bitmask.

2. The rtl_printf() call uses the same params as the kernels
printk() routine, so I stuff the debug level into the string ""
so klogd can do the right thing.

3. The "!" is used just so I can distinguish RTL code from other
kernel printk() calls.

4. In the #else case, I put a bogus statement (that the compiler
should optimize out) as leaving a blank semicolon has in the past
bitten me. 

5. Note the use of (GCC specific!) varargs in a macro - beware
trying this on none-gcc platforms.


Regards,
Eric

-- 
Given a choice between grief and nothing, I'd choose grief.
-- William Faulkner

Eric Peterson WB6PYK (805)370-3046 mailto:[EMAIL PROTECTED]
http://www.troikanetworks.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re[2]: [rtl] isr priority level

2001-02-22 Thread Heinz Haeberle

I  guess  whenever  an  ISR  is  running, no regular (RT)task could be
active? So there shouldn't be a way an ISR could be 'interrupted' by a
 regular process. Am I right?


-- 
Best regards,
 Heinz mailto:[EMAIL PROTECTED]


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Can't use stuff from stdlib.h or stdio.h? Ack!

2001-02-22 Thread Kiran Garimella

Hey everybody,
I'm pondering over a little problem I'm having with a realtime program
I'm writing... nothing fancy, just a hello world type program that
outputs "Hello World" and random times.  However, it seems I can't use
rand() to generate these random times!  I keep getting errors
complaining first that rand() was implicitly declared and then that it's
an "unresolved symbol."  Same errors with printf.  Any ideas why?

Thanks in advance,
-Kiran
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




RE: [rtl] isr priority level

2001-02-22 Thread Stephen D. Cohen

Stefano,

As one who has been through this problem before (a few times), let
me offer some comments.

> How can I set ISR priority level so that the interrupt handler can
> complete before thread p awakes ?

I can not think of any way that this can be done.  The ISRs in
RTLinux run within the context of the process which was running when the
interrupt came in.  Thus there is no way to be sure that the interrupt does
not get pre-empted by the scheduler, unless you are certain that the
interrupted task is the only computable process.

I am sure, however, that if you are trying to use pthread_suspend_np
from an ISR, you are probably doing something the hard (very hard) way.  In
general ISRs wake things up, not put them to sleep.

Perhaps if you provided some details of your application I/we could
help you with your design.

> With RTLinux 2.0 it seems I can't call pthread_kill...is it right ?

?? 2.0 ??  First bit of advice, upgrade to 3.0 - many many many
fixes.

Also, as an aside, when you do a pthread_wakeup_np from an ISR, you
have to keep in mind that the ISR will probably be pre-empted immediately.
Thus you should get all of your hardware tweaking, etc. that needs to be
done in a highly-deterministic ISR sort of way done *first*, before calling
the wakeup.  The system will go and serve the woken process and will return
to call the IRET in the ISR when that process goes back to sleep.  This is,
of course, assuming that you have all of your priorities set in a "normal"
manner.

This sort of "odd" quasi-inverted mechanism was implemented to
prevent having to call the scheduler (expensive) with every interrupt.  Thus
systems with interrupt driven serial I/O, for example, can avoid a bazillion
calls to the scheduler.

Regards,

Steve
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Must I use global variables??

2001-02-22 Thread Marcus Högberg

Hi!

My name is Marcus and i wonder over somthing strange. I have a program
that more or less looks below.
My question now is why must i use global variables?? If i put "utdata3"
after "void start_routine(...)" (localy) then the varible doesn't work
properly. I use utdata3 in the function WriteDig2 which sends the data
to a ISA-card (and then a couple of lamps falshes realy nice). But if I
rmmods the program and then starts it again (insmod) then utdata3 isnt
equal 127, but instead it has the same value it had when I removed the
module. The solution to this problem was to put the variables outside
"start_routine" (globaly). Anouther soultion (a strange one): I could
see on the lamps that the old values from before were being used, but if
I used a rtl_printf and printet the value of variable, then I got the
new-initilized value! (printed value was correct and the lamps also
worked as they should)

Can't I use local variables if I want to be sure that their next
initialization after a rmmod followed by a insmod are correct?

--

#include

pthread_t thread;

char utdata3=127;
int tid = 1000; //antal microsekunder
int k=0;

void start_routine(void) {

 pthread_make_periodic_np(pthread_self(),gethrtime(),tid*1000);

 while (1) {
   pthread_wait_np ();
   if (k>1000) {
k=0;
   if (utdata3 <1)
   utdata3 = 127;
   utdata3--;
   WriteDig2(1,2,utdata3);
   }
   k++;
 }
}

int init_module(void) {
 return pthread_create (&thread, NULL, start_routine, 0);
}

void cleanup_module(void) {
 pthread_delete_np (thread);
}


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] RTL on a i486DX2 (again)

2001-02-22 Thread sanchez

> Hi again;

I know in my first mail I wasn't very specific with the problem I'm
having
The fact is that when compiling examples, I don't get any response at
all, without displaying any kind of message.
But, when exactly a module is being installed?, because it gets stucked
just when starts to compile.
I must say that the same example (for instance, mutex) sometimes it
works, but sometimes it doesn't.

Anyway, could it be something related to some installed modules? if it
could, what modules should I try ?
May I uninstall that modules (the examples) before installing another
ones?
Actually, I've been working with linux for 1 month, so I don't get most
of these things

And thanks again for reading

PS: Raul; yes, I'm a UPC student. If you want, I could email you (or so
you) for some explanation in Spanish (I'm sure I could explain it
better). By the way, are you from UPC, too?



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Exception 0xe?

2001-02-22 Thread Christopher D. Carothers

Hi. Does anyone know what exception 0xe is?? rtl_debug is catching
it. It comes about when I increase the amount of memory in my RT
application. I am allocating an array that is 8 MB. This exception is not
generated if I used say 1K of RAM for the array.  My system is a dual
P-II, running 2.4.1 linux and rtlinux-3.0.

This brings up a larger question in the context of memory
mangement, which is how do the TLBs operate under RTL?? Meaning, if a TLB
miss is generated does RTL catch that or does the MMU handle as it would
for regular Linux. I know for example that x86 has hardware managed TLBs
where the MIPS processors are software managed (i.e., trap to the OS).

Any help would be most appreciated.

Thanks,
Chris


Christopher D. Carothers

Assistant Professor
Department of Computer Science 
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590

e-mail: [EMAIL PROTECTED]
web page: www.cs.rpi.edu/~chrisc
phone: (518) 276-2930 
fax: (518) 276-4033




-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] RT and USB

2001-02-22 Thread daniel sheltraw

Hello RTers

Does anyone know where I can get programming information
or sample code for RT control of devices on the USB bus?

Thanks all,
Daniel
_
Get your FREE download of MSN Explorer at http://explorer.msn.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] root id

2001-02-22 Thread Frederic Cazenave

Der Herr Hofrat wrote:

> > > >
> > > > I have installed this files :
> > > > 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
> > > > linux-2.2.18.tar.gz
> > > > 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
> > > > rtlinux-3.0.tar.gz
> > > >
> what ever is going on here I don't think it realy is rtlinux related, with the
> current rtlinux-3.0.tar.gz and 2.2.18 from kernel.org I can't reproduce this
> problem on any of my boxes.
>
> could you specify what compiler-releas you are using ?
>
> also did you log in as root or did you su ?
>
> hofrat

My gcc is

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.0)

and I'm logged as root

Fred

--
 _
|  |
|   Frederic CAZENAVE  |
|_/\_  /^=  McGill Radar   |
| \_/\//Box 198, MacDonald College |
|   | /-\ | Ste Anne de Bellevue   |
|   ||   || Quebec, Canada   H9X 3V9   |
|   Tel (514) 398 7733 fax (514) 398 7755  |
|   mailto:[EMAIL PROTECTED]   |
|   http://www.mpl.orstom.fr/hydrologie/catch/ |
|__|



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] isr priority level

2001-02-22 Thread Stefano Miotto


Hi everybody,
as Yodaiken wrote on may 2000:
>
>pthread_suspend_np   -- suspend the named thread _and_ call the scheduler
>
>So pthread_suspend_np(p) will suspend "p"
>thread and call the scheduler. If you do this in a interrupt
>handler  it's possible that the interrupt handler will be suspended as
>well! This will certainly happen if p==pthread_self() and may happen
>if a higher priority thread is runnable.


How can I set ISR priority level so that the interrupt handler can
complete before thread p awakes ?


>the clean way to do thread wakeup
>and suspend is with pthread_kill which delivers the signal but does not
>resched. The problem here is that pthread_kill(p,RTL_SIG_SUSPEND) may
>not have immediate effect, but in most cases, what you want is for the
>task that is waiting to do a pthread_suspend_np(pthread_self())
>and for the interrupt routine to do pthread_kill(p,RTL_SIG_WAKEUP);

With RTLinux 2.0 it seems I can't call pthread_kill...is it right ?

Thankyou all for the help.
Stefano


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] root id

2001-02-22 Thread Der Herr Hofrat

> > >
> > > I have installed this files :
> > > 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
> > > linux-2.2.18.tar.gz
> > > 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
> > > rtlinux-3.0.tar.gz
> > >
what ever is going on here I don't think it realy is rtlinux related, with the
current rtlinux-3.0.tar.gz and 2.2.18 from kernel.org I can't reproduce this 
problem on any of my boxes. 

could you specify what compiler-releas you are using ?

also did you log in as root or did you su ?

hofrat
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Patch installation problem

2001-02-22 Thread Anjali Nigale



Hello,
 
I have installed kernel 2.2.16 and applied ikd 
patch and rtl 2.2 patch. After applying the ikd-2.2.16 patch the kernel compiled 
but after applying the rtl patch it gave the error 'PROC_RTLINUX' undefined here 
in root.c
Could anybody help ?
 
Thanks in advance,
Anjali.
 


Re: [rtl] root id

2001-02-22 Thread Ludwig Öfele

Hello Frederic!

That's clear. I think, root always has id 0. You have to search for the
"-1" and patch it (replace it) with the "4294967295". For sure I will
give no garantee, that this will not crash your system, but you should
try it (do not log out, you might not be able to login as root again).

regards
Ludwig Öfele, Humantec

Frederic Cazenave wrote:
> 
> The both files /etc/passwd and /etc/group the id of root is 0 !!!
> 
> Fred
> 
> Ludwig Öfele wrote:
> 
> > Hello Frederic!
> >
> > I think, I had a similar problem after an update of Linux Kernel
> > (without RT). Your effective user id is 4294967295 which corresponds to
> > -1 if you look at it in 64-Bit-Terms. There seems to be a change of
> > semantics (-1 changed to 4294967295) in the system and now the rights of
> > user and the rights of files do not match any more. I can't explain it
> > any better, but maybe this gives you an advice.
> > I think, I fixed it by changing the id -1 in the groups or passwd file
> > to something more sensful ( (unsigned int32)(-1) = 65535 ?).
> >
> > Have luck!
> >
> > Ludwig Öfele, Humantec Industriesysteme
> >
> > Frederic Cazenave wrote:
> > >
> > > Last week I have posted a question concerning the lost of my root
> > > privilege
> > > after installing rtlinux modules. I can summary all my mail with hofrat
> > > ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following :
> > >
> > > I have installed this files :
> > > 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
> > > linux-2.2.18.tar.gz
> > > 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
> > > rtlinux-3.0.tar.gz
> > >
> > > then patch linux with  kernel_patch-2.2 and build the new rtlinux image
> > >
> > > when I reboot my machine and logged as root my id is
> > >
> > > [root@xport /root]# id
> > > uid=0(root) gid=0(root)
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > >
> > > After installing all the modules of rtlinux my effective id changes :
> > >
> > > uid=0(root) gid=0(root) euid=4294967295
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > > (here there is no possibility to bring down the system propely !!)
> > >
> > > If I remove all the rt modules my id goes back to the original
> > >
> > > uid=0(root) gid=0(root)
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > >
> > > Rigth now I didn't find any solution
> > >
> > > Fred Cazenave
> > >
> > > --
> > >  _
> > > |  |
> > > |   Frederic CAZENAVE  |
> > > |_/\_  /^=  McGill Radar   |
> > > | \_/\//Box 198, MacDonald College |
> > > |   | /-\ | Ste Anne de Bellevue   |
> > > |   ||   || Quebec, Canada   H9X 3V9   |
> > > |   Tel (514) 398 7733 fax (514) 398 7755  |
> > > |  mailto:[EMAIL PROTECTED]   |
> > > |  http://www.mpl.orstom.fr/hydrologie/catch/ |
> > > |__|
> > >
> > > -- [rtl] ---
> > > To unsubscribe:
> > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> > > --
> > > For more information on Real-Time Linux see:
> > > http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] LXRT and shared memory

2001-02-22 Thread Erwin Rol

If you only have LXRT userspace tasks, you could
also use pthreads and run all LXRT tasks in the same
process, making the shared memory automatic.

- Erwin

"Jennings, Richard R" wrote:
> 
> Greetings all,
> Should I be using mbuff or the portable_shm package for use
> with LXRT?  I am using Linux kernel 2.2.16 and RTAI
> 22.2.4 with lxrt-extended.
> 
> Also, what would the correct version of mbuff be for these
> versions?
> 
> Thanks,
> Rich
> ~~~
> Richard R. Jennings
> Embedded Software Engineer - The Boeing Company
> Flight Simulation Technology / Advanced Avionics Center - St. Louis
> Computational & Image Generation Group
> (314)234-0460  FAX (314)232-7972
> [EMAIL PROTECTED]
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] LXRT and shared memory

2001-02-22 Thread Jennings, Richard R

Greetings all,
Should I be using mbuff or the portable_shm package for use
with LXRT?  I am using Linux kernel 2.2.16 and RTAI
22.2.4 with lxrt-extended.

Also, what would the correct version of mbuff be for these
versions?

Thanks,
Rich
~~~
Richard R. Jennings
Embedded Software Engineer - The Boeing Company
Flight Simulation Technology / Advanced Avionics Center - St. Louis
Computational & Image Generation Group
(314)234-0460  FAX (314)232-7972
[EMAIL PROTECTED]


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] LXRT and shared memory

2001-02-22 Thread Paolo Mantegazza

Jennings, Richard R wrote:
> 
> Greetings all,
> Should I be using mbuff or the portable_shm package for use
> with LXRT?  I am using Linux kernel 2.2.16 and RTAI
> 22.2.4 with lxrt-extended.
> 
> Also, what would the correct version of mbuff be for these
> versions?
> 

I think it should be possible since mbuff is the most portable, but I
never tried. It should be so since Tomek suggests using mbuff also for
RTAI in his mbuff distribution, and I know he knows what he says.

Recall also that RTAI own shared memory is mostly taken from Tomek mbuff
ideas, but implemented my way. Now even the related APIs are very
similar so I think you can try and use whichever you like.

The main difference at the moment is that mbuf uses Linux driver
mechanisms to access the kernel while RTAI shmem jump directly to its
services in kernel space by using soft ints, in i386, and traps, in PPC.

Ciao, Paolo.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] init method

2001-02-22 Thread Norm Dresner



There are startup scripts provided in /etc/rc.d exactly for 
the purpose of running program(s) during the boot process.  These files 
are
    /etc/rc.d/rc#.d/S99local
where # is 2, 3, and 5
If you're running X, your final init-state is 5 and the last 
init-script that runs will be /etc/rc.d/rc5.d/S99local; if you're not running X, 
then it's 3 instead of 5..
 
You are free to hack up the requisite scripts.  Note too 
that if you're running X, the system still goes thru the 3-state before 
transitioning to 5 so you can even start a program before X-window starts if 
it's a console program.
 
Norman DresnerFellow Systems Engineer & SGI Laboratory 
AdministratorRadar Systems Engineering DepartmentElectronic Systems and 
Sensors SegmentNorthrop Grumman CorporationBaltimore-Washington 
International Airport7323 Aviation BoulevardBaltimore Maryland 
21240
 
Voice: (410) 993 - 2096 Mornings; all-day 
voice-mail (410) 969 - 8068 Afternoons with answering 
machineFAX: (410) 993 - 8084 On-site (410) 969 - 
8068 Afternoons; call first to arrangeE-Mail: Mornings: [EMAIL PROTECTED] Afternoons: [EMAIL PROTECTED]

  - Original Message - 
  From: 
  Jeffrey Krasky 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, February 21, 2001 11:54 
  AM
  Subject: [rtl] init method
  
  Hi,
  this may not have to be a real-time question, but 
  I am hoping someone knows the answer.  Someone told me that I can modify 
  the file rc.sysinit so that I can have control of everything that happens when 
  the machine boots.  Here is my ideal situation:
  right after the machine is done booting and 
  mounting the file systems, it goes and finds my program and runs it.  I 
  would like my program to first get the current time down to a microsecnd, then 
  "run it's function", then get the time again, and output the total execution 
  time down to the nearest microsecond.  Then I dont care what happens 
  after that.  I would like to make sure that nothing else could be 
  running, like a daemon or something.  Is this the way to go or are there 
  better ideas?
   
  Thanks all,
   
  Jeff


Re: [rtl] root id

2001-02-22 Thread Frederic Cazenave

Thanks every buddies, I have upgraded my glibc (glibc-2.2.2-1.i686.rpm) and my
problem
seem to be solved.

Fred

Frederic Cazenave wrote:

> The both files /etc/passwd and /etc/group the id of root is 0 !!!
>
> Fred
>
> Ludwig Öfele wrote:
>
> > Hello Frederic!
> >
> > I think, I had a similar problem after an update of Linux Kernel
> > (without RT). Your effective user id is 4294967295 which corresponds to
> > -1 if you look at it in 64-Bit-Terms. There seems to be a change of
> > semantics (-1 changed to 4294967295) in the system and now the rights of
> > user and the rights of files do not match any more. I can't explain it
> > any better, but maybe this gives you an advice.
> > I think, I fixed it by changing the id -1 in the groups or passwd file
> > to something more sensful ( (unsigned int32)(-1) = 65535 ?).
> >
> > Have luck!
> >
> > Ludwig Öfele, Humantec Industriesysteme
> >
> > Frederic Cazenave wrote:
> > >
> > > Last week I have posted a question concerning the lost of my root
> > > privilege
> > > after installing rtlinux modules. I can summary all my mail with hofrat
> > > ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following :
> > >
> > > I have installed this files :
> > > 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
> > > linux-2.2.18.tar.gz
> > > 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
> > > rtlinux-3.0.tar.gz
> > >
> > > then patch linux with  kernel_patch-2.2 and build the new rtlinux image
> > >
> > > when I reboot my machine and logged as root my id is
> > >
> > > [root@xport /root]# id
> > > uid=0(root) gid=0(root)
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > >
> > > After installing all the modules of rtlinux my effective id changes :
> > >
> > > uid=0(root) gid=0(root) euid=4294967295
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > > (here there is no possibility to bring down the system propely !!)
> > >
> > > If I remove all the rt modules my id goes back to the original
> > >
> > > uid=0(root) gid=0(root)
> > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > >
> > > Rigth now I didn't find any solution
> > >
> > > Fred Cazenave
> > >
> > > --
> > >  _
> > > |  |
> > > |   Frederic CAZENAVE  |
> > > |_/\_  /^=  McGill Radar   |
> > > | \_/\//Box 198, MacDonald College |
> > > |   | /-\ | Ste Anne de Bellevue   |
> > > |   ||   || Quebec, Canada   H9X 3V9   |
> > > |   Tel (514) 398 7733 fax (514) 398 7755  |
> > > | mailto:[EMAIL PROTECTED]   |
> > > | http://www.mpl.orstom.fr/hydrologie/catch/ |
> > > |__|
> > >
> > > -- [rtl] ---
> > > To unsubscribe:
> > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> > > --
> > > For more information on Real-Time Linux see:
> > > http://www.rtlinux.org/rtlinux/
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

--
 _
|  |
|   Frederic CAZENAVE  |
|_/\_  /^=  McGill Radar   |
| \_/\//Box 198, MacDonald College |
|   | /-\ | Ste Anne de Bellevue   |
|   ||   || Quebec, Canada   H9X 3V9   |
|   Tel (514) 398 7733 fax (514) 398 7755  |
|   mailto:[EMAIL PROTECTED]   |
|   http://www.mpl.orstom.fr/hydrologie/catch/ |
|__|



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




RE: [rtl] root id

2001-02-22 Thread Basham, Richard R

I think the bigger question here is:  Why did this happen in the first place?

Cort,

Is there anyone at FSM Labs know why this occurred?

> --
> From: Ludwig > Öfele[SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 9:15 AM
> To:   Frederic Cazenave
> Cc:   [EMAIL PROTECTED]
> Subject:  Re: [rtl] root id
> 
> Hello Frederic!
> 
> That's clear. I think, root always has id 0. You have to search for the
> "-1" and patch it (replace it) with the "4294967295". For sure I will
> give no garantee, that this will not crash your system, but you should
> try it (do not log out, you might not be able to login as root again).
> 
> regards
> Ludwig Öfele, Humantec
> 
> Frederic Cazenave wrote:
> > 
> > The both files /etc/passwd and /etc/group the id of root is 0 !!!
> > 
> > Fred
> > 
> > Ludwig Öfele wrote:
> > 
> > > Hello Frederic!
> > >
> > > I think, I had a similar problem after an update of Linux Kernel
> > > (without RT). Your effective user id is 4294967295 which corresponds to
> > > -1 if you look at it in 64-Bit-Terms. There seems to be a change of
> > > semantics (-1 changed to 4294967295) in the system and now the rights of
> > > user and the rights of files do not match any more. I can't explain it
> > > any better, but maybe this gives you an advice.
> > > I think, I fixed it by changing the id -1 in the groups or passwd file
> > > to something more sensful ( (unsigned int32)(-1) = 65535 ?).
> > >
> > > Have luck!
> > >
> > > Ludwig Öfele, Humantec Industriesysteme
> > >
> > > Frederic Cazenave wrote:
> > > >
> > > > Last week I have posted a question concerning the lost of my root
> > > > privilege
> > > > after installing rtlinux modules. I can summary all my mail with hofrat
> > > > ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following :
> > > >
> > > > I have installed this files :
> > > > 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
> > > > linux-2.2.18.tar.gz
> > > > 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
> > > > rtlinux-3.0.tar.gz
> > > >
> > > > then patch linux with  kernel_patch-2.2 and build the new rtlinux image
> > > >
> > > > when I reboot my machine and logged as root my id is
> > > >
> > > > [root@xport /root]# id
> > > > uid=0(root) gid=0(root)
> > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > > >
> > > > After installing all the modules of rtlinux my effective id changes :
> > > >
> > > > uid=0(root) gid=0(root) euid=4294967295
> > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > > > (here there is no possibility to bring down the system propely !!)
> > > >
> > > > If I remove all the rt modules my id goes back to the original
> > > >
> > > > uid=0(root) gid=0(root)
> > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
> > > >
> > > > Rigth now I didn't find any solution
> > > >
> > > > Fred Cazenave
> > > >
> > > > --
> > > >  _
> > > > |  |
> > > > |   Frederic CAZENAVE  |
> > > > |_/\_  /^=  McGill Radar   |
> > > > | \_/\//Box 198, MacDonald College |
> > > > |   | /-\ | Ste Anne de Bellevue   |
> > > > |   ||   || Quebec, Canada   H9X 3V9   |
> > > > |   Tel (514) 398 7733 fax (514) 398 7755  |
> > > > |  mailto:[EMAIL PROTECTED]   |
> > > > |  http://www.mpl.orstom.fr/hydrologie/catch/ |
> > > > |__|
> > > >
> > > > -- [rtl] ---
> > > > To unsubscribe:
> > > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > > > echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> > > > --
> > > > For more information on Real-Time Linux see:> 
> > > > http://www.rtlinux.org/rtlinux/
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/