From: Wolfgang Denk <hidden> Date: 2009-05-12 19:06:41
The current device tree for the MPC8272ADS assumes a mapping of 32 MB
of NOR flash at 0xFE00.0000, while there are actually only 8 MB on
the boards, mapped at 0xFF80.0000. When booting an uImage with such a
device tree, the kernel crashes because 0xFE00.0000 is not mapped.
Also introduce aliases for serial[01] and ethernet[01].
Signed-off-by: Wolfgang Denk <redacted>
Cc: Scott Wood <redacted>
cc: Kumar Gala <redacted>
---
I am not really sure what the typical flash size on MPC8272ADS boards
is. The board I used for testing is marked as "Prototype", so it may
not be the release configuration. On the other hand, the manual also
says 8 MB, Vitaly Borduk confirms 8 MB on his board, too, and Scott
Wood eventually tested only with cuImage which fixes up the localbus
mappings, thus eventually concealing the issue.
I'm posting this as reference in case the 8 MB should turn out to be
correct. -- wd
arch/powerpc/boot/dts/mpc8272ads.dts | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
On Wed, May 13, 2009 at 3:06 AM, Wolfgang Denk [off-list ref] wrote:
The current device tree for the MPC8272ADS assumes a mapping of 32 MB
of NOR flash at 0xFE00.0000, while there are actually only 8 MB on
the boards, mapped at 0xFF80.0000. When booting an uImage with such a
device tree, the kernel crashes because 0xFE00.0000 is not mapped.
Also introduce aliases for serial[01] and ethernet[01].
Signed-off-by: Wolfgang Denk <redacted>
Cc: Scott Wood <redacted>
cc: Kumar Gala <redacted>
---
I am not really sure what the typical flash size on MPC8272ADS boards
is. The board I used for testing is marked as "Prototype", so it may
not be the release configuration. On the other hand, the manual also
says 8 MB, Vitaly Borduk confirms 8 MB on his board, too, and Scott
Wood eventually tested only with cuImage which fixes up the localbus
mappings, thus eventually concealing the issue.
The latest reference board I got also has an 8MB SIMM flash module
shipped in the box.
I'm posting this as reference in case the 8 MB should turn out to be
correct. -- wd
Although 8MB seems to be the common size used. It can be very easy
changed as a pluggable module. It might be better to make the code
working for any reasonable flash sizes.
- Leo
From: Wolfgang Denk <hidden> Date: 2009-05-13 19:43:11
Dear Li Yang,
In message [off-list ref] you wrote:
Although 8MB seems to be the common size used. It can be very easy
changed as a pluggable module. It might be better to make the code
working for any reasonable flash sizes.
You either have to provide a correct device tree for your board, or
use a boot loader / boot wrapper that fixes the flash base address and
size.
At the moment, U-Boot does not contain any code yet to do that
(patches welcome :-), and as far as I understand the cuImage wrapper
works just the other way round: it adjusts the mappings to the
settings in the device tree, which may or may not match the actual
hardware. This may work, but at least gives you a different flash
memory map in Linux than what you had before in U-Boot, so it's not
really nice either.
Hm... it seems the majority of MPC8272ADS boards seems to come indeed
with 8 MB NOR flash, so I wonder if the patch should actually go in?
Best regards,
Wolfgang Denk
--
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@denx.de
In accord with UNIX philosophy, Perl gives you enough rope to hang
yourself. - L. Wall & R. L. Schwartz, _Programming Perl_
From: Kumar Gala <hidden> Date: 2009-05-20 13:31:59
On May 13, 2009, at 2:42 PM, Wolfgang Denk wrote:
Dear Li Yang,
In message <2a27d3730905130328m27743852w2d68a62ebc32ce31@mail.gmail.com
quoted
you wrote:
Although 8MB seems to be the common size used. It can be very easy
changed as a pluggable module. It might be better to make the code
working for any reasonable flash sizes.
You either have to provide a correct device tree for your board, or
use a boot loader / boot wrapper that fixes the flash base address and
size.
At the moment, U-Boot does not contain any code yet to do that
(patches welcome :-), and as far as I understand the cuImage wrapper
works just the other way round: it adjusts the mappings to the
settings in the device tree, which may or may not match the actual
hardware. This may work, but at least gives you a different flash
memory map in Linux than what you had before in U-Boot, so it's not
really nice either.
Hm... it seems the majority of MPC8272ADS boards seems to come indeed
with 8 MB NOR flash, so I wonder if the patch should actually go in?
Best regards,
Wolfgang Denk
Scott, any feedback if our boards have 8M or 32M flash modules?
- k
From: Scott Wood <hidden> Date: 2009-05-20 14:48:28
Kumar Gala wrote:
Scott, any feedback if our boards have 8M or 32M flash modules?
According to the manual, it comes with 8 but can be expanded to 32. I
don't think we swapped out the flash SIMM that came with the board.
As I wrote earlier in the thread, I don't see any way a current u-boot
would enable more than 8MiB of flash on this board anyway. I'd go ahead
and apply the patch.
-Scott
From: Kumar Gala <hidden> Date: 2009-06-11 01:53:41
On May 12, 2009, at 2:06 PM, Wolfgang Denk wrote:
The current device tree for the MPC8272ADS assumes a mapping of 32 MB
of NOR flash at 0xFE00.0000, while there are actually only 8 MB on
the boards, mapped at 0xFF80.0000. When booting an uImage with such a
device tree, the kernel crashes because 0xFE00.0000 is not mapped.
Also introduce aliases for serial[01] and ethernet[01].
Signed-off-by: Wolfgang Denk <redacted>
Cc: Scott Wood <redacted>
cc: Kumar Gala <redacted>
---
I am not really sure what the typical flash size on MPC8272ADS boards
is. The board I used for testing is marked as "Prototype", so it may
not be the release configuration. On the other hand, the manual also
says 8 MB, Vitaly Borduk confirms 8 MB on his board, too, and Scott
Wood eventually tested only with cuImage which fixes up the localbus
mappings, thus eventually concealing the issue.
I'm posting this as reference in case the 8 MB should turn out to be
correct. -- wd
arch/powerpc/boot/dts/mpc8272ads.dts | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)