public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] tftp alignment exception
@ 2007-04-13 23:28 Dongying_Xu at us.alphanetworks.com
  2007-04-15  5:01 ` Timur Tabi
  0 siblings, 1 reply; 6+ messages in thread
From: Dongying_Xu at us.alphanetworks.com @ 2007-04-13 23:28 UTC (permalink / raw)
  To: u-boot

Hi
Does anyone experienced TFTP alignment problem?  I am using MPC8347 with 
64bits DDR2 memory, when I tftp files, it will throw alignment exception. 
It happens more frequently on big size file. Anyone have any suggestions? 
Thanks

Best Regards
dongy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070413/7524ad61/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] tftp alignment exception
  2007-04-13 23:28 [U-Boot-Users] tftp alignment exception Dongying_Xu at us.alphanetworks.com
@ 2007-04-15  5:01 ` Timur Tabi
  2007-05-08  0:36   ` Dongying_Xu at us.alphanetworks.com
  0 siblings, 1 reply; 6+ messages in thread
From: Timur Tabi @ 2007-04-15  5:01 UTC (permalink / raw)
  To: u-boot

Dongying_Xu at us.alphanetworks.com wrote:
> 
> Hi
> Does anyone experienced TFTP alignment problem?  I am using MPC8347 with 
> 64bits DDR2 memory, when I tftp files, it will throw alignment 
> exception. It happens more frequently on big size file. Anyone have any 
> suggestions?  Thanks

I've worked with an 8349 a lot, and I've never seen this.  Are you 
trying to tftp a file to an unaligned address?  Can you provide the 
actual tftp command line that you use?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] tftp alignment exception
  2007-04-15  5:01 ` Timur Tabi
@ 2007-05-08  0:36   ` Dongying_Xu at us.alphanetworks.com
  2007-05-08 15:14     ` Timur Tabi
  0 siblings, 1 reply; 6+ messages in thread
From: Dongying_Xu at us.alphanetworks.com @ 2007-05-08  0:36 UTC (permalink / raw)
  To: u-boot

Hi Timur,
Sorry, I haven't read your email until today.  The command I used is

tftp 4000000 file_name

I met this problem only when I used one particular brand memory, when 
tftp, it is very slow and sometime it time-out, sometimes it throws 
exception. When I change to other brand DDR2 memory, it works fine.  I 
want to know is this a memory problem or setting problem or boot code 
problem?  By the way, I used spd setting and manual setting, Both don't 
work.  Thanks

Best Regards
dongy

 




Timur Tabi <timur@freescale.com>
04/14/2007 10:01 PM
 
        To:     Dongying_Xu at us.alphanetworks.com
        cc:     u-boot-users at lists.sourceforge.net
        Subject:        Re: [U-Boot-Users] tftp alignment exception


Dongying_Xu at us.alphanetworks.com wrote:
> 
> Hi
> Does anyone experienced TFTP alignment problem?  I am using MPC8347 with 

> 64bits DDR2 memory, when I tftp files, it will throw alignment 
> exception. It happens more frequently on big size file. Anyone have any 
> suggestions?  Thanks

I've worked with an 8349 a lot, and I've never seen this.  Are you 
trying to tftp a file to an unaligned address?  Can you provide the 
actual tftp command line that you use?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070507/1ae4be37/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] tftp alignment exception
  2007-05-08  0:36   ` Dongying_Xu at us.alphanetworks.com
@ 2007-05-08 15:14     ` Timur Tabi
  2007-05-08 17:59       ` Dongying_Xu at us.alphanetworks.com
  0 siblings, 1 reply; 6+ messages in thread
From: Timur Tabi @ 2007-05-08 15:14 UTC (permalink / raw)
  To: u-boot

Dongying_Xu at us.alphanetworks.com wrote:
> 
> Hi Timur,
> Sorry, I haven't read your email until today.  The command I used is
> 
> tftp 4000000 file_name
> 
> I met this problem only when I used one particular brand memory, when 
> tftp, it is very slow and sometime it time-out, sometimes it throws 
> exception. When I change to other brand DDR2 memory, it works fine.  I 
> want to know is this a memory problem or setting problem or boot code 
> problem?  By the way, I used spd setting and manual setting, Both don't 
> work.  Thanks

Try adding this to your board config file:

#define CFG_DDR_SDRAM_CLK_CNTL	(DDR_SDRAM_CLK_CNTL_SS_EN | \
				DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)

On some 834x systems, CFG_DDR_SDRAM_CLK_CNTL needs to be defined but the header files 
don't define it.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] tftp alignment exception
  2007-05-08 15:14     ` Timur Tabi
@ 2007-05-08 17:59       ` Dongying_Xu at us.alphanetworks.com
  2007-05-08 18:58         ` Timur Tabi
  0 siblings, 1 reply; 6+ messages in thread
From: Dongying_Xu at us.alphanetworks.com @ 2007-05-08 17:59 UTC (permalink / raw)
  To: u-boot

Timur,

I did define  #define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
 DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
in my code, it doesn't work.  What I don't understand is that we can boot 
up the system using this particular memory but we could not tftp. Is there 
any burst mode I can set?  Thanks,

Best Regards
dongy

 




Timur Tabi <timur@freescale.com>
05/08/2007 08:14 AM
 
        To:     Dongying_Xu at us.alphanetworks.com
        cc:     u-boot-users at lists.sourceforge.net
        Subject:        Re: [U-Boot-Users] tftp alignment exception


Dongying_Xu at us.alphanetworks.com wrote:
> 
> Hi Timur,
> Sorry, I haven't read your email until today.  The command I used is
> 
> tftp 4000000 file_name
> 
> I met this problem only when I used one particular brand memory, when 
> tftp, it is very slow and sometime it time-out, sometimes it throws 
> exception. When I change to other brand DDR2 memory, it works fine.  I 
> want to know is this a memory problem or setting problem or boot code 
> problem?  By the way, I used spd setting and manual setting, Both don't 
> work.  Thanks

Try adding this to your board config file:

#define CFG_DDR_SDRAM_CLK_CNTL           (DDR_SDRAM_CLK_CNTL_SS_EN | \
 DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)

On some 834x systems, CFG_DDR_SDRAM_CLK_CNTL needs to be defined but the 
header files 
don't define it.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070508/a7932c9c/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot-Users] tftp alignment exception
  2007-05-08 17:59       ` Dongying_Xu at us.alphanetworks.com
@ 2007-05-08 18:58         ` Timur Tabi
  0 siblings, 0 replies; 6+ messages in thread
From: Timur Tabi @ 2007-05-08 18:58 UTC (permalink / raw)
  To: u-boot

Dongying_Xu at us.alphanetworks.com wrote:
> 
> Timur,
> 
> I did define  #define CFG_DDR_SDRAM_CLK_CNTL                 
> (DDR_SDRAM_CLK_CNTL_SS_EN | \
>                                                                   
>  DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
> in my code, it doesn't work.  

Are you sure you're executing this code in spd_sdram():

#ifdef CFG_DDR_SDRAM_CLK_CNTL	/* Optional platform specific value */
	ddr->sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
#else


What I don't understand is that we can
> boot up the system using this particular memory but we could not tftp. 
> Is there any burst mode I can set?  Thanks,

I really don't know at this point.  I've never seen this problem, and tftp isn't 
particularly demanding, so I don't understand what's happening.  My only guess is that 
your memory is not configured exactly right, so some memory operations work and some 
don't.  Since I'm not expert on DDR, I really can't say what the problem is.  Sorry.


-- 
Timur Tabi
Linux Kernel Developer @ Freescale

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-08 18:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13 23:28 [U-Boot-Users] tftp alignment exception Dongying_Xu at us.alphanetworks.com
2007-04-15  5:01 ` Timur Tabi
2007-05-08  0:36   ` Dongying_Xu at us.alphanetworks.com
2007-05-08 15:14     ` Timur Tabi
2007-05-08 17:59       ` Dongying_Xu at us.alphanetworks.com
2007-05-08 18:58         ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox