This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM385 + IPNC RDK 3.5 + kernel 2.6.37 -> loadable modules are not loading through modutils.sh?

Hi Guys,

I have made changes to my kernel, some of my peripherals are loadable modules some are static, static modules load itself at kernel booting, but coming to loadable modules i'm facing issue.

i figure out the script modutils.sh will check the dependencies modules and try to load correct me if i'm wrong.

etc/init.d/modutils.sh

#!/bin/sh

LOAD_MODULE=modprobe
[ -e /sbin/modprobe ] || LOAD_MODULE=insmod

echo "Loading modules"
if [ -e /sbin/depmod -a ! -f /lib/modules/`uname -r`/modules.dep ]; then

        echo "Inside loading modules"
        [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
        depmod -Ae
fi

if [ -f /proc/modules ]; then

      echo "Inside loading module stage 1"
       if [ -f /etc/modules ]; then
               [ "$VERBOSE" != no ] && echo -n "Loading modules: "
               while read module args
               do
                       case "$module" in
                               \#*|"") continue ;;
                       esac
                       [ "$VERBOSE" != no ] && echo -n "$module "
                       eval "$LOAD_MODULE $module $args >/dev/null 2>&1"
               done < /etc/modules
               [ "$VERBOSE" != no ] && echo
       fi
fi
echo "exiting loading modules"
: exit 0

  and try to check the log:

Loading modules

Inside loading module stage 1

exiting loading modules

and i don't understand why it fails.

the path of loadable modules & depmod binary path are correct and i cross check those path also to confirm.

andbody who has idea why such issue.

regards,

Ganesh

  • Hi Ganesh,

    Could you try to load modules manually? In case of failure post the commands and console output please.

    BR
    Tsvetolin Shulev
  • Hi ,

    i got the answer, actually in my filesystem /etc/modules file was not present. so manually i created modules files and added module name which need to be modprobe from modutils.sh.

    i have builded my kernel and loadable modules and given filesystem path where it has copied all modules in respective directory.

    Question: so how do i make sure that i get a list of module which can be modprobe and copy name of the module automatically in /etc/modules file rather i write manually in modules file.

    regards,
    Ganesh