Skip to content

Fix hang trying to protect flash sectors

Chris Packham u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/1] Fix hang trying to protect flash sectors

Disclaimer: I'm workmate of Mark's

Quoted 11 lines · Wolfgang Denk <wd <at> denx.de> writes:

It's not a hardware bug, but a configuration error.

Quoted 5 lines

f8000000-fbffffff 64M Flash
fe000000-fe0fffff 1M Battery-backed RAM
ff000000-ff00ffff 64K On-board logic
ff700000-ff7fffff 1M CCSR
fff00000-ffffffff 1M Flash (mirror of f8000000).

This makes no sense. Fix your memory map, and map the flash (all of it) to the end of the address space.

While it would be possible to shuffle the memory map around there is one problem with the hardware design that I don't think can be overcome (I'd love to be proven wrong). The boot chip select is mapped to the _bottom_ of the first flash chip. It was done this way so that we could expand the flash in the future as a rolling production change (we're now shipping units with 64MB fitted). i.e. we knew we could rely on a fixed base address so thats where we pointed the boot chip select.

I think in hindsight we could have modified our flash detection code to start at the top and jump backwards looking for extra chips. Unfortunately we're not able to change the hardware design for this product but we can take this into account on future designs.

Quoted 6 lines
Quoted 2 lines

NOTICE: This message contains privileged and confidential information intended only for the use of the addressee

...

And please stop posting these silly disclaimers.

Corporate overlords have been flogged :). General response has been to go sign up to gmail. Trust me it annoys us as much as it annoys you.

- C