|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] Re: Help with source after kernel update
|
The kernel source is a huge tree of hundreds of directories and over a
thousand files. This source tree containes all of the source files
needed to create a custom linux kernel.
A long listing of the root directory source tree looks like:
-rw-r--r-- 1 leroy leroy 18633 Sep 8 14:15 COPYING
-rw-r--r-- 1 leroy leroy 71904 Dec 31 12:27 CREDITS
drwxr-xr-x 24 leroy leroy 3072 Jan 4 16:02 Documentation/
-rw-r--r-- 1 leroy leroy 32459 Dec 31 12:31 MAINTAINERS
-rw-r--r-- 1 leroy leroy 15689 Jan 4 16:48 Makefile
-rw-r--r-- 1 leroy leroy 14151 Jan 2 19:55 README
-rw-r--r-- 1 leroy leroy 2854 Aug 21 11:57 REPORTING-BUGS
-rw-r--r-- 1 leroy leroy 8801 Dec 29 17:07 Rules.make
-rw-r--r-- 1 leroy leroy 318328 Jan 15 19:59 System.map
drwxr-xr-x 15 leroy leroy 1024 Dec 5 15:29 arch/
drwxr-xr-x 37 leroy leroy 1024 Jan 8 06:58 drivers/
-rw-r--r-- 1 leroy leroy 11962 Jan 15 19:49 firewall.config
drwxr-xr-x 38 leroy leroy 3072 Jan 15 19:56 fs/
drwxr-xr-x 23 leroy leroy 1024 Jan 31 20:56 include/
drwxr-xr-x 2 leroy leroy 1024 Jan 15 19:52 init/
drwxr-xr-x 2 leroy leroy 1024 Jan 15 19:59 ipc/
drwxr-xr-x 2 leroy leroy 2048 Jan 15 19:53 kernel/
drwxr-xr-x 2 leroy leroy 1024 Jan 15 19:59 lib/
drwxr-xr-x 2 leroy leroy 2048 Jan 15 19:55 mm/
drwxr-xr-x 26 leroy leroy 1024 Jan 15 19:58 net/
drwxr-xr-x 5 leroy leroy 1024 Jan 31 20:56 scripts/
You do not need to be root to compile your kernel
Definitions:
arch/ in this directory you will find files foe different
archetectures like sparc, i386, alpha, and etc.
When you build a kernel using make bzImage you will
find your new kernel in arch/i386/boot/
drivers/ Contains the source code for all of the various
drivers that Linux supports. When building a
custom kernel you only need to include compiling
just the drivers that are an integral part of
your machine. For instance, let's say you have
a pci ne2000 compatable ethhernet card in your
box you would not include the tulip driver in your
kernel.
fs/ All the various file systems supported. For instance
you can make your linux box read and write both
MAC and dos floppies, whereas your windows system
can only read dos floppies.
include/ This directory has all of the header files that
contain the defination of constants and declarations
for functions and libraries.
scripts/ Contains all of the scripts that are called like
tcl/tk script used for make xconfig.
net/ networking
lib/ kernel libraries
For further info on the directory tree read the docs in the
Documentation directory.
Rupert Heesom wrote:
>
> On 09 Feb 2001 14:31:03 -0500, Greg Lopp wrote:
> > On Fri, Feb 09, 2001 at 12:36:44PM -0500, Rupert Heesom wrote:
>
> > Mine looks like
> > total 10
> > drwxr-xr-x 9 root root 1024 Feb 6 1996 .
> > drwxr-xr-x 19 root root 1024 Feb 5 14:39 ..
> > lrwxrwxrwx 1 1007 1007 12 Oct 23 23:56 linux -> linux-2.2.17
> > drwxr-xr-x 17 root root 1024 Feb 20 2000 linux-2.0.34
> > drwxr-xr-x 15 root root 2048 Feb 16 2000 linux-2.2.11
> > drwxr-xr-x 15 root root 1024 Feb 21 2000 linux-2.2.12
> > drwxr-xr-x 15 root root 1024 Feb 21 2000 linux-2.2.13
> > drwxr-xr-x 15 root root 1024 Sep 5 20:56 linux-2.2.14
> > drwxr-xr-x 15 root root 1024 Oct 24 21:32 linux-2.2.17
> > drwxr-xr-x 7 root root 1024 Jul 22 2000 redhat
> >
>
> Greg:
>
> Based on your msg re the /usr/src directory, I tried changing mine - I
> changed the "linux" fiel to be a link to the "linux-2.2.17" directory,
> extracted the 2.2.17 kernel archive (which should have extracted into
> /usr/src/linux.....
>
> What happened was that the archive extracted into /usr/src/linux,
> changing the link file to be a directory. Did I do something wrong?
> Perhaps I need a hard link rather than a soft link?
>
> My directory now looks like (note - no link) -
>
> -rw-rw-r-- 1 root root 18130021 Feb 8 20:44
> kernel-source-2.2.17-14.i386.rpm
> drwxr-xr-x 14 1007 1007 4096 Sep 4 13:58 linux
> drwxr-xr-x 4 root root 4096 Feb 2 13:38 linux-2.2.14
> drwxr-xr-x 6 root root 4096 Feb 9 03:00 linux-2.2.17
> -rw-r--r-- 1 root root 17561308 Feb 9 12:06
> linux-2.2.17.tar.gz
> -rw-r--r-- 1 root root 19090206 Feb 2 13:41
> linux-2.2.18.tar.gz
> -rw-r--r-- 1 root root 24644981 Feb 2 13:36
> linux-2.4.1.tar.gz
> drwxr-xr-x 7 root root 4096 Jul 22 2000 redhat
>
> On the VMware side, each time you change the kernel, you need to run the
> setup script again, it's modules have to be able to work with the
> current kernel. When running the setup script, I got the following
> msgs:
>
> -----------------------
> Trying to find a suitable vmmon module for your running kernel.
>
> None of VMware's pre-built vmmon modules is suitable for your running
> kernel. Do
> you want this script to try to build the vmmon module for your system
> (you need
> to have a C compiler installed on your system)? [yes]
>
> What is the location of the directory of C header files that match your
> running
> kernel? [/usr/src/linux/include]
>
> The path "/usr/src/linux/include" is an existing directory, but it does
> not
> contain at least one of these directories "linux", "asm", "net" as
> expected.
>
> What is the location of the directory of C header files that match your
> running
> kernel? [/usr/src/linux/include]
> ----------------------
>
> What do the "linux", "asm" or "net" directories do? Are they header
> directories?
> I'm not sure if I'm combining header & source files correctly.....do
> archives like
> linux-2.2.17.tar.gz contain both header files & kernel source?
>
> --
>
> regs
> rupert
>
> ______________________________________________________________________
> Philadelphia Linux Users Group - http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
--
Rev. LeRoy D. Cressy mailto:ldc@netaxs.com /\_/\
http://www.netaxs.com/~ldc ( o.o )
Phone: 215-535-4037 > ^ <
Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|