tech-embed archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Embedded development platform



On Wed, 4 Aug 2004, Brian Rose wrote:
> 3) Fetch the sources from the website (src.tgz, gnu.tgz, etc) and install to 
> /usr/src

Um, where did you get that from? Seems some documentation needs updating,
this seems horribly outdated. You can get -current sources via CVS with
the following commands:

    env CVS_RSH=ssh CVSROOT=anoncvs%anoncvs.netbsd.org@localhost:/cvsroot cvs 
co src


> 6) Build the toolchain - './build.sh tools'
> 7) Build the tools for the Coldfire (M68K) - './build.sh -m m68k tools'

This seems redundant - the first "build.sh tools" will give you a native
compiler. Dunno if you want that. :)

I wish you a LOT of luck for the patches you mention to work with NetBSD's
sources. Maybe drop a note here when it does. :)


> Once this is done, I would like to test out my setup by building a small
> application that blinks a few lights on the development board. For now I
> will download using the built in firmware and a terminal program to send
> the S19 file via RS232. I will need a makefile that will build the
> assembly code file into a S19 file. The assembly file currently works
> using Windriver's Diab compiler and assembler.
>
> This is where I need some help. Does anyone have a short makefile that
> they can share with me to help me along?

Um, Makefile that does what exactly? There's a big bunch included in
NetBSD's source, and in some places even assembly language files (*.S) are
compiled into object files (*.o). The NetBSD Makefiles use a framework of
Makefile-fragments (share/mk/bsd.*) which make building things quite easy,
you just say what source files you have, and the rest happens
automagically. See e.g. src/libexec/ld.elf_so for an example.

Tough luck if you have to change anything there though. ;) It might be
easier to use the programs in $TOOLDIR directly though.

And while at it, maybe this article is of interest for you:
"Cross-Development with NetBSD -- Using NetBSD's new toolchain to develop
for an embedded device" (http://www.feyrer.de/NetBSD/xdev.html)


 - Hubert


P.S.: Please tune your mail client to insert a newline every 75 chars.

-- 
                         ,,_
If wishes were wings,  o"   )~  would fly.            -- Go www.NetBSD.org!
                        ''''



Home | Main Index | Thread Index | Old Index