Hi,
When working with a M5282EVB configuration I have noticed that initdram() (in /board/m5282evb/m5282evb.c) does not return a value. It should return the dram size.
This causes U-Boot to be unable to complete it's boot process since dram size is set to some garbage value.
Adding the following line at the end of the function solved the problem:
return (dramsize);
Regards,
Erez