Running the dfu-util program – Maxim Integrated 73S12xxF USB-CCID Linux DFU Host Application User Manual
Page 5

UG_12xxF_038
73S12xxF USB-CCID Linux DFU Host Application Users Guide
Rev. 1.0
5
name to install the package. In the case of other versions of Linux, such as Slackware, the
downloaded package may be a compressed file with a .tgz extension. To install it, run command
tar -xvf
on the file.
4. After the previous step completed, the original dfu-util package has been installed in the directory
/home/user/dfu-util
. (Your actual path name could be different.) Copy the file
dfu-util-src-tsc.tar
from the TSC release CD into this directory.
5. Create a directory named /home/user/dfu-util/TSC, and decompress the file dfu-util-src-
tsc.tar
into that directory as follows:
cd /home/user/dfu-util
mkdir TSC
tar –xvf dfu-util-src-tsc.tar –C ./TSC/
6. To build a dfu-util program that works with the TSC smart card reader device, replace the original
source files with TSC-modified ones. To do so, change to the directory
/home/user/dfu-util
, save the original files, and then copy the files provided by TSC into
directory /home/user/dfu-util/src. The command sequence below serves as an example.
The actual directory names are probably different in your PC. Note that the TSC-modified source
files have been placed in directory /home/user/dfu-util/TSC in previous step.
cd /home/user/dfu-util/
mkdir original-src-files
mv ./src/*.c original-src-files/
mv ./src/*.h original-src-files/
cp ./TSC/* ./src/
7. Run the following commands to compile and build dfu-util program.
cd /home/user/dfu-util
./autogen.sh
./configure
make
When all commands complete successfully, the resulting executable binary file is
/home/user/dfu-util/src/dfu-util
.
3. Running the dfu-util Program
Super user privileges are required to run the dfu-util program. Temporarily log in as a super user
before executing the program.
1. Make sure your smart card reader device has been programmed with a version of the TSC smart ca
r
d
reader firmware that supports the USB DFU protocol. An example of such version is
ccidusb-MSDFU.hex
.
2. Create a directory named /home/user/dfu-util/images, and place a firmware image file into
this directory. For the purpose of illustration, we use the file name ccidusb-MSDFU.hex.
3. Connect your smart card reader device with the Linux host PC through a standard USB cable.
4. From command line, run the dfu-util program with the -l (list) option, as follows:
cd /home/user/dfu-util/src
./dfu-util –l
This is to make sure the smart card reader device has initialized, and has been enumerated by the
Linux host PC properly. You should see the following output from the dfu-util program.