ofpath - determine OpenFirmware path from unix device node.
ofpath [ --debug ]
[ -h|--help ]
[ -V|--version ] FILE
This manual page explains ofpath, the utility used to find the
OpenFirmware device path corresponding to a unix device node, such as
/dev/hda2.
ofpath will work on NewWorld PowerMacs only if yaboot is
used as the bootloader. It will not work on NewWorld macs booted with
BootX.
ofpath will also work on some OldWorld PowerMacs. Unlike
NewWorld, it will work on BootX-booted OldWorld machines. Note that OldWorld
support is not well tested and may not give accurate results.
Ybin(8) uses this utility to automatically convert unix
device nodes to OpenFirmware paths as needed.
- --debug
- This option causes ofpath to output some boring details useful only
for debugging ofpath itself.
- -h, --help
- Print out usage information and exit.
- -V, --version
- Print out the version number and exit.
Ofpath may not accurately find all SCSI devices, and does not support all
SCSI adapters/drivers.
Ofpath also does not support all IDE devices.
Ofpath does not support IBM hardware. Send a tarball of
/proc/device-tree along with /proc/cpuinfo to
<erbenson@alaska.net>
Ofpath is based on show_of_path.sh written by Olaf Hering, it was
rewritten to work with /bin/ash and stripped down systems such as boot/rescue
floppies by Ethan Benson. This man page was written by Ethan Benson.
Report bugs to <erbenson@alaska.net>
bootstrap(8), mkofboot(8), yaboot(8),
yaboot.conf(5), ybin(8).