This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

U-boot 问题

Other Parts Discussed in Thread: AM1808, PCF8574

各位大虾:

小弟最近在弄 TI的 AM1808 、OMAPL138的片子,现在是控制 PCF8574T 这款片子.

我PCF8574的片选地址设置的为 0x20 ,

而在 u-boot 中:

u-boot-2011.12-former\u-boot-2011.12\include\configs\da850evm.h:

#define CONFIG_SYS_I2C_EXPANDER_ADDR   0x20  

u-boot-2011.12-former\u-boot-2011.12\board\davinci\da8xxevm\ da850evm.c:

int rmii_hw_init(void){};做了对 地址 0x20 的处理 。

我做的处理和现象如下:

1:通过硬件 将模块的 PCF8675  片选地址 改为 非 0x20 【 例如 0x23  】,内核启动后 ,串口打印:

Expander @ 0x** write FAILED!!!  

RMII hardware init failed!!!     信息!

2: 通过软件 修改 da850evm.h 中的宏定义

#define CONFIG_SYS_I2C_EXPANDER_ADDR   0x30   【 非 0x20 的地址  】

或者 将  da850evm.c 中的

int rmii_hw_init(void){  } 内部的处理部分注释掉 默认返回为 0  ,

int rmii_hw_init(void){ return 0; }

在内核启动的时候 会 出现 DHCP 超时的错误 ,内核无法启动!

不知道怎么修改,想请各位大虾给点建议思路。

TKS