va-scancopyright 2002, marchany unit 2 – the boot prom – openboot randy marchany va tech...

12
va-scan Copyright 2002, Marchany Unit 2 – The Unit 2 – The Boot Prom – Boot Prom – OpenBoot OpenBoot Randy Marchany VA Tech Computing Center

Upload: candace-price

Post on 22-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

Unit 2 – The Boot Unit 2 – The Boot Prom – OpenBootProm – OpenBoot

Randy Marchany

VA Tech Computing Center

Page 2: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

Introduction

OpenBoot is the firmware that controls the boot process of a Sun workstation.

It contains diagnostic commands that can help you determine HW configurations.

It is similar to the PC-BIOS of Intel platforms.

OpenBoot controls the monitor. It has no printscreen capability.

Page 3: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot

OpenBoot commands can be entered directly from the system console or from a serial terminal connected to the TTYA or TTYB port on a Sparc workstation.

Press STOP-A to get in OpenBoot mode if using the monitor.

Press BREAK (CTRL-]) then ‘send break’ if connected through a telnet session.

Page 4: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot

Initial output is a banner that describes the type of SPARC processor, OpenBoot version, memory size, Ethernet address.

Can be set up to boot automatically or wait for additional commands– type b (boot), c (continue) or n (new command mode)

– b, c options go to Restricted Monitor mode– N selects full OpenBoot mode, prompt goes from > to

OK.– Use the help command to get a full list of commands

Page 5: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Keyboard Commands

Action Effect

STOP-A Abort the system

STOP Bypass POST

STOP-D Enter diagnostic mode

STOP-N Reset NVRAM to defaults

Go Resume operation

Sync Synchronize disk data

Page 6: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot – Device Aliases

Sun hardware names are mysterious at best. You can create aliases for these device names. Common commands

– .attributes – list device attributes– .properties – newer version of .attributes– cd – change directory– printenv – displays environment variables– setenv – set the environment variables– show-disks – list disk devices attached to system

Page 7: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot

The “auto-boot?” environment variable tells OpenBoot to automatically boot the system after any failure if it’s set to TRUE.

Otherwise, the system will remain at the OK prompt until you manually enter the boot command.

OpenBoot builds a map of all devices connects to the system during boot. This is called a device tree.

Page 8: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Device Trees

The device tree describes all elements of the computer configuration.

Properties: characteristics of the device like its address

Methods: the commands you can issue that involve the device

Self-test: example of a method Children/parent: describes the HW unit above

and below the device

Page 9: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Device Tree

Top of the tree is the SPARC processor. Next level: HW devices present on the

motherboard – memory, bus (sbus or PCI), serial ports, keyboard, mouse, etc.

Next level: controller card attached to the bus (SCSI or PCI). The bus can have multiple controllers

Page 10: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Device Tree

Page 11: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Device Tree

/sbus@1f,0/esp@0,40000/sd@3,0:a /sbus@1f,0 - the Sbus address /esp@0,40000 - the external controller

address /sd@3,0:a - the unit attached to the

controller Labels, sd, sd0, sd1 are usually SCSI disks. Use an alias instead of this long name.

Page 12: Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center

va-scan Copyright 2002, Marchany

OpenBoot Device Aliases

nvalias command creates a device alias.– Syntax: nvalias alias-name real-device-name– Example: nvalias bigdisk

/pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f

List all aliases with the .properties command devalias command does the same thing but it’s

temporary. Stays in effect until the next reset. Nvalias is the permanent command.