All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] while booting u-boot hang at "relocate_code(addr_sp, id, addr); "
Date: Sat, 1 Sep 2012 20:24:09 +0200	[thread overview]
Message-ID: <20120901202409.09a15ff1@lilith> (raw)
In-Reply-To: <CAO1Rv-Ys0ugzJjaGDU-cagHXPppfbr_312omNAaVY2pkngxjHw@mail.gmail.com>

Hi Thirumalesha,

On Sat, 1 Sep 2012 22:37:24 +0530, Thirumalesha N
<thiru.linux@gmail.com> wrote:

> Dear sir,
> 
> I'm porting u-boot for mpc8280 based custom board by taking mpc8260ads
> board with latest u-boot source code.
> 
> its hanging while booting at "relocate_code(addr_sp, id, addr);"
> 
> unsigned long logbuffer_base(void)
> {
> 
> ,...................
> ..................
> relocate_code(addr_sp, id, addr);
> 
> }
> 
> U-Boot 2012.07 (Sep 01 2012 - 09:43:41)
> 
> MPC8260 Reset Status: External Soft, External Hard
> 
> MPC8260 Clock Configuration
>  - Bus-to-Core Mult 2.5x, VCO Div 4, 60x Bus Freq  20-60 , Core Freq
> 50-120
>  - dfbrg 1, corecnf 0x11, busdf 3, cpmdf 1, plldf 0, pllmf 3, pcidf 3
>  - vco_out  400000000, scc_clk  100000000, brg_clk   25000000
>  - cpu_clk  250000000, cpm_clk  200000000, bus_clk  100000000
> 
> CPU:   MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 250 MHz
> Board: MPC8280 Based RIO CARD.Testing  By Thiru N...............
> I2C:   [I2C] Setting rate...
>         [I2C] trying hz=25000000, speed=500000, filter=0, modval=0
>                 moddiv=32, brgdiv=2
>                 rejected brgval=-2
>         [I2C] trying hz=25000000, speed=500000, filter=0, modval=1
>                 moddiv=16, brgdiv=4
>                 rejected brgval=-1
>         [I2C] trying hz=25000000, speed=500000, filter=0, modval=2
>                 moddiv=8, brgdiv=7
>                 accepted brgval=1, totspeed=390625
>         [I2C] trying hz=25000000, speed=500000, filter=0, modval=3
>                 moddiv=4, brgdiv=13
>                 accepted brgval=4, totspeed=446428
> [I2C] Best is:
> [I2C] CPU=25000000hz RATE=500000 F=0 I2MOD=00000003 I2BRG=00000004
> DIFF=53572hz
> [I2C] i2mod=00000006 i2brg=00000004
> [I2C] rbase = 0100
> [I2C] tbase = 0120
> [I2C] rxbd = f0000100
> [I2C] txbd = f0000120
> ready
> DRAM:  512 MiB
> Top of RAM usable for U-Boot at: 20000000
> Reserving 221k for U-Boot at: 1ffc8000
> Reserving 4160k for malloc() at: 1fbb8000
> Reserving 72 Bytes for Board Info at: 1fbb7fb8
> Reserving 108 Bytes for Global Data at: 1fbb7f4c
> Stack Pointer at: 1fbb7f28
> New Stack Pointer is: 1fbb7f28
> 
> what may be the reason its hanging at this point? what changes still
> i need to change?
> 
> Regards
> Thiru N

Relocation is typically when the code starts writing to SDRAM. Did you
triple-check that the SDRAM settings are ok?

Amicalement,
-- 
Albert.

      reply	other threads:[~2012-09-01 18:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-01 17:07 [U-Boot] while booting u-boot hang at "relocate_code(addr_sp, id, addr); " Thirumalesha N
2012-09-01 18:24 ` Albert ARIBAUD [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=20120901202409.09a15ff1@lilith \
    --to=albert.u.boot@aribaud.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.