how to print debug messages of uboot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to print debug messages of uboot

161 次查看
srinivas_123
Contributor II

@Dhruvit

i have myhello.c file 

in this myhello.c content is like

int main()

{

  if(i2c_read()==true)

{

     debug(" read success\n");

}

}

this i2c_read function is called at the start of uboot , before DRAM initialization, I want to print the debug message on the console at the time of booting.

is anyone know how to do it please help me

Thanks&Regads

srinivas

 

0 项奖励
3 回复数

94 次查看
pengyong_zhang
NXP Employee
NXP Employee
0 项奖励

138 次查看
pengyong_zhang
NXP Employee
NXP Employee

Hi, @srinivas_123 

try using printk(); function

B.R

131 次查看
srinivas_123
Contributor II

There are debug messages present in uboot receipe  how can i change debug to printk. 

because every time it is overriden by default files right. is there any other option to print or enable to display debug messages at the time of booting

 

B.R

标记 (1)
0 项奖励