FreeEMS Firmware Hacking Guide

Official FreeEMS vanilla firmware development, the heart and soul of the system!
Locked
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

FreeEMS Firmware Hacking Guide

Post 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 :-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Firmware Hacking Guide

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Firmware Hacking Guide

Post by Fred »

Discussion about IDEs and editing and other tools here....

TBC
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Firmware Hacking Guide

Post by Fred »

DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Firmware Hacking Guide

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Firmware Hacking Guide

Post 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.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Locked