[SOLVED] Modprobe on boot



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 ?



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.



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

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



DOnt you have any idea please ?


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

in the section start

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