Annotation of www/hppa.html, Revision 1.64
1.3 fn 1: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Strict//EN">
2: <html>
1.1 deraadt 3: <head>
4: <title>OpenBSD/hppa</title>
1.3 fn 5: <link rev=made href=mailto:www@openbsd.org>
6: <meta name="resource-type" content="document">
7: <meta name="description" content="the OpenBSD/hppa page">
8: <meta name="keywords" content="openbsd,hppa">
9: <meta name="distribution" content="global">
1.55 horacio 10: <meta name="copyright" content="This document copyright 1996-2002 by OpenBSD.">
1.3 fn 11: </head>
12:
1.8 johns 13: <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#23238E">
1.3 fn 14:
1.30 deraadt 15: <h2>OpenBSD/hppa</h2>
1.1 deraadt 16:
1.3 fn 17: <hr>
1.30 deraadt 18:
1.64 ! mickey 19: <h3><font color=#0000e0><strong>Status and History:</strong></font></h3>
! 20: Systems boot to multi-user and full snapshots are made periodically.
! 21: There are several projects being under development to support
! 22: SCSI controllers and input devices,
! 23: certain stability issues.
! 24: <p>
1.38 mickey 25: This project was started in one of those days when the only
26: open source operating systems for HP PA-RISC computers were
27: <a href=http://www.cs.utah.edu/projects/flux/lites/html>Lites</a> and
28: <a href=http://www.osf.org/mall/os/pa-mklinux>MkLinux</a>.
29: These two sources were a major supply of information and
30: code for initial development of the OpenBSD/hppa port.
31: The <a href=http://www.cs.utah.edu/~mike/hpbsd/hpbsd.html>HPBSD</a>
32: is encumbered by HP proprietary code and USL licensing and is
33: not publicly available.
34: One of the major direct benefits from previous porting efforts
35: (besides the code, of course ;) is
36: support for HP PA-RISC in GCC and binutils, which allowed quick
37: build of cross-tools environment for development.
38: <p>
39: Later on HP decided to sponsor a
1.58 mickey 40: <a href=http://www.parisc-linux.org/>Linux</a> port to PA-RISC
1.46 pvalchev 41: machines which actually resulted in some proprietary documentation
1.38 mickey 42: release, even they target different class of 9000 machines.
43: <p>
1.64 ! mickey 44:
! 45: <h3><font color=#0000e0><strong>Supported Hardware:</strong></font></h3>
! 46:
1.16 mickey 47: <ul>
1.64 ! mickey 48: <li>CPUs (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=intro&sektion=4&arch=hppa">intro</a> and (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=cpu&sektion=4&arch=hppa">cpu</a>)):
! 49: <ul>
! 50: <li>PA7000-based: 705, 710, 720, 730, 750 (currently under development)
! 51: <li>PA7100-based: 715/33, 715/50, 715/75, 725/50, 725/75, 735/100, 755/100
! 52: <li>PA7100LC-based: 712, 715/64, 715/80, 715/100, 715/100XC, 725/64, 725/100
! 53: <li>PA7150-based: 735/125, 755/125
! 54: <li>PA7200-based: J200, J210
! 55: </ul>
! 56: <li>bus/IO controllers:
! 57: <ul>
! 58: <li> GSC (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=gsc&sektion=4&arch=hppa">gsc</a>): LASI (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lasi&sektion=4&arch=hppa">lasi</a>), ASP (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=asp&sektion=4&arch=hppa">asp</a>)
! 59: </ul>
! 60: <li>SCSI controllers (currently under development):
! 61: <ul>
! 62: <li>NCR53C710 SCSI I/O Processors (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=osiop&sektion=4">osiop</a>)
! 63: <li>NCR53C720 SCSI I/O Processors (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=siop&sektion=4">siop</a>)
! 64: </ul>
! 65: <li>SGC/GSC graphics (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sti&sektion=4">sti</a>):
! 66: <ul>
! 67: <li>Artist (as found on 712)
! 68: <li>CRX-8, CRX-24, HCRX-8, HCRX-24
! 69: </ul>
! 70: <li>RS-232 devices:
! 71: <ul>
! 72: <li>On-board ns16550 or similar (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=com&sektion=4">com</a>)
! 73: </ul>
! 74: <li>Input devices (currently under development):
! 75: <ul>
! 76: <li>PS/2 keyboard and mouse
! 77: <li>HIL keyboard and mouse
! 78: </ul>
! 79: </ul>
! 80: Systems which may work (eventually):
! 81: <ul>
! 82: <li>PA2.0 systems (in 32-bit mode);
! 83: <li>HP 9000 834, 835, 836, 844, 845, 846;
! 84: <li>HP 9000 E23, E25, E35, E45, E55;
! 85: <li>HP 3000 908, 918, 928, 938;
! 86: <li>Hitachi VQ200, VQ210, and some other non-HP workstations;
! 87: <li>Precision Book from RDI Computer Corporation (well, unlikely)
! 88: <li>HP VME and VXI single board systems (requires VME at least)
1.16 mickey 89: </ul>
1.64 ! mickey 90: <br>
! 91: Hardware is needed for this project,
! 92: see <a href="want.html">"Wanted List"</a>
! 93: (contact <a href=mailto:mickey@openbsd.org>mickey</a>).
! 94:
! 95: <h3><font color=#0000e0><strong>Documentation</strong></font></h3>
1.16 mickey 96:
1.38 mickey 97: <small>(most of which was released by HP for the
1.58 mickey 98: <a href=http://www.parisc-linux.org/>Linux/parisc</a> project)</small>:
1.38 mickey 99: <ol type=1>
1.58 mickey 100: <li>HP PA-RISC CPUs
1.38 mickey 101: <ol type=a>
1.58 mickey 102: <li><a href=http://ftp.parisc-linux.org/docs/PCXL_ers.ps>PA7100LC CPU ERS</a>
103: <li><a href=http://ftp.parisc-linux.org/docs/pcxl2_ers.ps>PA7300LC CPU ERS</a>
1.38 mickey 104: </ol>
105: <li><b>Processor Dependent Code/I/O Dependent Code Interface</b><br> <small>(selected chapters from "PA-RISC I/O Architecture Specification")</small>
106: <ol type=a>
1.58 mickey 107: <li><a href=http://ftp.parisc-linux.org/docs/pdc32.pdf>PDC 1.1</a>
108: <li><a href=http://ftp.parisc-linux.org/docs/iodc.pdf>IODC 1.1</a>
109: <li><a href=http://ftp.parisc-linux.org/docs/ver_nums.pdf>Version and Identification Number Allocation</a>
110: <li><a href=http://ftp.parisc-linux.org/docs/data_formats.pdf>Memory Data Formats 2.0</a>
111: <li><a href=http://ftp.parisc-linux.org/docs/pdc.pdf>PDC Procedures 2.0</a>
112: <li><a href=http://ftp.parisc-linux.org/docs/pdce.pdf>PDC Entry Points 2.0</a>
113: <li><a href=http://ftp.parisc-linux.org/docs/os_interface.pdf>OS Interface 2.0</a>
1.38 mickey 114: </ol>
1.39 miod 115: <li><b>Bus controllers/bridges/adaptors</b>
1.38 mickey 116: <ol type=a>
1.60 mickey 117: <li><a href=http://ftp.parisc-linux.org/docs/hardball_ers.pdf>ASP</a>
1.58 mickey 118: <li><a href=http://ftp.parisc-linux.org/docs/lasi_ers.ps>LASI Core Bus Adapter (including lan, scsi, serial, lpt controllers)</a>
119: <li><a href=http://ftp.parisc-linux.org/docs/dino_ers.ps>Dino PCI bridge</a>,
120: and <a href=http://ftp.parisc-linux.org/docs/Dino_3_1_Errata.html>Errata</a>
121: <li><a href=http://ftp.parisc-linux.org/docs/elroy_ers.ps>Elroy ERS (Edited for Open Source)</a>
122: <li>Astro <a href=http://ftp.parisc-linux.org/docs/astro_intro.ps>Overview</a>, <a href=http://ftp.parisc-linux.org/docs/astro_errors.ps>Error handling</a>,<a href=http://puffin.external.hp.com/docs/astro_ioc.ps>R2I Operations</a>, <a href=http://puffin.external.hp.com/docs/astro_regmap.ps>Registers Map</a>, <a href=http://puffin.external.hp.com/docs/astro_runway.ps>Runway Interface</a>, <a href=http://puffin.external.hp.com/docs/astro_sysmap.ps>System Mamory Map</a>
1.38 mickey 123: </ol>
1.58 mickey 124: <li><a href=http://ftp.parisc-linux.org/docs/sti.pdf>Stinger graphics</a>
125: <li><a href=http://www.lsilogic.com/techlib/techdocs/old_storage/770_2_0.pdf>NCR 53C700/710/720 SCSI I/O Processors</a>
1.40 mickey 126: <small>(the doc is actually for 770, which is claimed as compatible)</small>
127: <li>Intel <a href=http://developer.intel.com/design/network/datashts/290219.htm>i82596DX/SX</a> and <a href=http://developer.intel.com/design/network/datashts/290218.htm>i82596CA</a> Ethernet Controllers
1.38 mickey 128: </ol>
1.60 mickey 129: Or see more information at <a href=http://www.openpa.net/>OpenPA</a>.
1.38 mickey 130:
1.64 ! mickey 131: <hr>
! 132:
! 133: <h3><font color=#0000e0><strong>Building Cross-Tools</strong></font></h3>
1.15 mickey 134: <pre>
135: cd /usr/src
136: sudo make TARGET=hppa cross-tools
1.18 mickey 137: </pre>
138: </p>
139: <p>
140: cross-tools build process may fail in the libc stage, consider that's
141: all right, since libc support is not finished yet.
142: </p>
1.43 jufi 143: <a name="boot_lif"></a>
1.15 mickey 144: <h4>Build boot.lif file using cross-tools:</h4>
1.18 mickey 145: <p>
146: <pre>
1.15 mickey 147: cd /sys/arch/hppa/stand
148: make obj
1.26 todd 149: set cross=(/usr/cross/hppa/usr/bin)
1.32 mickey 150: make MACHINE=hppa MACHINE_ARCH=hppa \
1.56 mickey 151: "AS=$cross/as" "CC=$cross/cc" "CXX=$cross/c++" \
1.26 todd 152: "CPP=$cross/cpp" "LD=$cross/ld" \
153: "AR=$cross/ar" "STRIP=$cross/strip" \
154: "LORDER=$cross/lorder" "NM=$cross/nm" \
155: "RANLIB=$cross/ranlib" "SIZE=$cross/size"
1.15 mickey 156: </pre>
1.18 mickey 157: </p>
158: <p>
1.47 mickey 159: One will have a <a href=http://hppa.lucifier.net/#boot_lif><em>boot.lif</em></a>
1.28 todd 160: file to boot then in the obj-directory.
1.18 mickey 161: That image may include <em>diskless</em> kernel image if one was available
1.32 mickey 162: in the <em>sys/arch/hppa/compile/SHEPHERD_PIE/bsd</em>.
1.18 mickey 163: <br>
1.44 jufi 164: Kernel cross-build process is similar to the one for boot, consult
1.28 todd 165: <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=config&apropos=0&sektion=0
166: &manpath=OpenBSD+Current&format=html>config(8)</a>
167: and
168: <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=options&apropos=0&sektion=0&manpath=OpenBSD+Current&format=html>options(8)</a>
169: for kernel build options and configuration.
1.15 mickey 170: </p>
1.3 fn 171: <hr>
1.47 mickey 172: In order to use the <a href=http://hppa.lucifier.net/#boot_lif>boot.lif</a> files
1.28 todd 173: you must prepare your server and instruct your machine to boot off the network:
1.45 miod 174: <ol>
175: <li>Server setup</li><br>
176: <ul>
1.48 mickey 177: <li> For older machines (705, 7[1235]0, old 715)
178: <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=rbootd&apropos=0&sektion=0&manpath=OpenBSD+Current&format=html>rbootd</a> must be setup and started.<br>
1.45 miod 179: <ul>
180: <li><b>/etc/<a href=http://www.openbsd.org/cgi-bin/man.cgi?query=rbootd&apropos=0&sektion=0&manpath=OpenBSD+Current&format=html>rbootd</a>.conf</b>
181: contains a single line per machine you entered to boot from the server.
182: Each line contains the ethernet address of the client hppa machine, and
183: the filename to be loaded from the tftp server. For example:
1.28 todd 184: <pre>
185: 8:0:9:70:c4:11 <a href=#boot_lif>boot.lif</a> # 9000/720
186: 8:0:9:19:fb:a0 <a href=#boot_lif>boot.lif</a> # 9000/725
187: </pre>
1.45 miod 188: </li>
189: </ul>
190: </li>
1.48 mickey 191: <li>Recent machines (712, new 715, 725) won't look for rbootd at all, but require a
1.51 mickey 192: <b>bootp</b> setup.<br>
1.45 miod 193: <ul>
194: <li><b>/etc/<a href=http://www.openbsd.org/cgi-bin/man.cgi?query=bootptab&apropos=0&sektion=5&manpath=OpenBSD+Current&format=html>bootptab</a></b> contains an information block for each machine. For example:
195: <pre>
196: # 9000/715
1.49 miod 197: boron:\
1.45 miod 198: ha=0800095f5a6e:\
199: bf=boot.lif:\
200: hd=:\
201: ht=ethernet:\
1.52 miod 202: ip=10.0.1.143:\
1.53 mickey 203: rp=/usr/local/exports/boron/root:\
1.45 miod 204: sm=255.255.255.0:\
205: td=/tftpboot:
206: </pre>
207: </li>
1.48 mickey 208: <li>
209: Create directory /tftpboot and put the <a href=#boot_lif>boot.lif</a> in it.<br>
210: </li>
211: <li>
212: Write an entry for your hppa in the <b>/etc/ethers</b> file:<br>
213: <pre>
1.49 miod 214: 08:00:09:5f:5a:6e boron
1.48 mickey 215: </pre>
216: </li>
217: <li>
1.49 miod 218: Write an entry for 'boron' in the <b>/etc/hosts</b> file:<br>
1.48 mickey 219: <pre>
1.52 miod 220: 10.0.1.143 boron
1.48 mickey 221: </pre>
222: </li>
223: <li>
1.49 miod 224: Create directory /usr/local/exports/boron/root and put <a href=http://hppa.lucifier.net/root/dev/MAKEDEV>/dev/MAKEDEV</a>,
1.48 mickey 225: <a href=http://hppa.lucifier.net/root/sbin/init>/sbin/init</a>, <a href=http://hppa.lucifier.net/root/bin/ksh>/bin/ksh</a>
226: in their relative locations.
227: </li>
228: <li>
229: Write an entry in <b>/etc/exports</b> so the root directory gets exported to the client:
230: <pre>
1.49 miod 231: /usr/local/exports/boron/root boron
1.48 mickey 232: </pre>
233: </li>
234: <li>
235: Remember you will have to enable <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=bootpd&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>bootpd</a>
1.51 mickey 236: and <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=tftpd&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>tftpd</a>
237: in /etc/inetd.conf, and restart <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=inetd&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>inetd</a>.
238:
239: </li>
1.48 mickey 240: <li>
241: Also remember to enable <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=nfsd&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>nfs_server</a>
1.51 mickey 242: , <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=rarpd&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>rarpd</a>
243:
1.48 mickey 244: and <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=portmap&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>portmap</a>
245: in <a
246: href=http://www.openbsd.org/cgi-bin/man.cgi?query=rc.conf&apropos=0&sektion=8&manpath=OpenBSD+Current&format=html>/etc/rc.conf</a>.
247: </li>
248: </ul>
1.45 miod 249: </li>
250: <li>For further reading on server setup for network booting in general, see also: <a href=http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&apropos=0&sektion=0&manpath=OpenBSD+Current&format=html>diskless(8)</a>.</li>
251: </ul>
252: <li>Client Network Boot</li><br>
253: <ul>
254: <li>BOOT_ADMIN<br>
1.59 mickey 255: In order to get to the BOOT_ADMIN prompt, you must hit <em><esc></em> as the
1.28 todd 256: machine is coming up. Once it probes bootable devices, type 'a' for
257: the 'BOOT_ADMIN' prompt.
258: </li>
259: <li>network boot command <br>
260: Once at the 'BOOT_ADMIN' prompt, type:
261: <pre>
262: BOOT_ADMIN> boot lan isl
263: </pre>
264: ... and you are on your way to booting boot.lif!
265: </li>
1.45 miod 266: </ul>
1.28 todd 267: </ol>
268: <hr>
1.9 pauls 269: <a href=plat.html><img height=24 width=24 src=back.gif border=0 alt=OpenBSD></a>
1.1 deraadt 270: <a href=mailto:www@openbsd.org>www@openbsd.org</a>
1.3 fn 271: <br>
1.64 ! mickey 272: <small>$OpenBSD: hppa.html,v 1.63 2002/10/31 00:22:10 mickey Exp $</small>
1.3 fn 273:
274: </body>
275: </html>