This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
error in "flash_am29xxxxx.inl"?
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] error in "flash_am29xxxxx.inl"?
- From: Andreas Bürgel <ab at genologic dot de>
- Date: Wed, 15 Aug 2001 14:27:46 +0200
- Organization: GenoLogic GmbH, Dortmund
Hi folks,
in the method "flash_hwr_init ( void)" the block count is computed as
follows:
...
flash_info.blocks = flash_dev_info->block_count;
...
and flash_dev_info gets it information from the board-"driver" and
"flash_am29xxxxx_parts.inl".
On my board there are four chips - two parrallel and two in series - of
type 29LV800B which means 1M*32Bit of flash-ram, so the block-count (in
RedBoot) should be 32 (32 * 0x20000Bytes).
The computed block-count is 16. So shouldn't the code-line rewritten? :
...
flash_info.blocks = flash_dev_info->block_count * CYGNUM_FLASH_SERIES;
...
Best regards,
-----------------------------------------------------
i.A. Andreas Bürgel GenoLogic GmbH
Software Engineer Joseph-von-Fraunhofer-Str. 13
D-44227 DORTMUND
Germany
ab@genologic.de phone +49 (0) 231/477349-0
fax +49 (0) 231/4761234