[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rtl-digest V1 #52
rtl-digest Wednesday, May 9 2001 Volume 01 : Number 052
----------------------------------------------------------------------
Date: Mon, 7 May 2001 17:28:34 +0200 (CEST)
From: Der Herr Hofrat <der.herr@hofr.at>
Subject: Re: [rtl] sigprocmask
> what is wrong with this?
> I get a unresolved symbol sigprocmask. I have looked in the header file
> posix/signal.h and the finktion is there.
>
> #include <rtl.h>
> #include <rtl_time.h>
> #include <rtl_sched.h>
> #include <time.h>
> #include <posix/signal.h>
#include <rtlinux_signal.h>
hofrat
- -- [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/rtlinux/
------------------------------
Date: Mon, 7 May 2001 14:03:29 -0400
From: Patrick Maheral <pmaheral@AAI.ca>
Subject: Re: [rtl] can RTLinux coexist with Windows 2000 in dual boot?
On Mon, May 07, 2001 at 12:11:16PM +0900, Michel Audette wrote:
> Hello,
>
> I am about to install RTLinux on a new machine used for surgical simulation, but I am also considering a dual boot with Windows 2000. Is there a difference between RTLinux and standard Linux in terms of a dual boot process?
>
> Thanks for your consideration. Best regards,
>
> Michel Audette
The boot process is the same for standard Linux and RTLinux, so yes, you
can have a dual boot (RT)Linux/Win2000 system.
- -- [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/rtlinux/
------------------------------
Date: Mon, 7 May 2001 13:30:37 -0500
From: jjk@mathstar.com
Subject: RE: [rtl] Make file.
Dont you have to compile with the -c option to make a module? I dont
see that anywhere down there.
- -----Original Message-----
From: Tony Denault
Sent: Fri 5/4/2001 1:06 AM
To: rtl@fsmlabs.com
Cc:
Subject: [rtl] Make file.
I've installed rtlinux 3.0 on a 2.2.18 (slackware) kernel. I was able to
write and run a program that create periodic thread and write to a rtl
fifo. My next step was to break up the source into muliple files:
lp_mod.c - module load/cleanup
lp_main.c - start of new thread
myrt_io.c - some support function.
The created the following makefile:
RTINCLUDE -I/usr/src/rtlinux-3.0/include
-I/usr/src/rtlinux-3.0/include/compat
- -I/usr/src/rtlinux-3.0/include/posix
INCLUDE CFLAGS -D__SMP__
-pipe -fno-strength-reduce -m486 -malign-loops*lign-jumps
-malign-functions-CPUh6 -g -D__RTL__ -D_LOOSE_KERNEL_NAMES
-O2 $(INCLUDE)
CC
all: lp.o
lp.o: lp_mod.o lp_main.o mrt_io.o
ld -r -o lp.o lp_mod.o lp_main.o mrt_io.o
lp_mod.o: lp_mod.c
$(CC) $(CFLAGS) -DMODULE -c lp_mod.c
lp_main.o: lp_main.c
$(CC) $(CFLAGS) -c lp_main.c
mrt_io.o: mrt_io.c
$(CC) $(CFLAGS) -c mrt_io.c
clean:
rm -f *.o
The problem? I can't create a good loadable module? Either I am
missing module information, can find stuff like stdio, can't compile due
to multiple define in system header...very frustrating. I'm not a
makefile
expert, but have been doing C / Linux program for a number of years.
Any advice on make, order of #includes<>, etc, is appreciated..
Tony
/-----------------------------------------------------------------------
- ------\
| Tony Denault | Internet:
denault@irtf.ifa.hawaii.edu |
| NASA IRTF, Institute of Astronomy | Phone: (808)
974-4206 |
| 1175 Manono St., Bldg 393 | Fax: (808)
974-4207 |
| Hilo, Hawaii 96720 |
|
\-----------------------------------------------------------------------
- ------/
- -- [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/rtlinux/
- ----Admin Comment----
Content-Type: application/ms-tnef;
nameContent-Transfer-Encoding: base64
what is and who needs winmail.dat ?
what ever it was I removed it, pleas drop these littl M$-gimics
I guess they are only usable for wasting bandwidth and triggering
paranoid admins virus-scanners :)
thx !
hofrat
- -- [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/rtlinux/
------------------------------
Date: Mon, 07 May 2001 20:34:06 -0100
From: Anders Gnistrup <agn@city.dk>
Subject: Re: [rtl] putting threads to sleep
This is a multi-part message in MIME format.
- --------------F2AD4983BAB265ED2199D982
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi karl
I solwed the problem. It does work and can put task to be suspended for a
while
test the attached code.
I have tried to make the waiting with a wait_quque_head_t, but that did not
work out.
I gees that the thread it preemtet and leves the system in a undefiined
state while trying to start new task.
What happend is -> it worked out fine until i tried to open fx netscape.
Anders Gnistrup
ps. If you have a better solution I whould like to know.
karl rentsch wrote:
> Hi all,
>
> I've got a problem I hope someone can help me with. I'm trying to put a
> thread to sleep but I don't want to tie up the system using usleep() or
> nanosleep(). I've tried using pthread_make_periodic_np configured as a
> one shot timer (ie. it needs to repeat several times but for different
> time intervals) but it doesn't seem to work
> Any help would be much appreciated
> Thanks
> Karl Rentsch
>
> -- [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/rtlinux/
- --------------F2AD4983BAB265ED2199D982
Content-Type: text/plain; charset=us-ascii;
name="rt_smr_mod.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rt_smr_mod.c"
#include <linux/errno.h>
#include <rtl.h>
#include <time.h>
#include <rtl_time.h>
#include <rtl_sched.h>
#include <rtl_fifo.h>
#include <semaphore.h>
#include <rtl_posixio.h>
#include <unistd.h>
/*
* definition af read/write fifos til rt_serial
*-------------------------------------------------*/
#define COM_CNT 2
#define RS485 0
#define RS232 1
#define READ_RS485 2
#define WRITE_RS485 0
#define READ_RS232 3
#define WRITE_RS232 1
/*
* handler funktions
*------------------*/
static int handler_rs485(unsigned int fifo);
static int handler_rs232(unsigned int fifo);
struct rt_com_struct {
char *devname;
int read_fifo; /* seen from userspace */
int write_fifo; /* seen from userscape */
int (*handler) (unsigned int); /* handler for read_fifo */
sem_t sem_read;
sem_t sem_write;
int fd;
};
static struct rt_com_struct rt_com_table[COM_CNT] =
{
{"/dev/ttyS0",READ_RS485, WRITE_RS485, handler_rs485},
{"/dev/ttyS1",READ_RS232, WRITE_RS232, handler_rs232},
};
/*
* funktions
*-----------*/
pthread_t timer_create_ID;
static void *timer_create(void *t);
static inline void timer_wait( int );
struct wait_timer_struct {
sem_t sem_timer;
int timer_counter;
} wait_timer;
/*
* program
*----------------*/
static int handler_rs485(unsigned int fifo) {
struct rt_com_struct *p=&(rt_com_table[RS485]);
int error,i;
char buf[10], bufmes[10] = "hej linux\n";
char mes[4] = {1,0x21};
rtl_printf("TEST : handler_rs485\n");
/* get message */
i=0;
while ( ((error = rtf_get(p->write_fifo, &buf[i],1)) == 1) && i++<10);
rtl_printf("TEST %s\n",buf);
if( rtf_put(p->read_fifo, bufmes, sizeof(bufmes))<0 ) {
rtl_printf("TEST : error writing to read_fifo\n");
}
/* trying to write to smr */
write(p->fd,mes,2);
timer_wait(7);
read(p->fd,mes,4);
rtl_printf("TEST : %x %x %x %d\n",mes[0],mes[1],mes[2],mes[3]);
return 0;
}
static int handler_rs232(unsigned int fifo) {
struct rt_com_struct *p=&(rt_com_table[RS232]);
int error,i;
char buf[10], bufmes[10] = "hej linux\n";
i=0;
rtl_printf("TEST : handler_rs232\n");
/* get message */
while ( ((error = rtf_get(p->write_fifo, &buf[i],1)) == 1) && i++<10);
rtl_printf("TEST %s\n",buf);
if( rtf_put(p->read_fifo, bufmes, sizeof(bufmes)) < 0 ) {
rtl_printf("TEST : error writing to read_fifo\n");
}
return 0;
}
/*
* timer finktion
*-------------------------*/
static void *timer_create(void *t) {
struct wait_timer_struct *p = &wait_timer;
int timer_counter;
sem_init(&(p->sem_timer),0,0);
p->timer_counter = 0;
while(1) {
pthread_wait_np();
timer_counter = p->timer_counter;
while(timer_counter>0) {
sem_post(&p->sem_timer);
timer_counter--;
}
}
return 0;
}
static inline void timer_wait(int nr_chars) {
struct wait_timer_struct *p = &wait_timer;
p->timer_counter++;
while(nr_chars-->=0) {
sem_wait(&p->sem_timer);
}
p->timer_counter--;
}
/*
* init etc
*----------------*/
int init_module(void) {
int i;
struct rt_com_struct *p;
pthread_attr_t attr;
struct sched_param sched_param;
hrtime_t period = (hrtime_t) 1000000000/ 11520;
for(i=0;i<COM_CNT; i++) {
p=&rt_com_table[i];
p->fd = open(p->devname,O_RDWR);
rtf_destroy(p->read_fifo);
rtf_destroy(p->write_fifo);
rtf_create(p->read_fifo,256);
rtf_create(p->write_fifo,256);
rtf_make_user_pair(p->write_fifo,p->read_fifo); /* makes fifo bidirectional in user space */
rtf_create_handler(p->write_fifo, p->handler);
}
/* create task for queue waiting */
pthread_attr_init(&attr);
sched_param.sched_priority = 4;
pthread_attr_setschedparam(&attr,&sched_param);
pthread_create(&timer_create_ID,&attr, timer_create, (void *) 11520 /* HZ */);
pthread_make_periodic_np(timer_create_ID, gethrtime(), period);
return 0;
}
void cleanup_module(void) {
int i;
struct rt_com_struct *p;
for(i=0;i<COM_CNT; i++) {
p=&rt_com_table[i];
rtf_destroy(p->read_fifo);
rtf_destroy(p->write_fifo);
close(p->fd);
}
pthread_suspend_np(timer_create_ID);
pthread_cancel(timer_create_ID);
pthread_join(timer_create_ID, NULL);
}
- --------------F2AD4983BAB265ED2199D982--
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 09:08:40 +0700
From: Adolf Ahmad MS <adolf@ratelindo.co.id>
Subject: RE: [rtl] Maximum Sample Rate using RTLINUX
Dear David Olofson,
Thank you for nice answer, of course this PPI 8225 card(using 8255 I/O chip
with Strobe Mode 1) and without Hardware FIFO/buffer. I only use RT_FIFO.
But if you have experience "What is the maximum Interrupt Frequencies of
RT_IRQ", tell me more.
Regards,
Adolfo
> -----Original Message-----
> From: David Olofson [SMTP:david.olofson@reologica.se]
> Sent: Friday, May 04, 2001 1:20 AM
> To: rtl@fsmlabs.com
> Subject: Re: [rtl] Maximum Sample Rate using RTLINUX
>
> On Thursday 03 May 2001 05:49, Adolf Ahmad MS wrote:
> > Dear All,
> >
> > I need a help.....
> >
> > I have a problem during capture data stream with data rate(sampling) 782
> > kByte/s using PPI8255 Card(ISA Bus). To capture the data stream, i
> applied
> > IRQ triggering.
> >
> > But, some times many byte of data are lost. How many maximum transfer
> rate
> > on RTLINUX ?
>
> No maxmum transfer rate, really, but there are hardware limitations on the
>
> IRQ response times...
>
>
> > As info, there is no problem if applied this program to capture the data
> > stream with 100 kByte/S.
>
> 100 kHz isn't bad for anything with a "normal" CPU in it! You're spending
> most of the CPU cycles on context switching here, probably with an
> occasional
> latency peak when the cache is exhausted... (That would be the several
> lost
> bytes when you try to go beyond 100 kHz.)
>
>
> I *really* think you should consider using DMA, or at least some hardware
> buffering... General purpose CPUs really aren't suitable for this kind of
> interrupt frequencies.
>
> Isn't there some hardware FIFO or ISA DMA support on that card? (I don't
> know
> anything about the PPI8255...)
>
>
> //David
>
> .- M A I A -------------------------------------------------.
> | Multimedia Application Integration Architecture |
> | A Free/Open Source Plugin API for Professional Multimedia |
> `----------------------> http://www.linuxaudiodev.com/maia -'
> .- David Olofson -------------------------------------------.
> | Audio Hacker - Open Source Advocate - Singer - Songwriter |
> `--------------------------------------> david@linuxdj.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/rtlinux/
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 09:03:10 +0700
From: Adolf Ahmad MS <adolf@ratelindo.co.id>
Subject: RE: [rtl] something wrong with printk???
Make sure that you run/login from tty0(ALT+F1) console
> -----Original Message-----
> From: Jeff Krasky [SMTP:jkrasky@hotmail.com]
> Sent: Sunday, May 06, 2001 5:29 AM
> To: rtl@rtlinux.org
> Subject: [rtl] something wrong with printk???
>
> Hi all,
> this is probably a simple question but I am not sure where to look for
> the answer. I have Rubini's Linux Device Drivers book, and I am trying
> to get his example Hello World module going. I am running Red Hat 6.2
> kernel 2.2.14-5.0. Here is the code that I use:
>
> #define MODULE
> #include <linux/module.h>
>
> int init_module(void) { printk("<1>Hello World\n"); return 0;}
> void cleanup_module(void) {printk("<1>Goodbye\n");}
>
> and this is what I type when I am logged in as root:
>
> # gcc -c hello.c
> # insmod hello.o
>
> the message "Hello World" does not get displayed
>
> then I type:
>
> #rmmod hello
>
> the message "Goodbye" does not get displayed.
>
> I can tell (I think) that the module is being inserted because if I try to
>
> insert it twice without removing it first, it says a module with that name
>
> already exists.
>
> Any ideas?
>
> thanks...
>
> Jeffrey
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.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/rtlinux/
- -- [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/rtlinux/
------------------------------
Date: Mon, 7 May 2001 15:16:03 -0700
From: Oliver.J.Enders@aero.org
Subject: Re: [rtl] do_gettimeofday().
Unless I am missing something, do_gettimeofday() sounds like a big, bloated
Linux system call to me. Shouldn't be in real time to start with. Why not
just get the time of day once in the init_module() (which is not real time
mode) and synchronize with a counter that you update constantly in a
periodic thread that you create at whatever rate you like. When the
interrupt comes in, the ISR just looks at the value of the counter and
knows what time it is by differencing with the original time. The rest is
just reformatting for printout. I apologize if I answered the wrong
question.
Oliver
Karim Yaghmour <karym@opersys.com>@fsmlabs.com on 05/03/2001 11:04:09 AM
Please respond to rtl@fsmlabs.com
Sent by: owner-rtl@fsmlabs.com
To: rtl@fsmlabs.com
cc: yodaiken@fsmlabs.com, tfolkers@hamms.as.arizona.edu
Subject: Re: [rtl] do_gettimeofday().
Hello Thomas,
This is a known problem. If you want more information about it take a
look at this posting I did a while ago:
http://www.rtlinux.org/mailing_list/rtl.w5archive/0008/msg00239.html
One can't use use do_gettimeoday from real-time kernel modules because
it uses normal Linux locks to ensure exclusive access to xtime_lock.
Changing the Linux locks to real-time locks fixes the problem. This is
done in the LTT patch for RTAI and works great. It provides accurate
timing and enables hard-real-time tasks to access do_gettimeofday without
problems.
Cheers,
Karim
Thomas Folkers wrote:
>
> Victor,
> How come I can't get the time of day from the kernel? If I use
> do_gettimeofday(), eventually the system will hang. It may not happen
> right away, but it will hang. I'm trying to time external events and
> record the exact time an interrupt comes in and the only way to compare
> that time to other events and to other systems is to have the exact
> system time. The clock_gettime() routine returns something close to
> the real system clock time, but then proceeds to gain time at the rate of
> 35,000 nsecs/sec. That's probably due to a miss calibration in the cpu HZ
> value. I have looked over the rtl_time.c file and can see where you
'sync'
> the CLOCK_REALTIME to the results of a do_gettimeofday() call, but then
> there doesn't seem to be any other 'tweeks' to the time to keep it in
> sync. So, while the clock_gettime() produces a nice monotonic clock, it
> bear little resemblance to actual time.
> So, how do I get the time of day from the kernel?
>
> Thanks for you help,
> Tom
>
> --
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> _/_/_/_/ _/_/ _/_/ _/_/_/_/_/ _/_/_/_/ Thomas W. Folkers
> _/ _/ _/ _/ _/ _/ _/ _/ Telescope Operations
Mgr.
> _/_/_/_/ _/ _/ _/ _/ _/ _/ Sub-Millimeter Telescope
> _/ _/ _/ _/ _/ _/ Kitt Peak 12M Radio
Telescope
> _/ _/ _/ _/ _/ _/ 933 N. Cherry Ave. Rm. 486
> _/_/_/_/ _/ _/ _/ _/_/_/_/ Tucson, Arizona 85721
> ------------------------------------------- email:
tfolkers@as.arizona.edu
> ------------------------------------------ Voice: (520) 626-7837
> -- http://maisel.as.arizona.edu:8080/ --- Fax: 621-5554 Pager:
446-0760
> -- http://kp12m.as.arizona.edu/ --- Mobil: 909-1113 Home:
742-9279
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> -- [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/rtlinux/
- --
===================================================
Karim Yaghmour
karym@opersys.com
Embedded and Real-Time Linux Expert
===================================================
- -- [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/rtlinux/
- -- [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/rtlinux/
------------------------------
Date: Mon, 7 May 2001 16:55:03 -0400
From: "Eric Keller" <eek105@psu.edu>
Subject: RE: [rtl] Example for a device driver ( in ISA bus) in RTlinux
I have found that the comedi package provides examples which answer many of
my questions about drivers.
you can find a link to comedi on the rtlinux.org web page. If you get more
specific, I can possibly help you.
Eric
Hi
I'm looking for an example of a device driver for a device that sits in
ISA bus.
( I need to write one in RTlinux for the device pc-tio-10)
Hope you could help me ?
Thx,
Liat
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 08:57:36 +0200
From: "Jens Michaelsen (web)" <jens.michaelsen@web.de>
Subject: Re: [rtl] Example for a device driver ( in ISA bus) in RTlinux
Take a look at rt_com it handles ISA serial devices.
Jens Michaelsen
- ----- Original Message -----
From: yeshayahu, Liat <liat.yeshayahu@intel.com>
To: <rtl@fsmlabs.com>; <rtl@www.rtlinux.org>
Sent: Monday, May 07, 2001 11:53 AM
Subject: [rtl] Example for a device driver ( in ISA bus) in RTlinux
> Hi
> I'm looking for an example of a device driver for a device that sits in
> ISA bus.
> ( I need to write one in RTlinux for the device pc-tio-10)
> Hope you could help me ?
> Thx,
> Liat
>
> -- [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/rtlinux/
>
- ----- End of forwarded message from owner-rtl@fsmlabs.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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 11:28:05 +0100
From: "chandu Reddy" <chandureddy@hclt.com>
Subject: Re: [rtl] can RTLinux coexist with Windows 2000 in dual boot?
Hello
Regd dual boot,
since it requires to be logged in as the root, to perform/use
commands like insmod, rmmod,
is there any problem to the system hard disc ( like crashing) if some
some really happens bad in our module.
Is there any other way instead of as a root, to load and deload
modules.....
i heard by changing group permission, Can any one help me.......
Chandu
- ----- Original Message -----
From: Patrick Maheral <pmaheral@AAI.ca>
To: <rtl@fsmlabs.com>
Sent: Monday, May 07, 2001 7:03 PM
Subject: Re: [rtl] can RTLinux coexist with Windows 2000 in dual boot?
> On Mon, May 07, 2001 at 12:11:16PM +0900, Michel Audette wrote:
> > Hello,
> >
> > I am about to install RTLinux on a new machine used for surgical
simulation, but I am also considering a dual boot with Windows 2000. Is
there a difference between RTLinux and standard Linux in terms of a dual
boot process?
> >
> > Thanks for your consideration. Best regards,
> >
> > Michel Audette
>
> The boot process is the same for standard Linux and RTLinux, so yes, you
> can have a dual boot (RT)Linux/Win2000 system.
>
> -- [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/rtlinux/
>
- ----- End of forwarded message from owner-rtl@fsmlabs.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/rtlinux/
------------------------------
Date: Tue, 08 May 2001 10:12:03 +0200
From: root <agn@city.dk>
Subject: Re: [rtl] sigprocmask
naa... I do not think so
This function is only available in Linux user processes. RTLinux threads can
not use this function.
Taken from the
"http://www.rtlinux.org/documents/documentation/man_pages/html/rtlinux_sigaction.3.html"
I am making a kernel module.
BTW :
this is taken from the source of rtlinux_signal.c:
/* XXX: This function (and functions it depends upon) will allow you to
set
* non-existant signals as blocked or unblocked. Mainly, this is for
forward
* compatibility when we add more signals; please don't abuse it. -Nathan
*/
Der Herr Hofrat wrote:
> > what is wrong with this?
> > I get a unresolved symbol sigprocmask. I have looked in the header file
> > posix/signal.h and the finktion is there.
> >
> > #include <rtl.h>
> > #include <rtl_time.h>
> > #include <rtl_sched.h>
> > #include <time.h>
> > #include <posix/signal.h>
>
> #include <rtlinux_signal.h>
>
> hofrat
> -- [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/rtlinux/
- ----- End of forwarded message from owner-rtl@fsmlabs.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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 10:00:24 -0500
From: "Jennings, Richard R" <Richard.Jennings@MW.Boeing.com>
Subject: RE: [rtl] Make file.
I see the -c in the compile command in the dependencies. What I
don't see is the -DMODULE in the compile for lp_main, mrt_io.
Hope this helps.
Rich
- -----Original Message-----
From: jjk@mathstar.com [mailto:jjk@mathstar.com]
Sent: Monday, May 07, 2001 1:31 PM
To: rtl@fsmlabs.com
Subject: RE: [rtl] Make file.
Dont you have to compile with the -c option to make a module? I dont
see that anywhere down there.
- -----Original Message-----
From: Tony Denault
Sent: Fri 5/4/2001 1:06 AM
To: rtl@fsmlabs.com
Cc:
Subject: [rtl] Make file.
I've installed rtlinux 3.0 on a 2.2.18 (slackware) kernel. I was able to
write and run a program that create periodic thread and write to a rtl
fifo. My next step was to break up the source into muliple files:
lp_mod.c - module load/cleanup
lp_main.c - start of new thread
myrt_io.c - some support function.
The created the following makefile:
RTINCLUDE = -I/usr/src/rtlinux/linux/include
- -I/usr/src/rtlinux-3.0/include
-I/usr/src/rtlinux-3.0/include/compat
- -I/usr/src/rtlinux-3.0/include/posix
INCLUDE = $(RTINCLUDE) -I../include
CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing
- -D__SMP__
-pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=686 -g -D__RTL__ -D_LOOSE_KERNEL_NAMES
-O2 $(INCLUDE)
CC = gcc
all: lp.o
lp.o: lp_mod.o lp_main.o mrt_io.o
ld -r -o lp.o lp_mod.o lp_main.o mrt_io.o
lp_mod.o: lp_mod.c
$(CC) $(CFLAGS) -DMODULE -c lp_mod.c
lp_main.o: lp_main.c
$(CC) $(CFLAGS) -c lp_main.c
mrt_io.o: mrt_io.c
$(CC) $(CFLAGS) -c mrt_io.c
clean:
rm -f *.o
The problem? I can't create a good loadable module? Either I am
missing module information, can find stuff like stdio, can't compile due
to multiple define in system header...very frustrating. I'm not a
makefile
expert, but have been doing C / Linux program for a number of years.
Any advice on make, order of #includes<>, etc, is appreciated..
Tony
/-----------------------------------------------------------------------
- ------\
| Tony Denault | Internet:
denault@irtf.ifa.hawaii.edu |
| NASA IRTF, Institute of Astronomy | Phone: (808)
974-4206 |
| 1175 Manono St., Bldg 393 | Fax: (808)
974-4207 |
| Hilo, Hawaii 96720 |
|
\-----------------------------------------------------------------------
- ------/
- -- [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/rtlinux/
- ----Admin Comment----
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64
what is and who needs winmail.dat ?
what ever it was I removed it, pleas drop these littl M$-gimics
I guess they are only usable for wasting bandwidth and triggering
paranoid admins virus-scanners :)
thx !
hofrat
- -- [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/rtlinux/
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 17:32:24 +0200
From: "Jonas Persson" <jonas.persson@comsys.se>
Subject: [rtl] RTFifo questions
Hi all!
I am having problems getting my RTfifos to work the way I think they should, mind me, I may of course be incorrect in my assumptions.
The general scenario is the following: I am using a RTfifo mainly for testing if my realtime algorithms are correct, i.e., test data is "logged" to an RTFifo and then read by a user-space program that will interpret the data and save it to disk in a less raw and more usable form.
Problem: when debugging the realtime program, if i step over the rtf_put() call, data appear correctly in my user space test progeam. However, if i continue executing past the point of calling rtf_put(), data does not appear at all in the other end of the fifo! Calling rtf_flush() does not help in this matter.
Sometimes the results are even more confusing, since SOME data is lost on the way to user space, but not all! Even more: the first four-byte data sequence written using rtf_put(), i.e., from the first rtf_put() call, is NEVER missed!
I am completely out in the blue here. :-) Can someone help?
Yours sincerely,
Jonas Persson
______________________________________________________________________
Jonas Persson E-mail: jonas.persson@comsys.se
Project Manager, M.Sc C.Sc&E http://www.comsys.se/
Comsys AB Phone: +46-(0)46-286 3500
Forskningsbyn IDEON Fax: +46-(0)46-286 3505
S-223 70 Lund, Sweden
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 19:11:16 +0200 (CEST)
From: Der Herr Hofrat <der.herr@hofr.at>
Subject: Re: [rtl] Maximum Sample Rate using RTLINUX
> Dear David Olofson,
>
> Thank you for nice answer, of course this PPI 8225 card(using 8255 I/O chip
> with Strobe Mode 1) and without Hardware FIFO/buffer. I only use RT_FIFO.
> But if you have experience "What is the maximum Interrupt Frequencies of
> RT_IRQ", tell me more.
>
if you realy need very high sampling or realtime processing rates
you might consider using an SMP X86 with a dedicated CPU running
your high-speed RT-task - scheduling of tasks at 400KHz on a
400MHz PIII SMP are "posible" but don't expect much time to do
anything sensible this is "switching for the fun of it" , if
your demands are below that you might consider an SMP solution.
hofrat
- -- [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/rtlinux/
------------------------------
Date: 08 May 2001 20:43:10 -0400
From: "Jochen =?iso-8859-1?q?K=FCpper?=" <jochen@unc.edu>
Subject: [rtl] New rt_com pre-release.
Thanks to James H. Puttick there is a new rt_com (pre-)release out at
sourceforge (http://rt-com.sourceforge.net). Please test it out and
send your comments to rt-com-devel@lists.sourceforge.net!
Sorry to interfere with anybody here. This is really not my job (any
more), but it has to be done!
Thank you, James!
Greetings,
Jochen
PS: Sorry for the wide post, I wasn't sure who is reading where.
- --
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberte, Egalite, Fraternite GnuPG key: 44BCCD8E
Sex, drugs and rock-n-roll
- -- [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/rtlinux/
------------------------------
Date: Tue, 8 May 2001 17:43:15 -0400
From: Patrick Maheral <pmaheral@AAI.ca>
Subject: Re: [rtl] can RTLinux coexist with Windows 2000 in dual boot?
On Tue, May 08, 2001 at 11:28:05AM +0100, chandu Reddy wrote:
> Hello
> Regd dual boot, since it requires to be logged in as the root, to
> perform/use commands like insmod, rmmod, is there any problem to
> the system hard disc ( like crashing) if some some really happens
> bad in our module.
>
> Is there any other way instead of as a root, to load and deload
> modules..... i heard by changing group permission, Can any one
> help me.......
A module runs at the kernel level and is not restricted in any way. It
does not matter how it was loaded (ie. if you somehow allow non-root users
to load it). Once loaded, a module has "priviledges" (ie. capabilities)
beyond that of a mere root user.
Patrick
- ----- End of forwarded message from owner-rtl@fsmlabs.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/rtlinux/
------------------------------
Date: Wed, 09 May 2001 11:46:06 +0200
From: =?iso-8859-1?Q?S=E9bastien?= GAUME <sgaume@b2i-toulouse.com>
Subject: [rtl] Nanosleep and priority
Hello !
I've come across surprising results while using the nanosleep function
in my realtime tasks. I wrote a program in which two tasks are created.
Both are periodic (running under the oneshot mode, period = 5 ms), are
supposed to start at the same time and should last 2 ms. One has a
greater priority level then the other. And I'm aiming to check if the
realtime scheduling works well.
What really surprises me is that the task with the lower priority level
always starts about 20 us after the first task ! At that moment, this
task is not supposed being able to wake up and to start...
I feel the impression that the realtime tasks behave as if there is no
realtime scheduling, although the fifo realtime scheduling should be on
and work.
So, I you have any idea of what the problem could be,...
Thank you
Sebastien
- -- [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/rtlinux/
------------------------------
Date: Wed, 09 May 2001 11:47:38 +0200
From: =?iso-8859-1?Q?S=E9bastien?= GAUME <sgaume@b2i-toulouse.com>
Subject: [rtl] Nanosleep and priority
Hello !
I've come across surprising results while using the nanosleep function
in my realtime tasks. I wrote a program in which two tasks are created.
Both are periodic (running under the oneshot mode, period = 5 ms), are
supposed to start at the same time and should last 2 ms. One has a
greater priority level then the other. And I'm aiming to check if the
realtime scheduling works well.
What really surprises me is that the task with the lower priority level
always starts about 20 us after the first task ! At that moment, this
task is not supposed being able to wake up and to start...
I feel the impression that the realtime tasks behave as if there is no
realtime scheduling, although the fifo realtime scheduling should be on
and work.
So, I you have any idea of what the problem could be,...
Thank you
Sebastien
- -- [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/rtlinux/
------------------------------
Date: Wed, 9 May 2001 06:20:23 -0600
From: Victor Yodaiken <yodaiken@fsmlabs.com>
Subject: Re: [rtl] Nanosleep and priority
Are you sure that the first task is still running?
On Wed, May 09, 2001 at 11:47:38AM +0200, S?bastien GAUME wrote:
> Hello !
>
> I've come across surprising results while using the nanosleep function
> in my realtime tasks. I wrote a program in which two tasks are created.
> Both are periodic (running under the oneshot mode, period = 5 ms), are
> supposed to start at the same time and should last 2 ms. One has a
> greater priority level then the other. And I'm aiming to check if the
> realtime scheduling works well.
>
> What really surprises me is that the task with the lower priority level
>
> always starts about 20 us after the first task ! At that moment, this
> task is not supposed being able to wake up and to start...
>
> I feel the impression that the realtime tasks behave as if there is no
> realtime scheduling, although the fifo realtime scheduling should be on
> and work.
>
> So, I you have any idea of what the problem could be,...
>
> Thank you
>
> Sebastien
>
> -- [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/rtlinux/
- -- [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/rtlinux/
------------------------------
Date: Wed, 9 May 2001 06:22:59 -0600
From: Victor Yodaiken <yodaiken@fsmlabs.com>
Subject: Re: [rtl] putting threads to sleep
I'm not clear on what exactly you are doing:
1. If you want to put a realtime RTLinux thread to sleep
there are many methods. The correct POSIX method is
clock_nanosleep -- for a timed wait
pthread_cond_wait
or
pthread_cond_timedwait
although pthread_suspend_np works fine.
On Sat, May 05, 2001 at 08:02:51PM -0100, Anders Gnistrup wrote:
> karl rentsch wrote:
>
> > Hi all,
> >
> > I've got a problem I hope someone can help me with. I'm trying to put a
> > thread to sleep but I don't want to tie up the system using usleep() or
> > nanosleep(). I've tried using pthread_make_periodic_np configured as a
> > one shot timer (ie. it needs to repeat several times but for different
> > time intervals) but it doesn't seem to work
> > Any help would be much appreciated
> > Thanks
> > Karl Rentsch
>
> I am working on the same problem. What I have found is that the funktion
> sigaction
> can be used for that purpuse. Right now I do not know how. Is you find a
> solution I realy
> whold like to about it
>
> Anders Gnistrup
>
>
> >
> >
> > -- [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/rtlinux/
>
>
> -- [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/rtlinux/
- -- [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/rtlinux/
------------------------------
End of rtl-digest V1 #52
************************