Annotation of www/hppa.html, Revision 1.84
1.74 miod 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2: "http://www.w3.org/TR/html4/loose.dtd">
1.3 fn 3: <html>
1.1 deraadt 4: <head>
5: <title>OpenBSD/hppa</title>
1.74 miod 6: <link rev="made" href="mailto:www@openbsd.org">
7: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
1.3 fn 8: <meta name="resource-type" content="document">
9: <meta name="description" content="the OpenBSD/hppa page">
10: <meta name="keywords" content="openbsd,hppa">
11: <meta name="distribution" content="global">
1.77 miod 12: <meta name="copyright" content="This document copyright 1996-2003 by OpenBSD.">
1.3 fn 13: </head>
14:
1.74 miod 15: <body bgcolor="#ffffff" text="#000000" link="#23238e">
1.65 mickey 16: <a href="index.html"><img alt="[OpenBSD]" height="30" width="141" src="images/smalltitle.gif" border="0"></a>
1.74 miod 17: <p>
18: <h2><font color="#e00000">OpenBSD/hppa</font></h2>
19:
20: <hr>
21:
22: <p>
23: OpenBSD/hppa runs on a large set of the 32-bit Hewlett Packard Precision
24: Architecture workstations and servers (HP PA-RISC).
25: </p>
26:
27: <p>
28: A mailing list dedicated to the OpenBSD/hppa port is available at
29: <u><font color="#23238e">hppa@openbsd.org</font></u>.
30: To join the OpenBSD/hppa mailing list, send a message body of <b>"subscribe
31: hppa"</b> to <a href="mailto:majordomo@openbsd.org">majordomo@openbsd.org</a>.
32: Please be sure to check our <a href="mail.html">mailing list policy</a> before
33: subscribing.
34: </p>
35:
36: <p>
37: The current port maintainer is
38: <a href="mailto:mickey@openbsd.org">Michael Shalayeff</a>.
39: Others are definitely welcome to contribute!
40: </p>
41:
42: <a href="#toc"></a>
43: <h3><font color="#0000e0"><i>Table of contents</i></font></h3>
44: <p>
45: <ul>
1.82 jufi 46: <li><a href="#history">History of the port</a>
1.74 miod 47: <li><a href="#status">Current status</a>
48: <li><a href="#projects">Project list</a>
49: <li><a href="#hardware">Supported hardware list</a>
50: <li><a href="#hwdocs">Hardware documentation</a>
51: <li><a href="#install">Getting and installing OpenBSD/hppa</a>
52: <li><a href="#netboot">Netbooting OpenBSD/hppa</a>
53: <li><a href="#cross">Cross-compiling kernels</a>
54: </ul>
55: </p>
1.3 fn 56:
1.66 jufi 57: <hr>
1.74 miod 58: <a name="history"></a>
59: <h3><font color="#0000e0"><strong>History:</strong></font></h3>
1.30 deraadt 60:
1.64 mickey 61: <p>
1.67 deraadt 62: This project was started in those days when the only
1.38 mickey 63: open source operating systems for HP PA-RISC computers were
1.66 jufi 64: <a href="http://www.cs.utah.edu/projects/flux/lites/html">Lites</a> and
1.68 jufi 65: <a href="http://www.mklinux.org">MkLinux</a>.
1.38 mickey 66: These two sources were a major supply of information and
67: code for initial development of the OpenBSD/hppa port.
1.67 deraadt 68: <a href="http://www.cs.utah.edu/~mike/hpbsd/hpbsd.html">HPBSD</a>
1.38 mickey 69: is encumbered by HP proprietary code and USL licensing and is
70: not publicly available.
71: One of the major direct benefits from previous porting efforts
1.74 miod 72: (besides the code, of course) was support for HP PA-RISC in GCC and
73: binutils, which allowed quick building of a cross-tools environment
74: for development.
75: </p>
76:
1.38 mickey 77: <p>
1.74 miod 78: Later on, Hewlett-Packard decided to sponsor a
79: <a href="http://www.parisc-linux.org/">Linux</a> port to the PA-RISC
80: family, which actually resulted in some proprietary documentation
81: being released, even though their target was a different class of 9000
82: machines back then.
83: </p>
84:
85: <hr>
86: <a name="status"></a>
87: <h3><font color="#0000e0"><strong>Current status:</strong></font></h3>
88:
1.38 mickey 89: <p>
1.74 miod 90: Although there have been no official releases of this port yet,
91: the supported systems boot to multi-user and full snapshots are made
92: periodically.
93: </p>
1.64 mickey 94:
1.74 miod 95: <hr>
96: <a name="projects"></a>
97: <h3><font color="#0000e0"><strong>Projects (in no particular order):
98: </strong></font></h3>
1.64 mickey 99:
1.74 miod 100: <p>
1.16 mickey 101: <ul>
1.74 miod 102: <li>Improve overall stability
1.84 ! mickey 103: <li>Support the NCR53C700 SCSI controller
1.81 miod 104: <li>Support the NCR53C720 SCSI controller
1.84 ! mickey 105: <li>Installation procedures
1.74 miod 106: <li>Support keyboard and mouse (PS/2 and HIL) natively
107: <li>Improve port-specific documentation
108: <li>X11 support
1.64 mickey 109: </ul>
1.74 miod 110: </p>
111:
112: <hr>
113: <a name="hardware"></a>
114: <h3><font color="#0000e0"><strong>Supported hardware:</strong></font></h3>
115:
116: <p>
117: <h4>Supported models</h4>
118: </p>
119:
120: <p>
1.64 mickey 121: <ul>
1.74 miod 122: <li>PA7100-based: 715/33, 715/50, 715/75, 725/50, 725/75, 735/100, 755/100
123: <li>PA7100LC-based: 712, 715/64, 715/80, 715/100, 715/100XC, 725/64, 725/100
124: <li>PA7150-based: 735/125, 755/125
125: <li>PA7200-based: J200, J210, J210XC, C100, C110
1.16 mickey 126: </ul>
1.74 miod 127: </p>
128:
129: <p>
130: <h4>Supported peripherals</h4>
131: </p>
132:
133: <p>
134: The list of supported hardware below is not meant to be exhaustive.
135: Hardware is needed for developers, to further help development and testing.
136: Please see our <a href="want.html">"Wanted List"</a>
1.66 jufi 137: (contact <a href="mailto:mickey@openbsd.org">mickey</a>).
1.74 miod 138: </p>
139:
140: <p>
141: <ul>
142: <li><strong>
143: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=io&sektion=4&arch=hppa">Bus/IO
144: controllers</a></strong>
145: <ul>
146: <li>Phantom PseudoBC GSC+ Port
147: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=phantomas&sektion=4&arch=hppa">phantomas</a>)
148: <li>GSC
149: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=gsc&sektion=4&arch=hppa">gsc</a>):
150: LASI
151: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lasi&sektion=4&arch=hppa">lasi</a>),
152: ASP
153: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=asp&sektion=4&arch=hppa">asp</a>)
154: </ul>
155: <li><strong>SGC/GSC graphics</strong>
156: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sti&sektion=4">sti</a>)
157: <ul>
158: <li>Artist (as found on 712)
159: <li>CRX-8, CRX-24, HCRX-8, HCRX-24
160: </ul>
161: <li><strong>Serial ports</strong>
162: <ul>
163: <li>On-board ns16550 or similar
164: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=com&sektion=4">com</a>)
165: </ul>
166: <li><strong>Parallel ports</strong>
167: <ul>
168: <li>On-board parallel port
169: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lpt&sektion=4">lpt</a>)
170: </ul>
1.80 mickey 171: <li><strong>SCSI controllers</strong>
172: <ul>
173: <li>NCR53C710 SCSI I/O Processors
174: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=osiop&sektion=4">osiop</a>)
175: </ul>
1.74 miod 176: <li><strong>Ethernet</strong>
177: <ul>
178: <li>On-board Intel i82596 ethernet
179: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ie&sektion=4&arch=hppa">ie</a>)
180: </ul>
181: <li><strong>Miscellaneous devices</strong>
182: <ul>
183: <li>Battery-backed real time clock
184: <li>Keyboard console (via PDC support)
185: </ul>
186: </ul>
187: </p>
188:
189: <p>
190: <h4>Unsupported models</h4>
191: </p>
192:
193: <p>
194: The following systems may eventually work:
195: <ul>
196: <li>PA7000-based machines: 705, 710, 720, 730, 750
197: <li>PA2.0 systems (in 32-bit mode)
1.78 mickey 198: <li>HP 9000 836, 844, 845, 846
1.74 miod 199: <li>HP 9000 E23, E25, E35, E45, E55
200: <li>HP 3000 908, 918, 928, 938
201: <li>Hitachi VQ200, VQ210, and some other non-HP workstations
202: <li>Precision Book from RDI Computer Corporation (well, unlikely)
203: <li>HP VME and VXI single board systems (requires VME at least)
204: </ul>
205: </p>
206:
207: <p>
1.79 mickey 208: These systems will, probably, never be supported by this port since
209: they are of 1.0 PA-RISC architecture, which is substantially
210: inferiour to the 1.1:
1.78 mickey 211: <ul>
212: <li>HP 9000 600, 635, 645
213: <li>HP 9000 800, 808, 815, 822, 825, 832, 834, 835, 840, 842, 845, 850, 852, 855, 860, 865, 870, 890
214: <li>HP 9000 900
215: </ul>
216: </p>
217:
218: <p>
1.74 miod 219: <h4>Unsupported peripherals</h4>
220: </p>
221:
222: <p>
223: This list is not meant to be exhaustive either, but sums up the most commonly
224: encountered devices on hppa machines.
225: <ul>
226: <li><strong>Bus/IO controllers</strong>
227: <ul>
228: <li>EISA bus
229: <li>PCI bus
230: </ul>
231: <li><strong>SCSI controllers</strong>
232: <ul>
233: <li>NCR53C720 SCSI I/O Processors
234: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=siop&sektion=4">siop</a>)
235: </ul>
236: <li><strong>Input devices</strong>
237: <ul>
238: <li>PS/2 keyboard and mouse
239: <li>HIL keyboard and mouse
240: </ul>
241: <li><strong>On-board floppy controller</strong>
242: <li><strong>On-board audio</strong>
243: </ul>
244: </p>
245:
246: <hr>
247: <a name="hwdocs"></a>
248: <h3><font color="#0000e0"><strong>Hardware documentation:</strong></font></h3>
1.64 mickey 249:
1.74 miod 250: <p><small>
251: Most of the following documents have been released by Hewlett-Packard for
252: the <a href="http://www.parisc-linux.org/">PA-RISC Linux</a> project.
253: </small></p>
1.16 mickey 254:
1.74 miod 255: <p>
1.38 mickey 256: <ol type=1>
1.58 mickey 257: <li>HP PA-RISC CPUs
1.38 mickey 258: <ol type=a>
1.66 jufi 259: <li><a href="http://ftp.parisc-linux.org/docs/PCXL_ers.ps">PA7100LC CPU ERS</a>
260: <li><a href="http://ftp.parisc-linux.org/docs/pcxl2_ers.ps">PA7300LC CPU ERS</a>
1.38 mickey 261: </ol>
1.74 miod 262: <li>Processor Dependent Code/I/O Dependent Code Interface<br> <small>(selected chapters from "PA-RISC I/O Architecture Specification")</small>
1.38 mickey 263: <ol type=a>
1.66 jufi 264: <li><a href="http://ftp.parisc-linux.org/docs/pdc32.pdf">PDC 1.1</a>
265: <li><a href="http://ftp.parisc-linux.org/docs/iodc.pdf">IODC 1.1</a>
266: <li><a href="http://ftp.parisc-linux.org/docs/ver_nums.pdf">Version and Identification Number Allocation</a>
267: <li><a href="http://ftp.parisc-linux.org/docs/data_formats.pdf">Memory Data Formats 2.0</a>
268: <li><a href="http://ftp.parisc-linux.org/docs/pdc.pdf">PDC Procedures 2.0</a>
269: <li><a href="http://ftp.parisc-linux.org/docs/pdce.pdf">PDC Entry Points 2.0</a>
270: <li><a href="http://ftp.parisc-linux.org/docs/os_interface.pdf">OS Interface 2.0</a>
1.38 mickey 271: </ol>
1.74 miod 272: <li>Bus controllers/bridges/adaptors
1.38 mickey 273: <ol type=a>
1.66 jufi 274: <li><a href="http://ftp.parisc-linux.org/docs/hardball_ers.pdf">ASP</a>
275: <li><a href="http://ftp.parisc-linux.org/docs/lasi_ers.ps">LASI Core Bus Adapter (including lan, scsi, serial, lpt controllers)</a>
276: <li><a href="http://ftp.parisc-linux.org/docs/dino_ers.ps">Dino PCI bridge</a>,
277: and <a href="http://ftp.parisc-linux.org/docs/Dino_3_1_Errata.html">Errata</a>
278: <li><a href="http://ftp.parisc-linux.org/docs/elroy_ers.ps">Elroy ERS (Edited for Open Source)</a>
279: <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 280: </ol>
1.74 miod 281: <li><a href="http://ftp.parisc-linux.org/docs/sti.pdf">Stinger
282: graphics</a>
1.83 mickey 283: <li><a href="http://www.lsilogic.com/techlib/techdocs/storage_stand_prod/SCSIControllers/770.pdf">NCR
1.74 miod 284: 53C700/710/720 SCSI I/O Processors</a>
1.40 mickey 285: <small>(the doc is actually for 770, which is claimed as compatible)</small>
1.74 miod 286: <li>Intel
287: <a href="http://developer.intel.com/design/network/datashts/290219.htm">i82596DX/SX</a>
288: and
289: <a href="http://developer.intel.com/design/network/datashts/290218.htm">i82596CA</a>
290: Ethernet Controllers
1.38 mickey 291: </ol>
1.74 miod 292: </p>
293:
294: <p>
295: Of course, no hppa page, be it OpenBSD or not, could pretend to be serious
296: without linking to the essential <a href="http://www.openpa.net/">OpenPA</a>
297: reference website.
298: </p>
1.38 mickey 299:
1.64 mickey 300: <hr>
1.74 miod 301: <a name="install"></a>
302: <h3><font color="#0000e0">
303: <strong>Getting and installing OpenBSD/hppa:</strong>
304: </font></h3>
1.64 mickey 305:
1.74 miod 306: <!-- not yet kiddies
1.18 mickey 307: <p>
1.74 miod 308: The latest supported OpenBSD/hppa release is
309: <a href="32.html">OpenBSD 3.2</a>.
310: Here are the
311: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/3.2/hppa/INSTALL.hppa">
312: OpenBSD/hppa 3.2 installation instructions
313: </a>.
314: </p>
315: -->
1.66 jufi 316:
1.18 mickey 317: <p>
1.74 miod 318: Snapshots are made available from time to time, in
319: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/snapshots/hppa">this location</a>
320: as well as in a few
321: <a href="ftp.html">mirrors</a>.
322: Here are the
323: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/snapshots/hppa/INSTALL.hppa">
324: OpenBSD/hppa snapshot installation instructions
325: </a> as well.
1.15 mickey 326: </p>
1.74 miod 327:
1.3 fn 328: <hr>
1.75 miod 329: <a name="netboot"></a>
1.74 miod 330: <h3><font color="#0000e0"><strong>Netbooting OpenBSD/hppa:</strong></font></h3>
331:
332: <p>
333: The <tt>boot.lif</tt> file contains both a bootloader and a kernel.
334: To boot it from the network, a server machine has to be setup so as to
335: let the hppa machine retrieve it:
1.45 miod 336: <ol>
1.66 jufi 337: <li>Server setup
1.45 miod 338: <ul>
1.74 miod 339: <li>For older machines (705, 7[1235]0, old 715)
340: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rbootd&sektion=8">rbootd</a>
341: must be setup and started.
1.45 miod 342: <ul>
1.74 miod 343: <li><tt>/etc/rbootd.conf</tt> contains a single line per machine
344: needing to boot from the server. Each line contains the ethernet
345: address of the client hppa machine, and the filename to be loaded from
346: the tftp server (relative to <tt>/usr/mdec/rbootd</tt>).
347: For example:
1.28 todd 348: <pre>
1.66 jufi 349: 8:0:9:70:c4:11 <a href="#boot_lif">boot.lif</a> # 9000/720
350: 8:0:9:19:fb:a0 <a href="#boot_lif">boot.lif</a> # 9000/725
1.28 todd 351: </pre>
1.45 miod 352: </li>
353: </ul>
354: </li>
1.74 miod 355: <li>Recent machines (712, newer 715, 725) will not look for rbootd at all,
356: but instead require a <b>bootp</b> setup.
1.45 miod 357: <ul>
1.74 miod 358: <li><tt>/etc/<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bootptab&sektion=5">bootptab</a></tt>
359: contains an information block for each machine. For example:
1.45 miod 360: <pre>
361: # 9000/715
1.49 miod 362: boron:\
1.45 miod 363: ha=0800095f5a6e:\
364: bf=boot.lif:\
365: hd=:\
366: ht=ethernet:\
1.52 miod 367: ip=10.0.1.143:\
1.53 mickey 368: rp=/usr/local/exports/boron/root:\
1.45 miod 369: sm=255.255.255.0:\
370: td=/tftpboot:
371: </pre>
372: </li>
1.48 mickey 373: <li>
1.74 miod 374: Create directory <tt>/tftpboot</tt> and put the
1.76 mickey 375: <tt><a href="#boot_lif">boot.lif</a></tt> file in it.<br>
1.48 mickey 376: </li>
377: <li>
1.74 miod 378: Write an entry for the hppa in <tt>/etc/ethers</tt>:
1.48 mickey 379: <pre>
1.49 miod 380: 08:00:09:5f:5a:6e boron
1.76 mickey 381: </pre>
1.48 mickey 382: </li>
383: <li>
1.74 miod 384: Write another entry for it in <tt>/etc/hosts</tt>:
1.48 mickey 385: <pre>
1.52 miod 386: 10.0.1.143 boron
1.76 mickey 387: </pre>
1.48 mickey 388: </li>
389: <li>
1.74 miod 390: Create directory <tt>/usr/local/exports/boron/root</tt> and unpack
391: at least <tt>base32.tgz</tt> and <tt>etc32.tgz</tt> in it.
392: </li>
393: <li>
394: After the sets are unpacked, create device nodes in <tt>dev/</tt> by
395: running <tt>MAKEDEV</tt> and alter the configuration files in
396: <tt>/etc</tt> (refer to the installation notes for details).
1.48 mickey 397: </li>
398: <li>
1.74 miod 399: Finally, add an entry to <tt>/etc/exports</tt> in order to export
400: the root directory to the client:
1.48 mickey 401: <pre>
1.49 miod 402: /usr/local/exports/boron/root boron
1.76 mickey 403: </pre>
1.74 miod 404: You might want to also create and export a swap area.
1.48 mickey 405: </li>
406: <li>
1.74 miod 407: The last step is to enable the necessary daemons for all of this to
408: work.
409: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bootpd&sektion=8">bootpd</a>
410: and
411: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=tftpd&sektion=8">tftpd</a>
412: are usually run from
413: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=inetd&sektion=8">inetd</a>,
414: so <tt>/etc/inetd.conf</tt> has to be modified and
415: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=inetd&sektion=8">inetd</a>
416: restarted.
1.51 mickey 417: </li>
1.76 mickey 418: <li>
1.74 miod 419: For proper NFS server operation,
420: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=portmap&sektion=8">portmap</a>,
421: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=mountd&sektion=8">mountd</a>
422: and
423: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=nfsd&sektion=8">nfsd</a>
424: need to be enabled, as well as
425: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rarpd&sektion=8">rarpd</a>
426: and
427: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rpc.bootparamsd&sektion=8">rpc.bootparamsd</a>
428: in
429: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rc.conf&sektion=5">rc.conf</a>.
1.48 mickey 430: </li>
431: </ul>
1.45 miod 432: </li>
1.74 miod 433: <li>For further reading on server setup for network booting in general,
434: please refer to the
435: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&sektion=8">diskless(8)</a>
436: manual page.
437: </li>
1.45 miod 438: </ul>
1.66 jufi 439: <p>
440: <li>Client Network Boot
1.45 miod 441: <ul>
442: <li>BOOT_ADMIN<br>
1.74 miod 443: In order to get to the BOOT_ADMIN prompt, hit the <em><esc></em>
444: key as the machine is coming up. Once it has probed bootable devices,
445: a menu will be displayed; if the prompt is <i>not</i> <b>BOOT_ADMIN</b>,
446: it will be necessary to type <i>``a''</i> to access it.
1.28 todd 447: </li>
1.74 miod 448: <li>Network boot command<br>
449: Once at the 'BOOT_ADMIN' prompt, the command
1.28 todd 450: <pre>
451: BOOT_ADMIN> boot lan isl
452: </pre>
1.74 miod 453: will proceed to the bootstrap of boot.lif.
1.66 jufi 454: </ul>
1.74 miod 455: </li>
1.28 todd 456: </ol>
1.74 miod 457: </p>
458:
1.28 todd 459: <hr>
1.75 miod 460: <a name="cross"></a>
1.74 miod 461: <h3><font color="#0000e0"><strong>Cross-compiling kernels:</strong></font></h3>
462:
463: <p>
464: The OpenBSD source tree provides some cross-compilation facilities.
465: First, a set of hppa cross tools (cross compiler, cross binutils, etc) must
466: be created:
467: <pre>
468: # cd /usr/src
469: # make TARGET=hppa cross-includes cross-binutils cross-gcc
470: </pre>
471: This will build and install the various utilities in <tt>/usr/cross/hppa</tt>.
472: Note that this step must be run as root, or using
473: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sudo&sektion=8">sudo</a>.
474: </p>
475:
476: <a name="boot_lif"></a>
477: <h4>Building boot.lif using cross-tools</h4>
478:
479: <p>
480: <ul>
481: <li>Building <i>mkboot</i>
482: <p>
483: mkboot is the only specific host tool needed for the boot.lif build.
484: <pre>
485: $ cd /usr/src/sys/arch/hppa/stand/mkboot
1.75 miod 486: $ env MACHINE=hppa make obj
487: $ env MACHINE=hppa make depend all
1.74 miod 488: </pre>
489: </p></li>
490: <li>Building the kernel
491: <p>
492: The kernel can be configured as usual, and then built using the cross-tools.
493: <pre>
494: $ cd /usr/src/sys/arch/hppa/conf
495: $ config GENERIC
496: $ cd /usr/src/sys/arch/hppa/compile/GENERIC
497: $ export CROSS=/usr/cross/hppa/usr/bin
498: $ env MACHINE=hppa MACHINE_ARCH=hppa \
499: AR=$CROSS/ar AS=$CROSS/as CC=$CROSS/cc CPP=$CROSS/cpp LD=$CROSS/ld \
500: NM=$CROSS/nm RANLIB=$CROSS/ranlib SIZE=$CROSS/size STRIP=$CROSS/strip \
501: make depend bsd
502: </pre>
503: </p></li>
504: <li>Build boot.lif
505: <p>With the kernel compiled, the boot loader can now be compiled and the
506: lif file generated.
507: <pre>
508: $ cd /usr/src/sys/arch/hppa/stand
509: $ export CROSS=/usr/cross/hppa/usr/bin
1.75 miod 510: $ env MACHINE=hppa make SKIPDIR=mkboot obj
1.74 miod 511: $ env MACHINE=hppa MACHINE_ARCH=hppa \
512: AR=$CROSS/ar AS=$CROSS/as CC=$CROSS/cc CPP=$CROSS/cpp LD=$CROSS/ld \
513: NM=$CROSS/nm RANLIB=$CROSS/ranlib SIZE=$CROSS/size STRIP=$CROSS/strip \
1.75 miod 514: make SKIPDIR=mkboot depend all
1.74 miod 515: </pre>
516: </p></li>
517: </ul>
518: The final boot.lif file stands in
1.77 miod 519: <tt>/usr/src/sys/arch/hppa/stand/boot/obj/boot.lif</tt>
1.74 miod 520: </p>
521:
522: <hr>
523: <a href="plat.html">
524: <img height="24" width="24" src="back.gif" border="0" alt="Supported platforms">
1.76 mickey 525: </a>
1.3 fn 526: <br>
1.74 miod 527: <small><a href="mailto:www@openbsd.org">www@openbsd.org</a></small>
528: <br>
1.84 ! mickey 529: <small>$OpenBSD: hppa.html,v 1.83 2003/01/23 19:59:20 mickey Exp $</small>
1.3 fn 530: </body>
531: </html>