MPC8349Emitx-GP hangs with latest u-boot
Hello,
Using the latest sources from u-boot, my MPC8349Emitx-GP hangs after a few seconds when I'm in userspace (i.e. after Linux successfully booted). I tried both vanilla linux 2.6.20 and 2.6.14 from WindRiver, same result.
When I use u-boot 1.1.3 with patches from Freescale, the system is OK. I also tried the latest u-boot with linux 2.6.20 on a MPC8349Emds board and everything is fine.
I tried disabling nearly all the buses/devices in the Device Tree, but the system still hangs (even the serial console does not respond).
What (in u-boot) could make my system hang when linux is up and running?
Signature · 1 line
Greg
Quoted 6 lines · Gregoire Banderet
Hello,
Using the latest sources from u-boot, my MPC8349Emitx-GP hangs after a few seconds when I'm in userspace (i.e. after Linux successfully booted). I tried both vanilla linux 2.6.20 and 2.6.14 from WindRiver, same result.
That's a new one.
Quoted 1 line
When I use u-boot 1.1.3 with patches from Freescale, the system is OK.
Weird. The only thing I can suggest is that perhaps you need the CFG_DDR_SDRAM_CLK_CNTL fix for the latest U-Boot.
In MPC8349ITX.h, add this line
#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN |DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
right after this line:
#define CFG_MEMTEST_END 0x2000
Quoted 8 lines · Timur Tabi
Quoted 6 lines · Gregoire Banderet
Hello,
Using the latest sources from u-boot, my MPC8349Emitx-GP hangs after a few seconds when I'm in userspace (i.e. after Linux successfully booted). I tried both vanilla linux 2.6.20 and 2.6.14 from WindRiver, same result.
Quoted 6 lines
That's a new one.
Quoted 1 line
When I use u-boot 1.1.3 with patches from Freescale, the system is OK.
Weird. The only thing I can suggest is that perhaps you need the
CFG_DDR_SDRAM_CLK_CNTLfix for the latest U-Boot.
Whaoo! No more hangs. *Thanks*.
Signature · 1 line
Greg
Quoted 10 lines
In
MPC8349ITX.h, add this line#define
CFG_DDR_SDRAM_CLK_CNTL(DDR_SDRAM_CLK_CNTL_SS_EN|DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)right after this line:
#define
CFG_MEMTEST_END0x2000
Gregoire Banderet wrote:
fix for the latest U-Boot.
Quoted 2 lines
Whaoo! No more hangs. *Thanks*.
I'm glad it works. It's weird - I wrote the code for the ITX almost 9 months ago, and suddenly people are reporting problems related to CFG_DDR_SDRAM_CLK_CNTL. The board I use to test never experienced this problem.
Anyway, this fix is already in the uboot-83xx repo and will be merged into WD's repo soon.
Signature · 2 lines
Timur Tabi Linux Kernel Developer @ Freescale