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

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Anders Gnistrup <agn@city.dk>] (fwd)



>From owner-rtl Fri Jun 22 02:36:34 2001
Received: from localhost.localdomain ([192.38.66.79])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5M8aXe17561
	for <rtl@fsmlabs.com>; Fri, 22 Jun 2001 02:36:33 -0600
Received: from city.dk (IDENT:agn@xterm39 [127.0.0.1])
	by localhost.localdomain (8.9.3/8.9.3) with ESMTP id IAA00752
	for <rtl@fsmlabs.com>; Fri, 22 Jun 2001 08:30:37 -0100
Sender: agn@localhost.localdomain
Message-ID: <3B33103D.44564C15@city.dk>
Date: Fri, 22 Jun 2001 08:30:37 -0100
From: Anders Gnistrup <agn@city.dk>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.4.1-rtl i686)
X-Accept-Language: en
MIME-Version: 1.0
To: rtl@fsmlabs.com
Subject: Re: [rtl] starting kernel modules under RTLinux
References: <200106191737.f5JHbAj16662@mailgate4.cinetic.de> <01062018124100.25717@cutangle.admeo.se> <3B323817.1685F2F0@uleth.ca>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ian Schofield wrote:

> In a RTLinux-based program I've written, I load a real-time kernel module:
>
>     system("rtlinux start mymod.o");
>
> In order to allow access to this program anywhere on the system, I put the
> calling program and the kernel module in a directory that's listed in my $PATH.
> However, I've discovered that the kernel module won't load unless I run the
> calling program in the directory that the kernel module is found.
>
> How can I have my real-time app accessible everywhere?

it quit simple. when you write "tlinux start mymod.o" a script calls
modprobe/insmod to insert the module and search for the module in "/lib/modules/"
and the rtlinux module path. It does not have any information of the location of
your module so it fails. You have to write (system("rtlinux start <paht to
dir>/mymod.o" or copy the module to rtlinux module path and run depmod -a.

Anders Gnistrup


----- End of forwarded message from owner-rtl@fsmlabs.com -----