public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: jlarmour@cygnus.co.uk (Jonathan Larmour)
To: guinan@bluebutton.com
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] loader.bin sources?
Date: Fri, 16 Jul 1999 12:18:00 -0000	[thread overview]
Message-ID: <199907161917.UAA04869@peshwari.cygnus.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.990716140929.541A-100000@newt.home.net>

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

  reply	other threads:[~1999-07-16 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-16 11:10 Jamie Guinan
1999-07-16 12:18 ` Jonathan Larmour [this message]
1999-07-18 10:25   ` Jamie Guinan
1999-07-21  1:04     ` [ECOS] MBX stubrom (was [ECOS] loader.bin sources?) Jamie Guinan
1999-07-21  7:06       ` Gary Thomas
1999-07-21  8:45       ` [ECOS] " Jonathan Larmour
1999-07-21 10:02         ` Jamie Guinan
1999-07-21 10:06           ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199907161917.UAA04869@peshwari.cygnus.co.uk \
    --to=jlarmour@cygnus.co.uk \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=guinan@bluebutton.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).