* I want to build my own kernel...
@ 1998-11-22 5:00 Peter Mott
1998-11-23 5:00 ` Richard Payne
0 siblings, 1 reply; 4+ messages in thread
From: Peter Mott @ 1998-11-22 5:00 UTC (permalink / raw)
I'm trying to get started building my own kernels.
Where can I download a more current development stream from? I'm looking
for a good starting place and will become more adventuresome with
experience.
I would have been happy to start with 2.0.34, which I got from debian
sid, to get my feet wet, but it fails as seen later. I presume this is
because there is no con_blitc, which I can not find anywhere in the
kernel source base I have installed.
Thanks.
- Peter Mott
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.0.34/include -Wall
-Wstrict-prototy\
pes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -mno-fp-regs
-Wa,-m2116\
4a -DBWX_USABLE -c -o misc.o misc.c
selection.h: In function `scr_writew':
In file included from misc.c:47:
selection.h:113: `con_blitc' undeclared (first use in this function)
selection.h:113: (Each undeclared identifier is reported only once
selection.h:113: for each function it appears in.)
selection.h:114: `con_blitc' used prior to declaration
selection.h:114: warning: implicit declaration of function `con_blitc'
selection.h: In function `memsetw':
selection.h:114: `con_blitc' used prior to declaration
selection.h: In function `memcpyw':
selection.h:114: `con_blitc' used prior to declaration
/usr/src/kernel-source-2.0.34/include/linux/symtab_begin.h: At top
level:
/usr/src/kernel-source-2.0.34/include/linux/symtab_begin.h:46: warning:
This fi\
le contains more `{'s than `}'s.
/usr/src/kernel-source-2.0.34/include/linux/symtab_end.h:16: warning:
This file\
contains more `}'s than `{'s.
make[3]: *** [misc.o] Error 1
make[3]: Leaving directory `/usr/src/kernel-source-2.0.34/drivers/char'
to build when it hits drivers/char in misc.c on the include of
selections.c
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: I want to build my own kernel...
1998-11-22 5:00 I want to build my own kernel Peter Mott
@ 1998-11-23 5:00 ` Richard Payne
1998-11-23 5:00 ` Peter Mott
0 siblings, 1 reply; 4+ messages in thread
From: Richard Payne @ 1998-11-23 5:00 UTC (permalink / raw)
Peter Mott wrote in message <365804B0.833D6D7D@mathworks.com>...
>I'm trying to get started building my own kernels.
Good for you!
>
>Where can I download a more current development stream from? I'm looking
>for a good starting place and will become more adventuresome with
>experience.
Both the stable (2.0.xx) and the development kernels (2.1.xxx) are available
from ftp.kernel.org or any of the multiple mirrors. Try to choose one close
to you...
I've also written up a little doc for compiling on Alpha:
http://www.alphalinux.org/docs/kernel.html
>
>I would have been happy to start with 2.0.34, which I got from debian
>sid, to get my feet wet, but it fails as seen later. I presume this is
>because there is no con_blitc, which I can not find anywhere in the
>kernel source base I have installed.
>
>Thanks.
>- Peter Mott
>
>gcc -D__KERNEL__ -I/usr/src/kernel-source-2.0.34/include -Wall
>-Wstrict-prototy\
>pes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -mno-fp-regs
>-Wa,-m2116\
>4a -DBWX_USABLE -c -o misc.o misc.c
>selection.h: In function `scr_writew':
>In file included from misc.c:47:
>selection.h:113: `con_blitc' undeclared (first use in this function)
>selection.h:113: (Each undeclared identifier is reported only once
>selection.h:113: for each function it appears in.)
>selection.h:114: `con_blitc' used prior to declaration
>selection.h:114: warning: implicit declaration of function `con_blitc'
>selection.h: In function `memsetw':
>selection.h:114: `con_blitc' used prior to declaration
>selection.h: In function `memcpyw':
>selection.h:114: `con_blitc' used prior to declaration
>/usr/src/kernel-source-2.0.34/include/linux/symtab_begin.h: At top
>level:
>/usr/src/kernel-source-2.0.34/include/linux/symtab_begin.h:46: warning:
>This fi\
>le contains more `{'s than `}'s.
>/usr/src/kernel-source-2.0.34/include/linux/symtab_end.h:16: warning:
>This file\
> contains more `}'s than `{'s.
>make[3]: *** [misc.o] Error 1
>make[3]: Leaving directory `/usr/src/kernel-source-2.0.34/drivers/char'
>
> to build when it hits drivers/char in misc.c on the include of
>selections.c
--
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: I want to build my own kernel...
1998-11-23 5:00 ` Richard Payne
@ 1998-11-23 5:00 ` Peter Mott
1998-11-24 5:00 ` Completed - " Peter Mott
0 siblings, 1 reply; 4+ messages in thread
From: Peter Mott @ 1998-11-23 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 the pointer and for your effort in creating the web page. A
page like yours is exactly what people like me need.
In my efforts so far I have developed some very specific questions which
I have not found answers for through your document or on the internet. I
also have some questions that may help refine your document.
-- I can download from gatekeeper, but how do I find the Alpha Linux
kernel sources that I want to download?
I found /pub/linux/redhat, which contains rpms, but I don't know how to
unpack or install rpms onto my debian system.
I found /pub/DEC/Linux-Alpha/Kernels.
Are there others?
While theses may not always exist in the same place, it would be helpful
to have some guidance to them. Either their location or a method to find
them.
-- Once downloading a source collection and a patch collection, do they
need to be combined? How are they combined? In your document your make
reference to pre-patched kernels from gatekeeper. Does this mean that I
only need the first of the two files below?
alpha-sources-2.0.35-0.2.tar.gz
alpha-patches-2.0.35-0.2.gz
How to combine these may become obvious once I have examined the files,
but after installing the debian packages for the 2.0.35 kernel sources
and alpha patches, there was no indication of how to put the two pieces
together.
-- "compile out of the box" conveys nonspecific expectations.
I may have some constructive comments after trying the above files. There
are a number of steps required to get the right collection of sources out
of the box and configured before compiling successfully.
Thanks again for your response and your web page. If your on the debian-
alpha mailing list you may see my questions asked again. I'll post them
separately to this news group.
Regards.
- Peter Mott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Completed - Re: I want to build my own kernel...
1998-11-23 5:00 ` Peter Mott
@ 1998-11-24 5:00 ` Peter Mott
0 siblings, 0 replies; 4+ messages in thread
From: Peter Mott @ 1998-11-24 5:00 UTC (permalink / raw)
Simply stated, downloading from http://ftp.digital.com/pub/DEC/Linux-
Alpha/Kernels/alpha-sources-2.0.35-0.2.tar.gz
I was able to completely build my first kernel with no modifications to
the environment, except for make config options.
Did I learn the answers to my own questions? Not completely, I'll answer
what I can.
>
> -- I can download from gatekeeper, but how do I find the Alpha Linux
> kernel sources that I want to download?
>
http://ftp.digital.com/pub/DEC/Linux-Alpha/Kernels/alpha-sources-2.0.35-
0.2.tar.gz
>
> -- Once downloading a source collection and a patch collection, do they
> need to be combined? How are they combined? In your document your make
> reference to pre-patched kernels from gatekeeper. Does this mean that I
> only need the first of the two files below?
>
> alpha-sources-2.0.35-0.2.tar.gz
> alpha-patches-2.0.35-0.2.gz
>
There is no need to apply the patches before building. I am still curious
what delta alpha-patches-2.0.35-0.2.gz represents. I presume its the
delta from alpha-sources-2.0.35-0.1.tar.gz to alpha-sources-2.0.35-
0.2.tar.gz
>
> How to combine these may become obvious once I have examined the files,
> but after installing the debian packages for the 2.0.35 kernel sources
> and alpha patches, there was no indication of how to put the two pieces
> together.
>
It didn't become obvious, but I now know the answer is 'use the patch(1)
command'.
>
> -- "compile out of the box" conveys nonspecific expectations.
> I may have some constructive comments after trying the above files. There
> are a number of steps required to get the right collection of sources out
> of the box and configured before compiling successfully.
>
In the case of the above mentioned download:
'gzip -d -c <file> | tar xf -'
gets it out of the box. Then it certainly did build! Yeah! For '.deb'
files I presume 'dpkg -I' gets it out of the box. For RPMS I still don't
know what I would do if I weren't in the RedHat environment.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-11-24 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-22 5:00 I want to build my own kernel Peter Mott
1998-11-23 5:00 ` Richard Payne
1998-11-23 5:00 ` Peter Mott
1998-11-24 5:00 ` Completed - " Peter Mott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox