LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-26-2007, 07:24 PM   #1
KyPeN
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu Edgy Eft on 2.6.20-rc4
Posts: 12

Rep: Reputation: 0
Update kernel to 2.6.20-rc4 --> Ultra slow HD access


I need to update my Edgy Eft vanilla kernel the aforementioned version in order to resolve a conflict between ndiswrapper, broadcom drivers, and nvidia drivers (fsking binary drivers!!!).

So I imported the old config file, recompiled, installed, and booted. It locked up when it was trying to set up the "Waiting for Root File System...", or so I thought. A little research later, I found out that it was searching for sda6, when it really needed hda6. So I changed it and it takes forever to boot, runs slow, but works. It is also worth noting that on the old kernel I was on sda6, hence the confusion. I think it is also worth noting that, before I found out that I just needed to change the boot disk to hda6, I recompiled the kernel on suggestion from a friend with most of the essential stuff (ext3 support, sata support, pci-express) included in the kernel instead of modules.

Here is my output from some commands to diagnose the problem.

Code:
kypen@M1710 ~ $ uname -r
2.6.20-rc4-take2
kypen@M1710 ~ $ sudo hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 153356490, start = 0
kypen@M1710 ~ $ sudo hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
kypen@M1710 ~ $
From what I've read, to alleviate this problem requires me to compile chipset support directly into the kernel. After some research, I *think* I found the proper drivers. So I included them, recompiled, and reinstalled the new kernel. Same issue. I'm not convinced I have the right drivers.

I've run 3 different hdparm -Tt /dev/hda on my 3 different kernels:

Code:
Original (comes with ubuntu, don't remember version number)
Cache: 2754mbs
Read/Write: 44.18mbs

2.6.20-rc4 take 1 (without including what *may* be the proper chipset drivers in the kernel, but leaving them as modules)
Cache: 2723mbs
Read/Write: 1.67mbs

2.6.20-rc4 take 2 (including what *may* be the proper chipset drivers in kernel, not modules)
Cache: 2649mbs
Read/Write: 1.69mbs
As you can see, SOMETHING has gone totally wrong in this kernel upgrade. I really think it has to do with SATA/IDE confusion in the kernel. When I boot the 2.6.20-rc4, I have to specify it to be /dev/hda, not /dev/sda as with the stock ubuntu kernel.

Please help!
 
Old 01-27-2007, 05:55 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Try again, this time clean your problematic configuration first (make mrproper), then do 'make oldconfig'. While using 'make menuconfig' disable;

#
# ATA/ATAPI/MFM/RLL support
#
# CONFIG_IDE is not set

And configure the SATA and PATA support;

#
# Serial ATA (prod) and Parallel ATA (experimental) drivers
#

Build all as modules unless you know which modules you really need.
 
Old 01-27-2007, 10:28 PM   #3
KyPeN
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu Edgy Eft on 2.6.20-rc4
Posts: 12

Original Poster
Rep: Reputation: 0
I finally fixed this.

I ended up searching for which SATA controller my 945 chipset had, and futher searching for exactly which kernel module was required to get this working. A couple hours of Googling and working out dependancies for different modules, I finally got it up.

Thanks guys.
 
Old 02-20-2007, 06:52 PM   #4
jaknowlden
LQ Newbie
 
Registered: Mar 2005
Distribution: fedora core 3
Posts: 2

Rep: Reputation: 0
Installation

Quote:
Originally Posted by KyPeN
I finally fixed this.

I ended up searching for which SATA controller my 945 chipset had, and futher searching for exactly which kernel module was required to get this working. A couple hours of Googling and working out dependancies for different modules, I finally got it up.

Thanks guys.
KyPen,

I have noticed the exact same problem while building 2.6.20 from source on my Ubuntu box - previously sda to hda. I plan to resolve the problem similarly to yours, but am wondering whether you installed the kernel via the canonical "make; make install; make modules_install" or whether you used debian's "make-kpkg" approach.
 
Old 02-20-2007, 11:26 PM   #5
KyPeN
LQ Newbie
 
Registered: Apr 2004
Distribution: Ubuntu Edgy Eft on 2.6.20-rc4
Posts: 12

Original Poster
Rep: Reputation: 0
I used Debian's makepkg method. I figured this made it easier because it should automatically update Grub's menu.lst file.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow after update kernel lodder Debian 2 09-08-2006 09:14 AM
Slow after Kernel update tkinsella Red Hat 3 02-15-2006 02:47 PM
[SOLVED] Ultra slow network eRJe Linux - Networking 7 05-04-2005 08:35 PM
No remote access after kernel update Kholnuu Slackware 13 01-22-2005 07:20 PM
love sources kernel 2.6.9-rc4-love1.bz2 huntermix Slackware 1 10-25-2004 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:34 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