Previous Next Table of Contents

7. ��������� �������

7.1 make clean

���� ����� ���� ������ �����-�� �������� ���� ����� �������� ��� ����������, �� ���� ������� �����������, ��� �� ������ ��������� make clean �� ���������� ������ ����. �������� ����� ���� ������ �� ������� ����� ����� �������, �������� ������� � ������/������� �� ����� ������������������. ��������� �����, ��� �� ������� make dep.

7.2 ������� ��� ��������� ����

���� ���� ���� ��������� ����������� ���������� ������, ������� ������� �/��� ������ ����� �����������, ���� ����� �� ��������� ��� ����� 786DX6/440 �������� � ���, �� �� �������� �������� ����� �������� ��� ����� (��������� ���������, �������� ������ � �.�.). ���� �� �� ����������� ��, �� �� ������������ ��, ������, ��� ��� �������� ������ ������. �������� ��������� ������� �������� ����, ��� ����������� ������������ ������ �� ���� � � �����; ���� ��� ���� ������� ��� � �� �� ���� �� ������ ����������� Fujitsu Eagles, ��� ���� ��������� ���� ������������ ��������� ����������� ��������, �� ���������� � ������������ ����.

�� ������ ������ ������� ����������� ������ �������� ���� ���� ����� ���������� ������ �� ������ � ����� �� ���� ���������� ``����� ������'' � ����� /proc/meminfo ��� ����� ������� `free'. �� ������ ����� ���������� ��� �������� ������� `dmesg' (��� ��������� � ���� ��������� ����, ���� �� ���� � ����� �������). ��� ����� ������, ������� �������� �������� ���:

Memory: 15124k/16384k available (552k kernel code, 384k reserved, 324k data)

��� ������ � ����������� 386 (������� ���� ��������� � ������� ���������� �����) ������ ���������:

Memory: 7000k/8192k available (496k kernel code, 384k reserved, 312k data)

���� � ��� ������ ���������� ������� ����, �� ������� �� ��������� ��� ���, �� �� ������ ���������� ��������� `make bzimage'. ��� ����� ����� ������������ ���������� ����� ������ LILO ����� ������� ���.

7.3 ���� �� �������������

���� ���� �� �������������, �� ������ ����� ��������� ���� ��� ������������ �������� ��� ���� �������� ������ ���� ���������� �����-���� �������. � ��� ����� ����� ���� ������������ ������ gcc ��� ����� ����� ���� ���������� (�������� ���������� ����� ����� ���� � ��������). ���������, ��� ������������� ������, ������� ��������� Linus � ����� README ����������� ���������. � �����, ���� ����������� ���� �� �������������, �� � ��� ���-�� ��������� � �������� � �������� ���������� ������������� ��������� ������.

��� �������� �� ������������ ���� 1.2.x ��� ������ ELF ����������� (gcc 2.6.3 � ����). ���� �� �������� ����� ������ ���� so-and-so undefined � ������� ����������, �� ������ ����� � ��� ����� ��������. ����������� � ����������� ������� ����� ������. �������� ��� ������ � ������ ����� arch/i386/Makefile:

AS=/usr/i486-linuxaout/bin/as
LD=/usr/i486-linuxaout/bin/ld -m i386linux
CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include

����� ������ ��������� make dep � zImage.

� ������ ������� gcc ����� �� �������� ��-�� ���������� �������. ��������� �� ������ ����� �������� ����� ``xxx exited with signal 15'' � ��� � ����� ����� ��������� ����� ���������. � �������� �� ������ ��� ����� ��� ���������, �� ����������� ���� ��� ��� �� ���� ������� ��������� -- � ���� ���� ����������� ���-������ � ���������� ����� �� ������� �� �������. ���������� ������� ����������� gcc, ���� � ��� ���� ����� ��������. �� ������ ����� �������������� ������ ���� ���� ���� ��������� ������������� � ����������� ������� �����, � ����������� ���������� ����������� ������ � �.�.

��� ����� ���������� ���������� �����, ����� ��� ������������, ��� �� ������������ �� � �������. ������, � �� ���� ������ ���. �� ���� ���������� FAQ -- �� ��������� �� http://www.bitwizard.nl/sig11/.

7.4 �� ����� ����� ����� ������ ���� ���������

�� �� ��������� LILO, ��� �� �� �������� ���������. ���� ���� ������� ��������� ������� �� ���� ��� ���� �������� � ����� ������������; ��� ���������� `boot=/dev/hda1' ������ `boot=/dev/hda' (��� ����� ���� ������������ � ������, �� ����� �� �������� ������� ���� ������������, �� ��� �� ����� ����� ��� ������ ��������).

7.5 �� ������ ��������� LILO, ��� ������� ������ �� ��������

����! ������ ����, ������� �� ������ ������� � ���� ������ ��� ����������� � ������� ����������� ������ ����������� ���� (����� ����� ������ ������� ������� `make zdisk'). ��� ���������� ����� ��� ��������� ���� �������� �������� ������� (/) � ����� ��� ��� ����� (�������� second extended, minix). � ��������������� �������, ��� ����� ���������� ����� �� ����� �������� ������� ��������� ������ �������� ������� /usr/src/linux, �� ��� � ��� ��� ������ �����������.

� ��������� �������, / ��������� �� /dev/hda1, � �������� �������, ������� �������� /usr/src/linux ��������� �� /dev/hda3, ������ �������������� ��� /usr. ��� ��������� � ���� second extended �������� ������. ������� ���� ��������� � ���������� /usr/src/linux/arch/i386/boot � ���������� zImage.

���� ����������� � ���, ��� ���� ���� ���������� ����, �� ����� ������������ ��� ��� �������� ������ ������������ ������� �����. ������ �������, ������� ����� �������� ����� (� ����� � �� ��������, ��� ������� �� ����������� ������ ������� �� ������� ���� �������) ����������� ������ ����� �������.

� ������ ���������� � ���������� ������������/��������� ������ ��� ������������� (rescue) �����, � ���������� �������� �������, ������� �������� ���������� ����:

    mkdir /mnt
    mount -t ext2 /dev/hda3 /mnt

���� mkdir �������� ���, ��� ���������� ��� ����������, �� ������ �������������� ��� ���������. ����� ��������� � �� ����������, ��� ��������� ���������� ����. �������, ���

/mnt + /usr/src/linux/arch/i386/boot - /usr = /mnt/src/linux/arch/i386/boot

��������� ����������������� ������� � ������ ``A:'' (������ �� ����������� ������� � �� ������� � �������� �������� ��������!), � ����������� ���� �� ������� � ��������� ��� �� ���� �������� �������� �������:

    cd /mnt/src/linux/arch/i386/boot
    dd if=zImage of=/dev/fd0
    rdev /dev/fd0 /dev/hda1

��������� � / � ������������ ������� �������� ������� /usr:

    cd /
    umount /mnt

������ �� ������ ����� ����������� ������������� ��� ��������� ��� ������ � ��������� �������. �� �������� ������������� lilo (��� ��������� ��, ��� �� ������� �� ���������) ����� ������������!

��� ���� ��������� ����, ���������� ������ ����� ������������. ���� � ��� � ������� ������� ������� ���� ����������� �� ������� / (�������� /vmlinuz), �� �� ������ ������������ ��� ��� ����������� �������. ����������� ��� ��������������� �������, � ��� ���� ���� ��������� � /vmlinuz, �� ������ �������� ��������� � ��������������� �������: �������� /dev/hda3 �� /dev/hda1 (�������� �������� �������), /mnt/src/linux �� /mnt, � if=zImage �� if=vmlinuz. ��������� � ��� ��� �������� ������ � /mnt/src/linux ����� ���� ���������������.

��������� LILO � �������� ������� (������ ��� 1024 ��������) ����� ������� ��������. �������� LILO mini-HOWTO ��� ������������ ��� ������ � ���� ������.

7.6 ���� �������� `warning: bdflush not running (�������������� bdflush �� �������)'

��� ����� ���� ��������� ���������. ������� � ���� ����� 1.0 (�������� 20 ������ 1994), ��������� ��������� `update', ������� ������������ ��������� ������ �������� ������� ���� ��������/��������. �������� �������� ������ ��������� `bdflush' (�� ������ ����� �� ��� ��� �� ����� �������� ������ ����), � ���������� ��� ��������� (�� �������� �������� ��������� ������ ���� ���� �� ������� ���). ��� ��������� ���� ����������� ��� `update' � ����� ������������, ����� ���� �� ����� ������ �������� ������������ �� �����������.

7.7 ��������� ��������� � �������������� �������� � �� �������������

� ��� ��������� ����� ELF ���������� (gcc 2.6.3 � ����) � �������� ������ ���� 1.2.x (��� ����� �������). ������� ����������� ����������� � ���������� ���� ���� ����� � ������ ����� arch/i386/Makefile:

AS=/usr/i486-linuxaout/bin/as
LD=/usr/i486-linuxaout/bin/ld -m i386linux
CC=gcc -b i486-linuxaout -D__KERNEL__ -I$(TOPDIR)/include

��� �������� ��������� ���������� ���� 1.2.x � ������������ a.out.

7.8 � �� ���� ��������� �������� ��� ������ IDE/ATAPI CD-ROM

���������� �������, �� ����� ����� �� ����� ��������� �������� ���� ���������� ATAPI, ������ ��� ���������� ��������� ����, ������� ����� ���� ������� �����������.

���� ��� CD-ROM ������������ ���������� �� ��������� ���������� IDE, �� ��� ������ ���� ���������� ��� ``master'' ��� ``single''. ���������������� ��� �������� ����� ������.

Creative Labs (��� ���������) �������� ��������� IDE �� ���� �������� �����. ������ ��� �������� � ���������� ��������, ������������� � ���, ��� ��������� ���� ����� ������ ���� ���������, ����� ����� ��� IDE ����������, ���������� � ����������� ����� (������ �� IRQ15), ��� ��� ����� �������� � ���, ����� ������� ��������� �� soundblaster ������ IDE ������ (IRQ11).

��� �������� �������� � linux � ���, ��� � ������� 1.2.x �� �������������� ������ IDE ��������� (��� ��������� �������� ���-�� � ����� 1.3.x, �� ��� ���� ��� �������������, ������� �� ����, � �� ��� �������������� �����). ��� ���� ����� ��������� ��� �������� � ��� ���� ��������� ������������.

���� �� ��� ������ ������ IDE ����, �� ���������� �����������, ��� �� �� ����������� ��� ��� � ��� �� ��� ���������� �� ���. ������� ������ ATAPI �� �������� ����� � ��������� ��� �� ������ ���������. ����� �� ������ ��������� ��������� �� �������� �����, ��� �������� ��� IRQ.

���� � ��� ��� ������� ����������, �� ����������� ��������� �� �������� ����� (������ �� ����� ���������� �� ������) �� ������������� IRQ15, ��� ������ ���������. ��� ������ ��������.

���� �� ��������� �������� ���� ���������� ������ ���� �� ��� ���������� ``�������'' ����������, ��� � ������ ������ ������� �������� ���� ������ 1.3.x (�������� ���� 1.3.57 ����� ����� ���������), � ���������� ���� drivers/block/README.ide. ��� ���������� ������� ������ ����������.

7.9 ���� �������� �������� ���� �� ���������� �������� �������������

�������� ����� ������ ��������� route � ����� ������ ���������, ������� ��������� ����������� ��������������. /usr/include/linux/route.h (������� �������� ������ � /usr/src/linux) ��� �������.

7.10 Firewalling �� �������� � 1.2.0

�������� ���� �� ������� ���� �� ������ 1.2.1.

7.11 ``Not a compressed kernel Image file (�� �������� ������ ������������� ����)''

�� ����������� ���� vmlinux, ��������� � /usr/src/linux ��� ����� ��������; ���������� ������� �������� �������� [..]/arch/i386/boot/zImage.

7.12 �������� � �������� ����� ���������� �� 1.3.x

�������� ����� dumb �� linux � ������ ��� ������� � ����� /etc/termcap. ��� ����� ����� ������������ ������� ������ � terminfo.

7.13 �� ���� �������������� ��������� ���� ����� ���������� ����

�������� ������ ���� linux �������� ��������� ���������� ������������ ������ (������, ��� ����� ������������� �� .h), �� ������� ��������� ����������� ������������ ����� � /usr/include. �� ��� ������ ��������� �������� ��� (��� xyzzy.h ������ ���� ���-�� � /usr/include/linux):

    #include <linux/xyzzy.h>

������ ���������� ������, ��������� linux � /usr/include �� ���������� include/linux � �������� ������� ������ ���� (/usr/src/linux/include/linux � ������� �������). ���� ��� ������ ��������� �� ���, ��� ��������� �� ������������ �����, �� ��������� ���� ������ �� ����� ���������������. ���� �� ���������, ��� �������� ������ ���� �������� ������� ����� ����� �� ����� � ������� ��, �� ��� ������ ����� ������� ��������. ������ �������� ����� ���������� ��� ������������ ������ ������� �� �����; ���� ��� ������������� ��������� umask � ����� ��������, ������� �� ��������� ������ ������������� ������ ��� ����� �� ���������, � �� ��������������� �������� ������ ��� ����� p (���������� ���� �������), �� ��� ������������ �� ������ ������������ ������������ C. ���� �� ����� �� ��������������� �������� chmod ��� ����������� �����, �� �������� ����� ����� ������ ��������������� ������������ �����. �� ������ ������� ��� �����, ��� � �� ����� ��������� ��������, �� ������ � �������������� ����������:

    blah# tar zxvpf linux.x.y.z.tar.gz linux/include

���������: ``make config'' ������ ������� ������ � /usr/src/linux, ���� ��� �����������.

7.14 ���������� ���������� ��������

��������� ��������� ������������� ������ ����� ���� ������� ��� ��� ��� �� ����� ��� ��������� ��������� ����������� ���������� �������� The following few example commands may be helpful to those wondering how to increase certain soft limits imposed by the kernel:

echo 4096 > /proc/sys/kernel/file-max
echo 12288 > /proc/sys/kernel/inode-max
echo 300 400 500 > /proc/sys/vm/freepages


Previous Next Table of Contents


������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������