Hai, Just I am sharing some of the information about SunOs Driver Installation.

Written By Udhaya Kumar.V

9 August 2002

Contact: [email protected]

URL    : www.udhaya.com

 

 


Driver Compilation & Installation in SunOS 5.8

 

Hai, I am used some of the commands for SunOs Stream Driver Manipulation and Installation.

 

How will find the sunOS Kernel Type (32-Bit / 64-Bit OS Kernel)?

 

#isainfo -v

64 bit - sparcv9 application.

>

32 bit - sparc applications.

 

Note: if System Running in the 64-bit operating system, it's give this output.

 

#isainfo -v

32 bit - sparc applications.

 

Note: if System Running in the 32-bit operating system, it's give this output.

 

#isainfo -v

32 bit i386 applications.

 

Note: In the x86 system, it's give this output.

 

How will compile the programme For 32-bit or 64 bit ?

 

If 32-bit Kernel

cc -O -o mx12n mx12n.c

 

If 64-bit Kernel

cc -xarch=v9 -O -o mx12n mx12n.c

 

Compilation Environment in SunOs

 

__sparc     => This is include SPARC v7, SPARC v8 and SPARC v9

 

__sparcv8   => This is 32-Bit SPARC V8.

 

__sparcv9   => This is 64-Bit SPARC V9.

 

__i386      => This is intel 386, Pentium 386 and 486

 

 

Where we want to copy the Driver files?

 

For 32-bit Kernel, Driver File copied to.

/usr/kernel/drv

 

For 64-bit Kernel, Driver File copied to.

/usr/kernel/drv/sparcv9

 

Where we want to copy the Driver Configuration File?

 

All the configuration files should be in.

/usr/kernel/drv/

 

Every driver should have one Configuration file, File name is Driver Name and extension is “.conf

 

For example:

 

Driver Name is “ttype” then configuration file name is “ttype.conf”

 

 

some of the commands, i am used for my driver manipulation

 

add_drv - Add the device driver to system>

rem_drv - Remove the Device Driver From System<

modload - Load a Kernel Module

>

modunload - Unload the Module

prtconf - Print the System Configuration<

drvconfig - For Configure the /device Directory

modinfo - Display the information about Loded Kernell Module

autopush - Configured List of the modules to be Pusheed.

crash - Examins System Memory Images.

strchg - Prtints STREAMS trace message

strconf- Changes or Queries on Stream Configuration

strerr - Logs Streams Error

strace - Display the message from Specific Stream LLog

isalist - List the Native Instruction Set>

Debug Tool-Device Driver

adb

kadb

crash

 

 

Hosted by www.Geocities.ws

1