Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I2aa402d09a482d9f559dece13f1acf75a658c4da
|
|
Don't use colors since the terminal doesn't support it. Also packing is broken
on MinGW so use #pragma pack when compiling for windows, this is also supported
by MSCV.
Change-Id: I635649d52ed5f2e0af46cb9ca2ec325955b2ddb2
|
|
Split the ugly firmware read/write into a API function and a much simplified code.
Also the code can now report progress.
Change-Id: I3f998eaf0c067c6da42b1d2dd9c5a5bf43c6915d
|
|
No code modification code, just moving code around.
Change-Id: I30744d3994aa7540f4b5b158f31b51959d5d8586
|
|
Sanitize the whole library by hiding most of the horrible details of the
implementation. This means that all logical/drive/table attributes are exported
in structures that are internally filled by higher-level API functions. This makes
the code much more readable and prepares for a split between scsitool and the stmp
scsi library.
Change-Id: Id85d450b25cf99cd7c0896c6fc35bcd00babe9e1
|
|
The function names and prototypes are also normalized so make subsequent reworks
easier.
Change-Id: Ifa5d64aa144b11f8c087517ddc904744e3037361
|
|
Several tools need to perform raw SCSI commands, and we need to support Linux,
Windows and Mac OS, without pulling tons of dependencies to build it easily.
This very simple library has no dependency and supports Linux.
TODO:
- windows
- mac os
Change-Id: I496f5ad2490bd3e96ad962d31cce4e511a523c3a
|
|
On some OSes like Windows or if running in a virtual machine, the one second
timeout might be too short.
Change-Id: I717f7a2aaed1cb3d40e8fbe6f9b1081b43ceea95
|
|
Change-Id: I061ddac4f882156139e38fa6d495fee86271a6aa
|
|
Change-Id: Ifc5b5252e1342f381356f7bd5c2fed5ad8beddfe
|
|
Change-Id: Iac803d4b2d48319a1a32d1101f5041d20174c7a1
|
|
Change-Id: I534fc467aad960c61b54d202096823d5c2c9a5e9
|
|
Change-Id: Ib8cbf2f864a9375575cea0edbba48f740bf8f12e
|
|
Change-Id: I17b679062fa53c20034e7db6f4080f8762a7818c
|
|
Change-Id: Ie03c0c8288b4bd9c0b4beedae363cff6caf3c5cd
|
|
Change-Id: Iddff64502ba357dcd36903d31015b9ae2d00ae62
|
|
There is a windows port of the sg_utils library for scsi pass-
through. This little changes make it compile under mingw. A better
fix would be to implement direct ioctl on both windows and linux
but that's already better than nothing
Change-Id: I0d77cd1bad69806a66f0590362f165f24fa240e9
|
|
Some device only report the minimum (36 bytes) amount of inquiry
data so don't ask for more
Change-Id: Ie74d659f6e27b077acba160aeb87d1e7edf82e66
|
|
It appears that all devices based on the Sigmaltel SDK support a
common vendor specific SCSI interface when in UMS mode. This
applies to the STMP36xx and the STMP37xx. This interface supports
many operations:
- get device info
- get device paritionning
- get janus/drm info
- read/write/allocate/erase any partition
- reset (chip or to updater and/or recovery)
This includes the ability to do a firmware upgrade by rewriting
the firmware partition. The tool currently does mostly nothing
but will be enhanced depending on the reverse engineering efforts
and the use of it. It has been tested on the Fuze+ and the Zen
X-Fi2/3.
Change-Id: Ibd4b2ad364c03ada4f9001573ef4cc87cfb041d1
|