[mc1322x] building on a mac
Camilo, Alex
acamilo at neuronrobotics.com
Wed Apr 14 19:25:27 EDT 2010
I've had some limited success with YAGARTO. I spent 30 minutes playing with
it (install tool-chain, change compiler exec in makefile, check out
sources.) and I was able to compile the blink allio example However there
where issues with gcc locating the header files. (and the OE tool-chain had
finished compiling on my linux box) so I stopped. i'm not on my mac now but
the next time i am i'l post the error I am receiving.
On Wed, Apr 14, 2010 at 3:19 PM, Dean Hall <dwhall256 at gmail.com> wrote:
> I tried to get an old Dell laptop up and going so I could follow
> development using documented procedures, but the HDD wasn't large enough for
> Win32, VMware Player and Ubuntu 9.10; and Ubuntu 9.10 (clean install) by
> itself still froze on me 2-5 minutes after login even with 1 G RAM. So I'm
> back to my more familiar platform, Mac OS X 10.5. Here's what I did to get
> openocd going:
>
> # Install Xcode from OS X install disc
> # Install or make sure Macports is up-to-date
> $ sudo port install openocd curl`
> $ curl -G http://mc1322x.devl.org/files/openocd.cfg > openocd.cfg`
> # Plug Econotag into USB port
> $ openocd
> # Resulted in:
>
> Open On-Chip Debugger 0.4.0 (2010-04-13-21:34)
> Licensed under GNU GPL v2
> For bug reports, read
> http://openocd.berlios.de/doc/doxygen/bugs.html
> srst_only separate srst_gates_jtag srst_open_drain
> jtag_ntrst_delay: 200
> 2000 kHz
> Info : max TCK change to: 30000 kHz
> Info : clock speed 2000 kHz
> Info : JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (mfg: 0x00e,
> part: 0xf1f0, ver: 0x1)
> Info : Embedded ICE version 7
> Error: EmbeddedICE v7 handling might be broken
> Info : mc13224.cpu: hardware has 2 breakpoint/watchpoint units
>
> I haven't read if arm-linux-gcc is required for libmc1322x, but following
> last week's conversation about linking math libs, arm-elf-gcc should work if
> interworking is enabled. So here's what I did to get arm-elf-gcc installed:
>
> $ sudo port install arm-elf-gcc # 4.3.2 with newlib
> $ git clone git://git.devl.org/git/malvira/libmc1322x.git
> $ cd libmc1322x
> $ vi Makefile.include # CROSS_COMPILE := arm-elf-
> $ cd tests
> $ make BOARD=redbee-econotag
> # Resulted in:
>
> <snip>
> printf.c:16: error: expected ‘)’ before ‘->’ token
> make[2]: *** [obj_redbee-econotag_board/printf.o] Error 1
>
> This is where I am stuck. I'm guessing this error is due to a conflict
> with the definition of "FILE" in newlib. In the mean time, I commented out
> the offending code and am working on the build errors after that.
>
> So, is there anyone else out there developing on a Mac that wants to follow
> along, bounce ideas and get this going?
>
> !!Dean
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>
--
Alex Camilo
1-877-474-6038 ext#703
www.neuronrobotics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devl.org/pipermail/mc1322x/attachments/20100414/db596f1a/attachment.htm>
More information about the mc1322x
mailing list