Re: [U-Boot-Users] tftp alignment exception

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

Dongying_Xu@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?

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@us.alphanetworks.com cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] tftp alignment exception
Dongying_Xu@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?

Dongying_Xu@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,
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@us.alphanetworks.com cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] tftp alignment exception
Dongying_Xu@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.

Dongying_Xu@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.
participants (2)
-
Dongying_Xu@us.alphanetworks.com
-
Timur Tabi