release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > Main > SigmaTelScsi (r6)

Sigmatel Vendor SCSI Commands


Overview

This page documents the vendor specific SCSI commands used by Sigmatel in their SDK. This mostly applies to the STMP37xx/I.MX233 series but some of it can also apply to the STMP36xx series. The following devices are known to implement these commands:

Vendor Device Protocol
Creative Zen X-Fi2 6.0
Creative Zen X-Fi3 6.0
Sandisk Sansa Fuze+ 6.1

Protocol Overview

The protocol works as follows. All commands are sent as vendor specific SCSI commands. The Command Data Block (CDB) usually consists of 10 bytes. The first byte is always 0xC0 for read commands are 0xC1 for write commands. The second byte is the actually command. The third byte is usually a tag or a type or an ID. The following commands are known to exist:

Command Type Value
GET PROTOCOL VERSION Read 00
GET LOGICAL MEDIA INFO Read 02
GET LOGICAL TABLE Read 05
ALLOCATE LOGICAL MEDIA Write 06
ERASE LOGICAL MEDIA Write 07
GET LOGICAL DRIVER INFO Read 12
READ LOGICAL DRIVE SECTOR Read 13
SET LOGICAL DRIVE INFO Write 20
WRITE LOGICAL DRIVE SECTOR Write 23
ERASE LOGICAL DRIVE Write 2F
GET CHIP MAJOR REV ID Read 30
CHIP RESET Write 31
GET CHIP SERIAL NUMBER Read 32
GET ROM REV ID Read 37
GET JANUS STATUS Read 40
INITIALIZE JANUS Write 41
RESET TO RECOVERY Write 42
INITIALIZE DATA STORE Write 43
RESET TO UPDATER Write 44
GET DEVICE INFO Read 45

Get Protocol Version

CDB
Offset Length Value Comment
0 1 C0 Read
1 1 00 Command
2 14 00 Padding

Response
Offset Length Value Comment
0 1 xx Major version
1 1 yy Minor version

Note: we don't really know what is minor and the major version and we don't know if it's really useful.

Get Chip Major Revision ID

CDB
Offset Length Value Comment
0 1 C0 Read
1 1 30 Command
2 14 00 Padding

Response
Offset Length Value Comment
0 2 xxxx Revision (big-endian)

Get ROM Revision ID

CDB
Offset Length Value Comment
0 1 C0 Read
1 1 37 Command
2 14 00 Padding

Response
Offset Length Value Comment
0 2 xxxx Revision (big-endian)

-- AmauryPouly - 11 Dec 2012
Edit | Attach | Print version | History: r12 | r7 < r6 < r5 < r4 | Backlinks | View wiki text | More topic actions...
r6 - 17 Dec 2012 - 14:52:25 - AmauryPouly
Copyright by the contributing authors.