[Rtl]system hanging after rtl modules loading

2002-09-24 Thread niranjan

hi 
iam using redhat 7.2
and i update my kernel to
kernel 2.4.4 and applied the patch(2.4.4) in rtlinux 3.1.
and i booted system  .my new patched kernel is 2.4.4-rtl.
during the 
make menuconfig of linux kernel(/usr/src/linux/)
i enabled 
[*]enabled loadable module support
turned off[ ]set version information on all modules
[*]kernel module support

and regarding other kernel settings idid
ELFkernel core(/proc/kcore format
* kernel support for a.out binaries
* kernel support for ELF binaries
* kernel support for misc binaries

these are the other setting regarding the kernel support

and i turned down 
[] power management support
thats regarding my new kernel settings ..

and as mentioned in installation document i changed my compiler to kgcc.
  i did make dep , make bzImage, make modules ,make modules_install
and i booted with my new kernel

when i configured my rtlinux using make menuconfig

i accepted all defaults.
and there is option for 
[]synchronized clock support( i havent turned on that one ) is my
problem related to that one ??


as usual after wards i did
make 
make devices
and make install
in make install 
iam getting messages like
depmod:*** Unresolved symbols in
lib/modules/2.4.4-rtl/kernel/drivers/net/dummy.o
depmod:*** Unresolved symbols in /usr/rtlinux-3.1/modules/rtl.o
depmod:*** ,,   ,/rtl_fifo.o
depmod:*** ,,   ,/rtl_posixio.o
depmod:*** ,,   ,/rtl_sched.o
depmod:*** ,,   ,/rtl_time.o 

after make installmodules has to be loaded ...(since i got errors
they havent)but  when i did sh scripts/insrtl(i hope this is same in
make install )
this time it is not giving any errors 
after its completion showing the prompt and hanging..
  
could any body help me , because from the past week  , i have been
trying to install. many times my system crashed , every time  i have to
install redhat and do all the procedure...

thanks for ur support
niranjan



 




__
Scanned and protected by email scanner

___
Rtl mailing list
[EMAIL PROTECTED]
http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl



[rtl] Modules search path

2001-05-17 Thread Gilomen, Micha

Hi,

I just installed RTLinux 3.0 on RedHat 6.2 with upgraded Kernel to Version
2.2.18 and patched as described in the Install file. After finishing the
installation I was able to run the script /usr/rtlinux/bin/rtlinux to load
and unload the RTmodules. But after a reboot this script prints the error
message rtl_time.o: no such file or directory. Insmod works just fine for
the modules if I specify the absolute path. Once the modules are loaded
they can easily be unloaded with the rtlinux script, but loading them again
fails. After running cd /usr/src/rtlinux, make clean, make, make install,
the rtlinux script works again. So I suppose, in the Makefile a path to the
modules is set, which is lost after a reboot.
Could you give me advice of how to set the appropriate path without running
the whole make procedure at every boot.

Thanks

Micha Gilomen

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




Re: [rtl] Modules question

2001-03-12 Thread Olaf Petzold

 Hi,
Hi,

 I have a similar question to the one quoted below.   The only problem is, I
crash the  kernel when I attempt to use the system() command to insert and
remove my kernel  module.
 
 This is the command I'm using...
 x = system("/sbin/insmod /usr/rtlinux/examples/adc2/int.o");
 
 I get a screenfull of info, which includes the following...
 
 ...
 Unable to handle kernel NULL pointer dereference @ virtual address 
 Kernel Panic
 in swapper task - not syncing
 ...

A normal insmod int.o is working ? On my experience crashing on insmod from a
user space program is due to a fault of the kernel module.

Regards
Olaf

PS: from the man page:

   Do not use system() from a program with suid or sgid privĀ­
   ileges,  because strange values for some environment variĀ­
   ables might be used to subvert system integrity.  Use  the
   exec(3)  family of functions instead, but not execlp(3) or
   execvp(3).  system() will not, in fact, work properly from
   programs  with suid or sgid privileges on systems on which
   ...
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Modules

2001-03-06 Thread Frederic Cazenave

Hi,

is there a way to check from a user space program if a module is
installed or not ?
And if my module is mot installed how to do it inside the program ?

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 Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Modules

2001-03-06 Thread Heinz Haeberle

Either use lsmod within a system call or check /proc/modules (correct spot?)
insmod will insert the module. Just again by a system call
(system("/path/insmod module");)

Unfortunately I am on windows so I can't proof it.

Heinz


- Original Message -
From: "Frederic Cazenave" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 06, 2001 2:20 PM
Subject: [rtl] Modules


 Hi,

 is there a way to check from a user space program if a module is
 installed or not ?
 And if my module is mot installed how to do it inside the program ?

 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 Your_email" | 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 Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Modules

2001-03-06 Thread Norm Dresner

man lsmod

- Original Message - 
From: Frederic Cazenave [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 06, 2001 2:20 PM
Subject: [rtl] Modules


 Hi,
 
 is there a way to check from a user space program if a module is
 installed or not ?
 And if my module is mot installed how to do it inside the program ?
 
 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 Your_email" | 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 Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Modules

2001-03-06 Thread Norm Dresner

Actually, (at least on RH 5.2) lsmod seems to do nothing more than attach
column headings to the contents of /proc/modules.  Within a program, you can
just open and read the (pseudo)file /proc/modules.  From the command line,
either lsmod or cat /proc/modules will get you a list of the currently
installed modules.

Norm

- Original Message -
From: Heinz Haeberle [EMAIL PROTECTED]
To: Frederic Cazenave [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, March 06, 2001 2:39 PM
Subject: Re: [rtl] Modules


 Either use lsmod within a system call or check /proc/modules (correct
spot?)
 insmod will insert the module. Just again by a system call
 (system("/path/insmod module");)

 Unfortunately I am on windows so I can't proof it.

 Heinz


 - Original Message -
 From: "Frederic Cazenave" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 06, 2001 2:20 PM
 Subject: [rtl] Modules


  Hi,
 
  is there a way to check from a user space program if a module is
  installed or not ?
  And if my module is mot installed how to do it inside the program ?
 
  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 Your_email" | 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 Your_email" | 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 Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Modules

2001-03-06 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:
 
 is there a way to check from a user space program if a module is
 installed or not ?

You mean,  something  like  reading  /proc/modules?  Or  running  the
/sbin/lsmod program?

"man execv popen" might give some more information.

 And if my module is mot installed how to do it inside the program ?

For instance, by running the /sbin/insmod program.

"man execv popen system" might give some more information.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
"May your future be limited only by your dreams."
- Christa McAuliffe
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] modules warm swap

2000-09-27 Thread Edgar Hilton

Hi Paoloni,

I think that if you take a look at the hard real time side of my code
(http://rtic-lab.sourceforge.net) you will see some ideas that might help
you in your project.  Once you download the software, take a look at the
directory "rt_tasks".  Of interest especially are the files "support.c" and
"supervisor.c".  If you want to see what happens in the non-rt side, take a
look at the directory "non_rt_tasks/rt_comms", especially the files
"monitor.c" and "common.c".

Best of luck!  Let me know if you run into any trouble.

-Edgar


Thomas Paoloni wrote:

 Hi,

 I'm new on RT Linux programming and I need some suggestions:
 I'm writing some software in order to have an automatic machine working,
 i'll have all peripherals connected to my PC trough a Profibus card.
 My machine is composed of various mechanical devices each one working
 alone or, sometimes, in conjunction with the other one.
 I want to write a very object oriented program in order to be able to
 stop only one part of the machine, change the RT module that is
 controlling it on the fly and start it again without stop the entire
 machine.
 If I'm not wrong, the best thing to do is to create some RT modules, and
 exchange informations using FIFOs, but I think I'll have a lot of
 informations to pass from a module to another and the ideal is to have
 all tasks inside a single module; but how can I make an upgrade to one
 task without unload all the module (and stop so the machine) ?
 How can I create a kind of memory space shared between all my running
 modules ?

 I have read all the examples include in the distribution but I think
 this is not enought.
 For example, I made some tries, modifying these examples, and I created
 a program with a frequency call that was smaller than the execution time
 of my module ... the result: my PC was hanging and it took my a lot of
 time to understand that this was the reason why !
 I can't learn everyting by hitting my head on all problems.
 I'm able to programming using C or C++ but, where can I found some
 documentation to read so that I can learn RT Linux programming style ?
 I found all the documentation concerning all RT functions, but I need to
 learn how to progam under RT  and know when I need to use certain
 functions.

 Thanks in advance.

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

--
Edgar F. Hilton email: [EMAIL PROTECTED]
FSMLabs Toolbox Division Managervoice#: (850) 893-0300
Finite State Machine Labs, Inc. fax#: (206) 350-4EFH
http://www.fsmlabs.com  http://rtic-lab.sourceforge.net



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




[rtl] Modules?

2000-06-03 Thread mark

Hi,
I've got a couple of questions I'm hoping someone can help with:

1) I've finally got round to installing RTL, with no problems. Patched the
2.2.14 Kernel modified my old .config file (Adding the CONFIG_RTL=y seemed
to work fine). A new directory /lib/modules/2.2.14-rtl2.2 has been created
with the ./misc directory containing the RTL modules: mbuff.o, rtl_fifo.o,
rtl_sched.o, rt_com.o, rtl_posixio.o, rtl_time.o. The question is are
these suppoesed to load from startup? At the moment I have to run insrtl
to install them (The example progs work fine after that, which is fair
enough). I tried putting insrtl into rc.local, but is wasn't ammused. I
just wanted to find out what is the prefered way of auto loading these
modules. If they should be loading already at startup is there anything I
can check to see if somethings wrong.

2) This question is more out of interest than anything else. The RTL
modules provide the system with all the RTL calls and stuff yes. When the
Linux Kernel orginally boots, with no modules loaded, what role it the RTL
scheduler playing at this point - Does it even exist before the modules
are loaded? I assume it's just constantly running the Linux thread - I've
decided to go with the one process with many threads thought (a previous
mail :)

Many thanks

Mark

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




[rtl] Modules and RTL

2000-04-28 Thread daniel sheltraw

Hello RTLites

All the RTL examples I have seen use only the init_module and cleanup_module 
methods in the module. Is there any reason why one
should not do initializations in init_module and timer/task starts in
open or read/write methods (release and cleanup_module for closing)?
Of course one would write an actual character device driver and
create a device node.

Daniel

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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