毕业设计相关。 本仓库存放内存测试算法实现相关代码。
raspberrypi内核编译openEuler openEuler 22.03 LTS:git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-22.03-LTS && cd raspberrypi-kernel
树莓派 openeuler 编译: https://gitee.com/openeuler/raspberrypi/blob/master/documents/openEuler%E9%95%9C%E5%83%8F%E7%9A%84%E6%9E%84%E5%BB%BA.md#%E4%B8%8B%E8%BD%BD%E6%BA%90%E7%A0%81
x86环境交叉编译aarch64的openeuler
编译u-boot前需在config文件中添加
CONFIG_CMD_MEMTEST=y
注意,config中CONFIG_TEXT_BASE为u-boot内存起始地址,CONFIG_SYS_LOAD_ADDR为默认加载地址
CONFIG_TEXT_BASE=0x00080000
CONFIG_SYS_LOAD_ADDR=0x1000000
使用方法为
mtest [start [end [pattern [iterations]]]]
示例
U-Boot> mtest 0x20000000 0x22000000 0xaabbccdd
Testing 20000000 ... 22000000:
Pattern FFFFFFFF55443322 Writing... Reading...Iteration: 1094
Tested 1094 iteration(s) with 0 errors.
注意:测试地址不得覆盖u-boot所在内存