how to print debug messages of uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to print debug messages of uboot

160 Views
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 Kudos
3 Replies

93 Views
pengyong_zhang
NXP Employee
NXP Employee
0 Kudos

137 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi, @srinivas_123 

try using printk(); function

B.R

130 Views
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

Tags (1)
0 Kudos