From Wiki-UX.info

Wiki-UX / Extensible Firmware Interface / How to read EFI entries when using map -r command
Jump to: navigation, search

How to read EFI entries when using map -r command

Abstract

This article explains how to interprete the output of the map -r command on a EFI shell.

Contents


EFI block devices description

When you issue the map -r command, an output similar to the following will be displayed:

PciDev
                            |
                            | PCIFtn
                  PciBus    | |       Addr(Target Id)
                     |      | |         |
                     V      V V         V
blk16 : Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun16,Lun0)

PciFtn (PCI function) and Lun# are always zero (0) in this output. Addr(Target Id) becomes EFI Pun# and is displayed as a hexadecimal number.

HP-UX ioscan output description

When comparing the EFI output to the HP-UX ioscan command output, you can find what is similar. Note these other example:

# ioscan -fne
                PciDev
                   | PCIFtn
                   | |(Addr(Target Id) % 16) <-> HP-UX tgt ID
            PciBus | | |(Addr(Target Id) / 16) <-> HP-UX lun ID
                 | | | | |
                 V V V V V
disk       49  0/0/2/0.6.1   sdisk     CLAIMED     DEVICE       HP      Virtual Disk
                            /dev/dsk/c0t6d1   /dev/rdsk/c0t6d1
        Acpi(PNP0A03,0)/Pci(2|0)/Scsi(Pun16,Lun0)
                     ^      ^ ^         ^
                     |      | |         |
                  PciBus    | PCIFtn   Addr(Target Id)
                            |
			  PciDev

In this example, exp1 / exp2 represents the quotient from exp1 divided by exp2 (integer division), and exp1 % exp2 finds modulo of exp1 divided by exp2 (that is, finds the remainder of an integer division). Remember that "Addr(Target Id)" is in hexadecimal notation (0x16 = 22), so the resulting formula will be:

HP-UX tgt ID = 22 % 16 = 6
HP-UX lun ID = 22 / 16 = 1

The resulting DSF as specified above will be c0t6d1:

HBA instance number
 | HP-UX tgt ID
 | | HP-UX lun ID
 | | |
 V V V
c0t6d1

Authors

This page was last modified on 23 July 2010, at 02:51. This page has been accessed 2,485 times.