linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* flash problem in a LITE5200B
@ 2007-01-15 10:49 David Gamez
  2007-01-15 13:50 ` Grant Likely
  2007-01-15 21:30 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: David Gamez @ 2007-01-15 10:49 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

Hi all,

I work with a Freescale LITE5200B, but I have a problem, when I download a
rootfs image to a flash memory in the board, hi have one error:

=> Copy To Flash ............. Outside available Flash

The size of the image is of 3285336 bytes, but the flash memory capacity is
32 MBytes, and I load the image in the first sector on the flash memory.

Thanks in advance

David Gàmez

[-- Attachment #2: Type: text/html, Size: 431 bytes --]

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

* Re: flash problem in a LITE5200B
  2007-01-15 10:49 flash problem in a LITE5200B David Gamez
@ 2007-01-15 13:50 ` Grant Likely
  2007-01-15 21:30 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Grant Likely @ 2007-01-15 13:50 UTC (permalink / raw)
  To: David Gamez; +Cc: linuxppc-embedded

On 1/15/07, David Gamez <dgalari@gmail.com> wrote:
> Hi all,
>
> I work with a Freescale LITE5200B, but I have a problem, when I download a
> rootfs image to a flash memory in the board, hi have one error:
>
> => Copy To Flash ............. Outside available Flash
>
> The size of the image is of 3285336 bytes, but the flash memory capacity is
> 32 MBytes, and I load the image in the first sector on the flash memory.

Please post your full boot log from power on to the error message.

Cheers,
g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* Re: flash problem in a LITE5200B
  2007-01-15 10:49 flash problem in a LITE5200B David Gamez
  2007-01-15 13:50 ` Grant Likely
@ 2007-01-15 21:30 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2007-01-15 21:30 UTC (permalink / raw)
  To: David Gamez; +Cc: linuxppc-embedded

In message <3184691b0701150249g55d2472ax583acca96f0efb30@mail.gmail.com> you wrote:
>
> I work with a Freescale LITE5200B, but I have a problem, when I download a
> rootfs image to a flash memory in the board, hi have one error:

You don't provide much information (like which software you use to do
the copying - U-Boot, Linux, ... ?), but let me guess...

> => Copy To Flash ............. Outside available Flash
> 
> The size of the image is of 3285336 bytes, but the flash memory capacity is
> 32 MBytes, and I load the image in the first sector on the flash memory.

Let me guess: you do this in U-Boot, and forget

* that U-Boot commands take are usually interpreted in hex, i. e.  if
  you  enter  a byte count of '3285336' than this is 52974390 decimal
  or 50+ MB which definitely *is* outside the available flash

and/or

* that the U-Boot "cp" command operates on 32 bit words (= 4  bytes),
  so when you want to specify a byte count you have to use the "cp.b"
  variant of this command

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Just think, with VLSI we can have 100 ENIACS on a chip!"
- Alan Perlis

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

end of thread, other threads:[~2007-01-15 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 10:49 flash problem in a LITE5200B David Gamez
2007-01-15 13:50 ` Grant Likely
2007-01-15 21:30 ` Wolfgang Denk

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 NNTP newsgroup(s).