Building FreeEMS on MacOS X

Official FreeEMS vanilla firmware development, the heart and soul of the system!
hamster
QFP80 - Contributor
Posts: 33
Joined: Wed Sep 15, 2010 10:36 pm

Re: Building FreeEMS on MacOS X

Post by hamster »

You are running 10.6? I did mine on a vanilla 10.6 box without needing any of that...
davecramer
DIP8 - Involved
Posts: 18
Joined: Sat Sep 18, 2010 1:32 pm
Location: Orangeville, Ontario, Canada

Re: Building FreeEMS on MacOS X

Post by davecramer »

Yes, 10.6.4

and just a straight fink install

fink describe m681x-gcc m681x-newlib m681x-gdb
Information about 9663 packages read in 3 seconds.

m681x-gcc-3.3.6-3: For Motorola 68hc11/12 micro controllers
.
Web site: http://m68hc11.serveftp.org/
.
Maintainer: Carl van Denzen <cvdenzen@users.sourceforge.net>

m681x-newlib-1.12.0-3: For Motorola 68hc11/12 micro controllers
.
Web site: http://m68hc11.serveftp.org/
.
Maintainer: Carl van Denzen <cvdenzen@users.sourceforge.net>

m681x-gdb-6.4-2: For Motorola 68hc11/12 micro controllers
.
Web site: http://m68hc11.serveftp.org/
.
Maintainer: Carl van Denzen <cvdenzen@users.sourceforge.net>

Dave
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Building FreeEMS on MacOS X

Post by Fred »

Guys, my apologies, but we're mid way through making changes to the make file with respect to tool calls because the tools are about to change! That path line will probably disappear and the rest will be reverted to gcc calls rather than direct calls. If you grab a version a few commits ago before that change, it should "just work" as others have found.

I wonder if hamster is using an older source tree such as the 0.1.0 release? You're clearly using the latest from my github account... usually a good idea, but right now some things are in flux - this is a good thing, it means progress is being made ;-) The source tree is never guaranteed to do anything much, the only thing guaranteed is that it's the latest stuff :-) Released versions should definitely build on every platform. You guys can help me test that in future, if you like! :-)

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!
davecramer
DIP8 - Involved
Posts: 18
Joined: Sat Sep 18, 2010 1:32 pm
Location: Orangeville, Ontario, Canada

Re: Building FreeEMS on MacOS X

Post by davecramer »

Fred,

Is there a way to email git commits to the forum, or another list ?

Might be useful to see what is going on

Dave
hamster
QFP80 - Contributor
Posts: 33
Joined: Wed Sep 15, 2010 10:36 pm

Re: Building FreeEMS on MacOS X

Post by hamster »

Ohh silly me. I was thinking you were having problems installing the toolchain, not the actual build of the firmware. I just downloaded an official release and ran with that, didn't bother yet with getting the bleeding edge.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Building FreeEMS on MacOS X

Post by Fred »

Hmmm, I'm unsure about the forum, or email, but I can definitely have a look. Right now it posts to the IRC channel when I commit, but only I. Bug me about it if nothing happens or is said.
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!
davecramer
DIP8 - Involved
Posts: 18
Joined: Sat Sep 18, 2010 1:32 pm
Location: Orangeville, Ontario, Canada

Re: Building FreeEMS on MacOS X

Post by davecramer »

irc ? chatroom ? where ?
nhtshot
TO220 - Visibile
Posts: 12
Joined: Sun Mar 07, 2010 5:55 pm

Re: Building FreeEMS on MacOS X

Post by nhtshot »

hamster wrote:I'm crunching through your guide right now, and I have a couple of updates:

1) If you didn't enable the unstable branch, when you do, you'll need to run a 'fink selfupdate' to pull in the packages, otherwise it will complain that the package doesn't exist

2) Looks like m681x-binutils has been fixed, it built clean on my 10.6 system

3) You also need to comment out this line in the Makefile to get it build on OSX:

PREFIX = m6811-elf-
#PREFIX = m68hc11-

(as the unix versions apparently use m6811-elf- as the bin prefix as explained in the comments...)

################################################################################
# #
# Thank you for building FreeEMS firmware!!! #
# #
################################################################################

Woot! Looks like I have some firmware. Now what to do with this new shiny blob of bits... hmmm ;)
1. Yep.. good catch. I already had it enabled so it didn't matter.

2. Yep, I sent a patch to the maintainer.

Of course, none of that will matter much longer with FreeEms moving to it's own toolchain.

Congrats on the build though!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Building FreeEMS on MacOS X

Post by Fred »

nhtshot wrote:2. Yep, I sent a patch to the maintainer.
Your name is in the info file :-)
nhtshot wrote:Of course, none of that will matter much longer with FreeEms moving to it's own toolchain.
Yeah, it mattered, it was an excellent starting point! Thanks!

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!
Post Reply