���� ����� ���� ������ �����-�� �������� ���� ����� �������� ���
����������, �� ���� ������� �����������, ��� �� ������ ��������� make
clean �� ���������� ������ ����. �������� ����� ���� ������ �� �������
����� ����� �������, �������� ������� � ������/������� �� �����
������������������. ��������� �����, ��� �� ������� make dep.
���� ���� ���� ��������� ����������� ���������� ������, ������� ������� �/��� ������ ����� �����������, ���� ����� �� ��������� ��� ����� 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 ����� ������� ���.
���� ���� �� �������������, �� ������ ����� ��������� ���� ���
������������ �������� ��� ���� �������� ������ ���� ���������� �����-����
�������. � ��� ����� ����� ���� ������������ ������ 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/.
�� �� ��������� LILO, ��� �� �� �������� ���������. ���� ���� �������
��������� ������� �� ���� ��� ���� �������� � ����� ������������; ���
���������� `boot=/dev/hda1' ������ `boot=/dev/hda' (���
����� ���� ������������ � ������, �� ����� �� �������� ������� ����
������������, �� ��� �� ����� ����� ��� ������ ��������).
����! ������ ����, ������� �� ������ ������� � ���� ������ ���
����������� � ������� ����������� ������ ����������� ���� (����� �����
������ ������� ������� `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 ��� ������������ ��� ������ � ���� ������.
��� ����� ���� ��������� ���������. ������� � ���� ����� 1.0 (��������
20 ������ 1994), ��������� ��������� `update', �������
������������ ��������� ������ �������� ������� ����
��������/��������. �������� �������� ������ ��������� `bdflush'
(�� ������ ����� �� ��� ��� �� ����� �������� ������ ����), � ����������
��� ��������� (�� �������� �������� ��������� ������ ���� ���� �� �������
���). ��� ��������� ���� ����������� ��� `update' � �����
������������, ����� ���� �� ����� ������ �������� ������������ ��
�����������.
� ��� ��������� ����� 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.
���������� �������, �� ����� ����� �� ����� ��������� �������� ���� ���������� 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. ��� ���������� ������� ������
����������.
�������� ����� ������ ��������� route � ����� ������ ���������,
������� ��������� ����������� ��������������.
/usr/include/linux/route.h (������� �������� ������ �
/usr/src/linux) ��� �������.
�������� ���� �� ������� ���� �� ������ 1.2.1.
�� ����������� ���� vmlinux, ��������� �
/usr/src/linux ��� ����� ��������; ���������� ������� ��������
�������� [..]/arch/i386/boot/zImage.
�������� ����� dumb �� linux � ������ ��� ������� �
����� /etc/termcap. ��� ����� ����� ������������ ������� ������ �
terminfo.
�������� ������ ���� 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, ���� ��� �����������.
��������� ��������� ������������� ������ ����� ���� ������� ��� ��� ��� �� ����� ��� ��������� ��������� ����������� ���������� �������� 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