Page 1 of 1

FreeEMS Firmware Hacking Guide

Posted: Sun Nov 23, 2008 5:00 pm
by Fred
Windows XP, Vista and 7

These are the instructions for Windows 7, Windows Vista, and Windows XP, however they may also work for Windows 2000 Professional, Windows 98 or Windows ME.

Install the FreeEMS firmware basic dev kit from here :

http://tools.diyefi.org/#win

This includes GnuWin32 make and coreutils.

Extra stuff that you may want

Can be obtained from the following site:

http://gnuwin32.sourceforge.net/packages.html

You may choose to install some of these at your option.
  • zip
  • grep
  • bc
  • findutils
  • bzip2
  • diffutils
  • tar
  • file
  • grep
  • gzip
  • patch
Unless you know better, use the default path : c:\usr

Again, unless you know better, use the default path : "C:\Program Files\GnuWin32". On Windows Vista 64 and Windows 7 64 bit, the default path is "C:\Program Files (x86)\GnuWin32\bin".

Now bring up a command window to test the new installation. It is important that you bring up a new one after the installation as important variables will not be applied to command windows that were open before you did the install. Run make by typing "make" into it and pressing enter. It should complain that it can't find a Makefile. Then do the same for GCC by typing "m6811-elf-gcc" in and pressing enter. This should complain that there are no input files.

Image

You can download release code from http://download.freeems.org however, what you should actually do, if you are planning to work on it, or even just try new code from developers, is follow this excellent thread on getting the latest and greatest from Git :

http://www.diyefi.org/forum/viewtopic.php?f=41&t=547

Open up a new command window and cd to the src directory inside the latest freeems directory you have.

Image

Now cross your fingers and type "make all" and press enter :-) You should be confronted with a successful FreeEMS build like this

Image

Congratulations, you just built your first FreeEMS firmware S19 file :-)

Re: FreeEMS Firmware Hacking Guide

Posted: Sun Nov 23, 2008 6:43 pm
by Fred
Debian GNU/Linux

Simply visit this site for more info:

http://tools.diyefi.org/#deb

Non/Old Debian GNU/Linux

There is more information here:

http://tools.diyefi.org/#other

Apple Mac OS X

There are three options for the mac, you can read about them here:

http://tools.diyefi.org/#mac

Currently the only option that is sufficiently up to date is the native install. In the case of fink or macports, they are not currently usable with the XGATE firmware. If you want to help with that, this old HOWTO could help you achieve that:

http://www.diyefi.org/forum/viewtopic.php?f=8&t=807

Fred.

Re: FreeEMS Firmware Hacking Guide

Posted: Sun Nov 23, 2008 6:44 pm
by Fred
Discussion about IDEs and editing and other tools here....

TBC

Re: FreeEMS Firmware Hacking Guide

Posted: Sun Nov 23, 2008 6:55 pm
by Fred

Re: FreeEMS Firmware Hacking Guide

Posted: Sun Oct 18, 2009 8:57 pm
by Fred
Bump, I just built 0.0.18 (still has a working windows makefile) on Windows 7 Ultimate, this is an improvement over dirty horrid Vista... in absolutely every way! :-)

http://stuff.fredcooke.com/FreeEMS.NYC. ... timate.png

Fred.

Re: FreeEMS Firmware Hacking Guide

Posted: Wed Jun 22, 2011 8:43 pm
by Fred
Bump, fully updated the Windows instructions, if they don't work, please complain in the comments thread linked above! Thanks :-)

I'll update the other instructions shortly.

Fred.