summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools
AgeCommit message (Collapse)AuthorFilesLines
2024-03-31FS#13403: Fix compilation error in scsitoolsSolomon Peachy1-1/+1
Change-Id: I2aa402d09a482d9f559dece13f1acf75a658c4da
2017-01-07imxtools: various fixes for WindowsAmaury Pouly3-13/+41
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
2017-01-07imxtools: move firmware read/write to libraryAmaury Pouly3-188/+259
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
2017-01-07imxtools/scsitools: move stmp scsi api to its own fileAmaury Pouly3-587/+618
No code modification code, just moving code around. Change-Id: I30744d3994aa7540f4b5b158f31b51959d5d8586
2017-01-07imxtools/scsitools: rework stmp scsi APIAmaury Pouly2-375/+604
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
2017-01-07imxtools/scsitools: use new SCSI libraryAmaury Pouly3-313/+261
The function names and prototypes are also normalized so make subsequent reworks easier. Change-Id: Ifa5d64aa144b11f8c087517ddc904744e3037361
2017-01-07Add multiplatform library for raw SCSI commandsAmaury Pouly1-2/+2
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
2014-02-22imxtools/scsitools: increase SCSI delay to 10 secondsAmaury Pouly1-1/+1
On some OSes like Windows or if running in a virtual machine, the one second timeout might be too short. Change-Id: I717f7a2aaed1cb3d40e8fbe6f9b1081b43ceea95
2014-02-22imxtools/scsitool: add progress indicatorAmaury Pouly1-0/+9
Change-Id: I061ddac4f882156139e38fa6d495fee86271a6aa
2014-02-22imxtools/scsitool: improve output formattingAmaury Pouly1-2/+3
Change-Id: Ifc5b5252e1342f381356f7bd5c2fed5ad8beddfe
2013-12-24imxtools/scsitools: tool can now write a firmware using SCSIAmaury Pouly1-1/+162
Change-Id: Iac803d4b2d48319a1a32d1101f5041d20174c7a1
2013-10-10imxtools/scsitools: document some of the SCSI vendor commandsAmaury Pouly2-68/+204
Change-Id: I534fc467aad960c61b54d202096823d5c2c9a5e9
2013-09-05imxtools/scsitools: add option to extract firmware from the deviceAmaury Pouly2-9/+148
Change-Id: Ib8cbf2f864a9375575cea0edbba48f740bf8f12e
2013-07-07imxtools: add device info and serial number requests to scsitoolAmaury Pouly1-2/+64
Change-Id: I17b679062fa53c20034e7db6f4080f8762a7818c
2013-07-03imx233: document some more stmp vendor scsi commandAmaury Pouly2-19/+92
Change-Id: Ie03c0c8288b4bd9c0b4beedae363cff6caf3c5cd
2013-01-15imxtools/scsitools: add support for more commandsAmaury Pouly3-8/+459
Change-Id: Iddff64502ba357dcd36903d31015b9ae2d00ae62
2013-01-10imxtools/nwztools: fix compilation for windowsAmaury Pouly2-0/+13
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
2012-12-13imxtools/scsitool: retrieve the minimum amount of inquiry dataAmaury Pouly1-1/+1
Some device only report the minimum (36 bytes) amount of inquiry data so don't ask for more Change-Id: Ie74d659f6e27b077acba160aeb87d1e7edf82e66
2012-12-11imxtools: introduce the new scsitoolAmaury Pouly5-0/+475
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