right  Talk To Us!

Why am I experiencing kernel panics when I try to load the device drivers?

Binary modules for 2.6 kernels have been compiled with REGPARM enabled. This is the default kernel configuration on Fedora, RedHat and SuSE distributions. If the drivers are being loaded on any other distribution, the kernel *MUST* be compiled with the REGPARM option turned on. Failure to do so will cause a kernel panic when loading the drivers.

The relevant 2.6 kernel options that the Aculab drivers are built with are:
4k stacks,
-mregparm=3,
-mpreferred-stack-boundary=2

Symptoms of this fault include insmod error and dmesg logs as below:

temporary:/usr/local/ac_1/driver# ./aculab_dacp start
Starting Aculab DACP services: dacpswcl.
insmod: error inserting '/usr/local/ac_1/driver/dacpswcl.ko': -1 Cannot allocate memory

dmesg:

dacpswcl: module licence 'Proprietary' taints kernel.
Badness in vsnprintf at lib/vsprintf.c:278