From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Board is not booting after flashing U-boot and hard reset
Date: Mon, 4 Jan 2010 11:07:07 +0100 [thread overview]
Message-ID: <201001041107.07876.sr@denx.de> (raw)
In-Reply-To: <c3293e780912310204n43200a07oade8fc363630a9ab@mail.gmail.com>
Hi Prakash,
On Thursday 31 December 2009 11:04:50 prakash bedge wrote:
> Why the below code start with the TLB1?
>
> My U-boot image is supposed to boot from flash, so here #else condition is
> valid in my case. I believe it should start from the TLB 0 entry. But I
> think TLB0 is not selected.
>
> code snippet from /cpu/ppc4xx/start.S
>
> addis r0,0,0x0000
> #ifdef CONFIG_SYS_RAMBOOT
> li r4,0 /* Start with TLB #0 */
> #else
> li r4,1 /* Start with TLB #1 */
> #endif
> li r1,64 /* 64 TLB entries */
> sub r1,r1,r4 /* calculate last TLB # */
> mtctr r1
>
> ..
> Here we are setting TLBs from 0-63.
> #else
> bl tlbtab /* Get tlbtab pointer */
> #endif
> mr r5,r0
> li r1,0x003f /* 64 TLB entries max */
> mtctr r1
> li r4,0 /* TLB # */
>
> I might be not very clear of above code. Please explain.
What makes you think that this code causes problems with your custom board
port? Did you check the content of the TLB's using a JTAG debugger (tlb 0 63
on the BDI2000/3000)?
BTW: This code is working for all kind of PPC4xx boards. Even 440GX based
ones. So I don't really expect a problem with your board in this code snippet
here.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
prev parent reply other threads:[~2010-01-04 10:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-29 15:04 [U-Boot] Board is not booting after flashing U-boot and hard reset prakash bedge
2009-12-30 5:21 ` Stefan Roese
2009-12-30 11:31 ` prakash bedge
2009-12-30 11:51 ` Stefan Roese
2009-12-31 4:39 ` prakash bedge
2010-01-04 9:36 ` Stefan Roese
2009-12-30 12:27 ` Vivek
2009-12-31 10:04 ` prakash bedge
2010-01-04 10:07 ` Stefan Roese [this message]
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=201001041107.07876.sr@denx.de \
--to=sr@denx.de \
--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