RedBoot: "fis load -d" allows "go" even if it fails

View: New views
3 Messages — Rating Filter:   Alert me  

RedBoot: "fis load -d" allows "go" even if it fails

by René Nielsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

If you do a
  fis load -d my_image

and my_image is not a valid zip-image, it will not be loaded. That's fine. But a following "go" will jump to the img->entry_point anyway.

When loading an image without the -d option and CYGSEM_REDBOOT_FIS_CRC_CHECK is defined and the checksum-check fails, it will set entry_addr to NO_MEMORY. I think the same thing should happen when the unzip fails.

Regards
René Schipp von Branitz Nielsen
Vitesse Semiconductors

Re: Re[ECOS] dBoot: "fis load -d" allows "go" even if it fails

by Gary Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

René Nielsen wrote:

> Hello,
>
> If you do a
>   fis load -d my_image
>
> and my_image is not a valid zip-image, it will not be loaded. That's fine.
> But a following "go" will jump to the img->entry_point anyway.
>
> When loading an image without the -d option and CYGSEM_REDBOOT_FIS_CRC_CHECK
> is defined and the checksum-check fails, it will set entry_addr to
> NO_MEMORY. I think the same thing should happen when the unzip fails.

Send a patch :-)

BTW, I've looked at your other patch and in general I think it's
fine.  It is rather involved, so we need a Copyright assignment
before I can consider it for commitment.
  http://ecos.sourceware.org/assign.html

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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


Re: Re[ECOS] dBoot: "fis load -d" allows "go" even if it fails

by René Nielsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Send a patch :-)
> BTW, I've looked at your other patch and in general I think it's
> fine.  

I've merged the patch with the zip-auto-detect patch in the ecos-devel mailing list (see e.g. http://www.nabble.com/forum/ViewPost.jtp?post=14042399&framed=y).

> It is rather involved, so we need a Copyright assignment
> before I can consider it for commitment.
>   http://ecos.sourceware.org/assign.html
Done.

/René