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

Re: Installing Debian Wheezy using the latest Kernel from Jessie



On Wednesday, April 1, 2015 at 10:40:06 AM UTC-4, Ivanov, Konstantin wrote:
> Hello all!
> 
> 
> I have a chicken and the egg type of a problem here.
> 
> 
> I need to install Debian Wheezy on an HP ProLiant DL380 Gen9 server with a HP Smart Array P840 Controller.
> 
> 
I was able to install Debian Wheezy on this hardware.
First, I had to hack the driver code to make it compile and copied the file into USB drive. During boot - I used netboot - the system did not recognize RAID array. Removed the kernel module from the memory, as newly compiled module has the same name. For some reason installer could not read the module from the USB drive, so I loaded it manually. Mounted USB drive and ran the insmod command pointing to the mounted file. Then I removed USB drive and repeated the step when installer re-scans the system. This time RAID was detected and installation succeeded. After reboot I installed backported kernel which has the newer driver version that detects RAID array without any problems.

The changes I made to the driver source are below:

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 0c571e7..4e1b653 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -2606,15 +2606,9 @@ static int hpsa_scsi_do_simple_cmd_core(struct ctlr_info *h,
 	__enqueue_cmd_and_start_io(h, c, reply_queue);
 	if (timeout_msecs == NO_TIMEOUT) {
 		/* TODO: get rid of this no-timeout thing */
-		wait_for_completion_io(&wait);
+		wait_for_completion(&wait);
 		return 0;
 	}
-	if (!wait_for_completion_io_timeout(&wait,
-					msecs_to_jiffies(timeout_msecs))) {
-		dev_warn(&h->pdev->dev, "Command timed out.\n");
-		return -ETIMEDOUT;
-	}
-	return 0;
 }
 
 static u32 lockup_detected(struct ctlr_info *h)

Hope that helps,
Leon


Reply to: