摘要
目前U-boot无法自动检测硬件系统的实际内存大小,需要预先进行手工配置,增加了U-boot的移植难度。针对这一问题设计了自动检测内存容量的机制,先假设内存大小再进行配置和检测,然后根据硬件反馈的信息进行验证并重新配置。自动检测内存容量机制在基于S3C6410的开发板OK6410上进行了验证,结果表明该机制有效可行,并且实现该机制的代码只需要不到1 k字节的存储空间。
At present, U-boot is unable to automatically detect the actual memory size of hardware system, so it needs manual configuration, which makes it more difficult for U-boot transplantation. In fact, we design a mechanism of automatic detection of memory. Firstly, we assume the memory size. Then we configure memory controller on the basis of the hypothesis, and test the hypothesis. Finally, we verify the hypothesis and reconfigure memory controller according to the information of the hardware feedback. Automatic detection mechanism of memory is verified on the S3C6410 development board named 0K6410. The results show that the mechanism is effective and feasible with storage space of less 1 k bytes.
出处
《杭州电子科技大学学报(自然科学版)》
2014年第4期75-78,共4页
Journal of Hangzhou Dianzi University:Natural Sciences
关键词
自动检测
配置
验证
automatic detection
configuration
verification