Linux-Based Community / Regional
1752577 Members
4765 Online
108788 Solutions
New Discussion

Install HPSA Driver On Older Debian Linux Kernel

 
mrhaag
Occasional Visitor

Install HPSA Driver On Older Debian Linux Kernel

 

I would like to add the 'hpsa' driver to a distribution running Debian Lenny. Compilation of the driver has failed for me. Would anyone be able to assist me in compilation of the driver?

 

It's for Alienvault's "OSSIM" distribution, and I have a forum post over there in case anyone would like further details:

 

https://www.alienvault.com/forum/index.php?t=msg&th=3869&goto=11981&S=3d246cea7941bca376d38c794e658343#msg_11981

 

 

 

I have a brand new HP Proliant DL360 G8 server with an HP SmartArray drive controller.

http://cciss.sourceforge.net/ :
"A new Smart Array driver called "hpsa" has been accepted into the main line linux kernel as of Dec 18, 2009, in linux-2.6.33-rc1. "

The OSSIM debian installer iso runs the 2.6.22 kernel. The kernel installed is 2.6.31.

I have no good documentation for compiling the hpsa driver into the OSSIM disk, and I do not believe an upgraded kernel past 2.6.31 are in plans for development of OSSIM any time soon.

I would like to be able to install OSSIM on this server, but compilation of the driver source has failed for me. Would anyone be able to offer any advice?

Another acceptable solution would be a way to install OSSIM on another distro, perhaps ubuntu 12.04 LTS or a more recent Debian. Or could I maybe remaster the OSSIM iso so it uses a more recent debian kernel?

For reference, here is the output of my attempt to compile the driver on OSSIM running in a VM: http://www.pastebin.com/e6NCF6Tg

3 REPLIES 3
mrhaag
Occasional Visitor

Re: Install HPSA Driver On Older Debian Linux Kernel

UPDATE:

HP's iss_storagedev team helped me out, and we came up with a modification of the 'hpsa_kernel_compat.h' file that allows compilation of the driver under Debian Lenny: http://pastebin.com/skJmH9Jb
mrhaag
Occasional Visitor

Re: Install HPSA Driver On Older Debian Linux Kernel

 

I have solved this problem completely and posted a tutorial on the OSSIM forums:

 

https://www.alienvault.com/forum/index.php?t=msg&th=3885&goto=12044&S=dc44bbae3cef1f00f7c612bf3790b613#msg_12044

 

 

The final trick to loading the compiled hpsa.ko driver was using an Ubuntu 12.04 LTS server installation disk in "rescue mode" to install the driver to the kernels installed by the OSSIM installer.

 

Thanks again to everyone at HP who helped with the driver compilation.

FGarciaXerox
New Member

Re: Install HPSA Driver On Older Debian Linux Kernel

Hi MrHaag, could you please upluad the tutorial in this thread, apparently the link from alienvault forum is broken. Thank you in advance