Hi there,

maybe someone is interested.

I tried to install aoe6-79 via dkms into my ubuntu 12.04.
The tarball doesn't compile out of the box under kernel version 3.2.0
So I patched the source till it compiles.

Here is my diff:
diff -pur aoe6-79.orig/linux/drivers/block/aoe/aoeblk.c 
aoe6-79/linux/drivers/block/aoe/aoeblk.c
--- aoe6-79.orig/linux/drivers/block/aoe/aoeblk.c       2012-02-09 
21:43:04.000000000 +0100
+++ aoe6-79/linux/drivers/block/aoe/aoeblk.c    2012-04-26 11:35:31.931975631 
+0200
@@ -10,6 +10,8 @@
 #include <linux/ioctl.h>
 #include <linux/genhd.h>
 #include <linux/netdevice.h>
+#include <linux/moduleparam.h>
+#include <linux/export.h>
 #include <scsi/sg.h>
 #include "aoe.h"
 #include "disk_attr.h"
diff -pur aoe6-79.orig/linux/drivers/block/aoe/aoechr.c 
aoe6-79/linux/drivers/block/aoe/aoechr.c
--- aoe6-79.orig/linux/drivers/block/aoe/aoechr.c       2012-02-09 
21:43:04.000000000 +0100
+++ aoe6-79/linux/drivers/block/aoe/aoechr.c    2012-04-26 11:35:41.879975413 
+0200
@@ -9,6 +9,7 @@
 #include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/mutex.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 #include "aoe.h"
 
diff -pur aoe6-79.orig/linux/drivers/block/aoe/aoemain.c 
aoe6-79/linux/drivers/block/aoe/aoemain.c
--- aoe6-79.orig/linux/drivers/block/aoe/aoemain.c      2012-02-09 
21:43:04.000000000 +0100
+++ aoe6-79/linux/drivers/block/aoe/aoemain.c   2012-04-26 12:15:13.967923384 
+0200
@@ -15,9 +15,7 @@
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Sam Hopkins <s...@coraid.com>");
 MODULE_DESCRIPTION("AoE block/char driver for 2.6.2 and newer 2.6 kernels");
-/* this creates warning "Warning: could not find versions for 
.tmp_versions/aoe.mod"
 MODULE_VERSION(VERSION);
-*/
 
 /* modinfo sometimes works, but this will be in sysfs */
 static char version[] = VERSION;

 


And my /usr/src/aoe6-79/dkms.conf is:
==================================
PACKAGE_NAME="aoe6"
PACKAGE_VERSION="79"
AUTOINSTALL="yes"
REMAKE_INITRD="yes"

MAKE[0]="make KDIR=${kernel_source_dir} 
INSTDIR=/lib/modules/${kernelver}/drivers/block/aoe"

BUILT_MODULE_NAME[0]="aoe"
BUILT_MODULE_LOCATION[0]="linux/drivers/block/aoe/"
DEST_MODULE_LOCATION[0]="/kernel/drivers/block/aoe"
==================================

You can add and build the module with
# dkms build aoe6/79

and install with
# dkms install aoe6/79

It seems to work for me.

Lars

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Aoetools-discuss mailing list
Aoetools-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to