Error Compiling Git crystalhd drivers.
#1
I cloned the git repo at http://git.wilsonet.com/crystalhd.git/
i then assured i had all build-essentials and kernel headers and source.
when i do autoconf then i do ./configure then make i get this..

root@AppleTV:~/crystalhd/driver/linux# make
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/root/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
root@AppleTV:~/crystalhd/driver/linux#


Any ideas ? this is an ubuntu lucid build.
Reply
#2
That's just a warning - probably harmless. The issue is that __devexit functions would be called from the probe function if the device initialization failed, which never really happens when things are working properly.

Quick fix:

Code:
diff --git a/driver/linux/crystalhd_lnx.c b/driver/linux/crystalhd_lnx.c
index e7c4818..0d0d8b8 100644
--- a/driver/linux/crystalhd_lnx.c
+++ b/driver/linux/crystalhd_lnx.c
@@ -493,7 +493,7 @@ fail:
    return rc;
}

-static void __devexit chd_dec_release_chdev(struct crystalhd_adp *adp)
+static void chd_dec_release_chdev(struct crystalhd_adp *adp)
{
    crystalhd_ioctl_data *temp = NULL;
    if (!adp)
@@ -577,7 +577,7 @@ static int __devinit chd_pci_reserve_mem(struct crystalhd_adp *pinfo)
    return 0;
}

-static void __devexit chd_pci_release_mem(struct crystalhd_adp *pinfo)
+static void chd_pci_release_mem(struct crystalhd_adp *pinfo)
{
    if (!pinfo)
        return;
Reply
#3
thanks ill try it out Smile
Reply
#4
awesome that worked out great thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Error Compiling Git crystalhd drivers.0