|

楼主 |
发表于 2004-7-5 12:39:48
|
显示全部楼层
在Mandrakelinux的RS6K目录下的readme-rs6k中写着RS6K的安装方法:
Installation on IBM RS6000 Mar 3, 2003
Stew Benedict <sbenedict@mandrakesoft.com>
Mandrake PPC 9.1 should run fine on an RS6000 7043-150
(In fact most of this distribution was built on one)
Please read this whole document before doing the install so you
understand the issues. Pay special attention to the bootloader
setup.
The files you need are in this directory. You will also
need 2 floppy disks, 1 of which needs to be DOS formatted.
Instructions are based on doing the work from a Linux system.
Boot disk:
Insert the 1st disk into the floppy drive.
mformat /dev/fd0
mcopy zImage.chrp-rs6k a:zimage
Stage1 disk:
Once the first floppy is finished, insert the 2nd disk.
dd if=all-rs6k.gz of=/dev/fd0
Boot/Install:
Insert the 1st boot floppy back the RS6000's drive.
Powerup the machine. When the IBM logo appears, hit F8
before the boot process begins. The screen may flash purple
and you will be left at the Open Firmware prompt. Enter:
boot floppy:\zimage fake_initrd root=/dev/fd0 rw load_ramdisk=1 ramdisk_size=36000
To boot the rescue image, append "rescue" to the above stanza.
To do a text install, append "text" to the above stanza.
It is also possible to set these values in Open-Firmware:
setenv boot-device boot floppy:\zimage
setenv boot-file fake_initrd root=/dev/fd0 rw load_ramdisk=1 ramdisk_size=36000
boot
You should see a progress character (spinning \|/), and then a typical Linux
kernel boot, with the Mandrake logo. When you are prompted to do so, remove
the boot disk and insert the stage1 floppy, and press Enter.
The remainder of the install will be much the same as the Apple machines.
Partitioning:
If your machine formerly had AIX installed, diskdrake will probably have
issues with the partition table and offer to erase all partitions. It
is best to go ahead and do this and create a DOS-style partition table
for the installation of Linux. Fdisk will also complain about the AIX
partition table.
Yaboot is purported to work on these machines. I had varying luck
getting it to do so. A workaround is to DOS format a small boot
partition. The problem with this approach is using an initrd. You more
or less need to have everything needed to load "/" built into the
kernel.
A basic partitioning scheme for yaboot would look like this. /dev/sda1
can be as small as 800K. Should you need to fall back on using a FAT
partition, you may want to make it a bit larger, to hold your kernel.
root@rs6000 root]# fdisk -l /dev/sda
Disk /dev/sda: 9100 MB, 9100369920 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 9 9200 41 PPC PReP Boot
/dev/sda2 10 143 137216 83 Linux
/dev/sda3 144 8678 8739840 83 Linux
Diskdrake knows of 'PPC PReP Boot' partitions, and you can create it
there or from the shell using fdisk on VT2. From the shell, the hard
drives aren't available until diskdrake runs, so you should probably
reboot if you do it manually from there, then restart the install.
As drakx stands now, for IBM machines, the bootloader setup is hardcoded
to expect /dev/sda1 to be the PReP Boot partition. The yaboot setup
will format and use this partition for the bootloader, so don't use sda1
for any system partitions!
Should you not be able to boot your installed system, we've provided a
kernel with integrated SCSI and ext2/ext3. The kernel is in this same
directory.
Boot disk:
Insert the 1st disk into the floppy drive.
mformat /dev/fd0
mcopy vmlinuz-rs6k-2.4.21-0.13mdk a:zimage
Finally, you can boot in a similar fashion as you did to install:
boot floppy:,zimage root=/dev/sda2 devfs=mount
Once the system is booted, you can try to address the yaboot config (see
/usr/share/doc/yaboot-1.3.9/README.rs6000 for info on using yaboot on
RS6000), or fall back to the FAT formatted partition technique.
FAT partition boot:
You can use your partition that was allocated for yaboot as a FAT partition
and place the boot kernel there for automated boot. You need to use the
vmlinuz-rs6k-2.4.21-0.13mdk kernel provided in this directory, with
integrated SCSI and ext2/ext3.
First you'll want to change the type of partition on sda1:
[root@rs6000b root]# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 9100 MB, 9100369920 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2 2032 41 PPC PReP Boot
/dev/sda2 3 6002 6144000 83 Linux
/dev/sda3 6003 6502 512000 82 Linux swap
/dev/sda4 6503 8678 2228224 83 Linux
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 4
Changed system type of partition 1 to 4 (FAT16 <32M)
Command (m for help): w
The partition table has been altered!
[root@rs6000b root]# urpmi mtools
installing /mnt/nfs/Mandrake/RPMS/mtools-3.9.8-3mdk.ppc.rpm
[root@rs6000b root]# mkfs.msdos /dev/sda1
mkfs.msdos 2.8 (28 Feb 2001)
Uncomment the entry for sda1 as "C:" in /etc/mtools.conf:
# First SCSI hard disk partition
drive c: file="/dev/sda1"
Using the floppy you booted the system with:
[root@rs6000b root]# mcopy a:\zimage c:\zimage
[root@rs6000b root]# mdir c:
Volume in drive C has no label
Volume Serial Number is 385E-F42A
Directory for C:/
zimage 1261891 1999-12-20 22:31 zimage
1 file 1 261 891 bytes
796 672 bytes free
Now, do a proper shutdown and use F8 again to get into Open Firmware and set
the boot settings:
setenv boot-device disk:,\zimage
setenv boot-file root=/dev/sda2 devfs=mount
Now you can boot from the hard-drive:
boot
On the next power-up, you should be able to boot from the hard-drive
automatically.
但用那个boot软盘启动的时候,开始确实能显示一个在不停变化的“|”符号,但第一张完全读完以后就会闪一下屏幕,屏幕上提示几行英文,就死掉了,不知道又是什么地方出错了? |
|