HOME ARTICLES DOWNLOADS CONTACT


Openschemes Feed
Main Menu
Openschemes Articles
Categories
Site Sponsors
Site Hits
Total Hits


SPMP8k FRMorp - USB IMG dumper

QRCode


Tags: , , , ,

Filed under: MP5 | February 8, 2010 @ 8:14 am (Views: 421)

FRMorp uses LIBUSB, and based on the nandoori debug, might actually be portable to various systems and distributions.  LIBUSB is necessary because we want to build the low-level packet ourselves, which is just not possible using pre-packaged “Mass Storage” functions.  On the windows side, we could have gotten it to work using deviceIOcontrol, but that would definitely not be portable.

The only real annoyance with LIBUSB on the windows side is that you have to switch your driver to the LIBUSB driver.  We’ve gone ahead and packaged up an .inf file as well as the driver files in the /win directory.  Since LIBUSB completely takes over the device, windows will no longer be able to see the flash in explorer windows. We suggest forcing the driver in FW update mode.  FW update mode is considered (by windows) to be a separate device than normal mode, so it can use a different driver.  Normal mode can then continue to use the standard MS mass storage driver for file drag & drop.

To update the driver: Plug the USB while holding your device’s magic key to get into FW update mode.  Then, use device manager to “Update Driver” to the libusb.inf from the file.  If it says it’s not for your hardware, you may need to update the VID/PID in the inf file.  The tool also uses VID/PID, so please update in the source and recompile.  When compiling under windows, link to the libusb.a included in the distribution.

For Linux, it should be a lot simpler.  Uncomment the “detach_kernel_driver” line in the source and compile, linking to your own libusb.

For either distribution, feel free to turn off the extra-verbose debug messages by commenting out the #define DEBUG line, as well as to change the filenames and VID/PID if you need to.

The tool is pretty safe - the worst problems we encountered were stalling the device if we Ctrl-C’d the program in the middle of dumping.  A simple USB replug fixed that.  From time to time, the tool would pause for a second during a dump but would always resume dumping a moment later - most times, it blasts through all the data very quickly.

If you get any crazy issues, please log your USB packets and leave a comment.  It’s not necessary or desired that you post logs to the comments, we’ll take those over email.  Just let us know what issues you’re having and we’ll help you work it out.

And here you go.

Source and executable for the Openschemes FRMorp USB dumping tool

Last but not least, let us know if you’ve gotten use from this tool or are working on improvements.  It’s a very basic tool at the moment, and it’s main job is to teach others how to use USB to work with their SPMP8k.   But that does not imply that you can take code from here for your own tool without at least a shoutout - that’s a no-no.  Be cool, and enjoy!

Bookmark and Share

Pages: 1 2


Related Posts:
  • Fun with AES-128. Example Encryption with AES Trainer (March 3, 2010)
  • Nandoori - SPMP8k Raw USB NAND Dumper (February 16, 2010)
  • SPMP8k FRMorp v1.1 - Improved the Linux side (February 9, 2010)
  • SPMP8k Serial Port Pinout (February 4, 2010)
  • SPMP8k - A door with a lock is sometimes less secure than a door without (February 4, 2010)

  • Metadata:

    9 Comments

    1. Comment by gordgelin:

      Hi, guys!
      I tried you FRMorp - and it works perfect for me!

      The only issue is with the driver installation - under Win it is not installable - installation failed with “No hardware info” error.
      Editing of inf-file and using Inf-gen was not successful, the only solution i found - installing USBLIB using exe-installer. Maybe it is my winXP fault, but check that.

    2. Comment by openschemes:

      That’s great news, thanks for letting us know that it worked for you.

      So you needed to get LIBUSB win installer from here?

      http://sourceforge.net/projects/libusb-win32/files/

      That will help the others also get it working

    3. Comment by gordgelin:

      Yes, from there.

      Just install usblib and plug your device. be sure your antivirus software will let the install app to run kernel service at the end of the installation.

      and, none of the connected usb devices will cease to funtion. this driver do not affect win usb funtionality if installed via exe-installer. that is how it works on my notebook. so update your RTFM.txt

    4. Comment by luis:

      I TRIED TO RUN THEM ,BUT ,I DONT KNOW WERE THE FILES DUMPED ARE STORED , HELP!

    5. Comment by openschemes:

      The files dumped are stored in the same directory as frmorp. If you double clicked it out of a zip file then it’s somewhere in your temp directory.

    6. Comment by luis:

      hi ,no ,they say all dumping its ok , but dont create any file , i use win2k sp4 , sorry for my english , greetings from argentina ,GOOD WORK!!!

    7. Comment by openschemes:

      For issues, send an email to FRMorp at openschemes. We’ll debug it offline.

    8. Comment by Dave:

      it worked in my pc,

      i used the inf file provided

      and no problems at all,

      thnk you very much for this tool,

    9. Comment by JXD4u:

      I also got the dump file easily and QUICKLY with no problems! Thank you from me as well for thos tool, its much better than the old fetch tool and can make the proper filetype easily

    Leave a comment





    Contact Openschemes


    Copyright © 2003 by Openschemes  |   |  Design by 7dana.com