gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Hardware > mvb2 + flash cart + linux + mb

#4731 - Xok - Tue Apr 08, 2003 4:59 am

If I have linux + mb + mvb2 + fashcart + *.gba , the question is if I can updoad *.gba
from my pc to the gba. (And if I can execute the *?gba).






Thanks

#4734 - tepples - Tue Apr 08, 2003 5:32 am

Xok wrote:
If I have linux + mb + mvb2 + fashcart + *.gba , the question is if I can updoad *.gba
from my pc to the gba. (And if I can execute the *?gba).

I assume that the linux version of 'mb' takes the same options as the Windows version, so I'll give the command for the Windows version:

mb -p filename.gba -e -w 300

The -p option tells mb to program the given image into a Visoly or Visoly-compatible (e.g. F2A) flash cartridge. However, mb -p does NOT fix the ROM's header; you'll need to call one of the 'gbafix' tools from your makefile to do that.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#4852 - SmileyDude - Sun Apr 13, 2003 12:24 am

this setup works fine -- i'm using it myself. The only drawback that I see is that the CPU gets pegged out at 100% while using the MBV2 cable (I think this also happens in Win2k as well, so it doesn't seem to be a problem with the Linux version). If you don't care about that, then you'll be fine :)

As for the header fixing, I would recommend just using a custom crt0.s file with the header data already fixed. I couldn't find a good header utility for Linux (and I didn't feel like writing one, either), so I just setup my crt0.s file ahead of time. Works great, and the header is always correct.
_________________
dennis

#4860 - tom - Sun Apr 13, 2003 10:20 am

SmileyDude wrote:
As for the header fixing, I would recommend just using a custom crt0.s file with the header data already fixed. I couldn't find a good header utility for Linux


there's no better header tool than fugbar, and it's available for windows and linux:
http://www.gbadev.org/download.php?section=header&filename=fugbar.zip

cheers