public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Hariprasad B <hariprasadb@LNTEBG.com>
Cc: eCos Disuss <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Regarding loading of application on to Flash
Date: Mon, 11 Jul 2005 07:12:00 -0000	[thread overview]
Message-ID: <20050711071156.GA15048@lunn.ch> (raw)
In-Reply-To: <s2d24377.009@EBGMAIL>

On Mon, Jul 11, 2005 at 09:50:28AM +0530, Hariprasad B   wrote:
> Hi All,
> 
> I am trying to load my program in to the Flash(ROM) & it gives the error as follows
> Platform: SE77X9 (SH 7729)
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
> 
> RAM: 0x0c000000-0x0c800000, [0x0c0061a0-0x0c7ed000] available
> FLASH: 0x81000000 - 0x81200000, 32 blocks of 0x00010000 bytes each.
> RedBoot> load -m xmodem
> CEntry point: 0x0c020000, address range: 0x0c020000-0x0c065a84
> xyzModem - CRC mode, 10301(SOH)/0(STX)/0(CAN) packets, 2 retries
> RedBoot> fis create application
> Invalid FLASH image size/length combination

It is telling you that the size of the flash area already reserved for
"application" it smaller than the size downloaded.

This is pritty obvious when you read the code:

   // 'length' is size of FLASH image, 'img_size' is actual data size
    // Round up length to FLASH block size
#ifndef CYGPKG_HAL_MIPS // FIXME: compiler is b0rken
    length = ((length + flash_block_size - 1) / flash_block_size) * flash_block_size;
    if (length < img_size) {
        diag_printf("Invalid FLASH image size/length combination\n");
        return;
    }
#endif

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2005-07-11  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11  4:40 Hariprasad B  
2005-07-11  7:12 ` Andrew Lunn [this message]

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=20050711071156.GA15048@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=hariprasadb@LNTEBG.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).