| ★ wanayoo — archive 1999 http://reality.sgi.com/raju/SGI-Linux-mini-HOWTO.html | Nouvelle recherche | Portail wanayoo |
If you want to use this document to install Indy/Linux off another system type (i.e. not another IRIX system), you can use portions of this document; just modify the steps ``Setup TFTP on IRIX'', ``Setup DHCP on IRIX'' and ``Setup NFS on the IRIX system'' for your OS. The Manhattan document mentioned earlier gives examples of theses steps for a Linux system.
http://www.linux/mips/manhattan/Please also read the instructions on that page -- they complement this document to some extent.
mkdir /linux
cd /linux
gzip -dc .../hardhat-sgi-5.1.tar.gz | tar xopf -
This will create a directory called /linux/mipseb and
install the required files into that. You may use another
top-level directory instead of /linux, but then you'll have
to adjust the pathnames in some of the examples given below to
suit your setup.
tftp dgram udp wait guest /usr/etc/tftpd -h /linux/mipseb
Restart inetd:
killall -1 inetd
bootp dgram udp wait root /usr/etc/dhcp_bootp dhcp_bootp
Now you have to setup a DHCP config file for your network. The
file is called /var/dhcp/config/config.AA.BB.CC where
AA.BB.CC is your network in standard octet notation.
E.g. my network is 134.14.90, so my file is called
/var/dhcp/config/config.134.14.90
The file looks something like this:
# The Serve_This_Network flag is required to be enabled (1) if you want the
# server to respond to clients on that subnet. This flag can be effectively
# used to restrict serving specific subnets by creating the appropriate
# config file for those subnets and disabling the Serve_This_Network in them.
Serve_This_Network: 1
pro_address_counter: 1
pro_host_pfx_counter: 1
pro_netmask: 0xffffff00 (CHANGE!)
pro_lease: 0x5a39a80
pro_host_prefix: linux- (CHANGE!)
pro_choose_name: 1
pro_ipaddress_range: 64 (CHANGE!) (YOUR LINUX IP HERE)
pro_router_addr: 134.14.90.1,134.14.90.52 (CHANGE!)
pro_bootfile_size:
pro_time_offset:
pro_meritdump_pathname:
pro_root_pathname: /linux/mipseb (CHANGE!)
pro_extensions_pathname:
pro_TFTPserver_name:
pro_bootfile_name: vmlinux
pro_dns_domain: newdelhi.sgi.com (CHANGE!)
pro_dnsserver_addr: 134.14.90.52 (CHANGE!)
pro_propel_server:
pro_timeserver_addr:
pro_logserver_addr:
pro_cookieserver_addr:
pro_LPRserver_addr:
pro_resourceserver_addr:
pro_swapserver_addr:
pro_nameserver116_addr:
pro_impressserver_addr:
pro_NTPserver_addr:
pro_X_fontserver_addr:
pro_X_displaymgr_addr:
pro_mobileIP_homeagent_addr:
pro_SMTPserver_addr:
pro_POP3server_addr:
pro_NNTPserver_addr:
pro_WWWserver_addr:
pro_fingerserver_addr:
pro_IRCserver_addr:
pro_StreetTalkserver_addr:
pro_STDAserver_addr:
pro_NetBIOS_nameserver_addr:
pro_NetBIOS_distrserver_addr:
pro_NetBIOS_nodetype:
pro_NetBIOS_scope:
pro_nis_domain: nis.com
pro_nisserver_addr:
pro_nisplus_domain:
pro_nisplusserver_addr:
pro_IPforwarding:
pro_source_routing:
pro_policy_filter:
pro_max_reassy_size:
pro_IP_ttl:
pro_pathmtu_timeout:
pro_pathmtu_table:
pro_mtu: 1600
pro_allnets_local: 1
pro_broadcast: 134.14.90.255 (CHANGE!)
pro_domask_disc: 0
pro_resp_mask_req: 0
pro_do_router_disc:
pro_router_solicit_addr:
pro_static_routes:
pro_trailer_encaps:
pro_arpcache_timeout:
pro_ether_encaps:
pro_TCP_ttl:
pro_TCP_keepalive_intrvl:
pro_TCP_keepalive_garbage:
You'll need to change some or all of the entries marked with
(CHANGE!) your your network.
Restart inetd:
killall -1 inetd
Finally, add an entry mapping the target Indy's MAC address to its
IP: add the following line to /etc/ethers:
08:00:69:0a:42:80 134.14.90.64
Change both addresses for your setup. The Indy's MAC address can
be got by booting into the PROM, typing printenv and
looking at the value of the eaddr variable.
/linux/mipseb -root=134.14.90.64,rw
and run
exportfs -a
This mount point should show up when you confirm with:
showmount -e
boot -f dksc(0,6,8)sashARCS dksc(0,6,7)stand/fx.ARCS --x
Partition the hard disk here. Once that is done, exit fx
and reboot. Stop for system maintainence and select the second
option, Install System Software. This will load the miniroot and
start inst. Within inst, select Option 11 (Admin)
and then select Option [something] (mkfs). Exit and
reboot.
If you don't have these, or don't want to use this method, you'll
have to consult the IRIX manuals to figure out how to repartition
your hard disk if necessary.
Note: I doubt if the EFS mkfs is required in the disk preparation
phase, but I haven't tried loading Linux without it.
bootp():vmlinux
If all goes well you should get familiar the Linux boot messages
and your root should get NFS-mounted on your IRIX box. RedHat
install should start automatically. Create an EXT2 filesystem on
the primary partition (/dev/sda1) and install the base system
(i.e. ONLY the packages selected by default). I tried to ``Select
All'' packages a couple of times but each time the install died
half-way through due to a segfault; this could be a hardware
problem, but no point in taking chances, right?
Do the standard things to setup your system from then on. DO
NOT enable swap, since the HardHat kernel has problems with
that. I managed to get a precompiled 2.2.1 kernel later and get
swap working fine with that subsequently. DO NOT install
printer support: the Indy printer drivers aren't in place yet.
bootp():vmlinux root=/dev/sda1
This should boot and mount your local harddisk as root.
You can mount your NFS-exported partition on your Linux system now
and install the remaining rpm's from there.
You can also get various precompiled kernels from ftp://ftp.linux.sgi.com/pub/linux/mips/test/
or a mirror. I'm using a 2.2.1 kernel which works quite well and
does swap.
bootp():vmlinux
at the PROM command line, and NOT
bootp:/vmlinux
TFTP doesn't seem to like the second form; I'm sure there's some
reason, but I haven't read the docs in detail to find out what
yet.
2. An XZ graphics system wouldn't boot for me. Changing it to an
8-bit system solved the problem. I'd presume that 24-bit systems
would face no problems either.
3. I understand that extra devices on the SCSI bus can create
problems in some (all?) of the kernels. Switch off all CDROMS,
Flopticals, tapes, etc before booting. Disconnect all disks which
you don't need for the install.