none
[openafs-wiki.git] / AFSLore / BuildingAFSintotheIRIXKernel.mdwn
1 Use the following instructions to build AFS modifications into the kernel on an IRIX system.
2
3 1. Copy the kernel initialization file afs.sm to the local /var/sysgen/system directory, and the kernel master file afs to the local /var/sysgen/master.d directory.
4
5        # cp -p  bin/afs.sm  /var/sysgen/system
6
7        # cp -p  bin/afs  /var/sysgen/master.d
8
9 1. Copy the appropriate AFS kernel library file to the local file /var/sysgen/boot/afs.a; the IPxx portion of the library file name must match the value previously returned by the uname -m command. Also choose the file appropriate to whether the machine's kernel supports NFS server functionality (NFS must be supported for the machine to act as an NFS/AFS Translator). Single- and multiprocessor machines use the same library file.
10
11 If the machine's kernel supports NFS server functionality:
12
13        # cp -p   bin/libafs.IPxx.a   /var/sysgen/boot/afs.a
14
15 If the machine's kernel does not support NFS server functionality:
16
17        # cp -p  bin/libafs.IPxx.nonfs.a  /var/sysgen/boot/afs.a
18
19 1. Issue the chkconfig command to deactivate the afsml configuration variable.
20
21        # /etc/chkconfig -f afsml off
22
23 If the machine is to function as an NFS/AFS Translator and the kernel supports NFS server functionality, activate the afsxnfs variable.
24
25        # /etc/chkconfig -f afsxnfs on
26
27 1. Copy the existing kernel file, /unix, to a safe location. Compile the new kernel, which is created in the file /unix.install. It overwrites the existing /unix file when the machine reboots in the next step.
28
29        # cp /unix /unix_noafs
30
31        # autoconfig
32
33 1. Reboot the machine to start using the new kernel, and login again as the superuser root.
34
35        # cd /
36
37        # shutdown -i6 -g0 -y
38
39        login: root
40        Password: root_password