SPMP8k FRMorp - USB IMG dumper
QRCode
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!
Pages: 1 2
Related Posts:
Metadata:




February 8, 2010 @ 3:52 pm
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.
February 8, 2010 @ 5:03 pm
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
February 8, 2010 @ 5:14 pm
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
February 8, 2010 @ 6:00 pm
I TRIED TO RUN THEM ,BUT ,I DONT KNOW WERE THE FILES DUMPED ARE STORED , HELP!
February 8, 2010 @ 6:02 pm
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.
February 8, 2010 @ 6:12 pm
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!!!
February 8, 2010 @ 6:29 pm
For issues, send an email to FRMorp at openschemes. We’ll debug it offline.
February 9, 2010 @ 2:18 am
it worked in my pc,
i used the inf file provided
and no problems at all,
thnk you very much for this tool,
February 9, 2010 @ 7:58 am
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