Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HowTo: HighPoint RR 1820A Sata
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
rognvaldr
n00b
n00b


Joined: 14 Aug 2002
Posts: 24
Location: .de

PostPosted: Tue Oct 18, 2005 9:51 am    Post subject: HowTo: HighPoint RR 1820A Sata Reply with quote

Okay, after some searching the Internet, I found an Open source driver that I got working with my HighPoint RocketRaid 1820A 8 channel SATA card in my Sun Blade 1000. For those interested, here's how:

Download the archive mvsata340.zip from http://www.keffective.com/mvsata/FC3/

unpack the mvsata340.zip to /usr/src
Make a symbolic link the build script depends on:
ln -s /usr/src/linux-2.6<sub version> /usr/src/linux-2.6

cd /usr/src/mvsata340/LinuxIAL

The driver doesn't work on the latest kernels 'as is', so <unhindered by my lack of any c-programming skills> I made the following changes.

nano -w mvLinuxIalHt.c

remove or comment out the following lines (or the driver won't get compiled):

Code:
 if (SCpnt->serial_number != SCpnt->serial_number_at_timeout)
    {
        mvLogMsg(MV_IAL_LOG_ID, MV_DEBUG_ERROR, "[%d %d %d]: abort failed, "
                 "serial number mismatch\n",SCpnt->device->host->host_no,
                 channel, SCpnt->device->id);
        return FAILED;
    }


remove or comment out the following lines (or the module will fail to load with 'Undefined symbol set_scsi_device':
Code:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
        scsi_set_device(pAdapter->host[i]->scsihost, &pcidev->dev);
#else
        scsi_set_pci_device(pAdapter->host[i]->scsihost, pcidev);
#endif


After you've done that the driver will build without errors.

run:
bash build.sh
cp mv_sata.ko /lib/modules/2.6.13.3/kernel/drivers/scsi
depmod


When that's done, try modprobe mv_sata; it should register all eight channels:
Code:
scsi1 : Marvell SCSI to SATA adapter
scsi2 : Marvell SCSI to SATA adapter
scsi3 : Marvell SCSI to SATA adapter
scsi4 : Marvell SCSI to SATA adapter
scsi5 : Marvell SCSI to SATA adapter
scsi6 : Marvell SCSI to SATA adapter
scsi7 : Marvell SCSI to SATA adapter
scsi8 : Marvell SCSI to SATA adapter


Like I said, I have no c-skills whatsoever, so I'm oblivious to what the changes I made to the source code will do. I merely set out to get my card working and got rid of code that wouldn't compile. Perhaps someone with c-skills could have a look...

Ronald Vogelaar
_________________
--
http://www.rovosoft.com
Metropolis - World's fastest and most powerful client side CMS
Back to top
View user's profile Send private message
rognvaldr
n00b
n00b


Joined: 14 Aug 2002
Posts: 24
Location: .de

PostPosted: Tue Oct 18, 2005 1:45 pm    Post subject: Reply with quote

eh... just found out that support for this card is in the latest 2.6.14rc4 kernel ... :oops:
_________________
--
http://www.rovosoft.com
Metropolis - World's fastest and most powerful client side CMS
Back to top
View user's profile Send private message
rognvaldr
n00b
n00b


Joined: 14 Aug 2002
Posts: 24
Location: .de

PostPosted: Tue Oct 18, 2005 8:34 pm    Post subject: Reply with quote

rognvaldr wrote:
eh... just found out that support for this card is in the latest 2.6.14rc4 kernel ... :oops:


which I just tried, and does nothing. I can see it load, but that's it. No info on hd's or anything.


So, back to 'my' solution, which isn't quite working yet either. Though it certainly looks better than the driver in the new kernel:

Code:

mv_sata: module license 'Marvell' taints kernel.
scsi1 : Marvell SCSI to SATA adapter
scsi2 : Marvell SCSI to SATA adapter
scsi3 : Marvell SCSI to SATA adapter
scsi4 : Marvell SCSI to SATA adapter
scsi5 : Marvell SCSI to SATA adapter
scsi6 : Marvell SCSI to SATA adapter
scsi7 : Marvell SCSI to SATA adapter
scsi8 : Marvell SCSI to SATA adapter
  Vendor: Hitachi   Model: HDS722516VLSA80   Rev: V34O
  Type:   Direct-Access                      ANSI SCSI revision: 03
scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
scsi1 (0:0): rejecting I/O to offline device
scsi1 (0:0): rejecting I/O to offline device
sdb: Unit Not Ready, error = 0x4000002
scsi1 (0:0): rejecting I/O to offline device
scsi1 (0:0): rejecting I/O to offline device
scsi1 (0:0): rejecting I/O to offline device
sdb : READ CAPACITY failed.
sdb : status=1, message=00, host=0, driver=04
sdb : sense not available.
scsi1 (0:0): rejecting I/O to offline device
sdb: asking for cache data failed
sdb: assuming drive cache: write through
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
scsi1 (0:0): rejecting I/O to offline device
scsi1 (0:0): rejecting I/O to offline device
scsi1 (0:0): rejecting I/O to offline device


I'm all ears to suggestions...
_________________
--
http://www.rovosoft.com
Metropolis - World's fastest and most powerful client side CMS
Back to top
View user's profile Send private message
Bobbie
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2002
Posts: 77

PostPosted: Fri Oct 21, 2005 2:55 pm    Post subject: Reply with quote

you might try with different IO scheduler (as I had an offline error but with different controller and circumstnces, and it was due to the scheduler).

Try elevator=cfq passed to the to the kernel then try elevator=deadline and elevator=anticipatory
Back to top
View user's profile Send private message
rognvaldr
n00b
n00b


Joined: 14 Aug 2002
Posts: 24
Location: .de

PostPosted: Fri Oct 21, 2005 4:03 pm    Post subject: Reply with quote

That's worth a shot. Thanks!
_________________
--
http://www.rovosoft.com
Metropolis - World's fastest and most powerful client side CMS
Back to top
View user's profile Send private message
J3N7iL
Apprentice
Apprentice


Joined: 24 Sep 2005
Posts: 169
Location: Chicago

PostPosted: Fri Mar 31, 2006 4:13 pm    Post subject: Reply with quote

Can you dumb it down for the noobs.
8O
I want to buy this card and run gentoo on it with a raid 5, How did you install gentoo on it to patch the kernel with the new drivers if the kernel dident detect the hard drives?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum