[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Driver installation



> From: Rares Aioanei [mailto:debian.dev.list@gmail.com]
> On 09/17/2013 07:57 PM, Mark Allums wrote:
> > Does anyone but me have experience using Adaptec RAID cards?
> >
> > The Debian aacraid driver didn't support a 7805 card the last time
> > I checked.  I installed the driver from the Adaptec web site using
> > alien and dkms.  The driver was updated recently, and I tried to
> > install the new version using the same methods. It works ok for the
> > 3.2 kernel, but for the 3.10 kernel, I get compile errors when
> > trying to build the kernel module.
> >
> > Have any of you installed the kernel module for an Adaptec product
> > from official upstream source? Or is aacraid driver now up-to-date
> > for the 7805 in the official Debian kernel, and if so, how do I go
> > about switching to it?
> >
> > I can continue using the older driver for now, as dkms did its job
> > building it for kernel 3.10, but newer is better as a rule.

> What exact errors do you get when trying to compile?


1. convert aacraid-1.2.1.30300-dkms.noarch.rpm to a deb package with #alien --scripts
2. install it with gdebi (or dpkg -i) 
3. convert dkms-2.2.0.3-1.noarch.rpm to .deb with #alien --scripts
4. install it with gdebi
(I used --scripts option with alien.)
5. #dkms add -m aacraid -v 1.2.1.30300  (succeeded).
6. #dkms build -m aacraid -v 1.2.1.30300 (failed):
Error! Bad return status for module build on kernel: 3.10-2-amd64 (x86_64) Consult /var/lib/dkms/aacraid/1.2.1.30300/build/make.log for more information.

contents of /var/lib/dkms/aacraid.1.2.1.30300/build/make.log:

DKMS make.log for aacraid-1.2.1.30300 for kernel 3.10-2-amd64 (x86_64)
Sun Aug 25 01:05:23 CDT 2013
make -C /lib/modules/3.10-2-amd64/build M=/var/lib/dkms/aacraid/1.2.1.30300/build modules
make[1]: Entering directory `/usr/src/linux-headers-3.10-2-amd64'
  CC [M]  /var/lib/dkms/aacraid/1.2.1.30300/build/linit.o
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:301:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3294:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘aac_probe_one’
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3772:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘aac_remove_one’
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3806:14: error: ‘aac_pci_tbl’ undeclared here (not in a function)
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3807:12: error: ‘aac_probe_one’ undeclared here (not in a function)
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3808:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3808:25: error: ‘aac_remove_one’ undeclared here (not in a function)
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:3141:34: warning: ‘aac_driver_template’ defined but not used [-Wunused-variable]
/var/lib/dkms/aacraid/1.2.1.30300/build/linit.c:376:1: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘aac_pci_tbl’
cc1: some warnings being treated as errors
make[4]: *** [/var/lib/dkms/aacraid/1.2.1.30300/build/linit.o] Error 1
make[3]: *** [_module_/var/lib/dkms/aacraid/1.2.1.30300/build] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.10-2-amd64'
make: *** [aacraid_dkms_build] Error 2

Converting to .deb without using --scripts option also produces an error.
The previous version installed without problems using the same steps.  The difference is the original was built under kernel 3.2, while the new one is being built under 3.10.  I have installed the correct kernel headers.  The Nvidia proprietary driver (for instance) installs fine.  The old driver works fine under 3.10 thanks to dkms.  I can continue to use build 30200 for now.  (But of course, I would prefer to use the up-to-date 30300 August driver.)  

Thank you for your attention.
Mark





Reply to: