当前位置:网站首页>Uboot reads the DDR memory size by sending 'R' characters through the terminal
Uboot reads the DDR memory size by sending 'R' characters through the terminal
2022-06-30 05:24:00 【Do you want to buy vegetables!】
uboot Send through the terminal ’r’ Character reading ddr Memory size
static int show_dram(void)
{
unsigned long long size;
#ifdef CONFIG_NR_DRAM_BANKS
int i;
debug("\nRAM Configuration:\n");
for (i = size = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
size += gd->bd->bi_dram[i].size;
debug("Bank #%d: %llx ", i,
(unsigned long long)(gd->bd->bi_dram[i].start));
#ifdef DEBUG
print_size(gd->bd->bi_dram[i].size, "\n");
#endif
}
debug("\nDRAM: ");
#else
size = gd->ram_size;
#endif
print_size(size, "");
putc('\n');
return 0;
}
static int run_main_loop(void)
{
int flag=1;
#ifdef CONFIG_SANDBOX
sandbox_main_loop_init();
#endif
/* main_loop() can return to retry autoboot, if so just run it again */
for (;;){
if (flag&&serial_getc() == 'r'){
show_dram();
flag=~flag;
}
}
main_loop();
return 0;
}
边栏推荐
- Tensorflow2 of ubantu18.04 X installation
- Unity scroll view element drag and drop to automatically adsorb centering and card effect
- Unity project hosting platform plasticscm (learn to use 1)
- Intellj idea generates jar packages for projects containing external lib to other projects. The method refers to the jar package written by itself
- unity 扫描圈 圆扩展方法
- Installation and getting started with pytoch
- The fourth day of learning C language for Asian people
- Unity packaging and publishing webgl error reason exception: failed building webgl player
- Configuration and use of controllers and routes in nestjs
- 遥感图像/UDA:Curriculum-Style Local-to-Global Adaptation for Cross-Domain Remote Sensing Image Segmentat
猜你喜欢
Visualization of 3D geological model based on borehole data by map flapping software
【LeetCode】Easy | 225. Using queue to realize stack (pure C manual tearing queue)
Vfpbs uploads excel and saves MSSQL to the database
虚析构和纯虚析构
Intellj idea generates jar packages for projects containing external lib to other projects. The method refers to the jar package written by itself
Unity screenshot method
Ugui uses its own function to realize reverse mask
[note] usage model tree of the unity resource tree structure virtualizingtreeview
东塔攻防世界—xss绕过安全狗
Unity ugui text value suspended enlarged display add text background
随机推荐
Unity packaging and publishing webgl error reason exception: failed building webgl player
Nestjs configures static resources, template engine, and post examples
Word frequency statistics (string, list)
QT connecting external libraries
Revit二次開發---未打開項目使用面板功能
炒美原油的国际交易平台如何能保障资金安全呢?
D. Big Brush
Unity3d packaging and publishing APK process
【LeetCode】Easy | 225. Using queue to realize stack (pure C manual tearing queue)
Pyinstaller flash back
Fifty years ago, the go code first submitted by the inventor of Hello world was as long as this
VFPBS在IIS下调用EXCEL遇到的Access is denied
Chapter 7 vertex processing and drawing commands of OpenGL super classic (7th Edition)
How can the international trading platform for frying US crude oil guarantee capital security?
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
遥感图像/UDA:Curriculum-Style Local-to-Global Adaptation for Cross-Domain Remote Sensing Image Segmentat
Win10 vs2015 compiling curaengine
Chapter 8 primitive processing of OpenGL super classic (version 7)
Unityshader learning notes - Basic Attributes
Tensorflow2 of ubantu18.04 X installation