Skip to content

Fix hang trying to protect flash sectors

Wolfgang Denk 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

Dear "mark tomlinson",

Please restrict your line length to some 70 characters or so, and stop posting HTML!

Quoted 7 lines · In message <[email protected]> you wrote:

Sorry, no. The flash chips are 0xf8000000-0xf9ffffff (32MB). (Actually we
have twice this area reserved for 64MB flash in the future). The flash chip from 0xf8000000 is also mirrored at 0xfff00000 at boot time. I do
n't know if you consider this a hardware bug to not have all the flash at
the very top of memory, but that is the way our product has been desig
ned. Here's a memory map of the high memory area:

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.

Quoted 2 lines

So we have CONFIG_SYS_FLASH_BASE pointing to the entire Flash, and CONFIG _SYS_MONITOR_BASE pointing to the mirrored section which contains u-boot.

As I mentioned above: misconigured.

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.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Insufficient facts always invite danger.
	-- Spock, "Space Seed", stardate 3141.9