This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

error in "flash_am29xxxxx.inl"?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]