Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* How does one determine the kernel's configuration...
@ 1998-11-30  5:00 Peter Mott
  1998-11-30  5:00 ` Richard Payne
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Mott @ 1998-11-30  5:00 UTC (permalink / raw)


I am trying to build and boot a new kernel for my DECaxpPCI33. 

I am running a 2.0.34 kernel install with debian disks for noname from 
debian/dists/sid/main/disks-alpha/1998-07-02

I'd like to find out how the present kernel is configured, as in what 
would the .config file contain to build it.

It there a way to determine this when there is no .config file to look 
at? 

I am building with sources from ftp://ftp.digital.com/pub/DEC/Linux-
Alpha/Kernels/alpha-sources-2.0.35-0.2.tar.gz

I have successfully built a kernel:
	make mrproper
	make menuconfig
	  Choosing noname
	make dep
	make boot

When I boot the kernel it gets an unable to mount root file system error. 
This is because it is it is not configured with support for the 
DECaxpPCI33's SCSI controller, which is not an available option from 
menuconfig.

I went into the .config created from my successful build and found the 
line for the SCSI controller. I changed it to '...=y'. (I can't be more 
specific 'cause the machine is at home and I don't remember the exact 
controller name.)

Having done this and executing:
	make clean
	make dep
	make boot

I get errors in the build. Again, I can remember the exact messages, but 
I'm hoping to have an answer to the subject, 'How does one determine the 
kernel's configuration...', and maybe get lucky with a kernel building 
expert recognizing something wrong with what I've tried to do.

I am interested in making my kernel as close to the configuration of the 
2.0.34 kernel I am running as possible, but I don't know how to determine 
that configuration. I'll play around the configuration I have learn how 
to build and boot something, anything, successfully.

Thanks.
- Peter Mott



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one determine the kernel's configuration...
  1998-11-30  5:00 How does one determine the kernel's configuration Peter Mott
@ 1998-11-30  5:00 ` Richard Payne
  1998-12-04  5:00   ` Jon Fiedler
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Payne @ 1998-11-30  5:00 UTC (permalink / raw)



[snip -stuff about compiling a kernel]
>
>I have successfully built a kernel:
> make mrproper
> make menuconfig

-menuconfig is known to produce strange results on Alpha.

>   Choosing noname
> make dep
> make boot
>
>When I boot the kernel it gets an unable to mount root file system error.
>This is because it is it is not configured with support for the
>DECaxpPCI33's SCSI controller, which is not an available option from
>menuconfig.

hm.... What I would do is to type 'dmesg |more' at the command line. This
should give you the boot messages of your current kernel, from there you
can get the info you need to compile a new kernel.

Now my guess as to the SCSI problem would be that you didn't include
SCSI support, so  when you got to SCSI low level drivers they were
all commented out?? Just a guess.

>
>I went into the .config created from my successful build and found the
>line for the SCSI controller. I changed it to '...=y'. (I can't be more
>specific 'cause the machine is at home and I don't remember the exact
>controller name.)
>
>Having done this and executing:
> make clean
> make dep
> make boot
>
>I get errors in the build. Again, I can remember the exact messages, but
>I'm hoping to have an answer to the subject, 'How does one determine the
>kernel's configuration...', and maybe get lucky with a kernel building
>expert recognizing something wrong with what I've tried to do.
>
>I am interested in making my kernel as close to the configuration of the
>2.0.34 kernel I am running as possible, but I don't know how to determine
>that configuration. I'll play around the configuration I have learn how
>to build and boot something, anything, successfully.
>
>Thanks.
>- Peter Mott

hope that helps.
rdp


--
Rich Payne
(Speaking for myself, not my employer)
payner at timken dot com

Looking for Alpha-Linux info?
http://www.alphalinux.org





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one determine the kernel's configuration...
  1998-11-30  5:00 ` Richard Payne
@ 1998-12-04  5:00   ` Jon Fiedler
  1998-12-04  5:00     ` Peter Mott
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Fiedler @ 1998-12-04  5:00 UTC (permalink / raw)


On Mon, 30 Nov 1998 17:10:59 -0500, "Richard Payne" <payner at timken
dot com> wrote:

>
>[snip -stuff about compiling a kernel]
>>
>>I have successfully built a kernel:
>> make mrproper
>> make menuconfig
>
>-menuconfig is known to produce strange results on Alpha.
>

Details please.  I've got an AS 200 4/233 and would like to know more
about these 'strange results'.

>>   Choosing noname
>> make dep
>> make boot
>>
>>When I boot the kernel it gets an unable to mount root file system error.
>>This is because it is it is not configured with support for the
>>DECaxpPCI33's SCSI controller, which is not an available option from
>>menuconfig.
>

But I have successfully recompiled a kernel on my machine.  One of the
oddest things, though, was that the low level SCSI driver for the NCR
53c810 (which I believe both the AS 200 and noname board use) wasn't
present as a choice in menuconfig.  But it is present in the config
file.  I had to go in and edit the [.]config file by hand to enable
the driver (the syntax is really easy to understand; just look at the
other lines for drivers).  (I can't remember if it's '.config' or just
'config'.  Whatever, it should be in /usr/src/linux (ie - the root
directory of the source tree).  But I'm also going from memory here,
so YMMV).  BTW, I'm using RedHat 5.2

HTH,
Jon



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How does one determine the kernel's configuration...
  1998-12-04  5:00   ` Jon Fiedler
@ 1998-12-04  5:00     ` Peter Mott
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Mott @ 1998-12-04  5:00 UTC (permalink / raw)


[This followup was posted to comp.os.linux.alpha and a copy was sent to 
the cited author.]

Thanks for your input.

In article <36680f78.358013996@news.cwru.edu>, jmf9@po.cwru.edu says...
> >
> >-menuconfig is known to produce strange results on Alpha.
> >
> 
> Details please.  I've got an AS 200 4/233 and would like to know more
> about these 'strange results'.
> 

I can't give the details that are implied by the poster who said 'strange 
results'. I can say that 'make menuconfig' does not cover all options 
provided by 'make config', although when I have made identical changes 
using either of these configuration methods, comparing the resulting 
.config files appear functionally equivalent. 

I have not yet succeeded at building a kernel with the NCR53C8xx code, 
but I really close. I need to know if I can change a line in the .config 
file and then rebuild without doing it from scratch and what steps are 
used to do this. I am currently always doing 'make dep && make clean && 
make boot'. 

> >>   Choosing noname
> >> make dep
> >> make boot
> >>
> >>When I boot the kernel it gets an unable to mount root file system error.
> >>This is because it is it is not configured with support for the
> >>DECaxpPCI33's SCSI controller, which is not an available option from
> >>menuconfig.
> >
> 
> But I have successfully recompiled a kernel on my machine.  

As have I. Your next issue is the one I am trying to resolve, finally 
relying on 'make config' to pursue it as simply as possible. I am almost 
there, but I also included support for FD8xx and AHA1542, which results 
in a failure compiling seagate.c.

Since each time I try a new configuration perform a 'make clean', it 
takes me a day for each new effort, building takes my system 2+ hours.

> One of the
> oddest things, though, was that the low level SCSI driver for the NCR
> 53c810 (which I believe both the AS 200 and noname board use) wasn't
> present as a choice in menuconfig.  But it is present in the config
> file.  

> I had to go in and edit the [.]config file by hand to enable
> the driver (the syntax is really easy to understand; just look at the
> other lines for drivers).  (I can't remember if it's '.config' or just
> 'config'.  Whatever, it should be in /usr/src/linux (ie - the root
> directory of the source tree).  But I'm also going from memory here,
> so YMMV).  BTW, I'm using RedHat 5.2
> 

So, can you tell me what steps are required, after hand editing the 
.config file, to rebuild without doing it from scratch?


Thank again.
- Peter Mott



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-12-04  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-30  5:00 How does one determine the kernel's configuration Peter Mott
1998-11-30  5:00 ` Richard Payne
1998-12-04  5:00   ` Jon Fiedler
1998-12-04  5:00     ` Peter Mott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox