Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "Richard Payne" <payner at timken dot com>
Subject: Re: HELP: Installing, patching and building linux kernel sources...
Date: 1998/11/24	[thread overview]
Message-ID: <365ab41900000027@ctnhnews.timken.com-MINC> (raw)
In-Reply-To: 73db1j$3bh$1@excalibur.flash.net



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





  reply	other threads:[~1998-11-24  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
1998-11-24  5:00     ` Peter Mott
read-only archive

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