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

514 Views
srinivas_123
Contributor III

@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
Reply
3 Replies

447 Views
pengyong_zhang
NXP Employee
NXP Employee
0 Kudos
Reply

491 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi, @srinivas_123 

try using printk(); function

B.R

484 Views
srinivas_123
Contributor III

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
Reply