当前位置:网站首页>uboot通过终端发送‘r‘字符读取ddr内存大小
uboot通过终端发送‘r‘字符读取ddr内存大小
2022-06-30 05:20:00 【要不要买菜!】
uboot通过终端发送’r’字符读取ddr内存大小
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;
}
边栏推荐
- UnityEngine. JsonUtility. The pit of fromjason()
- PyGame. Why can't I exit when I click X in the window? I can only exit when I return idle
- Force buckle 209 Minimum length subarray
- VFPBS上传EXCEL并保存MSSQL到数据库中
- Unity project hosting platform plasticscm (learn to use 2)
- GoLand No Tests Were Run : 不能使用 fmt.Printf() &lt;BUG&gt;
- Unity 3D model operation and UI conflict Scrollview
- Operation of JSON file
- MinGW-w64下载文件失败the file has been downloaded incorrectly!
- Detailed explanation of sorting sort method of JS array
猜你喜欢
随机推荐
Connect() and disconnect() of socket in C #
RedisTemplate 常用方法汇总
Basic operations of Oracle data
Unity C trigonometric function, right triangle corner calculation
Intellj idea jars projects containing external lib to other project reference methods - jars
Fifty years ago, the go code first submitted by the inventor of Hello world was as long as this
Log writing specification
Another download address for typro
pytorch中常用损失函数总结
Bessel curve with n control points
使用码云PublicHoliday项目判断某天是否为工作日
Generate a slice of mesh Foundation
很紧张,第一天做软件测试,需要做什么?
Revit secondary development - use panel function without opening the project
Unity application class and data file path
Unity scroll view element drag and drop to automatically adsorb centering and card effect
Tensorflow2 of ubantu18.04 X installation
Golan no tests were run: fmt Printf() &lt; BUG&gt;
[typescript] experimentaldecorators of vscode stepping pit
2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking


![[notes] unity webgl input Chinese](/img/f7/805f510ff691227b4c2b529cc1099a.jpg)






