From: Eran Liberty <liberty@extricom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Flash write crash on MPC8548CDS
Date: Tue, 11 Mar 2008 20:30:14 +0200 [thread overview]
Message-ID: <47D6CFB6.5030603@extricom.com> (raw)
In-Reply-To: <2acbd3e40803111031n40399ee5q5058b9089df9d6ad@mail.gmail.com>
Hi Andy,
I am bringing us back online as I think your insights might enlighten
others who might be googleing for answers. (I know i try my best when
faced with problems)
Andy Fleming wrote:
> On Tue, Mar 11, 2008 at 3:13 AM, Eran Liberty <liberty@extricom.com> wrote:
>
>> FLASH: ERROR: too many flash sectors
>> ERROR: too many flash sectors
>> 16 MB
>
> You should check that out.
I know exactly why I see this one and I don't think its the problem.
>
>
>
>> GPR00: 00029200 1FADBD40 1FADBF8C 0000F103 FF00113A 1FADBD32 000000A0
>> 69A60E94
>> GPR08: 00000000 FF000000 00000003 1FFFC4D4 48028024 F7B7BFFF 1FFFB200
>> 20040000
>> GPR16: 00000000 00000000 00000000 00000000 00000000 EFBFF5EF 1FADE338
>> 1FADE240
>> GPR24: FF07FFFF 00000000 00000001 FF00113A F1030000 1FFEFD40 1FFFB8F4
>> 1FFFC4D4
>> Call backtrace:
>> 1FFEFD40 1FFCEB4C 1FFCF1F8 1FFDD9CC 1FFD8E40 1FFDFAA0 1FFE0148
>> 1FFE02B0 1FFD16D4 1FFC9554 1FFC15FC
>
>
> Notice that r27 is 0xf1030000
>
considering the command I did, cp.b 0xff800000 0xff000000 80000, I
should have never accessed 0xf1030000.
>
>
>> => md e00050b0
>> e00050b0: 80000000 00000000 ffffffff 10110201 ................
>> e00050c0: f1030160 00000000 00000000 00000000 ...`............
>
>
> 50b0: 80000000 -- This means you had a bus timeout
>
> 50bc: 10110201 -- This means the error occurred during a read
> initiated by the processor.
> 50c0: f1030160 -- Notice this address is based off r27.
>
> My theory (based on very little), is that you have f1030160 mapped for
> some reason, and it's mapped unguarded. And the LBC thinks it's in
> its address space. That's probably due to the LAWs.
>
> So...
> 1) Check your LAWs. Is f1030160 targeted at Local Bus?
> 2) Check your TLBs. Is f1030160 mapped? If you have a bdi2000, it
> can tell you if there are entries in the TLBs for that region.
> 3) If f1030160 actually points at something that might not be ready
> for transactions, you need to mark the region as "Guarded"
>
I have used mpc8548cds as a reference so my local bus is mapped from
0xf0000000 - 0xffffffff
law.c will have this line:
====================== law.c snip ======================================
/* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
SET_LAW_ENTRY(8, CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
========================================================================
but tlb.c will have this for flash:
====================== tlb.c snip ======================================
/*
* TLB 0: 16M Non-cacheable, guarded
* 0xff000000 16M FLASH
* Out of reset this entry is only 4K.
*/
SET_TLB_ENTRY(1, CFG_BOOT_BLOCK, CFG_BOOT_BLOCK,
MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
0, 0, BOOKE_PAGESZ_16M, 1),
========================================================================
So we have local bus window mapping but not tlb mapping, which should be
ok, because I should have accessed only addresses within the tlb mapped
range.
so I guess my follow up questions are:
- Why does my u-boot thy to access this non flash address.?
- Why is this a first time problem only?
- Flash is written ok in the end. Why does it not hurt that actual write?
Thanks for all the effort you are putting into my problem. It is
immensely appreciated.
Liberty
next prev parent reply other threads:[~2008-03-11 18:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 19:13 [U-Boot-Users] Flash write crash on MPC8548CDS ksi at koi8.net
2008-02-20 21:00 ` Andy Fleming
2008-02-20 21:07 ` ksi at koi8.net
[not found] ` <2acbd3e40802201643x48969f5emd6644a66eb7d9d0@mail.gmail.com>
[not found] ` <Pine.LNX.4.64ksi.0802201646190.18544@home-gw.koi8.net>
2008-02-28 0:26 ` Andy Fleming
2008-02-28 0:39 ` ksi at koi8.net
2008-03-10 12:35 ` Eran Liberty
2008-03-10 14:41 ` Kumar Gala
2008-03-10 15:11 ` Eran Liberty
2008-03-10 16:38 ` Andy Fleming
2008-03-10 17:05 ` Eran Liberty
[not found] ` <2acbd3e40803101416h9cb2deay38f16894cca2766f@mail.gmail.com>
[not found] ` <47D63F1B.3070000@extricom.com>
[not found] ` <2acbd3e40803111031n40399ee5q5058b9089df9d6ad@mail.gmail.com>
2008-03-11 18:30 ` Eran Liberty [this message]
2008-03-11 19:08 ` ksi at koi8.net
2008-03-11 21:06 ` Andy Fleming
[not found] ` <47D79D72.5030108@extricom.com>
2008-03-12 18:23 ` Andy Fleming
2008-03-13 15:54 ` [U-Boot-Users] dtc n00bie - Flat device Tree nightmare Richard Parsons
2008-03-13 16:20 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D6CFB6.5030603@extricom.com \
--to=liberty@extricom.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox