Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: funguy on May 23, 2012, 01:04:39 PM

Title: HP Proliant SCSI support module needed
Post by: funguy on May 23, 2012, 01:04:39 PM
I have bunch of HP proliants rackmount servers but they all seem to be missing hp scsi drivers.  According to another post I need "cciss" or "hpsa."

http://forum.tinycorelinux.net/index.php/topic,9501.msg51972.html#msg51972
>>The HP SmartArray P410 is 103c:3243, supported by the hpsa module. Per instructions in the Debian Wiki,  you may need to add a file "/etc/modprobe.d/cciss_allow_hpsa.conf" containing the single line "options cciss cciss_allow_hpsa=y". I am unsure because it doesn't appear that Tiny Core has the cciss module anyway.


The /etc/modprobe.d/ doesn't exist in tinycorelinux so not sure if just making it would help....

Can someone please make a cciss.tcz and hpsa.tcz I can use in tinycore to support hp proliants?
Title: Re: HP Proliant SCSI support module needed
Post by: Juanito on May 23, 2012, 01:08:14 PM
did you try the scsi-3.0.21-tinycore extension?
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 23, 2012, 01:16:17 PM
I tried Tincore-current.iso 4.5.2 ezmastered to include:
firmware.tcz, firmware-broadcom.tcz,firmware-bnx2.tcz, scsi-3.0.3-tinycore.tcz, raid-dm-3.0.3-tinycore.tcz, mdadm.tcz, sg3-utils.tcz

Are you saying the 3.0.21 is better?
Title: Re: HP Proliant SCSI support module needed
Post by: Juanito on May 23, 2012, 01:20:08 PM
both appear to contain the hpsa driver, but not cciss

..but if you remastered 4.5.2, it would be better to use the 3.0.21-tinycore modules
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 23, 2012, 01:29:22 PM
#1 So do you have a cciss module?
#2 How to enable hpsa via kernel line or a config in case it is not on by default

I saw the hpsa.ko file is included in the scsi package.  I ran uname -a on my vmware tinycore and it replied Linux box 3.0.21-tinycore... so does that mean I have to use the .21 version scsi.tcz?
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 23, 2012, 01:32:19 PM
I will try the 3.0.21 modules to see if it helps
Title: Re: HP Proliant SCSI support module needed
Post by: Juanito on May 23, 2012, 01:40:47 PM
I ran uname -a on my vmware tinycore and it replied Linux box 3.0.21-tinycore... so does that mean I have to use the .21 version scsi.tcz?
Yes  :)

Quote
#2 How to enable hpsa via kernel line or a config in case it is not on by default
If would probably load itself if the hardware is detected, but you could load from /opt/bootlocal.sh

I'd try the extension first before trying a remaster
Title: Re: HP Proliant SCSI support module needed
Post by: Rich on May 23, 2012, 05:16:36 PM
Hi funguy
The Debian wiki states this about hpsa:
Quote
This is the 'next generation' driver which replaces cciss for many cards. Notably this driver uses the kernel scsi subsystem rather than implementing its own block device.
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 24, 2012, 10:25:31 AM
I tried the 3.0.21 modules and still no luck.  The hard drive still doesn't show up.  Is there a kernel option or "cciss_allow_hpsa.conf" that needs to be added?  I wish someone working with HP Proliants could help me.
Title: Re: HP Proliant SCSI support module needed
Post by: Rich on May 24, 2012, 10:43:05 AM
Hi funguy
If you enter  lsmod , does the  hpsa  module show up?
Does  lsinfo hpsa  list any optional parameters?
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 25, 2012, 03:44:38 PM
lsmod - hpsa does not show up
lsinfo  - command not found.
Title: Re: HP Proliant SCSI support module needed
Post by: Rich on May 25, 2012, 04:15:52 PM
Hi funguy
Quote
lsinfo  - command not found.
Sorry, I meant   modinfo hpsa
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 29, 2012, 09:38:35 AM
modinfo -shows the info of the module and some params
Title: Re: HP Proliant SCSI support module needed
Post by: Rich on May 29, 2012, 10:14:35 AM
Hi funguy
Yes, that was kind of the point. Maybe some of those parameters will allow your drive to be recognized?
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on May 29, 2012, 11:14:44 AM
Thank you so much Rich!  You led me down the right path.  Got all my HP Proliants to see drives by running the following:
sudo insmod /usr/local/lib/modules/3.0.21-tinycore/kernel/drivers/scsi/hpsa.ko.gz
lsmod - now shows hpsa
Tested on HP DL360, HP DL 385 G7, and HP DL 365.
So I guess I can add that to my start-up script in /home/tc/.X.d/ to make sure the module loads.  I would rather add to the kernel line at boot if possible.  I just don't get why it didn't start it automatically.  Did I add the module the wrong way using ezremaster? I use "Add App Extract TCZ to initrd" to embed all my modules.
Title: Re: HP Proliant SCSI support module needed
Post by: Rich on May 29, 2012, 12:29:02 PM
Hi funguy
You might want to do a search for recent threads on ezremaster to gain more insight.
Title: Re: HP Proliant SCSI support module needed
Post by: fiddyschmitt on March 22, 2020, 08:48:34 PM
Thanks funguy! I followed your steps (http://forum.tinycorelinux.net/index.php?topic=12624.0) to get a Dell PERC RAID to work.

First, I used ezremaster to add scsi-4.8.17-tinycore.tcz to the image.

Then I got the driver to load at startup (before the items in /etc/fstab are mounted) by doing the following:

Code: [Select]
sudo vi /tmp/ezremaster/extract/etc/init.d/rcS

//add the following lines before 'mount -a'
depmod -a
modprobe megaraid-sas
mkdir /mnt/sdb2
Title: Re: HP Proliant SCSI support module needed
Post by: funguy on November 05, 2020, 12:57:07 PM
Sorry for the late reply.  Glad you figured it out.