Openboot 3.X Command Reference Manual

Openboot 3.X Command Reference Manual

Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, , CA 94303-4900 U.S.A Part No: 805-4436 October 1998, Revision A Copyright 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California 94303-4900 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, OpenBoot, AnswerBook, and Solaris are trademarks, registered trademarks, or service marks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. TM The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. RESTRICTED RIGHTS: Use, duplication, or disclosure by the U.S. Government is subject to restrictions of FAR 52.227-14(g)(2)(6/87) and FAR 52.227-19(6/87), or DFAR 252.227-7015(b)(6/95) and DFAR 227.7202-3(a). DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Copyright 1998 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, Californie 94303 Etats-Unis. Tous droits réservés. Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Des parties de ce produit pourront être dérivées des systèmes Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque déposée aux Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd. Sun, Sun Microsystems, le logo Sun, OpenBoot, AnswerBook, et Solaris] sont des marques de fabrique ou des marques déposées, ou marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. TM L’interface d’utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou graphique pour l’industrie de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun. CETTE PUBLICATION EST FOURNIE "EN L’ETAT" ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y COMPRIS DES GARANTIES CONCERNANT LA VALEUR MARCHANDE, L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU. Please Recycle Contents Preface xi 1. Overview 1 Features of OpenBoot 1 Plug-in Device Drivers 1 FCode Interpreter 2 Device Tree 2 Programmable User Interface 2 The User Interface 2 The Device Tree 3 Device Path Names, Addresses, and Arguments 3 Device Aliases 5 Displaying the Device Tree 6 Getting Help 9 A Caution About Using Some OpenBoot Commands 10 2. Booting and Testing Your System 11 Booting Your System 11 Booting for the Casual User 12 Booting for the Expert User 13 Running Diagnostics 16 Contents iii Testing the SCSI Bus 17 Testing Installed Devices 17 Testing the Diskette Drive 18 Testing Memory 18 Testing the Clock 18 Testing the Network Controller 19 Monitoring the Network 19 Displaying System Information 20 Resetting the System 21 3. Setting Configuration Variables 23 Displaying and Changing Variable Settings 25 Setting Security Variables 27 Command Security 28 Full Security 29 Changing the Power-on Banner 29 Input and Output Control 31 Selecting Input and Output Device Options 31 Serial Port Characteristics 32 Selecting Boot Options 32 Controlling Power-on Self-Test (POST) 33 Using nvramrc 34 Editing the Contents of the Script 35 Activating the Script 37 4. Using Forth Tools 39 Forth Commands 39 Data Types 40 Using Numbers 41 The Stack 42 iv ♦ October 1998, Revision A Displaying Stack Contents 42 The Stack Diagram 43 Manipulating the Stack 46 Creating Custom Definitions 48 Using Arithmetic Functions 49 Single-Precision Integer Arithmetic 49 Double Number Arithmetic 51 Data Type Conversion 52 Address Arithmetic 53 Accessing Memory 55 Virtual Memory 55 Device Registers 60 Using Defining Words 60 Searching the Dictionary 62 Compiling Data Into the Dictionary 65 Displaying Numbers 66 Changing the Number Base 67 Controlling Text Input and Output 68 Redirecting Input and Output 72 Command Line Editor 74 Conditional Flags 76 Control Commands 78 The if-else-then Structure 78 The case Statement 79 The begin Loop 80 The do Loop 81 Additional Control Commands 83 5. Loading and Executing Programs 85 Contents v Using boot 86 Using dl to Load Forth Text Files Over Serial Port A 87 Using load 88 Using dlbin to Load FCode or Binary Executables Over Serial Port A 89 Using dload to Load From Ethernet 90 Forth Programs 91 FCode Programs 91 Binary Executables 91 Using ?go 92 6. Debugging 93 Using the Forth Language Decompiler 93 Using the Disassembler 94 Displaying Registers 95 SPARC Registers 95 Breakpoints 98 The Forth Source-Level Debugger 100 Using patch and (patch) 101 Using ftrace 103 A. Setting Up a TIP Connection 105 Common Problems With TIP 107 B. Building a Bootable Floppy Disk 109 C. Troubleshooting Guide 111 Power-on Initialization Sequence 111 Emergency Procedures 112 Preserving Data After a System Crash 113 Common Failures 113 Blank Screen —No Output 114 System Boots From the Wrong Device 114 vi ♦ October 1998, Revision A System Will Not Boot From Ethernet 115 System Will Not Boot From Disk 116 SCSI Problems 116 Setting the Console to a Specific Monitor 116 D. Sun Ultra 5/10 UPA/PCI System 119 PCI-Based System 119 pcia and pcib PCI Busses 121 E. Sun Ultra 30 UPA/PCI System 123 PCI-Based System 123 Generic Names 125 pcia and pcib PCI Busses 126 F. Sun Ultra 60 UPA/PCI System 127 PCI-Based System 127 Generic Names 129 pcia and pcib PCI Busses 130 G. Sun Ultra 250 UPA/PCI System 131 Banner Command Output 131 Generic Names 131 SCSI Internal Busses 133 .properties for a PCI Device 133 .speed Command 134 Probing of Slots For PCI Busses 135 Probe SCSI Command 136 H. Sun Ultra 450 UPA/PCI System 137 Banner Command Output 137 Generic Names 137 SCSI Internal Busses 139 .properties for a PCI Device 140 Contents vii .speed Command 141 Probing of Slots For PCI Busses 141 Probe SCSI Command 143 I. Forth Word Reference 145 Stack Item Notation 145 Commands for Browsing the Device Tree 148 Common Options for the boot Command 149 System Information Display Commands 149 Viewing or Changing Configuration Variables 150 NVRAMRC Editor Commands 151 NVRAM Script Editor Keystroke Commands 151 Stack Manipulation Commands 153 Single-Precision Arithmetic Functions 154 Bit-wise Logical Operators 156 Double Number Arithmetic Functions 157 32-Bit Data Type Conversion Functions 157 64-Bit Data Type Conversion Functions 158 Address Arithmetic Functions 159 64-Bit Address Arithmetic Functions 161 Memory Access Commands 161 64-Bit Memory Access Functions 163 Memory Mapping Commands 164 Defining Words 164 Dictionary Searching Commands 165 Dictionary Compilation Commands 166 Assembly Language Programming 168 Basic Number Display 169 Changing the Number Base 169 viii ♦ October 1998, Revision A Numeric Output Word Primitives 170 Controlling Text Input 171 Displaying Text Output 171 Formatted Output 172 Manipulating Text Strings 173 I/O Redirection Commands 174 ASCII Constants 174 Command Line Editor Keystroke Commands 174 Command Completion Keystroke Commands 176

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    211 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us