From b86b0a1b44f88e74a82da81eebae02828d6d09fc Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 11 Dec 2012 20:15:51 +0100 Subject: imxtools: introduce the new scsitool 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 --- utils/imxtools/scsitools/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utils/imxtools/scsitools/Makefile (limited to 'utils/imxtools/scsitools/Makefile') diff --git a/utils/imxtools/scsitools/Makefile b/utils/imxtools/scsitools/Makefile new file mode 100644 index 0000000000..ed4bc88d0b --- /dev/null +++ b/utils/imxtools/scsitools/Makefile @@ -0,0 +1,20 @@ +DEFINES= +CC=gcc +LD=gcc +CFLAGS=-g -std=c99 -W -Wall $(DEFINES) +LDFLAGS=-lsgutils2 +BINS=scsitool + +all: $(BINS) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +scsitool: scsitool.o misc.o + $(LD) -o $@ $^ $(LDFLAGS) + +clean: + rm -fr *.o + +veryclean: + rm -rf $(BINS) -- cgit v1.2.3