U-Boot SPL 2017.11-dirty (Dec 04 2020 - 14:01:52)
DRAM:Timeout initialising DRAM
resetting ...
U-Boot SPL 2017.11-dirty (Dec 04 2020 - 14:01:52)
DRAM:Timeout initialising DRAM
resetting ...
U-Boot SPL 2017.11-dirty (Dec 04 2020 - 14:01:52)
DRAM:Timeout initialising DRAM
resetting ...
离线
离线
/*
* Wait up to 1s for value to be set in given part of reg.
*/
void mctl_await_completion(u32 *reg, u32 mask, u32 val)
{
unsigned long tmo = timer_get_us() + 1000000;
while ((readl(reg) & mask) != val) {
if (timer_get_us() > tmo)
panic("Timeout initialising DRAM\n");
}
}
或者把 1000000 改大一点试一试, 或许是DRAM片子差异导致初始化速度不一致?
离线
有可能是回收的片子。表示从淘宝买的片子,翻新的概率非常大。这种芯片很难从正规渠道流到淘宝。
离线