LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 04-14-2008, 07:58 PM   #16
viron
Member
 
Registered: Dec 2005
Location: McKinney, Texas
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15

The good news:

I sent my email to you in a private message, but I've solved the problem just now (for me anyway). At line 1806 in linux/osd_main.c

- u64 cylinders;
+ u32 cylinders;

u64 simply needs to be changed to u32. Once this is done, I'm able to insmod it just fine. Now obviously you're going to want to add something in the nature of:

#if defined(CONFIG_X86_64)
u64 cylinders;
#else
u32 cylinders;
#endif

Bad News:

Although the module compiles and inserts into the kernel, I'm still unable to see any devices connected to the controller. Were you actually able to see any drive connected to it? Keep in mind that during boot the drive is detected. Once in linux, I load the module, dmesg (and see that it worked) but where is the drive???

Last edited by viron; 04-14-2008 at 08:17 PM.
 
Old 04-15-2008, 09:56 AM   #17
guru_stpetebeach
LQ Newbie
 
Registered: Mar 2008
Location: St Petersburg, Florida
Distribution: ubuntu, gentoo & debian
Posts: 28

Rep: Reputation: 17
(this is a portion of a private email posted here for other users)

I am very glad to see you got in inserted. I didnít modify the line you speak of, so it seems it was meant to be that way in 32bit kernels too. Likely what happened is when you modified that line, the 64bit division turned into 32bit division which this has been available for almost ever, so no linking problems. Still curious, is your problems with the 64bit division function. However, 32 bits should be fine too as long as your drive container (in the Promise Array Utility) does not report more than 2^32 cylinders.

Once I compiled and insmod'd the module I was able to see the drive immediately. This was using the Linux Live CD too, which I used to build the module so I could later insert it during the install process. (During the install you can go to another vterm, like Alt-Ctrl-F2, do your insmod, then back to the install vterm and continue the install process, then later when the install finishes but before your reboot, you update the initrd with it too using the other vterm. may sound complex, but pretty easy actually.)

You did create a container in your Promise Array utility/setup that appears during POST right? If you didnít create a container, then you wouldnít see any drives, even if just a single drive is on the controller I donít think it automatically creates a container or virtual device for it. btw: I noticed the controller emulates a scsi devices. My drive shows up as /dev/sda. But if I put my old PATA drive in, then my SATA drives becomes sdc, but luckily linux now uses the drive UUID if specified in fstab, so it boots fine no matter what the /dev/sd is.

Colin
 
Old 04-15-2008, 10:16 PM   #18
viron
Member
 
Registered: Dec 2005
Location: McKinney, Texas
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
No, I did not create a container for it. It posted the drive as JBOD (which is fine) because I don't plan on using it at the moment for any actual RAID setup. I'll try that and post the results back here.
 
Old 04-15-2008, 10:31 PM   #19
viron
Member
 
Registered: Dec 2005
Location: McKinney, Texas
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
Still a no go. I'm not exactly sure what you meant by "create a container for it" unless you assumed I had multiple devices plugged into the controller. It's simply 1, 500GB HDD. When I 'ls /dev/sd*' or 'ls /dev/hd*' or even 'ls /dev/md*' all I see it what was there previously. Obviously I'm not doing something right. What version BIOS do you have on your board? I ask because I recently upgraded to v1.4.

Hmm...could it possibly be that the driver isn't setup to handle JBOD? Perhaps I would actally have to have both of my 500's hooked up and define an array? Just speculating....
 
Old 04-16-2008, 09:28 AM   #20
guru_stpetebeach
LQ Newbie
 
Registered: Mar 2008
Location: St Petersburg, Florida
Distribution: ubuntu, gentoo & debian
Posts: 28

Rep: Reputation: 17
Quote:
Originally Posted by viron View Post
Still a no go. I'm not exactly sure what you meant by "create a container for it" unless you assumed I had multiple devices plugged into the controller.
We both have to remember, I have a TX4650 PCI-E card, and you have the same chip but integrated on your motherboard. There may be differences between its firmware or BIOS implementation and thus the driver too. If you go onto the Promise website does it give you the same link to the drivers?

When I reboot, the card hooks the BIOS and initializes itself. It posts a "Press Ctrl-? to enter Promise Array Setup" or something like that. Inside that it lists the hard drives attached and how I want to combine those hard drives. In my case I took my three identical drives of 320GB and made a container of 640GB RAID 5 (1 lost drive, 2+1 config). A container is just promise's term for a *virtual* hard drive that spans 1 or more drives. You could even have 1 container that spans the first half of three drives, and another that spans the latter half of the three drives.

I am not sure what the card would report to BIOS if I didnt create the container. Maybe it would report as three dries hda,hdb,hdc, I dont know, maybe it would not report any drives at all until I at least created a container on one of the drives. I cant find out now without deleting my config.

Quote:
It's simply 1, 500GB HDD. When I 'ls /dev/sd*' or 'ls /dev/hd*' or even 'ls /dev/md*' all I see it what was there previously. Obviously I'm not doing something right. What version BIOS do you have on your board? I ask because I recently upgraded to v1.4.
My motherboard is a MSI P7N Diamond with a Intel Quad Core 2.4GHz. I think your motherboard is a P7N Plantinum? There is a substantial difference in the two chipsets for these boards. You may want to go on the MSI forums too.

http://forum.msi.com.tw/

These forums are quite active and have some *really* smart people on there. They are mostly over-clockers and they understand the ins and outs of memory & pci timing to a great deal! I am still having a few stupid problems with my motherboard, not sure I am happy with it. For example, I still cant reboot my machine without unplugging all usb devices or my promise card init locks up. I have the most recent firmware for both the promise card and the MB but no go. Other people are complaining about usb probs with my MB too. My memory was only detected as 800MHz versus 1000MHz, but the guys on the forum had the answer for that. I have the same username on there.

Quote:
Hmm...could it possibly be that the driver isn't setup to handle JBOD? Perhaps I would actally have to have both of my 500's hooked up and define an array? Just speculating....
I still dont understand most of the driver coding. I was lucky to get it working myself probably. I think to tackle this problem we need to hasten the communication. We should move to instant messenger or over the phone. I have free long distance. I also call on other people with the PDC42819 chip to get in contact with me (via private message here or on my website) and together we can tackle the problem.

Last edited by guru_stpetebeach; 04-16-2008 at 09:29 AM.
 
Old 04-17-2008, 01:52 PM   #21
viron
Member
 
Registered: Dec 2005
Location: McKinney, Texas
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
I think that just answered my question. I was under the impression we were both using the same motherboard..haha. I have the MSI K9A2 Platinum. So the problem is the different revision of the Promise BIOS. That, and I have an integrated controller, yours' is simply an add-on card.

Oh well...it was worth a shot. I'll try the MSI forums and see what I can come up with. Thanks for all your help, I'm sure the people with your particular card will find this thread very useful.
 
Old 04-19-2008, 09:50 PM   #22
Arreaux
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Working on same problem

Hi viron and guru...

I too am a proud owner of a k9a2 platinum board. So...I have the same concerns.

I just got the puter assembled and don't even have a 64 bit linux yet to try on it.

That said..I booted a 32 bit Kubuntu 8.04 to see what would happen.

viron make sure you hit Cntl-F when the Promise bios come up. I'm sure you have to create a
raid configuration so the controller knows you have disks... I did and at every boot the bios
reports the disk I have.

My setup is slightly different than both of you as I bought a Fujitsu 73 G 15k rpm SAS drive.
The controller seems to like it because I hear it spin up when the Bios checks for it.
(if you buy a SAS drive you need a special cable tho SAS to SATA (get at scsi4me.com))

I have one issue as I only have this one hard drive installed in the box. I'll have to
work at getting a distro installed on it. I probably will attach with usb for the time being while sorting out the drive.

This is like a flashback for me. I haven't panic'd a kernel since '93 when I was trying to get my
UltraStor34 scsi controller installed on 1.0.13.

I checked the bootlog and the pci and they duly report the promise as registered but 'unknown'..so I imagine with some driver tweaking it should work.

Oh and Guru..I sent you an email on your website...I'm in St. Pete too.
 
Old 05-05-2008, 03:14 PM   #23
Mathias.hellevang
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
Hi guys!

guru_stpetebeach, great work!

[Removed]

Edit: I removed the previous post as I did not see guru_stpetebeach's guide on his webpage before now. I'll try the steps described there :-)

Last edited by Mathias.hellevang; 05-05-2008 at 04:19 PM.
 
Old 05-13-2008, 08:10 PM   #24
PeeWee63
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Solution for MSI K9A2

To get this working for the MSI K9A2 board, you need to make one adjustment to guru_stpetebeach's code. The vendor id is incorrect for the PDC42819 chip that is included on the MSI mainboard.

In linux/osd_main.c

Find the line:
{ 0x105a, 0x3f20, 0x105a, 0x3716, 0, 0, 0 }, //FastTrak PDC42819; SubDeviceID 3F20 -> 3716(20070625)


and change it to:

{ 0x105a, 0x3f20, 0x1462, 0x3716, 0, 0, 0 }, //FastTrak PDC42819; SubDeviceID 3F20 -> 3716(20070625)

recompile
and install this module. You will have to at least make your drives JBOD (from the RAID BIOS utility) to be recognized.

I obtained this information by issuing lspci -vv -nn in a shell. This will cause the PCI string in the generated t3sas.mod.c to include an identifier for the MSI board and it will match now.

Enjoy!

Jim
 
Old 05-13-2008, 11:42 PM   #25
guru_stpetebeach
LQ Newbie
 
Registered: Mar 2008
Location: St Petersburg, Florida
Distribution: ubuntu, gentoo & debian
Posts: 28

Rep: Reputation: 17
Awesome!We should be able to add a new PCI line instead of modifying the existing one. I will look into it. I will also post a note to this thread from my website so MSI MB owners will know what to do.

Thanks,
C
 
Old 05-28-2008, 03:13 PM   #26
qbasasa
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
I cant download your driver the WwW says something about administrator editing files:\
 
Old 05-29-2008, 10:15 AM   #27
guru_stpetebeach
LQ Newbie
 
Registered: Mar 2008
Location: St Petersburg, Florida
Distribution: ubuntu, gentoo & debian
Posts: 28

Rep: Reputation: 17
I dont know what was wrong, I got the same error too. I recently moved my web site as the old server is being rebuilt and having problems with it.

It is working now though, I refreshed the files within my website CMS.
 
Old 05-30-2008, 07:54 AM   #28
qbasasa
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
i have the driver but i cant make it on ubuntu 8.04 probobly b'cuz im to new to ubuntu :\
 
Old 06-01-2008, 03:43 PM   #29
guru_stpetebeach
LQ Newbie
 
Registered: Mar 2008
Location: St Petersburg, Florida
Distribution: ubuntu, gentoo & debian
Posts: 28

Rep: Reputation: 17
Quote:
Originally Posted by qbasasa View Post
i have the driver but i cant make it on ubuntu 8.04 probobly b'cuz im to new to ubuntu :\
What is the problem you are having?

I am using 8.04 ubuntu on 64bit arch. If you are using the 64bit arch, I can send you my binary module and it should work fine. Send me your email address by personal message.

C
 
Old 06-12-2008, 07:24 PM   #30
hochopeper
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Hi guys,

I'm having a few problems setting up the tx4650 card. I'm running fedora 9 64bit. (2.6.25.4-30.fc8.x86_64 kernel)

When compiling a get a pile of errors. They start with

Code:
[root@localhost tx4650]# make
make ARCH=x86_64 V=1  CC=cc LD=ld ARCH=x86_64 DRIVER_SRC_DIR=/home/chris/Download/tx4650 -C /usr/src/linux SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/kernels/2.6.25.4-30.fc9.x86_64'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
I'm not entirely sure how to fix this error as I have the kernel-devel and kernel-headers packages installed (it is entering the correct directory for my kernel source). Is there anything that I can do to get past this? I think these 2 files referenced above no longer exist in the .25 kernel (at the locations referenced anyway) could anyone point me in the right direction please? I'm happy to collect more info and help with the updating of this driver to make it more robust/versatile for more users if possible.

Cheers,
Chris
 
  


Reply

Tags
driver, fake, fakeraid, promise, raid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hardware RAID 1 with 975x platinum motherboard on Fedora Core 6 HowitZer Fedora 6 06-04-2007 09:05 AM
MSI P965 Platinum Motherboard drkdick Linux - Hardware 7 01-18-2007 02:00 PM
Promise RAID controller setup. How-to? thelandrew Linux - Hardware 18 05-03-2004 03:33 AM
promise raid controller with redhat9 linuxxu Linux - Hardware 0 09-18-2003 08:19 AM
Linux MSI KT3 Promise Raid as normal IDE controller. Caoster Linux - Hardware 2 12-10-2002 03:46 PM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration