Hello all,
I am using sabresd with 2014.01 u-boot ("mx6qsabresd_config" configuration) and I got the u-boot prompt on the board. But there is no "i2c" command by default. And I tried to bring up the "i2c" command. For this, I added these lines in "include/configs/mx6sabresd.h" file (I referred LTIB BSP u-boot code which is 2009.08 version )
/* I2C configs */
#define CONFIG_CMD_I2C
#define CONFIG_SYS_I2C 1
#define CONFIG_I2C_MXC 1
#define CONFIG_SYS_I2C_PORT I2C2_BASE_ADDR
#define CONFIG_SYS_I2C_SPEED 100000
#define CONFIG_SYS_I2C_SLAVE 0x8
And with this settings, I got the u-boot prompt with i2c command but it is not working properly. Below is the attached boot log message:
U-Boot 2014.01 (Apr 23 2014 - 17:03:14)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: MX6-SabreSD
I2C: Error, wrong i2c adapter 0 max 0 possible
ready
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment
Error, wrong i2c adapter 0 max 0 possible
Error, wrong i2c adapter 0 max 0 possible
auto-detected panel HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Hit any key to stop autoboot: 0
=> i2c probe
Valid chip addresses:Error, wrong i2c adapter 0 max 0 possible
Error, wrong i2c adapter 0 max 0 possible
data abort
MAYBE you should read doc/README.arm-unaligned-accesses
pc : [<4ffa0bf4>] lr : [<4ff8d220>]
sp : 4f570dd8 ip : 00000034 fp : 00000000
r10: 00000002 r9 : 4f570f30 r8 : 4f876cc8
r7 : 00000000 r6 : ffffffff r5 : 00000000 r4 : 4ffa0bd0
r3 : 00000083 r2 : 00000060 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
resetting ...
U-Boot 2014.01 (Apr 23 2014 - 17:03:14)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: WDOG
Board: MX6-SabreSD
I2C: Error, wrong i2c adapter 0 max 0 possible
ready
DRAM: 1 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment
Error, wrong i2c adapter 0 max 0 possible
Error, wrong i2c adapter 0 max 0 possible
auto-detected panel HDMI
Display: HDMI (1024x768)
In: serial
Out: serial
Err: serial
Net: FEC [PRIME]
Hit any key to stop autoboot: 0
=>
As you can see, when I try for "i2c probe", the board is reset with "Error, wrong i2c adapter 0 max 0 possible" error message. Do I need any other configuration for "i2c" command to work properly?
Thanks in advance.