Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: driver installation questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: driver installation questions



Wenhua --

I'm a newbie to MacOs X, MacOS X device driver
development and this mailing list. I'm going to write
a mass storage device driver for a SCSI disk device, I
plan to use the sample driver VendorSpecificType00 as
the start point. I've gone through many of documents
about driver development such as 'Writing an I/O Kit
Device Driver', 'Writing Drivers for Mass Storage
Devices', 'Hello I/O Kit: Creating a Device Driver
With Xcode' and some others, but I could not find a
place talking about driver installation (not the
driver deployment).

It might be good to know what type of things you need to do that the standard PDT 00 driver does not do today...That might help us guide you in the proper direction.

1. How should I install an I/O kit device driver? Is
copying enough?

For testing purposes, you should probably use:

sudo xcodebuild install DSTROOT=/
sudo touch /System/Library/Extensions

And then reboot. For installing on the end user system, there are several solutions to use. If you want to use Apple's Installer.app, you can use PackageMaker.app to make a package which Installer.app can install. I believe you might have to include a script of some sort to do the 'touch /System/Library/Extensions' part, since PackageMaker.app doesn't seem to know anything specific to kexts.

2. For SCSI device, what are the format of the value
of the keys 'Product Identification' and 'Vendor
Identification'? In SCSI specification, they are
defined as 8 bytes and 16 bytes, but the storage
vendors usually don't use all of them, they just use
the first several bytes with the remaining bytes
filled up with spaces (0x20) .

These fields are as defined in the SPC-2/SPC-3 specifications with spaces at the end of the fields truncated. For example if you had something like:

Vendor Identification: 'APPLE " it would become "APPLE" for matching (i.e. <string>APPLE</string> in the Info.plist).

You can verify this information in the IORegistry:

ioreg -lsw 0

And search for "Vendor Identification" and locate the one which corresponds with your device (There will be at least one other entry for the ATAPI Optical drive in the system).


Has more information which might be helpful.

-- Chris


------------------

6 Infinite Loop

M/S 306-2MS

Cupertino CA 95014

phone: (408) 974-4033

fax:   (408) 862-7577

email: email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Ata-scsi-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >driver installation questions (From: Wenhua Liu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.