All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Flashing images bigger than ram
@ 2009-09-15 21:39 Ben Goska
  2009-09-15 22:24 ` Scott Wood
  2009-09-15 23:30 ` Kyungmin Park
  0 siblings, 2 replies; 3+ messages in thread
From: Ben Goska @ 2009-09-15 21:39 UTC (permalink / raw)
  To: u-boot

Is there a standard way to have U-Boot flash really large images? I
want to setup rootfs flashing from U-Boot but this requires flashing
an image that is bigger than the ram of my system. I thought about
breaking the image into chunks, but when flashing to NAND with bad
blocks it is difficult to handle skipping the bad blocks.

I know I could make this happen with a custom command added to U-Boot
but I was wondering if someone else had solved the problem already.

My hardware: OMAP3530, 128MB Ram, 256MB NAND.
Trying to flash from MMC (fat, or ext2) to NAND.

Thanks for any help.

Ben Goska
goskab at onid.oregonstate.edu

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

* [U-Boot] Flashing images bigger than ram
  2009-09-15 21:39 [U-Boot] Flashing images bigger than ram Ben Goska
@ 2009-09-15 22:24 ` Scott Wood
  2009-09-15 23:30 ` Kyungmin Park
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Wood @ 2009-09-15 22:24 UTC (permalink / raw)
  To: u-boot

Ben Goska wrote:
> Is there a standard way to have U-Boot flash really large images? I
> want to setup rootfs flashing from U-Boot but this requires flashing
> an image that is bigger than the ram of my system. I thought about
> breaking the image into chunks, but when flashing to NAND with bad
> blocks it is difficult to handle skipping the bad blocks.

Have you looked into ubi?  I'm not too familiar with it, but my 
understanding is that it has a better way of dealing with bad blocks.

-Scott

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

* [U-Boot] Flashing images bigger than ram
  2009-09-15 21:39 [U-Boot] Flashing images bigger than ram Ben Goska
  2009-09-15 22:24 ` Scott Wood
@ 2009-09-15 23:30 ` Kyungmin Park
  1 sibling, 0 replies; 3+ messages in thread
From: Kyungmin Park @ 2009-09-15 23:30 UTC (permalink / raw)
  To: u-boot

Hi,

On Wed, Sep 16, 2009 at 6:39 AM, Ben Goska <goskab@onid.oregonstate.edu> wrote:
> Is there a standard way to have U-Boot flash really large images? I
> want to setup rootfs flashing from U-Boot but this requires flashing
> an image that is bigger than the ram of my system. I thought about
> breaking the image into chunks, but when flashing to NAND with bad
> blocks it is difficult to handle skipping the bad blocks.
>
> I know I could make this happen with a custom command added to U-Boot
> but I was wondering if someone else had solved the problem already.
>
> My hardware: OMAP3530, 128MB Ram, 256MB NAND.
> Trying to flash from MMC (fat, or ext2) to NAND.
>

Please see the common/cmd_onenand.c

First it got the 32MiB data from USB or others. and then write it's
data to OneNAND.
Of course if it meets the bad blocks, just skip it and write again. I
called it skip write method.
Next time it adjust the start offset. of course upper layer don't know
it. Upper layer assume it write it exactly it sent.

In read side it's similar.
If it encounters the bad block. it also skip and read again. (skip read).

With this method. we can program flash even though we can't enough memory.

you can see the code. it's better to understand.

Thank you,
Kyungmin Park

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

end of thread, other threads:[~2009-09-15 23:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 21:39 [U-Boot] Flashing images bigger than ram Ben Goska
2009-09-15 22:24 ` Scott Wood
2009-09-15 23:30 ` Kyungmin Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.