我正在使用带有
yocto-bsp
的 imx6slevk 板。
我使用
mfgtool
来刷新图像,它适用于 1GB DRAM。
现在我正在尝试将 DRAM 更改为 512 MB。
我修改了dts文件内存节点:
memory {
reg = <0x80000000 0x20000000>; //it was 0x40000000
};
我运行了校准工具并更新了 2 个寄存器
DATA 4 0x021b0848 0x4644484a //changed for 512 mb old value = 0x4241444a
DATA 4 0x021b0850 0x3a363a30 //changed for 512 mb old value = 0x3030312b
但是 u-boot 日志在闪存日志中仍然显示 1 GiB DRAM:
U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1b (Sep 24 2019 - 11:04:03 +0530)
CPU: Freescale i.MX6SL rev1.2 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 48C
Reset cause: POR
Model: Freescale i.MX6 SoloLite EVK Board
Board: MX6SLEVK
DRAM: 1 GiB
如何将 DRAM 从 1 GiB 更改为 512 MiB?
没有这个内核就不会闪烁。
参考以下方法修复dram值:
// uboot source code path: board/[your_board_name]/board.c
// This fixes the dram value
int dram_init(void)
{
gd->ram_size = 512 * 1024 * 1024;
return 0;
}