Results 1 to 10 of 11
hi all,
I am porting my driver as a module in linux 2.6. when i insert the module by giving insmod . I am getting this message.
Using atm.ko
insmod: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-07-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 21
insmod error
hi all,
I am porting my driver as a module in linux 2.6. when i insert the module by giving insmod . I am getting this message.
Using atm.ko
insmod: Not configured to support old kernels
what should i do to fix this .
- 05-08-2010 #2
It may just work ... but it may also crash your machine ... or corrupt your data. You can disable version checks, but be very careful with this
-f, --force
Attempt load the module even if the version of the running kernel and the version of the kernel for which the module was compiled do not match. This only overrides the kernel version check, it has no effect on symbol name checks. If the symbol names in the module do not match the kernel then there is no way to force insmod to load the module.
- 05-08-2010 #3Just Joined!
- Join Date
- May 2010
- Posts
- 5
Did you have compiled with the right kernel header versions?
- 05-09-2010 #4
- 05-11-2010 #5Just Joined!
- Join Date
- Feb 2010
- Posts
- 21
thanks for your reply ,
I am using these header files ,
#if defined(CONFIG_SMP) /* If current kernel is SMP, */
#define __SMP__ /* build an SMP module. */
#endif
#if defined(CONFIG_MODVERSIONS) /* If kernel has versioning enabled, */
#define MODVERSIONS /* build a versioned module. */
#include <linux/modversions.h>
#endif
#include <linux/module.h>
#include <linux/config.h>
#include <linux/init.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/pci.h>
#include <linux/errno.h>
#include <linux/atm.h>
#include <linux/atmdev.h>
#include <linux/sonet.h>
#include <linux/skbuff.h>
#include <linux/time.h>
#include <linux/sched.h> /* for xtime */
#include <linux/delay.h>
#include <linux/uio.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/atomic.h>
#include <asm/uaccess.h>
#include <asm/string.h>
#include <asm/byteorder.h>
#include <linux/vmalloc.h>
and using linux 2.6.16 version .
- 05-11-2010 #6Just Joined!
- Join Date
- Feb 2010
- Posts
- 21
sometimes , I am also getting this warning messages,
cornetatm: Unknown symbol sarSetAbrInfo
cornetatm: Unknown symbol sarCreateSegRateLimit
cornetatm: Unknown symbol __you_cannot_kmalloc_that_much
cornetatm: Unknown symbol servCatGFRInit_SI
cornetatm: Unknown symbol sarAllocRoutingTagTable
cornetatm: Unknown symbol sarCreateSegXbrTunnel
insmod: cannot insert './cornetatm.ko': unknown symbol in module
what should i need to do to clear these errors
- 05-11-2010 #7
- 05-12-2010 #8Just Joined!
- Join Date
- Feb 2010
- Posts
- 21
I have fix those Unknown symbol error.Actually i dint add those corresponding file in makefile. But i could not solve "Unknown symbol __you_cannot_kmalloc_that_much" error , I am allocating memory by giving like this
HOST_MEM_ALLOC (memMgrId,
&bufferList, SarRsmBDEntry **,
(sizeof (SarRsmBDEntry *) * 65536),
"DDPI");
Is there any way to solve the issuse
- 05-12-2010 #9
Good to hear that

Why do you need that much memory? Take a look here: Linux IA64 Archives: Re: __you_cannot_kmalloc_that_much . The thread is somewhat old, but so is your kernel. Most probably you have to change your memory management policy.
- 05-12-2010 #10Just Joined!
- Join Date
- Feb 2010
- Posts
- 21
I need to allocate memory for my buffer.I gone through the "Linux IA64 Archives: Re: __you_cannot_kmalloc_that_much " ,
but could not get a clear idea. and you have said about changing memory management policy.changing this could fix the problem? if so tell me how to change the memory management policy ,as i had never handle it .


Reply With Quote

