Unix Technical Forum

Configuring SATA drive kernel

This is a discussion on Configuring SATA drive kernel within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> At bottom of this message are some relevant lines from DMESG. I get this from test26.s (2.6.18) in Slackware ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:23 PM
Dominic-Luc Webb
 
Posts: n/a
Default Configuring SATA drive kernel


At bottom of this message are some relevant lines from DMESG. I get this
from test26.s (2.6.18) in Slackware 11.0 kernel and this drives my SATA
DVD writer (Optiard 5170A) fine as long as I stipulate irqpoll at boot
time. I've been compiling new 2.6.18 kernels to support PPP and my sound
card, but no matter what I try so far, I am not getting the new kernels
to recognize the DVD writer. Maybe someone knows how test26.s is configured
or what I should include or leave out? I'd really like to just get the
config file for test26.c and add PPP and my sound card, but maybe not
possible. Any ideas which driver(s) gave these messages and assigned my
DVD writer as hda?

Dominic - see DMESG below....

------------------------------------------------------

SCSI subsystem initialized

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
ICH7: IDE controller at PCI slot 0000:00:1f.1
ICH7: chipset revision 1
ICH7: 100% native mode on irq 15
ide0: BM-DMA at 0x7800-0x7807, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0x7808-0x780f, BIOS settings: hdcio, hddio
Probing IDE interface ide0...
hda: Optiarc DVD RW AD-5170A, ATAPI CD/DVD-ROM drive
ide0 at 0x9000-0x9007,0x8802 on irq 15

Disabling IRQ #15
hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(66)
Uniform CD-ROM driver Revision: 3.20

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:23 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Configuring SATA drive kernel

Dominic-Luc Webb wrote:
> At bottom of this message are some relevant lines from DMESG. I get this
> from test26.s (2.6.18) in Slackware 11.0 kernel and this drives my SATA
> DVD writer (Optiard 5170A) fine as long as I stipulate irqpoll at boot
> time. I've been compiling new 2.6.18 kernels to support PPP and my sound
> card, but no matter what I try so far, I am not getting the new kernels
> to recognize the DVD writer. Maybe someone knows how test26.s is configured
> or what I should include or leave out? I'd really like to just get the
> config file for test26.c and add PPP and my sound card, but maybe not
> possible. Any ideas which driver(s) gave these messages and assigned my
> DVD writer as hda?
>

If you mount Disk 1, the config file in /mnt/cdrom/kernels/test26.s is
the one used to compile it.

Simply copy that to .config in /usr/src/linux (which is a symbolic link
to /usr/src/linux-2.6.18), then you can start from the "known good"
configuration.

--
Everything works -- if you let it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:23 PM
buck
 
Posts: n/a
Default Re: Configuring SATA drive kernel

On Mon, 18 Dec 2006 20:03:29 +0100, Dominic-Luc Webb <dlwebb@canit.se>
wrote:

>
>At bottom of this message are some relevant lines from DMESG. I get this
>from test26.s (2.6.18) in Slackware 11.0 kernel and this drives my SATA
>DVD writer (Optiard 5170A) fine as long as I stipulate irqpoll at boot
>time. I've been compiling new 2.6.18 kernels to support PPP and my sound
>card, but no matter what I try so far, I am not getting the new kernels
>to recognize the DVD writer. Maybe someone knows how test26.s is configured
>or what I should include or leave out? I'd really like to just get the
>config file for test26.c and add PPP and my sound card, but maybe not
>possible. Any ideas which driver(s) gave these messages and assigned my
>DVD writer as hda?
>
>Dominic - see DMESG below....


I can make my 2.6.18 and/or 2.6.19 config(s) available if you wish.
Email me and I'll give you the URL; they are too big to post here. I
only check the yahoo mail once a day, so be patient. The setup is a
Gigabyte MoBo, Core 2 CPU, 3 SATA HDs in (software) RAID5, Plextor
SATA DVD. The only 11.0 kernel that would allow installation was
test26.s.

NOTE: In CMOS SETUP, I changed from the default DVD access mode
(legacy IDE?) so I could temporarily install an IDE drive also; I
continue to use that setting (IHC something?). Be dead certain your
SETUP is correct.

I have _not_ installed the newer CD/DVD software versions discussed
recently in this NG - so I haven't burned anything yet. But disks
mount and read just fine.

The DVD drive is seen as sr0. I append=nousb because I don't need USB
and the boot is far faster. irqpoll is not needed. Smartd gets an IO
error when it attempts to start either the short or the long test on
the drives in the RAID array. I conclude that the 2.6 kernels are
still not mature enough. I'd go back to 2.4 in an instant if I could.
--
buck
buckprivatemil yayhoo com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 08:23 PM
Dominic-Luc Webb
 
Posts: n/a
Default Re: Configuring SATA drive kernel


First, thank Thomas Ronayne. I will try your suggestion.

Buck,

I am curious about how your DVD gets recognized as sr0. My SATA DVD
writer gets seen (when it is seen) as ide0: hda. My SATA HDD is
recognized as sda. I have been wondering if maybe I have some left
over partitioning from when I first installed FreeBSD. That assigned
the HDD as sda (DVD was called acd0, and BSD went to sda1). Then I
installed Linux, which called its partition HDD dev/sda2 and the
CD was named hda. Not sure if this is good or bad. With test26.s, I
can read/write data and audio CDs (albeit kernel had no sound card
support, separate issue). I am curious about what gave rise to your
sr0. We both otherwise have similar machines.

For now, let me try Thomas Ronayne's advice to copy the test26.s
..config file and see what happens.

Dominic


On Mon, 18 Dec 2006, buck wrote:

> On Mon, 18 Dec 2006 20:03:29 +0100, Dominic-Luc Webb <dlwebb@canit.se>
> wrote:
>
> >
> >At bottom of this message are some relevant lines from DMESG. I get this
> >from test26.s (2.6.18) in Slackware 11.0 kernel and this drives my SATA
> >DVD writer (Optiard 5170A) fine as long as I stipulate irqpoll at boot
> >time. I've been compiling new 2.6.18 kernels to support PPP and my sound
> >card, but no matter what I try so far, I am not getting the new kernels
> >to recognize the DVD writer. Maybe someone knows how test26.s is configured
> >or what I should include or leave out? I'd really like to just get the
> >config file for test26.c and add PPP and my sound card, but maybe not
> >possible. Any ideas which driver(s) gave these messages and assigned my
> >DVD writer as hda?
> >
> >Dominic - see DMESG below....

>
> I can make my 2.6.18 and/or 2.6.19 config(s) available if you wish.
> Email me and I'll give you the URL; they are too big to post here. I
> only check the yahoo mail once a day, so be patient. The setup is a
> Gigabyte MoBo, Core 2 CPU, 3 SATA HDs in (software) RAID5, Plextor
> SATA DVD. The only 11.0 kernel that would allow installation was
> test26.s.
>
> NOTE: In CMOS SETUP, I changed from the default DVD access mode
> (legacy IDE?) so I could temporarily install an IDE drive also; I
> continue to use that setting (IHC something?). Be dead certain your
> SETUP is correct.
>
> I have _not_ installed the newer CD/DVD software versions discussed
> recently in this NG - so I haven't burned anything yet. But disks
> mount and read just fine.
>
> The DVD drive is seen as sr0. I append=nousb because I don't need USB
> and the boot is far faster. irqpoll is not needed. Smartd gets an IO
> error when it attempts to start either the short or the long test on
> the drives in the RAID array. I conclude that the 2.6 kernels are
> still not mature enough. I'd go back to 2.4 in an instant if I could.
> --
> buck
> buckprivatemil yayhoo com
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 08:24 PM
Dominic-Luc Webb
 
Posts: n/a
Default Re: Configuring SATA drive kernel


Thanks for the ideas about copying the test26.s .config. I now see
the reason I did not find it on the Slackware CD was because I do
not automatically get ls to run with the ls -a switch in the new
installation. Previously, .* files were displayed without the -a
switch.

This worked to compile a kernel that can identify my DVD writer. However,
the system now stalls during bootup from a CD with the image.iso and I
think the reason is that I no longer get the boot: prompt in which I
can enter bootup parameters. Using test26.s, I need to boot the Slackware
disk like this:

boot: test26.s irqpoll root=/dev/sda1 noinitrd ro

I think it is the irqpoll that is the critical part. Does someone know
how to add this to the kernel I am configuring and compiling myself? I
would be happy to either get a boot prompt using my image.iso file to
fill this in manually every time I boot, or to append irqpoll to the
kernel when I compile. Anyone know how to do either of these?

Dominic

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 08:24 PM
Old Man
 
Posts: n/a
Default Re: Configuring SATA drive kernel

Dominic-Luc Webb wrote:

> I think it is the irqpoll that is the critical part. Does someone know
> how to add this to the kernel I am configuring and compiling myself? I
> would be happy to either get a boot prompt using my image.iso file to
> fill this in manually every time I boot, or to append irqpoll to the
> kernel when I compile. Anyone know how to do either of these?
>
> Dominic


man lilo.conf

look for the sections on "prompt" and "append="

--
Old Man

"I could be wrong again
I remember once in August 1993
I was wrong, and I could be wrong again" - Paul Simon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 08:24 PM
Dominic-Luc Webb
 
Posts: n/a
Default Re: Configuring SATA drive kernel

On Wed, 20 Dec 2006, Old Man wrote:

> Dominic-Luc Webb wrote:
>
> > I think it is the irqpoll that is the critical part. Does someone know
> > how to add this to the kernel I am configuring and compiling myself? I
> > would be happy to either get a boot prompt using my image.iso file to
> > fill this in manually every time I boot, or to append irqpoll to the
> > kernel when I compile. Anyone know how to do either of these?
> >
> > Dominic

>
> man lilo.conf



Does lilo.conf have anything to do with this? I am not using a
boot loader or booting from the HDD. I am booting from a CD
onto which I have written the "image.iso" file.

Dominic

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 08:25 PM
buck
 
Posts: n/a
Default Re: Configuring SATA drive kernel

On Wed, 20 Dec 2006 15:38:55 +0100, Dominic-Luc Webb <dlwebb@canit.se>
wrote:

>On Wed, 20 Dec 2006, Old Man wrote:
>
>> Dominic-Luc Webb wrote:
>>
>> > I think it is the irqpoll that is the critical part. Does someone know
>> > how to add this to the kernel I am configuring and compiling myself? I
>> > would be happy to either get a boot prompt using my image.iso file to
>> > fill this in manually every time I boot, or to append irqpoll to the
>> > kernel when I compile. Anyone know how to do either of these?
>> >
>> > Dominic

>>
>> man lilo.conf

>
>
>Does lilo.conf have anything to do with this? I am not using a
>boot loader or booting from the HDD. I am booting from a CD
>onto which I have written the "image.iso" file.
>
>Dominic


This is a rather wild guess, but YES. You gotta have SOME boot loader
to get a kernel load started.

append=irqpoll in /etc/lilo.conf (before you burn the bootable image)
will take care of that as well as the ro for the root partition.

I am mystified by the noinitrd, I thought a bootable OS _must_
include an initrd...
--
buck

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 08:25 PM
Old Man
 
Posts: n/a
Default Re: Configuring SATA drive kernel

Dominic-Luc Webb wrote:

> Does lilo.conf have anything to do with this? I am not using a
> boot loader or booting from the HDD. I am booting from a CD
> onto which I have written the "image.iso" file.


Then the bootloader is isolinux, no? And the config file is isolinux.cfg

--
Old Man

"I could be wrong again
I remember once in August 1993
I was wrong, and I could be wrong again" - Paul Simon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com