Can not autoload driver in boot time

9 views
Skip to first unread message

JV

unread,
Jun 29, 2009, 2:20:29 AM6/29/09
to Comedi: Linux Control and Measurement Device Interface
Hi!

Can not autoload my drivers in boot time. All the RTAI modules loads
great at boot when I added modprobe lines in /etc/rc.local, but now
autoloading drivers are causing problems. I have tried allready add
these lines

alias char-major-98 comedi
alias char-major-98-0 your_driver
post-install your_driver /usr/sbin/comedi_config /dev/comedi0
your_driver <<options>>

to modules.conf file. Also there is in 3 places(/usr/local/sbin/, /usr/
local/src/sbin/ and /usr/local/src/comedilib/) in filesystem
comedi_config and tried all but did not work. Can anyone help me?

JV

unread,
Jul 1, 2009, 6:28:06 AM7/1/09
to Comedi: Linux Control and Measurement Device Interface
And now can!
Easiest was to put insmod,modprobe and comedi_config lines in rc.local
file. Modules and drivers are loaded nicely at boot!!!
Tried several different places to add alias lines, but could not get
working. Solution was actually easy. File rc.local will be run every
time I boot and you can add shell commands to it.

-JV

Ian Abbott

unread,
Jul 1, 2009, 7:23:46 AM7/1/09
to comed...@googlegroups.com
On 01/07/09 11:28, JV wrote:
> And now can!
> Easiest was to put insmod,modprobe and comedi_config lines in rc.local
> file. Modules and drivers are loaded nicely at boot!!!
> Tried several different places to add alias lines, but could not get
> working. Solution was actually easy. File rc.local will be run every
> time I boot and you can add shell commands to it.
>
> -JV

Yes, the main problem with autoloading is that RTAI installs its kernel
modules in /usr/realtime/modules by default, which is outside the
kernel's autoload path.

It's possible to configure RTAI to install its modules somewhere else
using its --with-module-dir=<path> configure option. For example, the
modules could be installed to /lib/modules/${kernelrelease}/rtai/ (where
${kernelrelease} is the `uname -r` value for the kernel).
Unfortunately, there is no way to specify this in the RTAI configuration
menu (at least not the last time I looked), but it is possible to set it
when using the ./configure program instead of "make menuconfig".

>
> On Jun 29, 9:20 am, JV <juha.vuorivi...@vtt.fi> wrote:
>> Hi!
>>
>> Can not autoload my drivers in boot time. All the RTAI modules loads
>> great at boot when I added modprobe lines in /etc/rc.local, but now
>> autoloading drivers are causing problems. I have tried allready add
>> these lines
>>
>> alias char-major-98 comedi
>> alias char-major-98-0 your_driver
>> post-install your_driver /usr/sbin/comedi_config /dev/comedi0
>> your_driver <<options>>
>>
>> to modules.conf file. Also there is in 3 places(/usr/local/sbin/, /usr/
>> local/src/sbin/ and /usr/local/src/comedilib/) in filesystem
>> comedi_config and tried all but did not work. Can anyone help me?
> >


--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Reply all
Reply to author
Forward
0 new messages