Results 1 to 6 of 6
Hi,
I have RHEL 5 Server. I am pretty new to linux.
There is a dir. called /usr/src/kernels/2.6.18.8.../crypto/...
I installed Openswan 3.0.06 on linux box and so, after installing, i ...
- 07-24-2007 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 7
How to include module in kernel !!!
Hi,
I have RHEL 5 Server. I am pretty new to linux.
There is a dir. called /usr/src/kernels/2.6.18.8.../crypto/...
I installed Openswan 3.0.06 on linux box and so, after installing, i have a directory called ocf in /usr/src/kernels/2.6.18.8.../crypto/, which was not there before installing Openswan.
Now, I need to include Cryptographic modules. So, went to /usr/src/kernels/2.6.18.8../ and then did
make menuconfig
I saw a lot of options there, where I found out Cryptographic modules --> OCF --> and then selected the modules I wanted as <M> and saved the configuration.
Now, I went to /usr/src/kernels/2.6.18.8../crypto/ocf/ and did
make -C /lib/modules/2.6.18.8../build/ -M=`pwd` modules
, so that I can get .ko files in /usr/src/kernels/2.6.18.8../crypto/ocf/ directory. But I don't get anything... The output of the above make is as follows
Code:make: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686` Building Modules, stage 2. MODPOST make: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686`
There should be .ko files in /crypto/ocf/ directory, which are not there....It seems I have committed some mistake including modules. Can you help me please? I would appreciate it. Thank you.
Regards,
Ankit
- 07-24-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Remove the "-" sign before "-M=`pwd` modules", it should be something like:
RegardsCode:make -C /lib/modules/2.6.18.8../build/ M=`pwd` modules
- 07-24-2007 #3Just Joined!
- Join Date
- Jun 2006
- Posts
- 7
I did that, I am getting errors like this:
There are problems in cryptodev.h and crypto.c !! I saw those files and seems to be ok !! Should I copy paste those lines of these files where I am getting error here in this thread?Code:[root@localhost ocf]# make -C /lib/modules/2.6.18-8.el5/build/ M=`pwd` modules make: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686' CC [M] /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.o In file included from /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:30: include/linux/config.h:6:2: warning: #warning Including config.h is deprecated. /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:120: error: expected ‘)’ before string constant /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:137: error: expected ‘)’ before string constant /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:148: error: expected ‘)’ before string constant /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:152: error: static declaration of ‘crypto_userasymcrypto’ follows non-static declaration /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/./cryptodev.h:381: error: previous declaration of ‘crypto_userasymcrypto’ was here /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:153: error: expected ‘)’ before string constant /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:157: error: static declaration of ‘crypto_devallowsoft’ follows non-static declaration /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/./cryptodev.h:382: error: previous declaration of ‘crypto_devallowsoft’ was here /usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.c:158: error: expected ‘)’ before string constant make[1]: *** [/usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf/crypto.o] Error 1 make: *** [_module_/usr/src/kernels/2.6.18-8.el5-i686/crypto/ocf] Error 2 make: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'
- 07-24-2007 #4Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
I can't help further, this seems to be something RHEL 2.6.18 specific.
I'm hoping that someone who's familiar with this problem will come along.
Regards
- 07-24-2007 #5Just Joined!
- Join Date
- Jun 2006
- Posts
- 7
Hey I inserted the module.
Actually, I applied patches and debugged those erros I got. Took a little bit of time to debug, but then was not that hard. Patches helped me...
thanks for the effort.
Regads,
Ankit
- 07-25-2007 #6Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Good to hear you got the solution.
Regards


Reply With Quote