�ttach���� � ������� ������ �� ��������, ������� %subj. �������� ��������� � ��������� �� ����� �����.
happy hacking, velin
DOCNUMBER: 003 CATEGORY: �������� �� ��������� TITLE: ��������� �� ���������� �� Debian GNU/Linux ����� SGI VERSION: 0.10 CHARSET: cp1251 (windows-1251) AUTHOR: Alexander Velin <[EMAIL PROTECTED]> LICENSE: The GNU Free Documentation License <http://www.gnu.org/licenses/fdl.txt> ��������� �� ���������� �� Debian GNU/Linux (The Universal Operating System) ����� SGI 1. Hardware ��������� ��� ��������� � ��������� �: ARCH: SGI Indy (SGI-IP22) CPU: MIPS-R4600 V2.0 FPU V2.0 / 100.00 MHz (big endian) RAM: 61100032 bytes ETH0: SGI Seeq8003 SCSI0: SGI WD93 WD33c93B/13 SDA: SGI Model: IBMDSAS-3540 (548 MB) SDB: HP Model: 1.050 GB #A1 (1050 MB) �� �� ������� �� �������� ��� ������ �� ����� ����� (Indy) �� ���� �������� ������� ��������� ������� � ��� ������� ������ - Indy, INDIGO, O2 (FIXME) ������������ ������ � �� ���� 'console' � �� ������� ���������� �� X (FIXME) 2. Startup pages SGI Performance Comparisons http://futuretech.mirror.vuurwerk.net/perfcomp.html SGI Technical Advice and Information http://futuretech.mirror.vuurwerk.net/sgi.html Debian for MIPS http://www.debian.org/ports/mips/ How to install Debian GNU/Linux on Indy (MIPS) http://www.linux-debian.de/howto/debian-mips-woody-install.html Google http://www.google.com 3. Let the war begin! kernel: http://ftp.fi.debian.org/debian/dists/woody/main/disks-mips/current/r4k-ip22/tftpboot.img (�� ��������� ftp.bg.debian.org �� ������� disks-mips) �� �� ������ ��� ���� ������ (no matter arch) �� �� ��������� ������������ (����� � Debian �/� i386, �����, desktop PC-�� ��) ���� �� ��� � ������� ������ �� �����: # # Networking options # CONFIG_PACKET=y CONFIG_FILTER=y ��� �� ������ �������� ������ ���������� DHCP � TFTP ������: apt-get install dhcp tftpd �� ����� �� power-on boot �� Indy-�� ��� ���� ������ ������ � ����� �� ����� ���� ������� "stop for maintenance" - ��������� �� � �� ������ ���������� ���� �� Indy-�� ��� �������� �����: Start System Install System Software Run Diagnostics Recover System Enter Command Monitor Select Keyboard Layout (�, ���� �� ����� Indy �� ����, �� ����� �� ������� SGI ������ - FIXME) ������������� ������ � �������������� :) �� � ������ �������� 'Enter Command Monitor' � �� �� ������ ���� ������, ����� �������� ����� ��������� ����������� (see 'help') ������ printenv � �� ��������� �������� ���������: * MAC ������ �� ��������� ����� �� Indy-��. � ��� ������ - eaddr=08:00:69:08:28:CA (Note: ��� Indy-�� ��� �������� ����������� ������� ����� ������ ������ (�������� ����� ������ �� IRIX) MAC ������ ���� �� �� ����� � ���� �� ping-�� �������� � ����� �� �������� arp-��������� .. ������ �� ����.. :) �� ���������� ������ �������� � dhcpd.conf (debian: /etc/dhcpd.conf) ����� �� Indy-��: --- subnet 192.168.1.0 netmask 255.255.255.0 {} # Entry for Indy-1 (zirakzigil) host zirakzigil { hardware ethernet 08:00:69:08:28:ca; fixed-address 192.168.1.5; option host-name "zirakzigil"; option domain-name-servers 192.168.1.1; option routers 192.168.1.1; } --- ���� ����������� ���� ������� ������: * hardware ethernet � MAC ������ �� Indy-�� * fixed-address � IP ������ ����� �� ��� Indy-�� * option host-name � hostname-a �� Indy-�� * option domain-name-servers � ������ �� DNS ������� ����� �� ������ Indy-�� * option routers � ������ �� gateway-a �� Indy-��. �� ������ ����������� - man dhcpd.conf (Note: � ������ ��� ��������� ������� IP ������, �� ���� ������� �� ������� �� �� ������� � ��������. � � ����� ������ ����� � ����� �� ��� ��������� ������� ��������� (�.�. �� ip-�� �� DNS-a �������� �� ��� DNS, � gateway-� �� ������ ���� gateway :) ����������� �� ���������� ������: echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc (�� ����������� - <kernelsource>/Documentation/filesystems/proc.txt, lkml, google :) ���� ����� �� ������� dhcp ������� (/etc/init.d/dhcpd start) (Note: ��� � ������� ����� ���� DHCP ������, ������ ��������� :) �������� ������ - ����������� �� /etc/inetd.conf ����� � �������� ���� �� ���� ��: tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot ���� /tftpboot � ������������ � ����� �� ����� boot-image-��� (� ����� ������ - �� Indy-��) �����������: man inetd.conf; man 8 tftpd; man 1 tftp; man 8 inetd ���� ����� (��)���������� inetd: /etc/init.d/inetd stop /etc/init.d/inetd start ��� kill -HUP `ps auwx |grep inetd |grep -v grep |awk '{print $2}'` ��� ������ �� ������������ inetd �� ������ ����� �� � debian.. �� ���� ���� ��� �������� �� ������ ���� ������������, ���������� �� �� ��� Debian Zealot :-) (Note: ����� ������ - � ���������� �� ������ ���� ���� (�������� ���������� �� ������ ����� �� ������ �� tfptd ��� ������� ����� ���������� inetd ������, ��-����� � �� ������ ������ inetd. ���� service ��- �����, ����� ��-������� ��� :) ��� ���, ������ �� ����� ����� � ��������� ��������.) �������� ������� �� Indy-�� � /tftpboot ������� �� Indy Command Monitor ������� ������: setenv netaddr $IP ���� �� ������� �� $IP ������� IP-�� ����� ������ �� ��� Indy-��. � ��� ������: 192.168.1.5 bootp()/tftpboot/tftpboot.img ��������� Enter � ��� � ������� :) (Note: ����� � �� �������� ���� ������ �� /var/log/messages �� �������� ������ ��� ���� �� � �����, �� ��������� ����� �� permission-��� �� /tftpboot � /usr/sbin/tcpd) 4. After the boot ���� ���� ������� ���� � �������, � ������� debian-installer-� �� ������, ������������ ���������� ����� ���� �� i386 �����������. (Note: ������ �� ������ ���� dhcpd � inetd ��������.. ���� �� �� ������� ������) ������ ����� �� ����������, � partitioning �� ����{�,�����}. ����� �� ��� ��� �� ����������� ������� � command-line fdisk-a, ���� �� ������� �� ������� ������� (Alt-F2) � ����������: ���� ����� dmesg �� �� ����� ����� �� � ������� ������� (��� ��� ���� ����� �� ������� �� ��������� ����� � ��������� (�������, ������� �����, etc.), �� ������ �� �� {������,������} ���� boot image, ����� �� �� ������ � ����� �� ���������� ������ FIXME) � ��� ������ ��� ����� ��� � ����� �� ��������� (1x 500MB � 1x 1GB) ���� �� �� ����������� ���������� partition� �� ����� �����. ���� ���� ������� (�� ����������� �� fdisk ����� :) ������ ������ ������� �� ������ ���� IRIX ����� ���� �� ���� ��: # fdisk -l /dev/sda Disk /dev/sda (SGI disk label): 3 heads, 108 sectors, 3314 cylinders Units = cylinders of 324 * 512 bytes ----- partitions ----- ----- Bootinfo ----- Bootfile: /unix ----- Directory Entries ----- [...other info here... :-)] # ���� ���� tricky part: Indy-�� � Big-Endian ������, ���� �� ������ �� ����� ��-�������� �� ������ ���� i386 {BIOS,MBR,partition table} - � � �������� �� ������ �� �������� disklabel. ����� ���� ����� ������: 3 heads * 108 sectors * 3314 cylinders * 512 bytes = 549752832 bytes (524MB) ������� � ����� �� ������ �� ����. ��������� ��� ���� (root+swap) � �������� �� ��� �����, �� �� �� �����, �� �� ���������� ���� �� ������. ��� �� ��������� � default���� �������� �� ������� �������� �� ������ ��� (�.�. 5-�� ��������) � ���� ���� �� ��������� ��� ���� ���, ����� ���� sda1 � sda2, �� ����� ��� ��� ������ � 'partition' �������� �� ������ �� ��������� 'p' �� fdiks-a, � ��������: Pt# Device Info Start End Sectors Id System ---------------------------------------------------------- 9: /dev/sda3 0 4 1620 0 SGI volhdr 11: /dev/sda4 0 3313 1073736 6 SGI volume 'SGI volume' ���� ������������ ����� �������� - � ��� ������ ����� ��� 3314 ���������, ���������� �� 0 �� 3313 - � /dev/sda4 �� ������� ����� (1073736 �������). 'SGI volhdr' ���� (volume header) � �������� partition �� disklabel-a, � ������� �� � sda3 � ����� ������, ��������� ��� �� ������ � �������� �� ����� (�������� �� 0 �� 4). ��� ������, ������ �� ������� �� ���� ���� �� ���� ����� MBR :) ����������� �, �� � ���� �� ������� ������� �� ��������, � firmware-� �� ���� �� ��� �� �� boot-��, ����� �������� �� ��� ��� ������ �� � ���������� ����� �� �� ���� �� ������ ������� � ���� ��. � �� ������ ������, volume header-a e 1620 sectora * 512 bytes - 829440 bytes (810 KB) - ����� � ���� ������������. ��� ������� 16MB �� volume header ���� ���� �����: 16*1024*1024 = 16777216 bytes, ��� 32768 �������, � ��� ���� � ���� �������� ����� 324 ������� 32768/324 = 101 ��������� ������ �� � ����� ���� ���. �������� ������ �, �� �� ������ �� ������� �� ���� ���� ��� ���� - fdisk (��������) �� �� ������� ������ ���. ��������� ������ partition� �� ��������� � ��������� ������: 'n' �� ��� partition, � ���� �� ������ �� ������� �������� �� ����, ������ 101 - �� ���� ����� �������� �� 0 �� 100 �� ����� �������� �� 'volume header'-a, ����� �� �� ����� 101 ���������. �� ��� ������� ��������� ���� ��� (sda1) �� ����������� �����, ���� ����� ������� �� ���� ������ �� �� ���� Linux native ���� (root), � ��� ���� ���� ������ �� � swap ����. � ��� ������ �� ������ �� ���� (524MB) ����� ����� �����, ���� �� �� �� �������� ���� � root+swap. ��� � ������� �� ��� ����� ����������: ���� ����� 64 MB RAM � ����� �� �� ������� swap ��� 128 MB (������� ����� ������� swap-a �� � 1x ��� 2x ����� �� ������� - �� �� ������� �� � ����� ����� UNIX-�, � ����� ������������ swap-a �� � ������� ������� ������� �� �������� - ����� ��� ���������� swapmem_on � ������ �� 0-�, ����� ��������� �������� mapping �/� ������� � swapa, �� �� �� �������� �� ������� �������� �� ���������� �� �������, � �� �� �� ������ ����� �� �.�. ������ swap, OS-� �� ������ ������� RAM ������� � ����� swap ����. Long story short: ������� �� swap ���� ���� ��� ���� ������� RAM-a, �������� ������� ������) � ����: 128 MB = 134217728 bytes = 262144 sector-� �� ������� �� ���� ���. 262144 / 324 ������� �� �������� = 809 ���������. ����� �� ��� 3314 ���������, � ��� ������ swap ���� ��������, ��� �� ����� �������� �� 2505 �� 3314, ����� �������� �� root ���� ������ �� � �� 2504-�� ��������, ����� ��������� �� ������� �� fdisk ����� ��� �� ���� :) �������� ������ - ��������� sda9 (volume header-a) � �� ������ ������ - ��� ���� sda9 (9-�� partition) � �������� �� 0 - 100. ���� ���� ��������� sda2 ��� �������� �� 2505 �� 3314 ���� �� ������ �����: Pt# Device Info Start End Sectors Id System ---------------------------------------------------------- 1: /dev/sda1 boot 101 2504 778896 83 Linux native 2: /dev/sda2 swap 2505 3313 262116 82 Linux swap 9: /dev/sda3 0 100 32724 0 SGI volhdr 11: /dev/sda4 0 3313 1073736 6 SGI volume ���� �������� � 'v' (������ ����������� �������), 'w' (��������� ��������� �� ����� � ��������). � ��� ������ ����������� � fdisk /dev/sdb ��� ���� ����� �� �� ������� ������ �� /var, /usr � /home ��� ���� ���� ���� �� � boot-able, ��� ������ �� ��- ������: �������� �� ��� ���� ������� � ����: # fdisk -l /dev/hdb Disk /dev/sdb: 33 heads, 61 sectors, 1019 cylinders Units = cylinders of 2013 * 512 bytes Device Boot Start End Blocks id System ------------------------------------------------- /dev/sdb1 1 261 262666 83 Linux (�� /home) /dev/sdb2 262 522 262696 83 Linux (�� /var) /dev/sdb3 523 1019 500230 83 Linux (�� /usr) ��������� ��������� � 'w' � �� ������� ������� �� ����� ������� (Alt-F1) � � � � � � � � !!! ��������� ��-���� ��������� �� ��������, �����, ������� � ���� ������� �� ������� ��������� �� ����� �������, � ������ ���� �� ������ ��� ������ �� ��������� ������ ��� ���. � ���������� �� ������ ������ ����� _�����_ ������ ������� (����� ����� ��������), ���� ��������� �� ������� ����������� �� ������ ����������, � ������ �� ����������� ������ ������ ������ ���������. ������������ ����������� �� ��������� ����� (��������� ��� �� �� root � swap ��������). ��������������� �������� ��������� ��� ��� �������� �� �� ������ �������� �� /dev/sdb, ���� �� ��� ��� ����� ������� �� �������� ������� ������� (ext3, ����� � root ����), ���� � ���� �������� �� �� mount-�� ���� ���������. ��������� �� �� ������� �� ������� �� �� mount-�� �� ���� � /target/* ������ �� � ������� � ������� ���� ���� �� �����, ������������ ���� � sda1. 5. End of partition 'nightmare' ���������� ������ � ���������� �� ������ ����� ������ ������: �������� 'from internet' (FIXME: �������� �� ���������� �� NFS) ����������� network settings (��� �� ������� ��� DHCP ������� �� ���������� ������ � �� ������� �� ������ DHCP). ������ �� ���� � ����������� � �� ���� �� ������ ������� � ����������, �� �� �������� � default���� �������� http://http.us.debian.org:80. ������� ������ ��� �, �� http://ftp.bg.debian.org ������� binary-mips (http://ftp.bg.debian.org/debian/dists/woody/main/binary-mips/) ���� �� ������� ������������ �� ����� ��-�������� :) (� ��� �� ��������� ������� Debian mirror � �������� http://debian.ludost.net ������ mirror�� ���� i386 � ���������.) ���� ������������� �� drivers (��� ����� �����) ������ ������������ �� Base System - �� �������� ����� �� http://ftp.bg.debian.org/debian, ���� �� ������ �� �� ������� proxy-�� (a ��� ���� �� ���� ������ ��� apt-proxy, � ���� � ������� Indy ����� ����������, ������ ������ ����� �������� - ������ �� network setup � bandwidth ����� ������) ������� 'make system bootable', � ��� ����� ��������� � Command Monitor-a �� Indy-��: setenv OSLoader linux setenv SystemPartition scsi(0)disk(X)rdisk(0)partition(8) setenv OSLoadPartition /dev/sda1 ������ X � SCSI id-�� �� /dev/sda ����� (���� �� �� �� ���� ������ ��������������� ��������) ���� ���� dmesg �� ������� ������� ����� �� reboot��� ������� (� ��� ������): "Attached scsi disk sda at scsi0, channel 0, id 1, lun 0" ���� �� ��� ��� ����������� ������ �� ��: setenv OSLoader linux setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8) setenv OSLoadPartition /dev/sda1 Boot-����, ������ base-config (����������� �� ���������� ����� �� Debian), �������� �� apt-sources, � �� ����� �� ������� ����� �� �������� �� dselect, ���� � �� ���� �� tasksel, ���� ����������� ������� �� �� ���������� �� ����. ���������� � bas-config-� �� ������������ �����. 6. End of story Thank you for choosing Debian. Have fun! LAST CHANGE DATE: 2003-02-20 19:22 EOF
