Click to See Complete Forum and Search --> : UDMA in Mandrake 9


EmileK
10-14-2002, 03:34 AM
Hi,

I've got a MSI 845G Max motherboard with a P4 1.8Ghz chip. The problem is that in mandrake 9 my harddrive runs a whopping 2mb per second when running hdparm. When I try /hdparm -d 1 /dev/hdb it tell me the option is unknown and not permittable. I see that the problem lies with the 82801DB controller on the motherboard.

It seems to me that the ata100/133 is not working and my 60gb drive does support it. Is there any rpms or patches I can download to fix this? I have tried compiling newer kernels like 2.5.12 and 2.5.41 but run into endless problems with even trying to do make dep.

ANY help would be appreciated for it is my development box and I'm running vmware on it, and it is DOG slow.

Thank you,
Emile.

carlywarly
10-14-2002, 04:22 AM
This might not be worth a try, but....have a look in /etc/sysconfig/harddisks Try uncommenting some of the lines you would like to implement, save changes and reboot. (This might be a silly question, too, but is the drive really on primary slave as implied by hdb?)

EmileK
10-14-2002, 04:26 AM
That didn't help unfortunatly , but thank you for the reply. I'm just very desperate at this moment. I don't think there is a distro out that supports this controller yet, which is a bit sad. Yes, the hard drive is primary slave, I've also got a 40gb as primary with 98 on it for games. It's also ata 133.

TheCyberDude
10-14-2002, 04:46 AM
I noticed you used -u 1, might have been an typo (must be -u1).

Also you are probably trying to set hdparm on wrong drive.

It's an bit confusing, on my set-up -
hde - Windows
hde1 - LM 9.0
hde2 - Swap

Use hde - main drive to set hdparm, it
takes care of hde1 and hde2.
If you tryed to set -u1 on hde1 or hde2, you'll get the error your talking about.

Then type hdparm /dev/hde2 (Whatever your's is) and it will show up!

Below is my setup...

-X69 = ATA 100 (Don't know the ATA 133)
-X66 = ATA 33

Also the DVD + CD ROM is tricky.

If I hdparm /dev/cdrom or /dev/cdrom0,
it shows my DVD-ROM ONLY!

Found I had to use /dev/hda for CD-ROM.

To find the DVD/CD-ROM Drives, do any
hdparm -i /dev/cdrom .. maybe hda, hdb, etc.

Setting 32 BIT I/O and DMA for HDD,DVD/CD-ROM Drives.
__________________________________________________ _
__________________________________________________ _

Add the follwing lines at bottom of: /etc/rc.d/rc.local file.

# Added by Garry Winkle
# This sets 32 bit I/O and DMA for Hard Drives.

hdparm -X69 -d1 -u1 -m16 -c3 /dev/hde

# Added by Garry Winkle
# This sets 32 bit I/O and DMA for CD-ROM Drive.

hdparm -X66 -d1 -u1 -c3 /dev/hda

# Added by Garry Winkle
# This sets 32 bit I/O and DMA for DVD-ROM Drive.

hdparm -X66 -d1 -u1 -c3 /dev/cdrom

TheCyberDude

EmileK
10-14-2002, 05:24 AM
Ok, I've tried everything possible. The error I get when trying to set -d1 on any of the drives is the following : "HDIO_SET_DMA failed: Operation not permitted"

I reacon the kernel doesn't support it or something. I can set the -c1 -u1 -X69 (ata 133), all those work except the stupid -d1 which is the most important one I need.

ANY other suggestions?

Thank you,
Emile

mdwatts
10-14-2002, 09:28 AM
Do a forum search for

HDIO_SET_DMA failed

as the same problem has been posted at least 3 times over the past day or so.

The fix is quite easy from what I remember.

Also check your distros website (support etc.) as I believe that is a known problem.

EmileK
10-15-2002, 03:31 AM
I understand your viewpoint mdwatts, but believe me I have searched the forums, I have gone to mandrake's site, their forums, intel's site and google/yahoo/webrawler and no answers.

The only possible solution I think I found was to patch my kernel with diff files which also doesn't seem to work. I have tried only to re-compile to stock kernel that comes with mandrake 9 for I see that in the /drivers/pci directory the files do include my controller.

The problem is that the stock standard kernel doesn't want to do make modules_install, it breaks on some sound card modules. Now my question is, I didn't select to load any of those modules when I'm doing a make xconfig, but I understand that the modules needs to build in anycase if I want to use them later. Is there anyway of me deleting or taking the problematic modules out?

Like I said before, I have honestly tried everything, and I'm running out of solutions now.

Thank you,

Emile

bwkaz
10-15-2002, 10:44 AM
Here are the forum search results for HDIO_SET_DMA failed, as mdwatts has suggested:

http://linuxnewbie.org/forum/search.php?s=&action=showresults&searchid=132607&sortby=lastpost&sortorder=descending

Four of the top five threads are all about this specific problem (the one that isn't is "mounting my dvd drive" or something like that). May I suggest the "how do i enable dma for my dvd drive?" thread? Specifically, the post by mahdi at the end of that thread.

mdwatts
10-15-2002, 06:04 PM
Thanks bwkaz...

EmileK... You do realize the 2.5 kernel is the development series and certainly not guaranteed to work.

I've tried a couple in the past and never had any luck.

I just stick to the stable kernel and apply the patches I require.

EmileK
10-16-2002, 03:05 AM
First off, thank you all for your replies. I've have honestly read ALL the forums, and tried everything as per my pervious post. After that I read all the docs on the mandrake install and cds. I went to mandrake's site and read every forum and did intensive searches, but to no avail.

I reacon the best I can do is to get a patch for the mandrake kernel, but I don't know which site to go to or where to search. If I can get a guideline it would be appreciated.

If I get this right, I will post a full section in how I did it, for I can't believe that I'm the only one in the world with this problem on mandrake 9.

Thank you,

Emile

mdwatts
10-16-2002, 06:43 AM
Did you add

options ide-cd dma=1

to /etc/modules.conf as suggested in the search results?

EmileK
10-16-2002, 07:28 AM
Yes I did, didn't work

mdwatts
10-16-2002, 05:39 PM
Sorry as I really don't know what the solution is.

Unless someone else can offer further assistance, I would suggest you try Mandrake's support/bug site and contact them if necessary.

EmileK
10-17-2002, 03:05 AM
YES!!!

I DID IT!

I finally got my hdd working at full speed again.

Here is what I did :

1. Download vanilla 2.4.19 kernel
2. Download patch-2.4.19-ac4
3. Patch the vanilla kernel
4. Compile the new kernel
5. Make LILO point to new kernel.

My HDD is flying now again!

Now I have a couple of questions after compiling the new kernel:

1. When it loads its looking for IPVS protocol and IP Virtual server or something (Can't read it, goes past to fast now :), what module or thing must I load in the make menuconfig to fix this?

2. My USB mouse doesn't work at all now, I selected all the usb stuff in the kernel, but it doesn't work at all. So now it is complaining about the console services with the mouse and my X has no mouse.

3. I can't mount my other drivers anymore, I selected all the correct file systems, NTFS read only is the most important for me. I don't know if the supermount is broken or what, but when I go to /mnt/nt there are no files, and if I try mount /dev/hda /mnt/nt -t NTFS, it gives me an error that there are too many mounts already?

Thanks again for all the help with the udma, now I just need to fix the kernel stuff and I'll be a happy camper again.

Emile.

mdwatts
10-17-2002, 06:17 AM
Did you import the previous kernels .config into the new?

Have a look through the Networking Section

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_NETLINK_DEV=y
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set (MIGHT BE VIRTUAL SERVER)
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set

I believe you need

#
# Input core support
#
CONFIG_INPUT=m
CONFIG_INPUT_KEYBDEV=m
# CONFIG_INPUT_MOUSEDEV is not set
CONFIG_INPUT_JOYDEV=m
CONFIG_INPUT_EVDEV=m

and of course the necessary USB support.

Can you see all the filesystem modules in the newly created /lib/modules/2.4.19... directories?

EmileK
10-17-2002, 09:52 AM
I don't actually know where all the modules went to, if I look in the /lib/modules/kernel2-4.19-ac4/kernel/drivers or anyplace I only see net and scsi?

I've followed the nhf on compiling the kernel, don't think i did something wrong. Also when playing around with the make menuconfig, sometime when I reboot it says Loading NewKernel and then EDBE too big? What does that mean?

Thanks,

Emile

bwkaz
10-17-2002, 10:46 AM
Before you did menuconfig, did you copy the .config file from your distro's kernel-source package into the root of the new kernel tree? That way, you can just change the stuff you specifically need to change. You'll get all the modules your init scripts want (number 1 above is I think a message from your init script(s)), plus the features in the new kernel.

EDBE too big... that's a new one, I don't know what it means.

EmileK
10-17-2002, 11:36 AM
I can't seem to find that .config file. Is that the spesific name .config and which directory will it be spesifically?

mdwatts
10-17-2002, 05:35 PM
Look in /usr/src/<previous kernel>/arch/i386.

.config
defconfig