From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-id: <199907161917.UAA04869@peshwari.cygnus.co.uk> References: X-SW-Source: 1999-07/msg00023.html 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 /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 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