Forums » Software Development »
How to build cmemk.ko
Added by Mary Frantz almost 13 years ago
I need to use the CMEM utility, but there is no cmemk.ko file. I am trying to build it, but can't find any instructions for that.
I ran make from this directory: ~/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem
mitydsp@mitydsp-dev:~/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem$ make
Making all in subdirectory src...
make[1]: Entering directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src'
Making all in subdirectory interface...
make[2]: Entering directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/interface'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/interface'
Making all in subdirectory module...
make[2]: Entering directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module'
make -C /home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci M=`pwd` ARCH=arm CROSS_COMPILE=/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi- \
EXTRA_CFLAGS="-DUSE_UDEV=1 -DMAX_POOLS=128" modules
make[3]: Entering directory `/home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
WARNING: Symbol version dump /home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o
In file included from <command-line>:0:0:
/home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[4]: *** [/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.o] Error 1
make[3]: *** [_module_/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module] Error 2
make[3]: Leaving directory `/home/mitydsp/MDK_2012-08-10/sw/ARM/linux/linux-davinci'
make[2]: *** [release] Error 2
make[2]: Leaving directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module'
make[1]: *** [module] Error 2
make[1]: Leaving directory `/home/mitydsp/MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src'
make: *** [src] Error 2
Is there no file cmemk.ko that is ready to go?
It says to
"Run 'make oldconfig && make prepare' on kernel src to fix it."
What does this do? Where do you run this command from?
| Rules.make (3.34 KB) Rules.make | I modified the file paths here. See lines prefaced with #Added MDF |
Replies (2)
RE: How to build cmemk.ko - Added by Michael Williamson almost 13 years ago
The base and full filesystems in the MDK_2012-08-10 (MD_2012-08-10/fs/*.tgz) each have a cmemk.ko module located in the /lib/modules/3.2.0/extra/ folder. These should be modprobe-able if are you using the uImage that comes with the filesystem.
To build it, I think you should specify where the kernel directory is located with the LINUXKERNEL_INSTALL_DIR path.
For the cmem build, our install script basically does (after configuring the toolchain):
cd MDK_2012-08-10/sw/3rdparty/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem make LINUXKERNEL_INSTALL_DIR=/path/to/your/kernel/dir
If you have not built the kernel in that path before, you'll need to first configure and compile it according to the kernel build instructions first.
-Mike
RE: How to build cmemk.ko - Added by Mary Frantz almost 13 years ago
Thanks!
I found the cmemk.ko module in the the /lib/modules/3.2.0/extra/ folder along with dsplinkk.ko and others. Used insmod for both and ran my application which ran some CMEM calls.