* HELP: Installing, patching and building linux kernel sources...
@ 1998-11-23 5:00 Peter Mott
1998-11-23 5:00 ` Stephen Hailey
0 siblings, 1 reply; 4+ messages in thread
From: Peter Mott @ 1998-11-23 5:00 UTC (permalink / raw)
After many hours of collecting information on how to do this, and many
hours of trying to build 2.0.34 (found on the debian 2.0 beta cd I got
from lsl) and then 2.0.35 downloaded, I have questions about what I think
I know and don't know. I sense, from net noise that this happens enough
that there might be some guidelines, which I have missed, already in
place. I have read the kernel HOWTO, did I miss something?
-- What do I need to start?
I know I need a kernel source package.
ftp://ftp.debian.org/debian/dists/unstable/main/binary-
i386/devel/kernel-source-2.0.35_2.0.35-2.deb
I believe I need an Alpha kernel patch package.
ftp://ftp.debian.org/debian/dists/unstable/main/binary-
i386/devel/kernel-patch-2.0.35-alpha_2.0.35-3.deb
I think I need a kernel header package.
ftp://ftp.debian.org/debian/dists/unstable/main/binary-
i386/devel/kernel-headers-2.0.35_2.0.35-2.deb
I'm also trying /pub/DEC/Linux-Alpha/Kernels alpha-sources-2.0.35-
0.2.tar.gz and alpha-patches-2.0.35-0.2.gz. Are they equivalent to the
debian packages?
-- Is the above set of sources a proper and good set to start with? If
not, recommendations please.
-- How do I install them?
Can I use 'dpkg -I ...'? My dselect environment isn't working well.
When I tried to install these packages using dselect, it didn't complete,
complaining about 'too many errors'.
I can unpack the tar '.gz' and tar install it, but I don't know what
to do with the patch '.gz'
-- Do I need to 'apply' the patches with a 'make' or some other set of
commands after installing them? How is this done?
-- What causes the failure I am seeing? Is it because I don't have the
kernel headers?
I have tried to build after installing the kernel source and patched
with dpkg.
I had to edit linux/Makefile to change ARCH=i386 to ARCH=alpha.
I had to modify linux/arch/alpha/Makefile to place uses of $(shell...)
on the right hand side of a macro assignment, '$(shell...) =>
bogus=$(shell...)'.
I didn't have the header package when I tried this.
The 'make' errorred out after trying to compile
linux/drivers/char/misc.o. The error seemed to be about missing
'con_blitc', which I could not find a declaration for or any other
reference to in the entire kernel source tree, except for the reference
in drivers/char/selections.h, which is included by misc.c.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP: Installing, patching and building linux kernel sources...
1998-11-23 5:00 HELP: Installing, patching and building linux kernel sources Peter Mott
@ 1998-11-23 5:00 ` Stephen Hailey
1998-11-24 5:00 ` Richard Payne
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hailey @ 1998-11-23 5:00 UTC (permalink / raw)
try doing this.
1. get the full kernel that you want to use (i.e. linux-2.0.36.tar.gz) from
ftp.kernel.org
2. move linux-2.0.36.tar.gz to the base of your source tree ( /usr/src/ )
3. cd /usr/src , the delete the old tree ( rm -rf linux )
4. tar zxpvf linux-2.0.36.tar.gz
5. cd linux
6. change arch=alpha and comment out the SMP=1 option in the Makefile
7. make menuconfig or xconfig ; then configure your kernel
8. make dep ; make clean
9. make boot
10. Test the kernel: from milo prompt:
MILO>boot sda1:/usr/src/linux/arch/alpha/boot/vmlinux.gz
root=/dev/sda1 (if sda1 is not your boot partition change it to the one it
is.)
11. if it works, go back to /usr/src/linux/ and make modules ; make
modules_install
12. cd / ; then rename your vmlinux.gz to something else ( ie. mv
/vmlinux.gz /vmlinux.old.gz )
13 copy the new kernel to the root:
cp /usr/src/linux/arch/alpha/boot/vmlinux.gz /
14. that should be it.
NOTE: if you have an alphastation 200 4/233, there are other kernel tweaks
to fix
1. irq9 conflict with the sound card and the pci slot 2
2. to allow you to configure the scsi card to do fast-10 scsi
let me know and i will add them also
Peter Mott wrote in message ...
>After many hours of collecting information on how to do this, and many
>hours of trying to build 2.0.34 (found on the debian 2.0 beta cd I got
>from lsl) and then 2.0.35 downloaded, I have questions about what I think
>I know and don't know. I sense, from net noise that this happens enough
>that there might be some guidelines, which I have missed, already in
>place. I have read the kernel HOWTO, did I miss something?
>
>-- What do I need to start?
>
> I know I need a kernel source package.
> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>i386/devel/kernel-source-2.0.35_2.0.35-2.deb
>
> I believe I need an Alpha kernel patch package.
> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>i386/devel/kernel-patch-2.0.35-alpha_2.0.35-3.deb
>
> I think I need a kernel header package.
> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>i386/devel/kernel-headers-2.0.35_2.0.35-2.deb
>
> I'm also trying /pub/DEC/Linux-Alpha/Kernels alpha-sources-2.0.35-
>0.2.tar.gz and alpha-patches-2.0.35-0.2.gz. Are they equivalent to the
>debian packages?
>
>-- Is the above set of sources a proper and good set to start with? If
>not, recommendations please.
>
>-- How do I install them?
>
> Can I use 'dpkg -I ...'? My dselect environment isn't working well.
>When I tried to install these packages using dselect, it didn't complete,
>complaining about 'too many errors'.
>
> I can unpack the tar '.gz' and tar install it, but I don't know what
>to do with the patch '.gz'
>
>-- Do I need to 'apply' the patches with a 'make' or some other set of
>commands after installing them? How is this done?
>
>-- What causes the failure I am seeing? Is it because I don't have the
>kernel headers?
>
> I have tried to build after installing the kernel source and patched
>with dpkg.
> I had to edit linux/Makefile to change ARCH=i386 to ARCH=alpha.
> I had to modify linux/arch/alpha/Makefile to place uses of $(shell...)
>on the right hand side of a macro assignment, '$(shell...) =>
>bogus=$(shell...)'.
> I didn't have the header package when I tried this.
> The 'make' errorred out after trying to compile
>linux/drivers/char/misc.o. The error seemed to be about missing
>'con_blitc', which I could not find a declaration for or any other
>reference to in the entire kernel source tree, except for the reference
>in drivers/char/selections.h, which is included by misc.c.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: HELP: Installing, patching and building linux kernel sources...
1998-11-23 5:00 ` Stephen Hailey
@ 1998-11-24 5:00 ` Richard Payne
1998-11-24 5:00 ` Peter Mott
0 siblings, 1 reply; 4+ messages in thread
From: Richard Payne @ 1998-11-24 5:00 UTC (permalink / raw)
Stephen Hailey wrote in message <73db1j$3bh$1@excalibur.flash.net>...
>try doing this.
>
>1. get the full kernel that you want to use (i.e. linux-2.0.36.tar.gz) from
>ftp.kernel.org
>
>2. move linux-2.0.36.tar.gz to the base of your source tree ( /usr/src/ )
You may want to put it somewhere else, /usr/local/src etc.... to preserve
the header files that came with your distribution.
>
>3. cd /usr/src , the delete the old tree ( rm -rf linux )
>
>4. tar zxpvf linux-2.0.36.tar.gz
>
>5. cd linux
>
>6. change arch=alpha and comment out the SMP=1 option in the Makefile
On 2.0.36 SMP=1 is already commented out.
>
>7. make menuconfig or xconfig ; then configure your kernel
NO, both of these were broken an Alpha the last I knew and could
produce nasty .config files. Use 'make config', it night take longer
but it works.
>
>8. make dep ; make clean
>
>9. make boot
>
>10. Test the kernel: from milo prompt:
> MILO>boot sda1:/usr/src/linux/arch/alpha/boot/vmlinux.gz
>root=/dev/sda1 (if sda1 is not your boot partition change it to the one it
>is.)
>
>11. if it works, go back to /usr/src/linux/ and make modules ; make
>modules_install
>
>12. cd / ; then rename your vmlinux.gz to something else ( ie. mv
>/vmlinux.gz /vmlinux.old.gz )
>
>13 copy the new kernel to the root:
> cp /usr/src/linux/arch/alpha/boot/vmlinux.gz /
>
>14. that should be it.
>
>NOTE: if you have an alphastation 200 4/233, there are other kernel tweaks
>to fix
>1. irq9 conflict with the sound card and the pci slot 2
>2. to allow you to configure the scsi card to do fast-10 scsi
>
>let me know and i will add them also
>
>
>Peter Mott wrote in message ...
>>After many hours of collecting information on how to do this, and many
>>hours of trying to build 2.0.34 (found on the debian 2.0 beta cd I got
>>from lsl) and then 2.0.35 downloaded, I have questions about what I think
>>I know and don't know. I sense, from net noise that this happens enough
>>that there might be some guidelines, which I have missed, already in
>>place. I have read the kernel HOWTO, did I miss something?
>>
>>-- What do I need to start?
>>
>> I know I need a kernel source package.
>> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>>i386/devel/kernel-source-2.0.35_2.0.35-2.deb
>>
>> I believe I need an Alpha kernel patch package.
>> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>>i386/devel/kernel-patch-2.0.35-alpha_2.0.35-3.deb
>>
>> I think I need a kernel header package.
>> ftp://ftp.debian.org/debian/dists/unstable/main/binary-
>>i386/devel/kernel-headers-2.0.35_2.0.35-2.deb
>>
>> I'm also trying /pub/DEC/Linux-Alpha/Kernels alpha-sources-2.0.35-
>>0.2.tar.gz and alpha-patches-2.0.35-0.2.gz. Are they equivalent to the
>>debian packages?
>>
>>-- Is the above set of sources a proper and good set to start with? If
>>not, recommendations please.
>>
>>-- How do I install them?
>>
>> Can I use 'dpkg -I ...'? My dselect environment isn't working well.
>>When I tried to install these packages using dselect, it didn't complete,
>>complaining about 'too many errors'.
>>
>> I can unpack the tar '.gz' and tar install it, but I don't know what
>>to do with the patch '.gz'
>>
>>-- Do I need to 'apply' the patches with a 'make' or some other set of
>>commands after installing them? How is this done?
>>
>>-- What causes the failure I am seeing? Is it because I don't have the
>>kernel headers?
>>
>> I have tried to build after installing the kernel source and patched
>>with dpkg.
>> I had to edit linux/Makefile to change ARCH=i386 to ARCH=alpha.
>> I had to modify linux/arch/alpha/Makefile to place uses of $(shell...)
>>on the right hand side of a macro assignment, '$(shell...) =>
>>bogus=$(shell...)'.
>> I didn't have the header package when I tried this.
>> The 'make' errorred out after trying to compile
>>linux/drivers/char/misc.o. The error seemed to be about missing
>>'con_blitc', which I could not find a declaration for or any other
>>reference to in the entire kernel source tree, except for the reference
>>in drivers/char/selections.h, which is included by misc.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: HELP: Installing, patching and building linux kernel sources...
1998-11-24 5:00 ` Richard Payne
@ 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)
Thanks for the great support.
I have succeeded up to step 10 using
http://ftp.digital.com/pub/DEC/Linux-Alpha/Kernels/alpha-sources-2.0.35-
0.2.tar.gz 'out of the box'. I'll get to testing soon enough.
Using this source collection I was able to skip step 6 and I successfully
used 'make menuconfig', although I haven't tested the resulting kernel.
I'll try these suggestions to see if I can step forward to 2.0.36.
Thanks for your help.
- Peter Mott
In article <365ab41900000027@ctnhnews.timken.com-MINC>, "Richard Payne"
<payner at timken dot com> says...
>
>
> Stephen Hailey wrote in message <73db1j$3bh$1@excalibur.flash.net>...
> >try doing this.
> >
> >1. get the full kernel that you want to use (i.e. linux-2.0.36.tar.gz) from
> >ftp.kernel.org
> >
> >2. move linux-2.0.36.tar.gz to the base of your source tree ( /usr/src/ )
>
> You may want to put it somewhere else, /usr/local/src etc.... to preserve
> the header files that came with your distribution.
>
> >
> >3. cd /usr/src , the delete the old tree ( rm -rf linux )
> >
> >4. tar zxpvf linux-2.0.36.tar.gz
> >
> >5. cd linux
> >
> >6. change arch=alpha and comment out the SMP=1 option in the Makefile
>
>
> On 2.0.36 SMP=1 is already commented out.
> >
> >7. make menuconfig or xconfig ; then configure your kernel
>
> NO, both of these were broken an Alpha the last I knew and could
> produce nasty .config files. Use 'make config', it night take longer
> but it works.
> >
> >8. make dep ; make clean
> >
> >9. make boot
> >
> >10. Test the kernel: from milo prompt:
> > MILO>boot sda1:/usr/src/linux/arch/alpha/boot/vmlinux.gz
> >root=/dev/sda1 (if sda1 is not your boot partition change it to the one it
> >is.)
> >
> >11. if it works, go back to /usr/src/linux/ and make modules ; make
> >modules_install
> >
> >12. cd / ; then rename your vmlinux.gz to something else ( ie. mv
> >/vmlinux.gz /vmlinux.old.gz )
> >
> >13 copy the new kernel to the root:
> > cp /usr/src/linux/arch/alpha/boot/vmlinux.gz /
> >
> >14. that should be it.
^ 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-23 5:00 HELP: Installing, patching and building linux kernel sources Peter Mott
1998-11-23 5:00 ` Stephen Hailey
1998-11-24 5:00 ` Richard Payne
1998-11-24 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