From: Pieter <phenning@vastech.co.za>
To: Jon Loeliger <jdl@freescale.com>, linuxppc-dev@ozlabs.org
Subject: Re: Trouble moving custom MPC8548 board to U-boot 1.3
Date: Fri, 09 Jan 2009 15:32:20 +0200 [thread overview]
Message-ID: <496751E4.2000108@vastech.co.za> (raw)
In-Reply-To: <1231260769.21398.5.camel@ld0161-tx32>
[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]
Hi all,
>> I have spent quite some time trying to move from U-Boot 1.2 to a newer
>> version.. I am stuck at the initialization of the ram. The ram checksum
>> fails and gives me a "total memory of 0". (the board has 512MB and work
>> when booting uboot 1.2)
>>
>> can anyone pls. point me in the right direction?
>>
>>
> This is your root cause: Unable to get the SPD information
> for the DDR DIMM in slot 0 of controller 0.
>
> What part are you using? Does it support SPD?
> Is your I2C to it hooked up correctly?
> Can you dump the SPD information that is read?
> Does it match the part specs?
>
> HTH,
> jdl
I have managed to read the SPD data for the dram. I also confirmed that
the dram control and timing settings correspond to the settings that
worked in the previous uboot.
I am now able to run uboot up to the "relocate_code". The new Stack
pointer is set to 0x0FF8DF58 witch is close enough to what i expected.
This is however where the board hangs. (The board also hang when running
the "testram"). I tried reading the data at the new stack pointer but
get "SAP: read access failed" i get the same error when trying to read
any address within the RAM or any address of other devices. This leads
me to think that my LAW or TLB setup is incorrect.
Looking at LAW setup: (based on board sbc8548)
/* LAW(Local Access Window) configuration:
* 0x0000_0000 0x1fff_ffff DDR 512M/Auto
* 0x8000_0000 0xbfff_ffff PCI1 MEM 1G
* 0xc000_0000 0xcfff_ffff PCI1 IO 16M
* 0xe000_0000 0xffff_ffff LBC 512M */
struct law_entry law_table[] = {
#ifndef CONFIG_SPD_EEPROM
SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAWAR_SIZE_512M,
LAWAR_TRGT_IF_DDR),
#endif
SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAWAR_SIZE_1G,
LAWAR_TRGT_IF_PCI1 ),
SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAWAR_SIZE_16M,
LAWAR_TRGT_IF_PCI1),
SET_LAW(CONFIG_SYS_LBC_BASE, LAWAR_SIZE_512M, LAWAR_TRGT_IF_LBC)
};
Since my board uses SPD_EEPROM, where does the LAW entry for DDR done by
cpu/mpc8xxx/ddr/util.c and should not need changing, the base adders is
correct, as is the law_bar_target_id.
Could you pl suggest some other things i should should look at.
thanks pieter
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2722 bytes --]
next prev parent reply other threads:[~2009-01-09 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 13:28 Trouble moving custom MPC8548 board to U-boot 1.3 Pieter
2009-01-06 16:52 ` Jon Loeliger
2009-01-09 13:32 ` Pieter [this message]
2009-01-09 13:32 ` Pieter
2009-01-09 15:38 ` Kumar Gala
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=496751E4.2000108@vastech.co.za \
--to=phenning@vastech.co.za \
--cc=jdl@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).