boot flash problem,

Jean-Denis Boyer jdboyer at mediatrix.com
Tue Dec 10 08:42:29 EST 2002


> Both time, i set the base address 0xffe00000, which
> means i can use a flash of 2M words here.

I don't think so.

The 32-bits address bus of the PPC is still
on a byte boundary, not on a word of 16 bits.

A 16-bits flash means the GPCM reads 16 bits at a time from
the data bus, and outputs addresses aligned on 16 bits.
Then you wire PPC:A30 to Flash:A0, PPC:A29 to Flash:A1, and so on,
leaving PPC:A31 unconnected.

Here, both flashes you specified are 16-bits wide,
so I understand the connections were compatible
between the 16MBits and the 32MBits,
with one more address line PPC:A10 wired to Flash:A20.

If you have a flash of 32Mbits (4MBytes), even if it has a port
size of 8, 16 or 32 bits wide, you will address it from your code
(running on the PPC) using an address range of 4MBytes also.

Thus, its base address should be at 0xFFC00000,
both in BDI and (very important) in the boot loader also.

Good luck,
--------------------------------------------
 Jean-Denis Boyer, B.Eng., Technical Leader
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list