Home | History | Annotate | Line # | Download | only in amiga
install revision 1.8
      1  1.1  chopps Installing NetBSD is a relatively complex process, but, if you have
      2  1.1  chopps this document in hand and are careful to read and remember the
      3  1.1  chopps information which is presented to you by the install program, it
      4  1.1  chopps shouldn't be too much trouble.
      5  1.1  chopps 
      6  1.1  chopps Before you begin, you must have already prepared your hard disk as
      7  1.1  chopps detailed in the section on preparing your system for install.
      8  1.1  chopps 
      9  1.1  chopps The following is a walk-through of the steps necessary to get NetBSD
     10  1.1  chopps installed on your hard disk.  If you wish to stop the installation,
     11  1.1  chopps you may hit Control-C at any prompt, but if you do, you'll have to
     12  1.1  chopps begin again from scratch.
     13  1.1  chopps 
     14  1.7  chopps 	Transfer the install miniroot file system onto the hard disk
     15  1.4     jtc 	partition used by NetBSD for swapping, as described in the
     16  1.4     jtc 	"Preparing your System for NetBSD Installation" section above.
     17  1.4     jtc 
     18  1.8      is 	* Booting from AmigaOS, using loadbsd:
     19  1.8      is 
     20  1.4     jtc 	You then need to have "ixemul.library" in your LIBS: directory
     21  1.4     jtc 	on AmigaDOS.  You also need to have the "loadbsd" program
     22  1.4     jtc 	in your command path.  If AmigaDOS complains about loadbsd
     23  1.4     jtc 	not being an executable file, be sure that the "Execute"
     24  1.4     jtc 	protection bit is set.  If not, set it with the command:
     25  1.4     jtc 		Protect loadbsd add e
     26  1.3  chopps 
     27  1.3  chopps 	Next you need to get yourself into NetBSD by loading the
     28  1.3  chopps 	kernel from AmigaDOS with loadbsd like so:
     29  1.1  chopps 
     30  1.1  chopps 		loadbsd -b netbsd
     31  1.1  chopps 
     32  1.4     jtc 	If you have an AGA machine, and your monitor will handle
     33  1.4     jtc 	the dblNTSC mode, you may also include the "-A" option to
     34  1.4     jtc 	enable the dblNTSC display mode.
     35  1.4     jtc 
     36  1.7  chopps 	If your machine has a fragmented physical memory space, as, 
     37  1.7  chopps 	e.g., DraCo machines, you should add the "-n2" option to 
     38  1.7  chopps 	enable the use of all memory segments.
     39  1.7  chopps 
     40  1.8      is 	* Directly booting NetBSD, with boot blocks installed:
     41  1.8      is 
     42  1.8      is 	[This description is for V41 (OS 3.1) ROMs. For older ROMs,
     43  1.8      is 	there might be small differences. Check your AmigaOS documentation
     44  1.8      is 	to learn about the exact procedure.]
     45  1.8      is 
     46  1.8      is 	Reboot your machine, holding down both mouse buttons if you 
     47  1.8      is 	have a 2-button mouse, the outer mouse buttons if you have
     48  1.8      is 	a 3-button mouse. On the DraCo, press the left mouse button
     49  1.8      is 	instead, when the boot screen prompts you for it.
     50  1.8      is 
     51  1.8      is 	From the boot menu, select "Boot Options".
     52  1.8      is 	Select the swap partition with the miniroot, and then "ok".
     53  1.8      is 	Select "Boot" now. The machine will boot the bootblock, which
     54  1.8      is 	will prompt your for a command line. You have a few seconds time
     55  1.8      is 	to change the default. Entering an empty line will accept the
     56  1.8      is 	default.
     57  1.8      is 
     58  1.8      is 	The bootblock uses command lines of the form:
     59  1.8      is 
     60  1.8      is 	file options
     61  1.8      is 
     62  1.8      is 	where file is the kernel file name on the partition where the
     63  1.8      is 	boot block is on, and options are the same as with loadbsd.
     64  1.8      is 	E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
     65  1.8      is 
     66  1.8      is 	* Once your kernel boots:
     67  1.8      is 
     68  1.1  chopps 	You should see the screen clear and some information about
     69  1.3  chopps 	your system as the kernel configures the hardware.  Note which
     70  1.3  chopps 	hard disk device(s) are configured (sd0, sd1, etc).  Then
     71  1.3  chopps 	you will be prompted for a root device.  At this time type
     72  1.4     jtc 	'sd0*', where '0' is the device which contains the swap
     73  1.4     jtc 	partition you created during the hard disk preparation.
     74  1.1  chopps 
     75  1.6  chopps 	If the system should hang after entering the root device, try
     76  1.6  chopps 	again with
     77  1.6  chopps 
     78  1.6  chopps 		loadbsd -I ff -b netbsd
     79  1.6  chopps 
     80  1.6  chopps 	This disables synchronous transfer on all SCSI devices.
     81  1.6  chopps 
     82  1.1  chopps 	The system should continue to boot.  For now ignore WARNING:
     83  1.4     jtc 	messages about bad dates in clocks.  Eventually you will be
     84  1.4     jtc 	asked to enter the pathname of the shell, just hit return.
     85  1.4     jtc 	After a short while you should see a welcome message and a
     86  1.4     jtc 	prompt, asking if you wish to proceed with the installation.
     87  1.1  chopps 
     88  1.1  chopps 	If you wish to proceed, enter "y" and then return.
     89  1.1  chopps 
     90  1.1  chopps 	If you have configured your hard drive[s] correctly it
     91  1.1  chopps 	should find the drive and partition that you selected to
     92  1.4     jtc 	use as your root.  You will be prompted for which device
     93  1.4     jtc 	you want to use for your root.  If you have multiple disks
     94  1.4     jtc 	present with root partitions defined, you will need to be
     95  1.4     jtc 	sure you enter the device name of the correct partition you
     96  1.4     jtc 	want to install NetBSD on.
     97  1.1  chopps 
     98  1.1  chopps 	YOU ARE NOW AT THE POINT OF NO RETURN.  If you confirm that
     99  1.1  chopps 	you want to install NetBSD, your hard drive will be modified,
    100  1.2  chopps 	and perhaps its contents scrambled at the whim of the install
    101  1.1  chopps 	program.
    102  1.1  chopps 
    103  1.1  chopps 	If you are sure you want to proceed, enter "yes" at the
    104  1.1  chopps 	prompt.
    105  1.1  chopps 
    106  1.7  chopps 	The install program will now make the root file system you
    107  1.1  chopps 	specified.  There should be only one error in this section
    108  1.1  chopps 	of the installation.  It will look like so:
    109  1.1  chopps 
    110  1.1  chopps 		newfs: ioctl (WDINFO): Invalid argument
    111  1.1  chopps 		newfs: /dev/rsd0a: can't rewrite disk label
    112  1.1  chopps 
    113  1.1  chopps 	If there are any others, restart from the the beginning of
    114  1.2  chopps 	the installation process.  This error is ok as the Amiga
    115  1.1  chopps 	does not write disklabels currently.  You should expect
    116  1.1  chopps 	this error whenever using newfs.
    117  1.1  chopps 
    118  1.1  chopps 	Next the install program will ask you which drive and
    119  1.1  chopps 	partition you wish to use as /usr.  First it will list the
    120  1.1  chopps 	available drives.  Choose one.  Next it will give you a
    121  1.1  chopps 	list of the partitions on that disk along with their sizes,
    122  1.1  chopps 	types, etc..  Choose the letter that corresponds to the
    123  1.1  chopps 	partition you wish to use for /usr.  If you are doing a
    124  1.1  chopps 	full install this should be at the very least 45M-50M large.
    125  1.1  chopps 	If everything is ok the install program will then format
    126  1.1  chopps 	and mount your /usr.  If not then it will ask again for a
    127  1.1  chopps 	drive and partition.
    128  1.1  chopps 
    129  1.1  chopps 	When this completes your root partition will be mounted on
    130  1.1  chopps 	/mnt and your /usr partition on /mnt/usr.  An fstab will
    131  1.1  chopps 	have been created and initialized to correctly mount these
    132  1.1  chopps 	two file systems.  This fstab will be in /mnt/etc.
    133  1.1  chopps 
    134  1.1  chopps 	What you do from this point on depends on which media you're
    135  1.1  chopps 	using to install NetBSD.  Follow the appropriate instructions,
    136  1.1  chopps 	given below.
    137  1.1  chopps 
    138  1.1  chopps 	To install from an AmigaDOS partition:
    139  1.1  chopps 
    140  1.1  chopps 		You first need to mount the AmigaDOS partition
    141  1.1  chopps 		using the mount_ados command.  If e.g. your AmigaDOS
    142  1.1  chopps 		partition is the first partition on sd0 you could
    143  1.1  chopps 		type:
    144  1.1  chopps 			
    145  1.1  chopps 			mkdir /mnt/ados
    146  1.5  chopps 			mount_ados -o ro /dev/sd0d /mnt/ados
    147  1.1  chopps 
    148  1.1  chopps 		You can use `disklabel sd0' to find out what types
    149  1.1  chopps 		of partitions are on the disk `sd0'.
    150  1.1  chopps 
    151  1.1  chopps 		Next goto the directory in which you stored the
    152  1.1  chopps 		distribution sets.  If e.g. you stored them in the
    153  1.1  chopps 		root directory of the partition:
    154  1.1  chopps 
    155  1.1  chopps 			cd /mnt/ados
    156  1.1  chopps 
    157  1.1  chopps 		When there, run "Set_tmp_dir" and choose the default
    158  1.1  chopps 		temporary directory, by hitting return at the
    159  1.1  chopps 		prompt.
    160  1.1  chopps 
    161  1.1  chopps 		Run the "Extract" command, giving it as its sole
    162  1.1  chopps 		argument the name of the distribution set you wish
    163  1.1  chopps 		to extract.  For example, to extract the base
    164  1.1  chopps 		distribution, use the command:
    165  1.1  chopps 
    166  1.7  chopps 			Extract base12
    167  1.1  chopps 
    168  1.1  chopps 		and to extract the games distribution:
    169  1.1  chopps 
    170  1.7  chopps 			Extract game12
    171  1.1  chopps 
    172  1.2  chopps 		If the distribution sets are in different directories,
    173  1.7  chopps 		you will need to cd to each directory in turn, running
    174  1.2  chopps 		"Set_tmp_dir" and the appropriate "Extract" command(s).
    175  1.2  chopps 
    176  1.1  chopps 		Continue this process until you've finished installing
    177  1.1  chopps 		all of the sets which you desire to have on your
    178  1.1  chopps 		hard disk.  Once you have extracted all sets and
    179  1.1  chopps 		are at the "#" prompt again, proceed to the section
    180  1.1  chopps 		"Configuring Your System," below.
    181  1.1  chopps 
    182  1.1  chopps 	To install from tape:
    183  1.1  chopps 
    184  1.1  chopps 		The first thing you should do is pick a temporary
    185  1.1  chopps 		directory where the distribution files can be stored.
    186  1.1  chopps 		To do this, use the command "Set_tmp_dir" and enter
    187  1.1  chopps 		your choice.  The default is /mnt/usr/distrib.
    188  1.1  chopps 
    189  1.1  chopps 		After you have picked a temporary directory,
    190  1.1  chopps 		you should issue the load command:
    191  1.1  chopps 
    192  1.1  chopps 			Load_tape
    193  1.1  chopps 
    194  1.1  chopps 		Next, you will be told to insert the media into
    195  1.1  chopps 		the appropriate drive, and hit return.  Continue
    196  1.1  chopps 		to follow instructions until you are returned to
    197  1.1  chopps 		the "#" prompt.
    198  1.1  chopps 
    199  1.1  chopps 		Go to the directory which contains the first
    200  1.1  chopps 		distribution set you wish to install.  This is
    201  1.1  chopps 		either the directory you specified above, or possibly
    202  1.1  chopps 		a subdirectory of that directory.
    203  1.1  chopps 
    204  1.1  chopps 		When there, run "Set_tmp_dir" again, and choose
    205  1.1  chopps 		the default temporary directory, by hitting
    206  1.1  chopps 		return at the prompt.
    207  1.1  chopps 
    208  1.1  chopps 		Run the "Extract" command, giving it as its sole
    209  1.1  chopps 		argument the name of the distribution set you
    210  1.1  chopps 		wish to extract.  For example, to extract the base
    211  1.1  chopps 		distribution, use the command:
    212  1.1  chopps 
    213  1.7  chopps 			Extract base12
    214  1.1  chopps 
    215  1.1  chopps 		and to extract the games distribution:
    216  1.1  chopps 
    217  1.7  chopps 			Extract game12
    218  1.1  chopps 
    219  1.1  chopps 		After the extraction is complete, go to the location
    220  1.1  chopps 		of the next set you want to extract, "Set_tmp_dir"
    221  1.1  chopps 		again, and once again issue the appropriate
    222  1.1  chopps 		extract command.  Continue this process until
    223  1.1  chopps 		you've finished installing all of the sets which you
    224  1.1  chopps 		desire to have on your hard disk.
    225  1.1  chopps 
    226  1.1  chopps 		After each set is finished, if you know that you
    227  1.1  chopps 		are running low on space you can remove the
    228  1.1  chopps 		distribution files for that set by saying:
    229  1.1  chopps 
    230  1.1  chopps 			rm set_name.??
    231  1.1  chopps 
    232  1.1  chopps 		For example, if you wish to remove the distribution
    233  1.1  chopps 		files for the game09 set, after the "Extract game09"
    234  1.1  chopps 		command has completed, issue the command:
    235  1.1  chopps 
    236  1.7  chopps 			rm game12.??
    237  1.1  chopps 
    238  1.1  chopps 		Once you have extracted all sets and are at the "#" prompt
    239  1.1  chopps 		again, proceed to the section "Configuring Your System,"
    240  1.1  chopps 		below.
    241  1.1  chopps 
    242  1.1  chopps 	To install via FTP or NFS:
    243  1.1  chopps 
    244  1.1  chopps 		First, use Set_tmp_dir to pick a temporary directory
    245  1.1  chopps 		for the installation files.  /mnt/usr/distrib is
    246  1.1  chopps 		suggested.
    247  1.1  chopps 
    248  1.7  chopps 		Configure the appropriate Ethernet interface i.e. le0
    249  1.1  chopps 		if you have a 2065 or ed0 if you have a AMIGNET from
    250  1.1  chopps 		Hydra Systems.
    251  1.1  chopps 		
    252  1.1  chopps 			ifconfig <ifname> <ipaddr> [netmask <netmask>]
    253  1.1  chopps 
    254  1.1  chopps 		where <ifname> is the interface name (e.g. ed0, etc.),
    255  1.1  chopps 		and <ipaddr> is the numeric IP address of the interface.
    256  1.1  chopps 		If the interface has a special netmask, supply
    257  1.1  chopps 		the word "netmask" and that netmask at the end of the
    258  1.1  chopps 		command line.  For instance, without a special netmask:
    259  1.1  chopps 
    260  1.1  chopps 			ifconfig ed0 129.133.10.10
    261  1.1  chopps 
    262  1.1  chopps 		or with a special netmask
    263  1.1  chopps 
    264  1.1  chopps 			ifconfig ed0 128.32.240.167 netmask 0xffffff00
    265  1.1  chopps 
    266  1.4     jtc 		You should also be able to use SLIP or PPP as the network
    267  1.4     jtc 		connection.
    268  1.4     jtc 		[XXX instructions for ppp or slip would be usefull
    269  1.4     jtc 		perhaps the next release]
    270  1.4     jtc 
    271  1.1  chopps 		If the NFS server or FTP server is not on a directly-
    272  1.1  chopps 		connected network, you should set up a route to it
    273  1.1  chopps 		with the command:
    274  1.1  chopps 
    275  1.1  chopps 			route add default <gate_ipaddr>
    276  1.1  chopps 
    277  1.1  chopps 		where <gate_ipaddr> is your gateway's numeric IP address.
    278  1.1  chopps 
    279  1.1  chopps 		If you are NFS-mounting the distribution sets,
    280  1.1  chopps 		mount them on the temporary directory with the command:
    281  1.1  chopps 
    282  1.1  chopps 			mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir>
    283  1.1  chopps 
    284  1.1  chopps 		where <serv_ipaddr> is the server's numeric IP address,
    285  1.1  chopps 		<dist_dir> is the path to the distribution files on
    286  1.1  chopps 		the server, and <tmp_dir> is the name of the local
    287  1.1  chopps 		temporary directory.
    288  1.1  chopps 
    289  1.1  chopps 		Once this is done, proceed as if you had loaded the
    290  1.1  chopps 		files from tape, "cd"ing to the appropriate directories
    291  1.1  chopps 		and running "Set_tmp_dir" and "Extract" as appropriate.
    292  1.1  chopps 
    293  1.1  chopps 		If you are retrieving the distribution sets using ftp,
    294  1.1  chopps 		cd into the temp directory, and execute the command:
    295  1.1  chopps 
    296  1.1  chopps 			ftp <serv_ipaddr>
    297  1.1  chopps 
    298  1.1  chopps 		where <serv_ipaddr> is once again the server's
    299  1.1  chopps 		numeric IP address.  Get the files with FTP,
    300  1.1  chopps 		taking care to use binary mode to transfer
    301  1.1  chopps 		all files.
    302  1.1  chopps 
    303  1.1  chopps 		Once you have all of the files for the distribution sets
    304  1.1  chopps 		you wish to install, you can proceed using the instructions
    305  1.1  chopps 		above as if you had installed the files from a tape.
    306  1.1  chopps 
    307  1.1  chopps 
    308  1.1  chopps Configuring Your System:
    309  1.1  chopps ----------- ---- ------
    310  1.1  chopps 
    311  1.1  chopps Once you have finished extracting all of the distribution sets that
    312  1.1  chopps you want on your hard drive and are back at the "#" prompt,
    313  1.1  chopps you are ready to configure your system.
    314  1.1  chopps 
    315  1.1  chopps The configuration utility expects that you have installed the base
    316  1.1  chopps system.  If you have not, you will not be able to run it successfully
    317  1.1  chopps (nor will you have a functional system regardless of configuration).
    318  1.1  chopps 
    319  1.1  chopps To configure the newly installed operating system, run the
    320  1.1  chopps command "Configure".
    321  1.1  chopps 
    322  1.7  chopps Configure will ask for the machine's host name, domain name, and other
    323  1.1  chopps network configuration information.
    324  1.1  chopps 
    325  1.2  chopps Once you have supplied `Configure' all that it requests, your machine
    326  1.1  chopps will be configured well enough that when you reboot it it will
    327  1.4     jtc almost be a completely functional NetBSD system.
    328  1.4     jtc 
    329  1.8      is Configure will also copy the generic kernel from the miniroot onto your
    330  1.8      is root partition, and will install a bootblock.
    331  1.1  chopps 
    332  1.1  chopps Once you are done with `Configure', halt the system with the "halt"
    333  1.2  chopps command (wait for "halted" to be displayed) and reboot.  Then again
    334  1.2  chopps boot NetBSD this time with the command:
    335  1.2  chopps 
    336  1.8      is 	loadbsd netbsd
    337  1.8      is 
    338  1.8      is or select the root partition from the boot menu, and tell it to boot
    339  1.1  chopps 
    340  1.8      is 	netbsd -s
    341  1.1  chopps 
    342  1.7  chopps You need to do your final tweaks now.  First mount your file systems
    343  1.1  chopps like so:
    344  1.1  chopps 
    345  1.1  chopps 	mount -av
    346  1.1  chopps 
    347  1.1  chopps Your system is now complete but not completely configured; you
    348  1.1  chopps should adjust the /etc/sendmail.cf file as necessary to suit your
    349  1.1  chopps site and/or disable sendmail and other network related programs.
    350  1.1  chopps These things can be found in /etc/netstart.  Use vi, if you installed
    351  1.1  chopps the man pages you can type `man vi' or `man ed' for instructions
    352  1.1  chopps on how to use these somewhat non-intuitive editors.
    353  1.1  chopps 
    354  1.4     jtc You should also put a copy of the netbsd kernel in your root partition.
    355  1.4     jtc This can be done easily by mounting the AmigaDOS partition containing
    356  1.4     jtc the kernel you used to start NetBSD and copying the "netbsd" file to
    357  1.4     jtc the root:
    358  1.4     jtc 	mount -r -t ados /dev/sd0d /mnt
    359  1.4     jtc 	cp /mnt/netbsd /
    360  1.4     jtc (where /dev/sd0d is the AmigaDOS partition where you have netbsd, and
    361  1.4     jtc /mnt/netbsd is the appropriate path of the netbsd file).
    362  1.4     jtc 
    363  1.1  chopps Once you are done with the rest of configuration unmount your file
    364  1.1  chopps systems and halt your system, then reboot:
    365  1.1  chopps 
    366  1.1  chopps 	cd /
    367  1.1  chopps 	umount -av
    368  1.1  chopps 	halt
    369  1.1  chopps 	<reboot>
    370  1.1  chopps 
    371  1.1  chopps Finally you can now boot your system and it will be completely
    372  1.1  chopps functional:
    373  1.1  chopps 
    374  1.1  chopps 	loadbsd -a netbsd
    375  1.1  chopps 
    376  1.1  chopps When it boots off of the hard drive, you will have a complete
    377  1.1  chopps NetBSD system!  CONGRATULATIONS! (You really deserve them!!!)
    378