1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" ofpath: determine OpenFirmware path from unix device node
4 .\" Copyright (C) 2000, 2001 Ethan Benson
6 .\" Portions based on show_of_path.sh:
8 .\" Copyright (C) 2000 Olaf Hering <olh@suse.de>
10 .\" This program is free software; you can redistribute it and/or
11 .\" modify it under the terms of the GNU General Public License
12 .\" as published by the Free Software Foundation; either version 2
13 .\" of the License, or (at your option) any later version.
15 .\" This program is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public License
21 .\" along with this program; if not, write to the Free Software
22 .\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 .TH OFPATH 8 "27 May 2001" "GNU/Linux PowerPC" "System Manager's Manual"
27 \- determine OpenFirmware path from unix device node.
31 .RB [ \ \-h | \-\-help\ ]
32 .RB [ \ \-V | \-\-version\ ]
35 This manual page explains
37 the utility used to find the OpenFirmware device path corresponding to
38 a unix device node, such as \fI/dev/hda2\fR.
41 will work on NewWorld PowerMacs only if yaboot is used as the
42 bootloader. It will \fInot\fR work on NewWorld macs booted with BootX.
45 will also work on some OldWorld PowerMacs. Unlike NewWorld, it will
46 work on BootX-booted OldWorld machines. Note that OldWorld support is
47 not well tested and may not give accurate results.
49 \fBYbin\fR(8) uses this utility to automatically convert unix device
50 nodes to OpenFirmware paths as needed.
54 This option causes \fBofpath\fR to output some boring details useful
55 only for debugging \fBofpath\fR itself.
58 Print out usage information and exit.
60 .BR \-V ,\ \-\-version
61 Print out the version number and exit.
65 may not accurately find all SCSI devices, and does not support all
66 SCSI adapters/drivers.
69 also does not support all IDE devices.
72 does not support IBM hardware. Send a tarball of /proc/device-tree
73 along with /proc/cpuinfo to <erbenson@alaska.net>
76 is based on show_of_path.sh written by Olaf Hering, it was
77 rewritten to work with /bin/ash and stripped down systems such as
78 boot/rescue floppies by Ethan Benson. This man page was written by
81 Report bugs to <erbenson@alaska.net>