AnsweredAssumed Answered

How to debug U-boot issue?

Question asked by hrushinale on Aug 18, 2016
Latest reply on Aug 22, 2016 by igorpadykov

Hello all,

 

I tried porting U-boot(2014.04) in our custom board running on i.MX6 Dualite.we run DDR calibration and got the updated values.

I updated the .cfg file with the DDR3 script values and DDR calibration result values.

But after that aso my U-boot prompt doesn't came up and It stucked at below point.

 

U-Boot 2014.04 (Aug 16 2016 - 10:42:46)

 

CPU:   Freescale i.MX6DL rev1.3 at 792 MHz

CPU:   Temperature 33 C, calibration data: 0x5804f469

Reset cause: POR

Board: Custom-Dual

I2C:   ready

DRAM:  2 GiB

(It stucked here only)

 

After that I modified below register values in the DDR3 configuration.

DATA 4,    0x021b0818, 0x00000007// changed from  0x00022227

DATA 4,    0x021b4818, 0x00000007 //changed from  0x00022227

and my U-boot prompt came up.

 

But when I closely saw the logs its giving below errors:

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

wait_for_sr_state: Arbitration lost sr=93 cr=80 state=2020

i2c_init_transfer: failed for chip 0x8 retry=0

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

i2c_init_transfer: give up i2c_regs=021a0000

PMIC Voltages set

 

The complete U-boot boot logs are as below:

 

U-Boot 2014.04 (Aug 17 2016 - 16:48:03)

 

CPU:   Freescale i.MX6DL rev1.3 at 792 MHz

CPU:   Temperature 32 C, calibration data: 0x5804f469

Reset cause: POR

Board:Custom-Dual

I2C:   ready

DRAM:  2 GiB

MMC:   FSL_SDHC: 0

MMC Device 1 not found

No MMC card found

Using default environment

 

No panel detected: default to Newhaven-CTP

Display: Newhaven-CTP (800x480)

In:    serial

Out:   serial

Err:   serial

Boot modes set

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

wait_for_sr_state: Arbitration lost sr=93 cr=80 state=2020

i2c_init_transfer: failed for chip 0x8 retry=0

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

i2c_init_transfer: give up i2c_regs=021a0000

(Not understanding Why I am getting this?)

PMIC Voltages set

## 17059

Exiting board_late_init

CMD_SEND:0

                ARG                      0x00000000

                MMC_RSP_NONE

CMD_SEND:8

                ARG                      0x000001AA

                MMC_RSP_R1,5,6,7         0x000001AA

CMD_SEND:55

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000120

CMD_SEND:41

                ARG                      0x40300000

                MMC_RSP_R3,4             0x40FF8000

CMD_SEND:55

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000120

CMD_SEND:41

                ARG                      0x40300000

                MMC_RSP_R3,4             0x40FF8000

CMD_SEND:55

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000120

CMD_SEND:41

                ARG                      0x40300000

                MMC_RSP_R3,4             0xC0FF8000

CMD_SEND:2

                ARG                      0x00000000

                MMC_RSP_R2               0x03534453

                                         0x4C313647

                                         0x806AEA77

                                         0x9E00F700

 

                                        DUMPING DATA

                                        000 - 03 53 44 53

                                        004 - 4C 31 36 47

                                        008 - 80 6A EA 77

                                        012 - 9E 00 F7 00

CMD_SEND:3

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0xAAAA0520

CMD_SEND:9

                ARG                      0xAAAA0000

                MMC_RSP_R2               0x400E0032

                                         0x5B590000

                                         0x76B27F80

                                         0x0A404000

 

                                        DUMPING DATA

                                        000 - 40 0E 00 32

                                        004 - 5B 59 00 00

                                        008 - 76 B2 7F 80

                                        012 - 0A 40 40 00

CMD_SEND:13

                ARG                      0xAAAA0000

                MMC_RSP_R1,5,6,7         0x00000700

CURR STATE:3

CMD_SEND:7

                ARG                      0xAAAA0000

                MMC_RSP_R1,5,6,7         0x00000700

CMD_SEND:55

                ARG                      0xAAAA0000

                MMC_RSP_R1,5,6,7         0x00000920

CMD_SEND:51

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000920

CMD_SEND:6

                ARG                      0x00FFFFF1

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:6

                ARG                      0x80FFFFF1

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:55

                ARG                      0xAAAA0000

                MMC_RSP_R1,5,6,7         0x00000920

CMD_SEND:6

                ARG                      0x00000002

                MMC_RSP_R1,5,6,7         0x00000920

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000800

                MMC_RSP_R1,5,6,7         0x00000900

reading uimage

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000800

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x00000881

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x00000801

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x00000807

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x0000080D

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x000008A5

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00003957

                MMC_RSP_R1,5,6,7         0x00000900

6382984 bytes read in 445 ms (13.7 MiB/s)

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000000

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000800

                MMC_RSP_R1,5,6,7         0x00000900

reading arya.dtb

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x00000800

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x00000881

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x0000080D

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:18

                ARG                      0x00003959

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:12

                ARG                      0x00000000

                MMC_RSP_R1b              0x00000B00

CMD_SEND:16

                ARG                      0x00000200

                MMC_RSP_R1,5,6,7         0x00000900

CMD_SEND:17

                ARG                      0x0000399E

                MMC_RSP_R1,5,6,7         0x00000900

35358 bytes read in 109 ms (316.4 KiB/s)

Net:   FEC [PRIME]

Warning: failed to set MAC address

 

Normal Boot

Hit any key to stop autoboot:  0

U-BOOT >

 

WHen I checked the i2c probe output it shows below errors:

U-BOOT > i2c probe

Valid chip addresses:wait_for_sr_state: Arbitration lost sr=93 cr=80 state=2020

i2c_init_transfer: failed for chip 0x0 retry=0

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

i2c_init_transfer: give up i2c_regs=021a0000

wait_for_sr_state: failed sr=a1 cr=80 state=2000

wait_for_sr_state: failed sr=a1 cr=80 state=2000

i2c_imx_stop:trigger stop failed

i2c_init_transfer: failed for chip 0x1 retry=0

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

i2c_init_transfer: give up i2c_regs=021a0000

wait_for_sr_state: Arbitration lost sr=93 cr=80 state=2020

i2c_init_transfer: failed for chip 0x2 retry=0

force_idle_bus: sda=0 scl=1 sda.gp=0x9a scl.gp=0x9b

force_idle_bus: failed to clear bus, sda=0 scl=1

i2c_init_transfer: give up i2c_regs=021a0000

 

 

Kindly help regarding this issue.

 

Best Regards,

Hrushi

Outcomes