This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: [ECOS] loader.bin sources?
- To: guinan@bluebutton.com
- Subject: Re: [ECOS] loader.bin sources?
- From: jlarmour@cygnus.co.uk (Jonathan Larmour)
- Date: Fri, 16 Jul 1999 20:17:44 +0100
- Cc: ecos-discuss@sourceware.cygnus.com
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Cygnus Solutions Ltd, UK
In article <Pine.LNX.3.96.990716140929.541A-100000@newt.home.net> you write:
>
>Where are the sources for loaders/powerpc-cogent/gdbload.bin,
>from eCos 1.2.1?
They are effectively just a configuration of eCos. Here's what to do:
1. Create a build directory and cd into it.
2. Run: tclsh <sourcedir>/pkgconf.tcl --target powerpc --platform cogent --startup rom --disable-kernel --disable-uitron --disable-libc --disable-libm --disable-io --disable-io_serial --disable-wallclock --disable-watchdog
Where <sourcedir> is the path to your source repository. Use "cygtclsh80"
in place of "tclsh" if you are on Windows, rather than Unix.
3. Edit pkgconf/hal.h *by hand* and enable the following "#define"s:
CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
CYG_HAL_ROM_MONITOR
You should also comment out the line:
#define CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
4. Run: make
5. Run: make -C hal/common/current/src/stubrom
The file hal/common/current/src/stubrom/stubrom will be an ELF excutable
of the ROM. Use powerpc-eabi-objcopy to convert this to the appropriate
format for your PROM burner.
Hmm... perhaps I should put this in the FAQ. It's not very obvious :-).
Can you let me know if this works for you, and I'll do that.
Thanks,
Jifl
--
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
my brains kept falling out." || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault