public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
From: "Andy Dyer" <adyer@righthandtech.com>
To: <ecos-maintainers@sources.redhat.com>
Subject: troubles with ecos-2.0 and mips tx49 port
Date: Tue, 24 Jun 2003 23:02:00 -0000	[thread overview]
Message-ID: <B482D8AA59BF244F99AFE7520D74BF96CD84@server1.RightHand.righthandtech.com> (raw)

Gentlemen (and Ladies):

	I have been working on porting redboot (ecos-2.0 source) 
to one of our boards which uses a Toshiba TX4925 CPU (mips with
TX49 core and "stuff").  I started from the ref4955 platform port.
In the course of trying to get it (and my port) to build I noticed
several issues:

1) The ref4955 distributed .cdl file calls out mips-tx49-elf for a
toolchain prefix.  I built the the toolchain from the sources as
described on the ecos/build-toolchain.html webpage, but had some
problems:

  1a) a patch was required to get gcc to build under cygwin.  This 
      appears to be a known issue with gcc and cygwin.  I applied this
	patch and all appears to be well:
http://gcc.gnu.org/ml/gcc/2003-04/msg00538.html
      It would be nice if there was a mention of this on the 
      webpage with the other patches.

  1b) after building the toolchain the compiler barfs on the
      -mabi=eabi command line switch, which makes me wonder
      how to enable that in the toolchain I built or if there is
	some other thing I need to do. gcc -v gives:

	Configured with: /home/adyer/src/gcc-3.2.1/configure
--target=mips-tx49-elf --prefix=/opt/ecos/gnutools/mips-tx49-elf
--enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib
--with-gxx-include-dir=/opt/ecos/gnutools/mips-tx49-elf
/mips-tx49-elf/include -v : (reconfigured)
/home/adyer/src/gcc-3.2.1/configure - -target=mips-tx49-elf
--prefix=/opt/ecos/gnutools/mips-tx49-elf --enable-languages=c,c++
--with-gnu-as --with-gnu-ld --with-newlib --with-gxx-nclude-dir=/opt/e
cos/gnutools/mips-tx49-elf/mips-tx49-elf/include -v
	Thread model: single
	gcc version 3.2.1

2) for yucks I tried using the mips-isa32 toolchain, which
likes the -mabi=eabi switch, but barfs on the line 
OUTPUT_ARCH(mips:4900) in the linker script file.

3) I am building for a ROM configuration, and the linker script
file for the tx49 is very wrong (looks like R3000-ish code) with
respect to where the exception vectors go for a ROM configuration.

#elif defined(CYG_HAL_STARTUP_ROM)

/* this version for ROM startup */
#define SECTION_rom_vectors(_region_, _vma_, _lma_) \
    .rom_vectors _vma_ : _lma_ \
    { KEEP (*(.reset_vector)) \
    . = ALIGN(0x100); KEEP (*(.utlb_vector)) \
    . = ALIGN(0x80); KEEP(*(.other_vector)) \
    . = ALIGN(0x100); KEEP(*(.debug_vector)) } \
    > _region_

#endif /* ROM startup version of ROM vectors */


this puts the utlb_vector at 0xbfc00100, the other_vector
at 0xbfc00180, and the debug_vector at 0xbfc00200.  According to the
tx49 core manual, the vectors go as follows:

reset vector 0xbfc0_0000
tlb refill   0xbfc0_0200
xtlb miss    0xbfc0_0280
general exc. 0xbfc0_0380
debug        0xbfc0_0400 (ProbEnb=0)

other mips parts would also have a cache error at 0xbfc00300, but tx49
doesn't seem to have it in their docs.




--
Andrew Dyer               |  adyer@righthandtech.com
Sr. Engineer              |  (630) 238-0789
RightHand Technologies    |  (630) 238-0469 (fax)
735 N. Edgewood Ave.      |
Suite D                   |
Wood Dale, IL 60191-1261  |
USA                       |

                 reply	other threads:[~2003-06-24 23:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=B482D8AA59BF244F99AFE7520D74BF96CD84@server1.RightHand.righthandtech.com \
    --to=adyer@righthandtech.com \
    --cc=ecos-maintainers@sources.redhat.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).