how to print debug messages of uboot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to print debug messages of uboot

329件の閲覧回数
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 返答(返信)

262件の閲覧回数
pengyong_zhang
NXP Employee
NXP Employee
0 件の賞賛
返信

306件の閲覧回数
pengyong_zhang
NXP Employee
NXP Employee

Hi, @srinivas_123 

try using printk(); function

B.R

299件の閲覧回数
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 件の賞賛
返信