[SOLVED] Modprobe on boot


#1

Hello,

On a “classic” linux I use to add modules that I want be loaded on boot in /etc/modules.
How should I do it on Legato ?

Regards


#2

How are you building the module? Is it built when the kernel is built or are you using Legato to build the module? In the first case, put it in /etc/modules. In the second case, by including the .mdef file in the kernelModules section of the SDEF, you will cause Legato to load the module when it starts.


#3

Hi,

thanks for your reply. I think thiis is a third case, It is a built in module:

root@swi-mdm9x28-wp:~# modprobe ftdi_sio

#4

Hi,

DOnt you have any idea please ?


#5

I found a way.
I put it in /etc/init.d/startlegato.sh

in the section start

case "$1" in
    start)
        echo "Legato start sequence"
        modprobe ftdi_sio
        umount /legato 2>/dev/null
        mount -o bind $LEGATO_MNT /legato

        $LEGATO_START
        ;;