Recently idle to see 6410 of the Uboot code, because the friendly boot to the NAND part of the code to do hide, so simply find the disc inside the Samsung original Uboot code to see, because the friendly boot code is certainly based on the manufacturer's code changes, certainly can.
Security, directly compiled Samsung's uboot code, put on the friendly board ran a bit, the results can run, but found out, the printed dram size is 0.
Check today, found that is declare_global_data_ptr this definition of the problem, the friendly code added a comment, said the gcc4.5.1+ version of the definition of the macro is not supported!
The original definition in Uboot is as follows:
#define DECLARE_GLOBAL_DATA_PTR Register volatile gd_t *gd asm ("R8")
The kindness was changed to:
#define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd;
is to define a global variable!
After the change, the size of the DRAM is normal.
Check out 8127 of the Uboot code, found still used uboot original definition, and so on Monday to the company to look at the 8127 Uboot compiler version, currently cannot be verified.
DECLARE_GLOBAL_DATA_PTR macro Definition Issues