From: rahnds Date: Mon, 13 Jan 1997 05:03:26 +0000 (+0000) Subject: Misc installation notes for installing the powerpc port. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=02c207c53fb3a7eab9b3679dd6a1e3774be5967b;p=openbsd Misc installation notes for installing the powerpc port. Probably will change greatly or be moved eventually. --- diff --git a/sys/arch/powerpc/INSTALLATION b/sys/arch/powerpc/INSTALLATION new file mode 100644 index 00000000000..3f39c09fd7e --- /dev/null +++ b/sys/arch/powerpc/INSTALLATION @@ -0,0 +1,135 @@ +nvalias ofdisk0 /pci/isa/floppy +nvalias ofdisk1 /pci/scsi@c/disk@0,0 +... +for each disk, actually it is only necessary for disks that +are to be booted from. + +ofdisk0 /pci/isa/floppy +ofdisk1 /pci/scsi@c/disk@0,0 +ofdisk2 /pci/scsi@c/disk@1,0 +ofdisk6 /pci/scsi@c/disk@5,0 + + +the boot from the floppy. +ok boot ofdisk0:\boot.ppc + +Before installing on the harddrive, first a DOS partition needs +to be created. +fat-partition hdiskX 1 +This will create a 1 MB dos partition. This is necessary to +boot, The boot loader will be copied here later. + +Now boot off of the boot (kc) floppy. +ok boot ofdisk0:\boot.ppc -a +Boot: ofdisk0:/bsd -s + +Note: it is necessary to use the -a option and specify +ofdisk0 (devaliased above) to correctly mount the floppy +root disk. Also the floppies are in ISO9660 format, so +it is not possible to mount them read/write, MFS or the like will +eventually be nessary. + + +At the prompt to insert the filesystem disk, +-- +Please insert root disk and press ENTER +-- +put in the disk with the inst-20.fs image in the floppy. + + +Using fdisk, create a disk partition of type 0xa6. (0xa6 may change) +fdisk -u . +Do not use the -i option, we do not want to replace the bootblock +that openfirmware has put down, just modify the parition information. + +the "fat-parition 1 hdiskX" from before will have created a +parition similar to this: +-- +MBR Partition 0: sysid 6=0x06 (Primary 'big' DOS (> 32MB)) + start 1, size 2048 (1 MB), flag 0x80 + beg: cylinder 0, head 0, sector 0 + end: cylinder 0, head 0, sector 0 +-- + +Make certain to leave that unmodified and as the active partition. +That parition is currently used to hold the boot loader. + +I changed the labeling to have non 1 for heads and sectors/track. +I am not certian if that is correct or wise. + +Modify one of the paritions (Use 3 for example) +Create a partition with: +sysid [166] +start [2048*] "Should use sectors/cyl * n to get just greater than 2048." +size [disk size - start] + +when the label is written back out to the disk these messages are normal: +-- +fdisk: DIOCWLABEL: Inappropriate ioctl for device +fdisk: DIOCWLABEL: Inappropriate ioctl for device +-- + +Now it is necessary to create a UNIX disklabel for the drive +(Would be nice if /etc/disktab had some ready) + +The easiest way to do this currently is to take the output of +disklabel sdX +and cut and paste it on another machine to edit it into the desired +disklabel. + +Then using a trick I found, cut and past the edited label back into +the other machine after running the command +disklabel -R sdX /dev/tty +NEVER use the "-r" option +Also make certain to check the label just written +with "disklabel sdX" + +Note: only paste a few lines of the disklabel into the console +at a time, Otherwise the input buffer can overflow and lose characters. + +Make certain to keep the partition 'd' around. The only +change to possibly make to it would be make it's type MSDOS? + +It probably would be nice to eventually make the install kernel +have option MFS or the rd device, so that "disklabel -e" could be used. + + +Now newfs the newly created FFS partitions. +Do not newfs the parition d (size 2048) + +mount /dev/sdXa /mnt +mkdir /mnt/usr +mount /dev/sdXg /mnt/usr + +(network installtion, CDrom or other do as necessary) + +ifconfig ofnet0 inet XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX + +mount third parition (/usr/src?) as /tmp +mount /dev/sdXh /tmp +cd /tmp + +ftp XXX.XXX.XXX.XXX +cd +get ... +get ... + +Unfortunately since /tmp is not writable, mget will not work. + +after all of the files are transfered + +umask 0 +cd /mnt +for file in /tmp/*.tar.gz +do +echo ${file} +gzip -dc ${file} | pax -r + + +PATH=/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:$PATH + +mount -t msdos /dev/sdXd /mnt/mnt #this doesn't work, so ... +mount_msdos /dev/sd2d /mnt/mnt +cp /mnt/usr/mdec/boot.ppc /mnt/mnt +umount /mnt/mnt +gzip -dc /tmp/bsd.gz >/mnt/bsd