public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] error in "flash_am29xxxxx.inl"?
@ 2001-08-15  5:27 Andreas Bürgel
  2001-08-15  6:11 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Bürgel @ 2001-08-15  5:27 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 965 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] error in "flash_am29xxxxx.inl"?
  2001-08-15  5:27 [ECOS] error in "flash_am29xxxxx.inl"? Andreas Bürgel
@ 2001-08-15  6:11 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-08-15  6:11 UTC (permalink / raw)
  To: Andreas Bürgel; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Andreas Bürgel wrote:
> The computed block-count is 16. So shouldn't the code-line rewritten? :
> 
> ...
> flash_info.blocks = flash_dev_info->block_count * CYGNUM_FLASH_SERIES;
> ...

Amazingly this was fixed just the other day as it happens. Update your CVS
:-).

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-15  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15  5:27 [ECOS] error in "flash_am29xxxxx.inl"? Andreas Bürgel
2001-08-15  6:11 ` Jonathan Larmour

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).