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.

cmemk.ko load error

Other Parts Discussed in Thread: DM3730

 

Hi,everyone!

I have a DM3730 board,When I load loadmodules.sh ,  a error follows,as:

root@dm37x-evm:/usr/share/ti/c6run-apps# ./loadmodules.sh

[ 598.592041] cmemk: version magic '2.6.32 mod_unload modversions ARMv7 ' should be '2.6.32 preempt mod_unload modversions ARMv7 ' insmod: error inserting './cmemk.ko': -1 Invalid module format

[ 599.329132] dsplinkk: version magic '2.6.32 mod_unload modversions ARMv7 ' should be '2.6.32 preempt mod_unload modversions ARMv7 '

Why?

Hope help!

jay yang

  • Hi Jay,

    This error indicates that you need to rebuild your cmemk.ko kernel module to match your running kernel.  It appears that you built cmemk.ko against the right kernel version, but your running Linux kernel is of the "preempt" variety and the kernel against which you built cmemk.ko is not "preempt".

    You most likely built cmemk.ko against a certain kernel, then changed the kernel's configuration to include "CONFIG_PREEMPT" but didn't rebuild cmemk.ko afterwards.  Please try rebuilding cmemk.ko, pointing the build (using LINUXKERNEL_INSTALL_DIR in some "make" file, probably Rules.make) at your current Linux kernel tree.

    Regards,

    - Rob

  • Hi Rob!

    Thank you for your fast response. You're a genius!

    If  I remove the preempt ( path: /include/linux/vermagic.h )  in the linux kernel version 2.6.32, 

    does  it result in  a significant impact?  I want to implement Network Video Transmission with H264 compression algorithm!

    Thank you again

    jay yang

  • jay liyang said:

    Thank you for your fast response. You're a genius!

    Yeah, so the Forum says :)

    jay liyang said:

    If  I remove the preempt ( path: /include/linux/vermagic.h )  in the linux kernel version 2.6.32, 

    does  it result in  a significant impact?  I want to implement Network Video Transmission with H264 compression algorithm!

    I don't know much about different performance-related Linux kernel configurations.  About all I can tell you is that the 'menuconfig' description for the selection that results in CONFIG_PREEMPT being set is labeled with "Low-latency desktop".

    CONFIG_PREEMPT will reduce the time from interrupt assertion to the ISR execution for that interrupt.  When it's set, ISRs can no longer perform any operation that would result in a sleep.  That's about all I know at the moment, and that Google is your friend.

    Regards,

    - Rob

  • Hi Rob!

    Oh,yeah,Thank you very much!

    I have understanded  the preempt very well with your help, I think that you are the best friend  :)

    jay yang

  • jay liyang said:

    I have understanded  the preempt very well with your help, I think that you are the best friend  :)

    Thankyou, I appreciate that :)

    You're welcome,

    - Rob