Sun Microsystems X1150A To Set Driver Parameters Using a ce.conf File, # grep ce /etc/pathtoinst

Page 74

The man pages for prtconf(1M) and driver.conf(4) include additional details. The next procedure shows an example of setting parameters in a ce.conf file.

To Set Driver Parameters Using a ce.conf File

1.Obtain the hardware path names for the ce devices in the device tree.

a.Check the /etc/driver_aliases file to identify the name associated with a particular device:

#grep ce /etc/driver_aliases ce "pci108e,abba"

b.Locate the path names and the associated instance numbers are in the

/etc/path_to_inst file.

#grep ce /etc/path_to_inst

"/pci@9,700000/network@2" 0 "ce" "/pci@8,700000/pci@5/network@0" 3 "ce" "/pci@8,700000/pci@5/network@1" 4 "ce"

In the previous example:

The first part within the double quotes specifies the hardware node name in the device tree.

The number not enclosed in quotes is the instance number (shown in bold italics).

The last part in double quotes is the driver name.

In the device path name, the last component after the last / character and before the @ character is the device name.

The path name before the last component is the parent name.

The number after the final @ character within quotes is referred to as unit-address.

To identify a PCI device unambiguously in the ce.conf file, use the name, parent name, and the unit-address for the device. Refer to the pci(4) man page for more information about the PCI device specification.

In the first line in the previous example:

parent = “pci@9

unit-address = “2”

In the second line in the previous example:

parent = “pci@5

52 Sun GigaSwift Ethernet Adapter Installation and User’s Guide • February 2003

Image 74
Contents Sun GigaSwift Ethernet Adapter Installation User’s Guide Please Recycle Regulatory Compliance Statements FCC Class a NoticeICES-003 Class a Notice Avis NMB-003, Classe a Bsmi Class a Notice Page Declaration of Conformity European UnionPage Declaration of Conformity Page Contents Network Configuration Configuring Driver ParametersDiagnostic Software and Troubleshooting Issues Configuring VLANsSpecifications IndexPage Figures Page Tables Performance Sepcifications Preface How This Book Is OrganizedUsing Unix Commands Typographic ConventionsRelated Documentation Accessing Sun Documentation OnlineShell Prompts Sun Welcomes Your Comments Product Overview Hardware OverviewLED Displays Link is in Full Duplex modeSun GigaSwift Ethernet MMF Adapter 1Front Panel Display LEDs for the MMF AdapterSun GigaSwift Ethernet UTP Adapter 2Sun GigaSwift Ethernet UTP Adapter2Front Panel Display LEDs for the UTP Adapter Hardware and Software Requirements Patch RequirementsProduct Features Key Protocols and InterfacesDiagnostic Support Page Installing the Driver Software Become superuser1Files and Directories on the CD-ROM Select the packages you want to install Menu similar to the following displays# showrev -p grep Verifying PatchesPatch version should be -07 or greater Patch version should be -13 or greater Patch version should be -05 or greaterSave the filler panel screw for Step Installing the Adapter Without Dynamic ReconfigurationTo Install the Adapter 1Connecting the Fiber Optic Cable To Verify the Installation 2Cat-5 Twisted-Pair CableOk cd /pci@1f,0/pci@1/network@4 List the network devices on your systemOk show-nets View the.properties file for a list of device properties Ok .propertiesOk setenv local-mac-address? true Setting the local-mac-addressPropertyPhy-typewill have its value assigned as follows Ok boot -r Rebooting the SystemOk setenv boot-device /pci@1f,2000/pci@1/network@4 States and conditions should be Installing the Adapter With Dynamic ReconfigurationTo Install an Adapter in a Dynamic Reconfiguration System # cfgadm# cfgadm -c disconnect sysctrl03 # cfgadm -v -c configure sysctrl#slot## cfgadm -c disconnect sysctrl#slot# # drvconfig devlinks disks ports tapes Configure the adapter and slotReconfigure the devices on the adapter Connect the adapter and slotPage Configuring the Network Host Files Use the ifconfig command to setup the adapter’s ce interface# ifconfig ce0 plumb ipaddress up Export/root/clientname To Set Up a GigaSwift Ethernet Port on a Diskless Client# cat /etc/hosts Edit the hosts in the diskless client’s root directory Network Configuration # cd /cdrom/cdrom0/GigaSwiftEthernet/Packages # ls SUNWce # grep clientname /etc/bootparamsFind the root directory of the client system # shutdown -i0 -g0 -y Use the shutdown command to display the OpenBoot ok promptShut down and halt the client system # pkginfo grep SUNWce Proceed with the Solaris operating environment installationOk boot /pci@1f,4000/network@4speed=100,duplex=full Booting Over the GigaSwift Ethernet Network Ok boot device-pathspeed=s,duplex=d,link-clock=c,promiscuous1Device Link Parameters 2link-clockCapabilities for Link Up# boot netspeed=1000,duplex=auto,link-clock=auto # boot netspeed=100,duplex=full# boot netspeed=1000,duplex=full,link-clock=master Page Configuring Driver Parameters GigaSwift Ethernet Device Driver ParametersDriver Parameter Values and Definitions 1ce Driver Parameter, Status, and DescriptionsOperational Mode Parameters Operational Mode Parameters2Operational Mode Parameters Flow Control Parameters3provides flow control keywords and describes their function 3Read-Write Flow Control Keyword DescriptionsInterpacket Gap Parameters 4Forced Mode ParameterGigabit Link Clock Mastership Controls 5Parameters Defining enable-ipg0and ipg0 7RX Blanking Register for Alias Read Interrupt Parameters7describes the receive interrupt blanking values Random Early Drop Parameters 8RX Random Early Detecting 8-Bit VectorsPCI Bus Interface Parameters 9PCI Bus Interface ParametersSetting ce Driver Parameters Setting Parameters Using the ndd UtilityDevice remains selected until you change the selection To Specify Device Instances for the ndd UtilityUse the instance number to select the device # ndd -set /dev/ce instance instance## ndd -set /dev/ce parameter value To modify a parameter value, use the -setoptionNdd utility then prompts you for the name of the parameter # ndd /dev/ce parameterSetting the Autonegotiation Mode # ndd -set /dev/ce adv-autoneg-cap Setting Parameters Using the ce.conf FileSet the adv-autoneg-capparameter to # grep ce /etc/pathtoinst To Set Driver Parameters Using a ce.conf FileSecond line in the previous example Save the ce.conf file Usability Enhancements to the DriverThird line in the previous example # ndd -set /dev/hme instance# ndd -get /dev/hme link-status GigaSwift Ethernet Driver Operating StatisticsThen you had to get the link status # kstat cen grep linkup10Read-Only ce Device Capabilities 11Read-Only Link Partner Capabilities Reporting the Link Partner Capabilities11describes the read-only link partner capabilities 12describes the netstat -k transmit and receive parameters 12Transmit and Receive Parameters12Transmit and Receive Parameters # kstat Ce0 Code Example 4-1Output from kstat Command# netstat -k ce0 # kstat ce0 # kstat ce0 Use the kstat command to discover link partner capabilities # kstat ce0 grep lpUse the kstat command to discover link settings # kstat ce0 grep linkPage Configuring VLANs An Overview of VLANs1shows an example network that uses VLANs Configuring VLANs To Configure Static VLANs Vlan logical PPA = 1000 * VID + Device PPA# ifconfig ce123000 plumb up # ifconfig ce224000 plumb up # ifconfig -aPage Connectors Table A-1SC Connector Link Characteristics Ieee P802.3zTable A-3Performance Sepcifications Performance SpecificationsTable A-2Cat-5 Connector Link Characteristics Table A-5Power Requirements Physical CharacteristicsPower Requirements Page Diagnostic Software Troubleshooting Issues SunVTS Diagnostic SoftwareReset the system Using the OpenBoot Prom FCode Self- TestRunning the Ethernet FCode Self-Test Diagnostic Shut down the systemOk test /pci@1f,0/pci@1/network@4 Ok setenv diag-switch? falseType show-netsto display the list of devices Reset and reboot the system Troubleshooting IssuesSet the auto-boot?configuration parameter to true Ok setenv auto-boot? trueType the following to apply and save your changes Adv-pause-capTable B-1Troubleshooting the GigaSwift Ethernet Adapter Failure to Configure GigaSwift Ethernet InstanceNon-Specific Issues Add the following lines to the /etc/system file Problem with DR Attach on Sun Enterprise PlatformsReboot system Set drdetachsafelist1=ce set hswpsuspendsafelist1=cePage Symbols Index