[BACK]Return to hppa.html CVS log [TXT][DIR] Up to [local] / www

Annotation of www/hppa.html, Revision 1.89

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>Improve port-specific documentation
1.86      mickey    107:   <li>Support booting from tape and cdrom
                    108:   <li>Support for 7300LC and 8x00 cpus
                    109:   <li>Support for 7000 cpus (the "original snakes" machines)
                    110:   <li>HP-UX emulation
                    111:   <li>PARISC/Linux emulation
                    112:   <li>Shared libraries
1.74      miod      113:   <li>X11 support
1.64      mickey    114: </ul>
1.74      miod      115: </p>
                    116:
                    117: <hr>
                    118: <a name="hardware"></a>
                    119: <h3><font color="#0000e0"><strong>Supported hardware:</strong></font></h3>
                    120:
                    121: <p>
                    122: <h4>Supported models</h4>
                    123: </p>
                    124:
                    125: <p>
1.64      mickey    126: <ul>
1.74      miod      127:   <li>PA7100-based: 715/33, 715/50, 715/75, 725/50, 725/75, 735/100, 755/100
                    128:   <li>PA7100LC-based: 712, 715/64, 715/80, 715/100, 715/100XC, 725/64, 725/100
                    129:   <li>PA7150-based: 735/125, 755/125
                    130:   <li>PA7200-based: J200, J210, J210XC, C100, C110
1.16      mickey    131: </ul>
1.74      miod      132: </p>
                    133:
                    134: <p>
                    135: <h4>Supported peripherals</h4>
                    136: </p>
                    137:
                    138: <p>
                    139: The list of supported hardware below is not meant to be exhaustive.
                    140: Hardware is needed for developers, to further help development and testing.
                    141: Please see our <a href="want.html">"Wanted List"</a>
1.66      jufi      142: (contact <a href="mailto:mickey@openbsd.org">mickey</a>).
1.74      miod      143: </p>
                    144:
                    145: <p>
                    146: <ul>
                    147: <li><strong>
                    148: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=io&amp;sektion=4&amp;arch=hppa">Bus/IO
                    149: controllers</a></strong>
                    150:   <ul>
                    151:   <li>Phantom PseudoBC GSC+ Port
                    152: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=phantomas&amp;sektion=4&amp;arch=hppa">phantomas</a>)
                    153:   <li>GSC
                    154: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=gsc&amp;sektion=4&amp;arch=hppa">gsc</a>):
                    155:   LASI
                    156: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lasi&amp;sektion=4&amp;arch=hppa">lasi</a>),
                    157:   ASP
                    158: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=asp&amp;sektion=4&amp;arch=hppa">asp</a>)
                    159:   </ul>
                    160: <li><strong>SGC/GSC graphics</strong>
                    161: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sti&amp;sektion=4">sti</a>)
                    162:   <ul>
                    163:   <li>Artist (as found on 712)
                    164:   <li>CRX-8, CRX-24, HCRX-8, HCRX-24
                    165:   </ul>
                    166: <li><strong>Serial ports</strong>
                    167:   <ul>
1.86      mickey    168:   <li>On-board ns16550 and compatibles
1.74      miod      169: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=com&amp;sektion=4">com</a>)
                    170:   </ul>
                    171: <li><strong>Parallel ports</strong>
                    172:   <ul>
                    173:   <li>On-board parallel port
                    174: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=lpt&amp;sektion=4">lpt</a>)
                    175:   </ul>
1.80      mickey    176: <li><strong>SCSI controllers</strong>
                    177:   <ul>
                    178:   <li>NCR53C710 SCSI I/O Processors
                    179: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=osiop&amp;sektion=4">osiop</a>)
                    180:   </ul>
1.74      miod      181: <li><strong>Ethernet</strong>
                    182:   <ul>
                    183:   <li>On-board Intel i82596 ethernet
                    184: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ie&amp;sektion=4&amp;arch=hppa">ie</a>)
                    185:   </ul>
1.85      jason     186: <li><strong>Audio devices</strong>
                    187:   <ul>
                    188:   <li>On-board harmony CS4215/AD1849
                    189: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=harmony&amp;sektion=4&amp;arch=hppa">harmony</a>)
                    190:   </ul>
1.88      miod      191: <li><strong>Input devices</strong>
                    192:   <ul>
                    193:   <li>HIL keyboards
                    194: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=hilkbd&amp;sektion=4">hilkbd</a>)
1.89    ! miod      195:   <li>HIL mice and graphics tablet
        !           196: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=hilms&amp;sektion=4">hilms</a>)
1.88      miod      197:   <li>PS/2 keyboards
                    198: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=gsckbd&amp;sektion=4&amp;arch=hppa">gsckbd</a>)
                    199:   </ul>
1.74      miod      200: <li><strong>Miscellaneous devices</strong>
                    201:   <ul>
                    202:   <li>Battery-backed real time clock
                    203:   </ul>
                    204: </ul>
                    205: </p>
                    206:
                    207: <p>
                    208: <h4>Unsupported models</h4>
                    209: </p>
                    210:
                    211: <p>
                    212: The following systems may eventually work:
                    213: <ul>
                    214:   <li>PA7000-based machines: 705, 710, 720, 730, 750
                    215:   <li>PA2.0 systems (in 32-bit mode)
1.78      mickey    216:   <li>HP 9000 836, 844, 845, 846
1.74      miod      217:   <li>HP 9000 E23, E25, E35, E45, E55
                    218:   <li>HP 3000 908, 918, 928, 938
                    219:   <li>Hitachi VQ200, VQ210, and some other non-HP workstations
                    220:   <li>Precision Book from RDI Computer Corporation (well, unlikely)
                    221:   <li>HP VME and VXI single board systems (requires VME at least)
                    222: </ul>
                    223: </p>
                    224:
                    225: <p>
1.79      mickey    226: These systems will, probably, never be supported by this port since
                    227: they are of 1.0 PA-RISC architecture, which is substantially
                    228: inferiour to the 1.1:
1.78      mickey    229: <ul>
                    230:   <li>HP 9000 600, 635, 645
                    231:   <li>HP 9000 800, 808, 815, 822, 825, 832, 834, 835, 840, 842, 845, 850, 852, 855, 860, 865, 870, 890
                    232:   <li>HP 9000 900
                    233: </ul>
                    234: </p>
                    235:
                    236: <p>
1.74      miod      237: <h4>Unsupported peripherals</h4>
                    238: </p>
                    239:
                    240: <p>
                    241: This list is not meant to be exhaustive either, but sums up the most commonly
                    242: encountered devices on hppa machines.
                    243: <ul>
                    244: <li><strong>Bus/IO controllers</strong>
                    245:   <ul>
                    246:   <li>EISA bus
                    247:   <li>PCI bus
                    248:   </ul>
                    249: <li><strong>SCSI controllers</strong>
                    250:   <ul>
                    251:   <li>NCR53C720 SCSI I/O Processors
                    252: (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=siop&amp;sektion=4">siop</a>)
                    253:   </ul>
                    254: <li><strong>Input devices</strong>
                    255:   <ul>
1.88      miod      256:   <li>PS/2 mouse
1.74      miod      257:   </ul>
                    258: <li><strong>On-board floppy controller</strong>
                    259: </ul>
                    260: </p>
                    261:
                    262: <hr>
                    263: <a name="hwdocs"></a>
                    264: <h3><font color="#0000e0"><strong>Hardware documentation:</strong></font></h3>
1.64      mickey    265:
1.74      miod      266: <p><small>
                    267: Most of the following documents have been released by Hewlett-Packard for
                    268: the <a href="http://www.parisc-linux.org/">PA-RISC Linux</a> project.
                    269: </small></p>
1.16      mickey    270:
1.74      miod      271: <p>
1.38      mickey    272: <ol type=1>
1.58      mickey    273: <li>HP PA-RISC CPUs
1.38      mickey    274:        <ol type=a>
1.66      jufi      275: <li><a href="http://ftp.parisc-linux.org/docs/PCXL_ers.ps">PA7100LC CPU ERS</a>
                    276: <li><a href="http://ftp.parisc-linux.org/docs/pcxl2_ers.ps">PA7300LC CPU ERS</a>
1.38      mickey    277:        </ol>
1.74      miod      278: <li>Processor Dependent Code/I/O Dependent Code Interface<br> <small>(selected chapters from "PA-RISC I/O Architecture Specification")</small>
1.38      mickey    279:        <ol type=a>
1.66      jufi      280: <li><a href="http://ftp.parisc-linux.org/docs/pdc32.pdf">PDC 1.1</a>
                    281: <li><a href="http://ftp.parisc-linux.org/docs/iodc.pdf">IODC 1.1</a>
                    282: <li><a href="http://ftp.parisc-linux.org/docs/ver_nums.pdf">Version and Identification Number Allocation</a>
                    283: <li><a href="http://ftp.parisc-linux.org/docs/data_formats.pdf">Memory Data Formats 2.0</a>
                    284: <li><a href="http://ftp.parisc-linux.org/docs/pdc.pdf">PDC Procedures 2.0</a>
                    285: <li><a href="http://ftp.parisc-linux.org/docs/pdce.pdf">PDC Entry Points 2.0</a>
                    286: <li><a href="http://ftp.parisc-linux.org/docs/os_interface.pdf">OS Interface 2.0</a>
1.38      mickey    287:        </ol>
1.74      miod      288: <li>Bus controllers/bridges/adaptors
1.38      mickey    289:        <ol type=a>
1.66      jufi      290: <li><a href="http://ftp.parisc-linux.org/docs/hardball_ers.pdf">ASP</a>
                    291: <li><a href="http://ftp.parisc-linux.org/docs/lasi_ers.ps">LASI Core Bus Adapter (including lan, scsi, serial, lpt controllers)</a>
                    292: <li><a href="http://ftp.parisc-linux.org/docs/dino_ers.ps">Dino PCI bridge</a>,
                    293: and <a href="http://ftp.parisc-linux.org/docs/Dino_3_1_Errata.html">Errata</a>
                    294: <li><a href="http://ftp.parisc-linux.org/docs/elroy_ers.ps">Elroy ERS (Edited for Open Source)</a>
                    295: <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    296:        </ol>
1.74      miod      297: <li><a href="http://ftp.parisc-linux.org/docs/sti.pdf">Stinger
                    298: graphics</a>
1.83      mickey    299: <li><a href="http://www.lsilogic.com/techlib/techdocs/storage_stand_prod/SCSIControllers/770.pdf">NCR
1.74      miod      300: 53C700/710/720 SCSI I/O Processors</a>
1.40      mickey    301:     <small>(the doc is actually for 770, which is claimed as compatible)</small>
1.74      miod      302: <li>Intel
                    303: <a href="http://developer.intel.com/design/network/datashts/290219.htm">i82596DX/SX</a>
                    304: and
                    305: <a href="http://developer.intel.com/design/network/datashts/290218.htm">i82596CA</a>
                    306: Ethernet Controllers
1.38      mickey    307: </ol>
1.74      miod      308: </p>
                    309:
                    310: <p>
                    311: Of course, no hppa page, be it OpenBSD or not, could pretend to be serious
                    312: without linking to the essential <a href="http://www.openpa.net/">OpenPA</a>
                    313: reference website.
                    314: </p>
1.38      mickey    315:
1.64      mickey    316: <hr>
1.74      miod      317: <a name="install"></a>
                    318: <h3><font color="#0000e0">
                    319: <strong>Getting and installing OpenBSD/hppa:</strong>
                    320: </font></h3>
1.64      mickey    321:
1.74      miod      322: <!-- not yet kiddies
1.18      mickey    323: <p>
1.74      miod      324: The latest supported OpenBSD/hppa release is
                    325: <a href="32.html">OpenBSD 3.2</a>.
                    326: Here are the
                    327: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/3.2/hppa/INSTALL.hppa">
                    328: OpenBSD/hppa 3.2 installation instructions
                    329: </a>.
                    330: </p>
                    331: -->
1.66      jufi      332:
1.18      mickey    333: <p>
1.74      miod      334: Snapshots are made available from time to time, in
                    335: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/snapshots/hppa">this location</a>
                    336: as well as in a few
                    337: <a href="ftp.html">mirrors</a>.
                    338: Here are the
                    339: <a href="ftp://ftp.OpenBSD.org/pub/OpenBSD/snapshots/hppa/INSTALL.hppa">
                    340: OpenBSD/hppa snapshot installation instructions
                    341: </a> as well.
1.15      mickey    342: </p>
1.74      miod      343:
1.3       fn        344: <hr>
1.75      miod      345: <a name="netboot"></a>
1.74      miod      346: <h3><font color="#0000e0"><strong>Netbooting OpenBSD/hppa:</strong></font></h3>
                    347:
                    348: <p>
                    349: The <tt>boot.lif</tt> file contains both a bootloader and a kernel.
                    350: To boot it from the network, a server machine has to be setup so as to
                    351: let the hppa machine retrieve it:
1.45      miod      352: <ol>
1.66      jufi      353:   <li>Server setup
1.45      miod      354:     <ul>
1.74      miod      355:     <li>For older machines (705, 7[1235]0, old 715)
                    356:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rbootd&amp;sektion=8">rbootd</a>
                    357:        must be setup and started.
1.45      miod      358:       <ul>
1.74      miod      359:       <li><tt>/etc/rbootd.conf</tt> contains a single line per machine
                    360:       needing to boot from the server. Each line contains the ethernet
                    361:       address of the client hppa machine, and the filename to be loaded from
                    362:       the tftp server (relative to <tt>/usr/mdec/rbootd</tt>).
                    363:       For example:
1.28      todd      364:        <pre>
1.66      jufi      365:        8:0:9:70:c4:11    <a href="#boot_lif">boot.lif</a>    # 9000/720
                    366:        8:0:9:19:fb:a0    <a href="#boot_lif">boot.lif</a>    # 9000/725
1.28      todd      367:        </pre>
1.45      miod      368:       </li>
                    369:       </ul>
                    370:     </li>
1.74      miod      371:     <li>Recent machines (712, newer 715, 725) will not look for rbootd at all,
                    372:     but instead require a <b>bootp</b> setup.
1.45      miod      373:       <ul>
1.74      miod      374:       <li><tt>/etc/<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bootptab&amp;sektion=5">bootptab</a></tt>
                    375:       contains an information block for each machine.  For example:
1.45      miod      376:        <pre>
                    377:        # 9000/715
1.49      miod      378:        boron:\
1.45      miod      379:                ha=0800095f5a6e:\
                    380:                bf=boot.lif:\
                    381:                hd=:\
                    382:                ht=ethernet:\
1.52      miod      383:                ip=10.0.1.143:\
1.53      mickey    384:                rp=/usr/local/exports/boron/root:\
1.45      miod      385:                sm=255.255.255.0:\
                    386:                td=/tftpboot:
                    387:        </pre>
                    388:       </li>
1.48      mickey    389:        <li>
1.74      miod      390:        Create directory <tt>/tftpboot</tt> and put the
1.76      mickey    391:        <tt><a href="#boot_lif">boot.lif</a></tt> file in it.<br>
1.48      mickey    392:        </li>
                    393:        <li>
1.74      miod      394:        Write an entry for the hppa in <tt>/etc/ethers</tt>:
1.48      mickey    395:        <pre>
1.49      miod      396:        08:00:09:5f:5a:6e       boron
1.76      mickey    397:        </pre>
1.48      mickey    398:        </li>
                    399:        <li>
1.74      miod      400:        Write another entry for it in <tt>/etc/hosts</tt>:
1.48      mickey    401:        <pre>
1.52      miod      402:        10.0.1.143      boron
1.76      mickey    403:        </pre>
1.48      mickey    404:        </li>
                    405:        <li>
1.74      miod      406:        Create directory <tt>/usr/local/exports/boron/root</tt> and unpack
                    407:        at least <tt>base32.tgz</tt> and <tt>etc32.tgz</tt> in it.
                    408:        </li>
                    409:        <li>
                    410:        After the sets are unpacked, create device nodes in <tt>dev/</tt> by
                    411:        running <tt>MAKEDEV</tt> and alter the configuration files in
                    412:        <tt>/etc</tt> (refer to the installation notes for details).
1.48      mickey    413:        </li>
                    414:        <li>
1.74      miod      415:        Finally, add an entry to <tt>/etc/exports</tt> in order to export
                    416:        the root directory to the client:
1.48      mickey    417:        <pre>
1.49      miod      418:        /usr/local/exports/boron/root boron
1.76      mickey    419:        </pre>
1.74      miod      420:        You might want to also create and export a swap area.
1.48      mickey    421:        </li>
                    422:        <li>
1.74      miod      423:        The last step is to enable the necessary daemons for all of this to
                    424:        work.
                    425:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=bootpd&amp;sektion=8">bootpd</a>
                    426:        and
                    427:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=tftpd&amp;sektion=8">tftpd</a>
                    428:        are usually run from
                    429:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=inetd&amp;sektion=8">inetd</a>,
                    430:        so <tt>/etc/inetd.conf</tt> has to be modified and
                    431:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=inetd&amp;sektion=8">inetd</a>
                    432:        restarted.
1.51      mickey    433:        </li>
1.76      mickey    434:        <li>
1.74      miod      435:        For proper NFS server operation,
                    436:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=portmap&amp;sektion=8">portmap</a>,
                    437:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=mountd&amp;sektion=8">mountd</a>
                    438:        and
                    439:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=nfsd&amp;sektion=8">nfsd</a>
                    440:        need to be enabled, as well as
                    441:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rarpd&amp;sektion=8">rarpd</a>
                    442:        and
                    443:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rpc.bootparamsd&amp;sektion=8">rpc.bootparamsd</a>
                    444:        in
                    445:        <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=rc.conf&amp;sektion=5">rc.conf</a>.
1.48      mickey    446:        </li>
                    447:        </ul>
1.45      miod      448:     </li>
1.74      miod      449:     <li>For further reading on server setup for network booting in general,
                    450:     please refer to the
                    451:     <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=diskless&amp;sektion=8">diskless(8)</a>
                    452:     manual page.
                    453:     </li>
1.45      miod      454:     </ul>
1.66      jufi      455:  <p>
                    456:   <li>Client Network Boot
1.45      miod      457:   <ul>
                    458:     <li>BOOT_ADMIN<br>
1.74      miod      459:        In order to get to the BOOT_ADMIN prompt, hit the <em>&lt;esc&gt;</em>
                    460:        key as the machine is coming up. Once it has probed bootable devices,
                    461:        a menu will be displayed; if the prompt is <i>not</i> <b>BOOT_ADMIN</b>,
                    462:        it will be necessary to type <i>``a''</i> to access it.
1.28      todd      463:     </li>
1.74      miod      464:     <li>Network boot command<br>
                    465:        Once at the 'BOOT_ADMIN' prompt, the command
1.28      todd      466: <pre>
                    467:        BOOT_ADMIN> boot lan isl
                    468: </pre>
1.74      miod      469:         will proceed to the bootstrap of boot.lif.
1.66      jufi      470:   </ul>
1.74      miod      471:   </li>
1.28      todd      472: </ol>
1.74      miod      473: </p>
                    474:
1.28      todd      475: <hr>
1.75      miod      476: <a name="cross"></a>
1.74      miod      477: <h3><font color="#0000e0"><strong>Cross-compiling kernels:</strong></font></h3>
                    478:
                    479: <p>
                    480: The OpenBSD source tree provides some cross-compilation facilities.
                    481: First, a set of hppa cross tools (cross compiler, cross binutils, etc) must
                    482: be created:
                    483: <pre>
                    484: # cd /usr/src
                    485: # make TARGET=hppa cross-includes cross-binutils cross-gcc
                    486: </pre>
                    487: This will build and install the various utilities in <tt>/usr/cross/hppa</tt>.
                    488: Note that this step must be run as root, or using
                    489: <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sudo&amp;sektion=8">sudo</a>.
                    490: </p>
                    491:
                    492: <a name="boot_lif"></a>
                    493: <h4>Building boot.lif using cross-tools</h4>
                    494:
                    495: <p>
                    496: <ul>
                    497:   <li>Building <i>mkboot</i>
                    498:   <p>
                    499:   mkboot is the only specific host tool needed for the boot.lif build.
                    500:   <pre>
                    501: $ cd /usr/src/sys/arch/hppa/stand/mkboot
1.75      miod      502: $ env MACHINE=hppa make obj
                    503: $ env MACHINE=hppa make depend all
1.74      miod      504:   </pre>
                    505:   </p></li>
                    506:   <li>Building the kernel
                    507:   <p>
                    508:   The kernel can be configured as usual, and then built using the cross-tools.
                    509:   <pre>
                    510: $ cd /usr/src/sys/arch/hppa/conf
                    511: $ config GENERIC
                    512: $ cd /usr/src/sys/arch/hppa/compile/GENERIC
                    513: $ export CROSS=/usr/cross/hppa/usr/bin
                    514: $ env MACHINE=hppa MACHINE_ARCH=hppa \
                    515:   AR=$CROSS/ar AS=$CROSS/as CC=$CROSS/cc CPP=$CROSS/cpp LD=$CROSS/ld \
                    516:   NM=$CROSS/nm RANLIB=$CROSS/ranlib SIZE=$CROSS/size STRIP=$CROSS/strip \
                    517:   make depend bsd
                    518:   </pre>
                    519:   </p></li>
                    520:   <li>Build boot.lif
                    521:   <p>With the kernel compiled, the boot loader can now be compiled and the
                    522:   lif file generated.
                    523:   <pre>
                    524: $ cd /usr/src/sys/arch/hppa/stand
                    525: $ export CROSS=/usr/cross/hppa/usr/bin
1.75      miod      526: $ env MACHINE=hppa make SKIPDIR=mkboot obj
1.74      miod      527: $ env MACHINE=hppa MACHINE_ARCH=hppa \
                    528:   AR=$CROSS/ar AS=$CROSS/as CC=$CROSS/cc CPP=$CROSS/cpp LD=$CROSS/ld \
                    529:   NM=$CROSS/nm RANLIB=$CROSS/ranlib SIZE=$CROSS/size STRIP=$CROSS/strip \
1.75      miod      530:   make SKIPDIR=mkboot depend all
1.74      miod      531:   </pre>
                    532:   </p></li>
                    533: </ul>
                    534: The final boot.lif file stands in
1.77      miod      535: <tt>/usr/src/sys/arch/hppa/stand/boot/obj/boot.lif</tt>
1.74      miod      536: </p>
                    537:
                    538: <hr>
                    539: <a href="plat.html">
                    540: <img height="24" width="24" src="back.gif" border="0" alt="Supported platforms">
1.76      mickey    541: </a>
1.3       fn        542: <br>
1.74      miod      543: <small><a href="mailto:www@openbsd.org">www@openbsd.org</a></small>
                    544: <br>
1.89    ! miod      545: <small>$OpenBSD: hppa.html,v 1.88 2003/02/11 20:21:27 miod Exp $</small>
1.3       fn        546: </body>
                    547: </html>