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.

How to have ti81xxvo.ko load at boot?

I just installed EZSDK 5.03.00.09 and I notice that the V4L2 display driver, ti81xxvo.ko, is not loaded upon EVM boot.  What should be changed in /etc/init.d to have this driver loaded when the EVM is rebooted?

Lee

 

  • Please follow below procedure to generate ti81xxvo.ko :-

    make ARCH=arm

    CROSS_COMPILE=PATH_TO_TOOLCHAIN/bin/arm-none-linux-gnueabiti8168_

    evm_defconfig

    $ make ARCH=arm

    CROSS_COMPILE=PATH_TO_TOOLCHAIN/bin/arm-none-linux-gnueabi- uImage

    $ make ARCH=arm

    CROSS_COMPILE=PATH_TO_TOOLCHAIN/bin/arm-none-linux-gnueabi- menuconfig

    You need to make the configuration changes as per user guide ( DM816x_AM389x_VPSS_Video_Driver_User_Guide.pdf). After configuration give below command to generate the ti81xxvo.ko.

    make ARCH=arm

    CROSS_COMPILE=PATH_TO_TOOLCHAIN/bin/arm-none-linux-gnueabi- modules

     

    After boot copy the module to your file system and insert the module

    Insmod ti81xxvo.ko

  • Hi,

    can you verify you have init.d/modutils.sh & init.d/udev scripts in ,target_filesystem/etc directory.

    if yes, place the <modules>.ko inside /lib/modules/<kernel_version> directory so that  they are automatically load relevant moduels at boot-up

     

    follow below steps to install manually.

    1. copy <module>.ko to target filesystem system

    2. from here, You can make a symbolic link of your module to the standard path, so depmod will see it and you'll be able load it as any other module.

    sudo ln -s /path/to/module.ko /lib/modules/`uname -r`
    sudo depmod -a
    sudo modprobe module

    Hope this helps

    Regards
    Gururaja
  • Gururaja Hebbar said:

    can you verify you have init.d/modutils.sh & init.d/udev scripts in ,target_filesystem/etc directory.

    if yes, place the <modules>.ko inside /lib/modules/<kernel_version> directory so that  they are automatically load relevant moduels at boot-up

     

    follow below steps to install manually.

    1. copy <module>.ko to target filesystem system

    2. from here, You can make a symbolic link of your module to the standard path, so depmod will see it and you'll be able load it as any other module.

    sudo ln -s /path/to/module.ko /lib/modules/`uname -r`
    sudo depmod -a
    sudo modprobe module

    Yes, both scripts are present.  I tried putting in a symbolic link, that installs the module just like insmod, but when I reboot the EVM, it isn't there anymore.  How do I get ti81xxvo.ko to install when the EVM boots?  It is getting placed into the target filesystem but isn't getting loaded.

    Lee

     

  •  

    where have you placed the files.

    can you paste the linux boot log where it mentions about depmod.

  • Gururaja Hebbar said:

    where have you placed the files.

    ti81xxvo.ko is located at:

    /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/

    Gururaja Hebbar said:

    can you paste the linux boot log where it mentions about depmod.

    There is no mention of depmod in the boot log.

    Lee

     

  •  

    Lee Holeva said:

    where have you placed the files.

     

    ti81xxvo.ko is located at:

    /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx/

     

    Gururaja Hebbar said:

    i hope you are running linux version 2.6.37.

    what does "uname -a" give

    can you place the <module>.ko file inside /lib/modules/2.6.37/

     

    Gururaja Hebbar said:

    can you paste the linux boot log where it mentions about depmod.

     

    There is no mention of depmod in the boot log.

    Lee

     

    [/quote]

     

  • uname -a

    Linux dm816x-evm 2.6.37 #1 Thu Nov 10 18:44:30 IST 2011 armv7l unknown

    Lee

     

  • di placing the module inside /lib/modules/2.6.37/ work