Closed norlover closed 5 years ago
Hi, would you please provide details about what exactly is not working?
[root@centostest01 suterusu-master]# uname -a Linux centostest01 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@centostest01 suterusu-master]# make linux-x86_64 KDIR=/usr/src/kernels/2.6.32-279.el6.x86_64/
[root@centostest01 suterusu-master]# insmod suterusu.ko
then
Solved
[root@localhost ~]# uname -a Linux localhost 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
1.make linux-x86 KDIR=/lib/modules/$(uname -r)/build 2.insmod suterusu.ko 3.gcc sock.c -o sock
sock can not run