mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

  1. Q: How do I boot Linux on an RS/6000 (OpenFirmware)
  2. Build the kernel with "make zImage" and use "arch/ppc/boot/images/
  3. zImage.chrp-rs6k" as kernel image for booting your RS/6000.
  4. If you are running your RS/6000 on a serial console, remember to set your
  5. terminal program to 9600 Bps (8N1). Read Documentation/serial-console.txt
  6. for the linux kernel sources for details on how to let the kernel use a
  7. serial console.
  8. Enter the OpenFirmware (can be done by pressing 'F8' on startup when using
  9. the VGA console or just '8' on a serial console). The RS/6000 BIOS calls the
  10. OpenFirmware prompt the "OK Prompt". Put the kernel image on a floppy with
  11. MS-DOS FAT filesystem. Use a filename like "zimage" without extension. The
  12. RS/6000 OpenFirmware doesn't know about long file names on a DOS floppy. Boot
  13. the kernel with:
  14. boot floppy:,<filename> <kernel-options>
  15. e.g.:
  16. 0 > boot floppy:,zimage root=/dev/discs/disc1/part3
  17. Note that 'floppy' is a device-alias.
  18. Other useful commands:
  19. printenv shows the current contents of the variables
  20. dev / ls shows the device tree
  21. devalias shows the device aliases and the OpenFirmware pathnames
  22. setenv variable value set the content of the variable
  23. reset-all restart the machine
  24. shut-down power off the machine
  25. If you want to permanently boot a linux kernel from the OpenFirmware, create
  26. a small partition of the 'PPC PReP Boot' (Id 41) partition type for it and
  27. write the kernel image directly to the partition block device:
  28. # dd if=/mnt/zImage of=/dev/discs/disc0/part1
  29. Now reboot to the OpenFirmware prompt (F8 again) and type:
  30. 0 > setenv boot-device disk:1
  31. 0 > setenv boot-file root=/dev/discs/disc0/part2
  32. now you con boot with
  33. 0 > boot
  34. and if you don't enter the OpenFirmware (F8) on further reboots this kernel
  35. will automatically be loaded. If you need any other kernel parameters, just
  36. append them to the 'setenv boot-file ..' line.