File: README

package info (click to toggle)
fai-kernels 1.17%2Betch.26etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 292 kB
  • ctags: 5
  • sloc: makefile: 46
file content (94 lines) | stat: -rw-r--r-- 3,072 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
README
------

This package contains kernel packages for FAI (Fully Automatic
Installation). The kernels use a NFS mounted filesystem for the root
file system (called nfsroot, see also
/usr/src/linux/Documentation/nfsroot.txt ). The kernel supports both 
boot protocols (BOOTP and DHCP) for getting its network information 
(IP address, netmask, gateway, broadcast address). 


Important note: The driver for the network card must be compiled into
		the kernel. Do not use a kernel module for it. If you
		got several NICs plugged into your box, the first one
		the kernel finds will be used.


How to build a custom 2.6.X fai kernel
--------------------------------------

The fai-kernels package contains a 2.6.X kernel that supports both the
BOOTP and the DHCP protocol. You must enable one of the protocols by
adding the kernel parameter ip=bootp or ip=dhcp (see also nfsroot.txt of
the kernel sources). 

If you need to compile a custom kernel, start with the config file from
the fai-kernels package.

  # cd linux-source-2.6.16
  # zcat /usr/share/doc/fai-kernels/config-2.6.16.gz >.config
  # make menuconfig

When you've saved your kernel configuration, build the kernel package
using:
 
  make-kpkg --rootcmd fakeroot --append-to-version -fai --revision 2 kernel-image 
 
This will create the file kernel-image-2.6.16-fai_2_i386.deb,
which can be used by FAI. Copy this file to /usr/lib/fai/kernel
and specify it in /etc/fai/make-fai-nfsroot.conf

KERNELPACKAGE=/usr/lib/fai/kernel/kernel-image-2.6.16-fai_2_i386.deb

Then you can set up FAI calling fai-setup or rebuild the nfsroot with
the command make-fai-nfsroot. 

Then you can build a new FAI boot floppy with

  # make-fai-bootfloppy -f /tmp/fai-bootfloppy -d b

Note:

Prior to make-kpkg kernel-image, it may be useful to do a
  make-kpkg clean
if a kernel as already been built in this directory, and its configuration
has been changed with make menuconfig.


How to save space on the boot floppy
------------------------------------
If you need a smaller kernel image to fit on a floppy disk, you can
remove some network drivers, that you don't need for booting and
mounting the nfsroot. If you have a math coprocessor, disable the math
emulation (nearly 80k). Here's a list for kernel 2.4.24 with the size
of some drivers.

20144 8139too.o
21564 pcnet32.o
21868 3c505.o
21932 dl2k.o
25292 natsemi.o
34040 3c59x.o
50187 tulip.o
55796 tg3.o
62936 serial.o
66484 e100.o
74244 typhoon.o
84056 e1000.o
165343 sk98lin.o

The homepage for FAI is:

        http://www.informatik.uni-koeln.de/fai/

----------------------------------------------------------------------
            Thomas Lange        
Institut fuer Informatik        mailto:lange@informatik.Uni-Koeln.DE
   Universitaet zu Koeln
            Pohligstr. 1        Telefon: +49 221 470 5303
             50969 Koeln        Fax    : +49 221 470 5317

1024D/AB9B66FD AEA6 A8C1 BD8E 67C4 8EF6  8BCA DC13 E54E AB9B 66FD
----------------------------------------------------------------------
Copyright (c) 2000-2005 Thomas Lange. All rights reserved.