This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
an incompatibility between redboot/decompress.c v1.7, redboot/main.c v1.36, redboot/net/net_io.c v1.31 and ASSERT in a ROM build
- From: "Stephen Goadhouse" <stephen dot goadhouse at adiengineering dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Cc: <msalter at redhat dot com>
- Date: Wed, 25 Sep 2002 14:56:26 -0400
- Subject: [ECOS] an incompatibility between redboot/decompress.c v1.7, redboot/main.c v1.36, redboot/net/net_io.c v1.31 and ASSERT in a ROM build
I recently performed an update of my eCos/RedBoot tree and got
redboot/decompress.c v1.7, redboot/main.c v1.36 and redboot/net/net_io.c
v1.31 along with 3 other files (the tree was originally downloaded on
9/4/02). I built a RAM based version of RedBoot with assertions enabled
(CYGPKG_INFRA_DEBUG set to 1) and it worked just fine. However, yesterday,
I built a ROM version with assertions enabled and RedBoot failed to properly
operate. I traced the crash to when cyg_hal_invoke_constructors() is called
from vectors.S. Sometime during this operation, RedBoot crashes and spits
out a GDB string. After several experiments, I disabled assertions and it
worked fine! However, I need assertions for some of my testing.
So I added the new files one-by-one to discover the culprit. I narrowed it
down to the three files mentioned above. I even tried decompress.c v1.6 and
main.c v1.35 and RedBoot still crashes. I have to revert decompress.c to
v1.5, main.c to v1.34 and net_io.c to v1.30 before the ROM version of
RedBoot operates with assertions enabled. It's very puzzling since those
files have minor changes that I don't see how they could cause this.
I'm working with a port I did to the 80200 XScale based BRH board. The port
is based on the IQ80310. I'm curious to see if a ROM version of the latest
RedBoot for the IQ80310 works with asserts enabled. I'd guess it will crash
the same as it does for me.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Stephen Goadhouse Work: (434) 978-2888 x6 _/
_/ Staff Engineer stephen.goadhouse@adiengineering.com _/
_/ ADI Engineering http://www.adiengineering.com _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss