public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gthomas@redhat.com>
To: Martin van Veen <martin_van_veen@yahoo.com>
Cc: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] Redboot for Assabet goes silent
Date: Tue, 21 Nov 2000 08:04:00 -0000	[thread overview]
Message-ID: <XFMail.20001121090144.gthomas@redhat.com> (raw)
In-Reply-To: <20001121130835.60064.qmail@web11102.mail.yahoo.com>

We seem to have broken in the Assabet/GDB code in the last few days.

Try making this change, it fixed it for me.

Index: hal/arm/sa11x0/var/current/src/hal_diag.c
===================================================================
RCS file: /home/cvs/ecc/ecc/hal/arm/sa11x0/var/current/src/hal_diag.c,v
retrieving revision 1.11
diff -u -5 -p -r1.11 hal_diag.c
--- hal/arm/sa11x0/var/current/src/hal_diag.c   2000/10/26 18:39:02     1.11
+++ hal/arm/sa11x0/var/current/src/hal_diag.c   2000/11/21 15:43:24
@@ -92,10 +92,12 @@ init_channel(channel_data_t* __ch_data)
 
     // Clear sticky (writable) status bits.
     base->utsr0 = SA11X0_UART_RX_IDLE | SA11X0_UART_RX_BEGIN_OF_BREAK |
                   SA11X0_UART_RX_END_OF_BREAK;
 
+#ifdef CYGPKG_HAL_ARM_SA11X0_SA1100MM
+    // This code has problems on other SA11x0 platforms.
     if (SA11X0_UART1_BASE == (volatile unsigned long *)base) {
         cyg_uint32 pdr, afr, par;
 
         HAL_READ_UINT32(SA11X0_GPIO_PIN_DIRECTION, pdr);
         HAL_READ_UINT32(SA11X0_GPIO_ALTERNATE_FUNCTION, afr);
@@ -108,10 +110,11 @@ init_channel(channel_data_t* __ch_data)
         HAL_WRITE_UINT32(SA11X0_GPIO_ALTERNATE_FUNCTION, afr | SA11X0_GPIO_PIN_14 |
SA11X0_GPIO_PIN_15);
 
         // Pin reassignment for serial port 1.
         HAL_WRITE_UINT32(SA11X0_PPC_PIN_ASSIGNMENT, par | SA11X0_PPC_UART_PIN_REASSIGNMENT_MASK);
     }
+#endif
 
     // Set UART to 8N1 (8 data bits, no partity, 1 stop bit)
     base->utcr0 = SA11X0_UART_PARITY_DISABLED | SA11X0_UART_STOP_BITS_1 |
                   SA11X0_UART_DATA_BITS_8;
 


On 21-Nov-2000 Martin van Veen wrote:
> Hi,
> 
> since I'm not able to use Redboot via Ethernet, I'm very pleased
> that uploading data via the serial line is now included in Redboot.
> Since it is not built in in the prebuilt Redboot image (the one in
> hal/arm/sa11x0/assabet/current/images/redboot_ROM.bin) I have to
> build it myself. Building and flashing (using Jflash-linux) the
> newly created image gives no problem at all.
> 
> However, when I use minicom to attach to the board or use Insight to
> debug a program I get no reaction at all. The strange thing is that
> when I flash the prebuilt image on the board, everything works fine
> (except serial downloading :-( ). So I guess that it has something
> to do with the configuration of the serial port, but I have no clue
> at all. I built and flashed the redboot image as follows:
> 
> $ mkdir redboot
> $ cd redboot
> $ ecosconfig new assabet redboot
> $ ecosconfig import $ECOS_REPOSITORY/hal/arm/sa11x0/assabet/ \
>     current/misc/redboot_ROM.cfg
> $ ecosconfig tree
> $ make
> $ Jflash-linux install/bin/redboot.bin
> 
> Any ideas???
> 
> Thanks in advance,
> Martin van Veen.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/

  reply	other threads:[~2000-11-21  8:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-21  5:09 Martin van Veen
2000-11-21  8:04 ` Gary Thomas [this message]
2000-11-22  1:57 Martin van Veen
2000-11-22  6:04 ` Gary Thomas
2000-11-22  6:25   ` Jesper Skov
2000-11-22  6:31     ` Gary Thomas
2000-11-23  2:17 Martin van Veen
2000-11-23  6:30 ` Gary Thomas
2000-11-23 15:07   ` Jonathan Larmour
2000-11-27  3:51 Martin van Veen
2000-11-27  6:59 ` Gary Thomas

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=XFMail.20001121090144.gthomas@redhat.com \
    --to=gthomas@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=martin_van_veen@yahoo.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).