Author Topic: libusb based flash utility (for OSX, Linux etc)  (Read 3029 times)

0 Members and 1 Guest are viewing this topic.

Offline mr.spiv

  • Jr. Member
  • **
  • Posts: 80
    • junk yard
libusb based flash utility (for OSX, Linux etc)
« on: February 27, 2011, 08:30:35 PM »
Hi,

I extracted & tweaked a bit of the USB code from Slim-e-loader and compiled them into a small C++ library called sl4lib. The library itself is the first release and has not gone through massive testing cycle. There is also a simple utility class for removing ROM header, mirroring bytes in a ROM for TG-16 compatibility, patching TG-16 region check and finding a place for a ROM in the cart (when doing multirom things). Source codes and a pre-build binary for OSX (Intel, 10.6.6) can be found here:
http://www.deadcoderssociety.net/pce/dl/sl4lib_OSX.tar.bz2

The Makefile has currently been tested for OSX but contains templates for linux etc. You just need to tweak some compiler options there. The content should be rather self explanatory.

The sl4lib can flash/dump PCE 64 & 128Mbits carts. No save RAM support as I do not own the hardware. There is still a bit of unknown areas with the USB protocol but in general stuff works pretty ok for me.  For some reason ROMs like PCKID1 (which is a 3Mbits ROM) refuse to work properly. They do work with multirom bootmenu, which indicates that it could be a matter of setting up banking properly.. Btw, this package does not include a multirom bootmenu itself. Feel free to hack one yourself.

Anyway, have fun and if you find more info about the flash cart & how the sl4 works, just let me know.
..more coffee..

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: libusb based flash utility (for OSX, Linux etc)
« Reply #1 on: February 27, 2011, 09:28:51 PM »
Quote
Anyway, have fun and if you find more info about the flash cart & how the sl4 works, just let me know.

You can look at the source code of the opensource client : http://code.google.com/p/neo-myth-programmer/ , plus the source code of all menus : http://code.google.com/p/neo-myth-menu/  which contain all the information you'll ever need
 8)

Offline mr.spiv

  • Jr. Member
  • **
  • Posts: 80
    • junk yard
Re: libusb based flash utility (for OSX, Linux etc)
« Reply #2 on: February 27, 2011, 11:19:15 PM »
Cool. If I just had known. Would have save me few evenings last week putting this into new form, heh. Since the original code of mine originates like from 2006 it does not really matter.

Next to check what is in myth source.
..more coffee..