How to build a custom kernel with kernel-source-2.0.34_2.0.34-4.deb

1998-07-15 Thread Alex Kwan
Dear debian fans,

My system is hamm, and I have downloaded the
kernel source (kernel-source-2.0.34-2.0.34-4.deb)
from ftp.debian.org

(1) What is the difference between linux-2.0.34.tar.gz
  and kernel-source-2.0.34_2.034-4.deb.

(2) How to build a custom kernel with
  kernel-source-2.034_2.0.34-4.deb
 step by step please (I knew how to build
 it with  linux-2.0.34.tar.gz)

Thanks a lot!




--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: How to build a custom kernel with kernel-source-2.0.34_2.0.34-4.deb

1998-07-15 Thread Michael B. Taylor
No clue on question 1.  

In answer to question 2, I suggest you get the kernel-package package
and then check /usr/doc/kernel-package for detailed instructions.

Mike



On Wed, Jul 15, 1998 at 09:56:31PM +0800, Alex Kwan wrote:
 Dear debian fans,
 
 My system is hamm, and I have downloaded the
 kernel source (kernel-source-2.0.34-2.0.34-4.deb)
 from ftp.debian.org
 
 (1) What is the difference between linux-2.0.34.tar.gz
   and kernel-source-2.0.34_2.034-4.deb.
 
 (2) How to build a custom kernel with
   kernel-source-2.034_2.0.34-4.deb
  step by step please (I knew how to build
  it with  linux-2.0.34.tar.gz)
 
 Thanks a lot!
 


--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: How to build a custom kernel with kernel-source-2.0.34_2.0.34-4.deb

1998-07-15 Thread Marcus Brinkmann
On Wed, Jul 15, 1998 at 10:16:04AM -0400, Michael B. Taylor wrote:
  
  (1) What is the difference between linux-2.0.34.tar.gz
and kernel-source-2.0.34_2.034-4.deb.

Try a recursive diff on both source trees, and you'll notice that the debian
kernel tree is patched with some security related patches etc. Maybe the
changelog.Debian in the /usr/doc/kernel-source... directory will tell you
more?

  (2) How to build a custom kernel with
kernel-source-2.034_2.0.34-4.deb
   step by step please (I knew how to build
   it with  linux-2.0.34.tar.gz)

You can do it in the very same way!

For your convenience, you can use the kernel-package instead, but you can
use this with both source trees, too!

make config
make-kpkg clean
make-kpkg --revision=custom.1.0 kernel_image
cd ..
ls

Voila!

Marcus

-- 
Rhubarb is no Egyptian god.Debian GNU/Linuxfinger brinkmd@ 
Marcus Brinkmann   http://www.debian.orgmaster.debian.org
[EMAIL PROTECTED]for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/   PGP Key ID 36E7CD09


--  
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: How to build a custom kernel with kernel-source-2.0.34_2.0.34-4.deb

1998-07-15 Thread Manoj Srivastava
Hi,
Alex == Alex Kwan [EMAIL PROTECTED] writes:

 Alex Dear debian fans,

 Alex My system is hamm, and I have downloaded the
 Alex kernel source (kernel-source-2.0.34-2.0.34-4.deb)
 Alex from ftp.debian.org

Look at /usr/doc/kernel-source-2.0.34/. A copy is attached
 below. 

manoj


   $Id: README,v 1.17 1998/05/11 06:54:38 srivasta Exp $

This is the Debian GNU/Linux prepackaged version of the Linux kernel.
Linux was written by Linus Torvalds [EMAIL PROTECTED] and
others.

This package was put together by Herbert Xu
[EMAIL PROTECTED], from sources retrieved from
directories under ftp.cs.helsinki.fi:/pub/Software/Linux/Kernel/

Linux is copyrighted by Linus Torvalds and others.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 dated June, 1991.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program;  if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave., Cambridge, MA 02139, USA.

On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/doc/copyright/GPL'.

INSTALLATION NOTES:

Before you go any further, please allow me to point out that you need to
have a few other packages installed before you can compile your own kernels
(it is difficult to compile anything without a compiler ;-). 

Firstly, you will need gcc, the libc development package (libc5-dev or
libc6-dev at the time of writing), and, on Intel platforms, bin86. [If
you use the menuconfig target of make, you will need ncursesX.X-dev,
and make xconfig also requires tkX.X-dev, and other packages these
depend on]

The packages suggested are:
devel:gcc, libc5-dev/libc6-dev, binutils, make, and, for intel
  x86 platforms, bin86 (non-Intel platforms don't need
  this).
interpreters: awk, which is contained in either the mawk or gawk packages
base: gzip, shellutils, and grep.

Some of these packages are marked essential, and hence are going to be
present on your machine already. Others you have to check and install.

Of course, pretty gui front ends to kernel configuration require more
packages, but they are not strictly essential (though quite nice really). 

Oh, and of course, make-kpkg is part of kernel-package, usually found
in section misc.


 For the Brave and the impatient:
1% cd kernel source tree
2% make config   # or make menuconfig or make xconfig and configure
3% make-kpkg clean
4% make-kpkg --rootcmd fakeroot --revision=custom.1.0 kernel_image 
5% dpkg -i ../kernel-image-X.XXX_1.0_arch.deb
6% shutdown -r now # If and only if LILO worked or you have a means of
   # booting the new kernel. YOU HAVE BEEN WARNED!!

 With the addition of fakeroot ( a really nice program, I recommend
 it) Steps 1 to 4 can be carried out as a non root user. Step 5 does
 require root priviledges.  

 Detailed instructions

Then, remember to change the revision number (using the --revision
option of make-kpkg).  It has been suggested that you renumber the
revision number in such a way that a generic kernel image package will
not override the custom package while using dselect (or dpkg
-BOGiE). You may also do this on the fly by setting the
DEBIAN_REVISION environmental variable.

The revision number (the argument supplied after the --revision flag)
has certain constraints: 
a) It only has an effect during the configure phase (in other words, if a
   file called stamp-configure exists, this option has no effect -- run
   make-kpkg clean or manually remove stamp-configure for it to have an
   effect).. So, if you re-run make-kpkg with a different revision number,
   you have to reconfigure the kernel. 
b) It may contain only alphanumerics and the characters + . (full stop,
   and plus) and should contain a digit.  NOTE: No hyphens allowed. (Look
   at Chapter 5 of the Programmers manual for details) Optionally, you
   may prepend the revision with a digit followed by a colon (:); this
   shall put your revision into a new epoch; (which makes older dpkg very
   confused), more on this later.

You should _not_ use a _ in the revision number! As tempting as it may
seem, it actually interferes with the policy.

The revision number is required because dpkg imposes an ordering on
version numbers, so that it can tell whether packages are being up or
downgraded and so that dselect can tell whether a package it finds
available is newer than the one installed on the system. Dselect uses
an option that prevents a package from being downgraded, for example.

Packaged kernel-images in the distribution also have a version number -