LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2011, 12:15 PM   #1
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Rep: Reputation: 41
HighPpint RocketRaid 2320 driver breaks current - 2.6.37.4


Anyone using the rocketraid rr232x driver with current? After the upgrade, I'm getting a kernel panic. I can boot only if I remove the driver. Even loading it after startup cause the box to lock up. Rolling back to 2.6.35.11 is my only solution.

Any idea on why their driver will not work with the current kernel?
 
Old 03-19-2011, 01:06 PM   #2
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
Did you rebuild the driver after upgrade? I had problems with Rocketraid 622 drivers when using upgraded kernel.
 
Old 03-19-2011, 01:12 PM   #3
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
I always rebuild the driver after kernel upgrades. I rebuild it multiple times as well to make sure I didn't screw up somewhere. Still no go.

What was the big change between 35 and 37 trees?
 
Old 03-19-2011, 01:23 PM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by tux_dude View Post
Anyone using the rocketraid rr232x driver with current? After the upgrade, I'm getting a kernel panic. I can boot only if I remove the driver. Even loading it after startup cause the box to lock up. Rolling back to 2.6.35.11 is my only solution
Been having the same problem with a cheap Sil-3132 "RAID" PCI-E adapter. I wanted it just for the extra SATA ports really. Kernel panic with 2.6.35.11, 2.6.37.4 and 2.6.38.
 
Old 03-19-2011, 02:31 PM   #5
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
Check the dependencies for the driver. It might need files not on a standard install. I'm at home now and don't remember which files I had to upgrade to get the rr62x drivers to work.
 
Old 03-19-2011, 04:20 PM   #6
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
How do I check the dependencies? I only have the rr232x.ko module installed. To my knowledge this is a standalone module with no dependencies. lsmod does not list anything using the rr232x modules.
 
Old 03-19-2011, 05:52 PM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
What are the instructions you use to build the module?
Any patches?

I had some problems with a (SCSI) module with the new kernel and needed a patch to stop it from panicking...
 
Old 03-19-2011, 06:18 PM   #8
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Nothing special with my build. I download this driver, build and install. I have been scouring the net for patches with no luck. Where did you find your patch?
 
Old 03-19-2011, 06:34 PM   #9
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Well, I'm doing this completely "in the blind", as I don't have this rocketraid thing, but it's worth a try:
Code:
--- rr232x-linux-src-v1.10/osm/linux/osm_linux.c        2009-07-15 22:28:28.000000000 -0300
+++ rr232x-linux-src-v1.10_patched/osm/linux/osm_linux.c        2011-03-19 20:27:49.000000000 -0300
@@ -874,7 +874,7 @@
        }
 }

-static int hpt_queuecommand (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
+static int hpt_queuecommand_lck (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
 {
        struct Scsi_Host *phost = sc_host(SCpnt);
        PVBUS_EXT vbus_ext = get_vbus_ext(phost);
@@ -1408,6 +1408,12 @@
        return 0;
 }

+#ifdef DEF_SCSI_QCMD
+DEF_SCSI_QCMD(hpt_queuecommand)
+#else
+#define hpt_queuecommand hpt_queuecommand_lck
+#endif
+
 static int hpt_reset (Scsi_Cmnd *SCpnt)
 {
        PVBUS_EXT vbus_ext = get_vbus_ext(sc_host(SCpnt));
I wrote this patch based on the patch I needed for my SCSI driver & 2.6.37.3/4

YMMV...
 
Old 03-19-2011, 07:00 PM   #10
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
I will test the patch let you know the status.

Last edited by tux_dude; 03-19-2011 at 07:09 PM.
 
Old 03-19-2011, 08:22 PM   #11
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
OK, let me know if it worked
 
Old 03-20-2011, 08:02 AM   #12
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Niels,
Your patch worked like a charm.

Is this patch posted anywhere else? I was unable to find any repository for HighPoint. I have tried repeatedly to contact HighPoint to no avail. Fortunately, I am not using their RAID software so I have no need to purchase another of their products.

Thanks for the fix.
 
Old 03-20-2011, 08:38 AM   #13
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Glad that it worked

No, it's not posted anywhere else.
I based it on a patch for another SCSI driver that had problems with 2.6.37.x kernels too.

In the .37 kernels some things changed wrt SCSI.

I'll post it on my blog so that others can find it there.
As soon as I publish it, I'll put a link here.

<edit>
And here is the link to the post.
</edit>

Last edited by niels.horn; 03-20-2011 at 10:03 AM. Reason: Added link to post on blog
 
Old 03-20-2011, 04:46 PM   #14
tux_dude
Member
 
Registered: Dec 2008
Distribution: Slackware64 Current
Posts: 277

Original Poster
Rep: Reputation: 41
Excellent. Great writeup on your blog. Now the patch actually makes sense.
 
Old 04-13-2011, 09:14 AM   #15
jluber
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
2.6.28 and rr62x

InternDan,

What was it that you did to get the rr62x to compile and install on 2.6.37? I've recently tried upgrading to 2.6.38 and can't even get the rr62x to compile. I get an error indicating that config.h can't be found.

Any insight is appreciated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Fedora 13 with Rocketraid 2320 raid controller only icydee Fedora - Installation 3 06-06-2010 10:58 AM
Using RocketRAID 2320 for Software RAID sxa Linux - Hardware 9 06-08-2009 09:03 PM
Highpoint Rocketraid 2320 + Fedora 8 cmygfx Linux - Hardware 2 05-17-2008 11:21 PM
RocketRAID 2320 problem - Fedora 8 uwsublime Linux - Hardware 3 01-30-2008 08:46 PM
Use existing software RAID with new Rocketraid 2320 Zotty Linux - Hardware 4 05-27-2007 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration