This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Enable RedBoot to load images direct to flash, create FIS entrys whitout RAM...
- From: "oliver munz @ s p e a g" <munz at speag dot ch>
- To: <ecos-patches at sourceware dot org>
- Date: Sat, 14 Jan 2006 02:13:00 +0100
- Subject: Enable RedBoot to load images direct to flash, create FIS entrys whitout RAM...
- Reply-to: "oliver munz @ s p e a g" <munz at speag dot ch>
In microcontroller whit smal RAM's can't load hole images in the RAM...
So RedBoot need's to be able to write images direct to flash, and run it
direct in the flash... This patch will allow the RedBoot load-command to
write imgaes direct to the flash, create FIS-entrys from the writen images
and "load" images from flash (set the entry address for the go-command)...
Usage:
Set the CDL option CYGSEM_REDBOOT_FLASH_LOADS and make a RedBoot-image.
Use "load -f -m xmodem" (if RAM-validation is enabled) or "load -m xmodem"
(otherwise) whit all possible option's to load images direct to flash.
Use then "fis create -o flash_chaes" to create an image-entry whit the name
"flash_chaes".
Later after a few reset's use "fis load -o flash_chaes" to load the entry
address of the image again. After that, the go-command will start the image
"flash_chaes" direct in the flash...
There are two additional patches: flash_init(printf) shold be able to change
the diag-print-function at runtime. Otherwise "flash.c" will write to the
host, if the load-command works on the same channel, like the download...
RedBoot should test his memory-workspace via an ASSERT()...
Regards
Oliver Munz
Attachment:
pack 01.diff
Description: Binary data
Attachment:
memory_write.h
Description: Text document
Attachment:
memory_write.c
Description: Text document