USB not enumerating devices correctly on i.MX280

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB not enumerating devices correctly on i.MX280

9,246 Views
mbrandt
Contributor II

We have a custom board based on the i.MX28-evk. We have a single usb device, a WiFi radio, that is permanently connected to USB1. There is no power controller and no over current sense, since the device is a permanent connection. When the processor starts enumerating the bus we get this:

[   26.935021] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

[   26.940903] ci_hdrc ci_hdrc.1: GetStatus port:1 status 10001803 8  ACK POWER sig=j CSC CONNECT

[   26.949917] hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s

[   27.109482] hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101

[   27.169609] ci_hdrc ci_hdrc.1: port 1 reset complete, port enabled

[   27.175880] ci_hdrc ci_hdrc.1: GetStatus port:1 status 10001005 8  ACK POWER sig=se0 PE CONNECT

[   27.239600] usb 2-1: new full-speed USB device number 2 using ci_hdrc

[   27.247386] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 1

[   27.254353] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 2

[   27.261339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 3

[   27.268316] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 4

[   27.275332] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 5

[   27.282341] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 6

[   27.289342] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 7

[   27.296320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 8

[   27.303340] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 9

[   27.310337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 10

[   27.317321] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 11

[   27.324338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 12

[   27.331336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 13

[   27.338319] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 14

[   27.345335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 15

[   27.351492] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 16

[   27.357690] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 17

[   27.364339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 18

[   27.371339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 19

[   27.378321] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 20

[   27.385338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 21

[   27.392338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 22

[   27.399335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 23

[   27.406318] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 24

[   27.413337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 25

[   27.420339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 26

[   27.427320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 27

[   27.434337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 28

[   27.441336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 29

[   27.448319] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 30

[   27.455340] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 31

[   27.461492] ci_hdrc ci_hdrc.1: devpath 1 ep0in 3strikes

[   27.466771] usb usb2: clear tt buffer port 1, a0 ep0 t00080248

[   27.474345] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 1

[   27.481348] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 2

[   27.488319] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 3

[   27.495339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 4

[   27.502337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 5

[   27.509336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 6

[   27.516317] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 7

[   27.523336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 8

[   27.530336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 9

[   27.537317] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 10

[   27.544338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 11

[   27.551337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 12

[   27.558320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 13

[   27.565336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 14

[   27.572338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 15

[   27.578471] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 16

[   27.584634] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 17

[   27.591342] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 18

[   27.598318] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 19

[   27.605338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 20

[   27.612335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 21

[   27.619336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 22

[   27.626318] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 23

[   27.633337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 24

[   27.640336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 25

[   27.647320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 26

[   27.654338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 27

[   27.661339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 28

[   27.668316] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 29

[   27.675339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 30

[   27.682335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 31

[   27.688473] ci_hdrc ci_hdrc.1: devpath 1 ep0in 3strikes

[   27.693747] usb usb2: clear tt buffer port 1, a0 ep0 t00080248

[   27.700345] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 1

[   27.707326] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 2

[   27.714326] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 3

[   27.721340] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 4

[   27.728320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 5

[   27.735337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 6

[   27.742338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 7

[   27.749335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 8

[   27.756321] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 9

[   27.763337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 10

[   27.770337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 11

[   27.777321] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 12

[   27.784337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 13

[   27.791336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 14

[   27.798318] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 15

[   27.804470] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 16

[   27.810637] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 17

[   27.817322] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 18

[   27.824336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 19

[   27.831336] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 20

[   27.838320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 21

[   27.845340] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 22

[   27.852339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 23

[   27.859335] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 24

[   27.866319] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 25

[   27.873338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 26

[   27.880337] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 27

[   27.887317] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 28

[   27.894338] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 29

[   27.901339] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 30

[   27.908320] ci_hdrc ci_hdrc.1: detected XactErr len 0/8 retry 31

[   27.914471] ci_hdrc ci_hdrc.1: devpath 1 ep0in 3strikes

[   27.919750] usb usb2: clear tt buffer port 1, a0 ep0 t00080248

[   27.979441] ci_hdrc ci_hdrc.1: port 1 reset complete, port enabled

[   27.985710] ci_hdrc ci_hdrc.1: GetStatus port:1 status 1000100f 8  ACK POWER sig=se0 PEC PE CSC CONNECT

[   27.995866] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

which repeats forever. After a few minutes the new device number is in the hundreds. To debug I disconnected the device from our board and wired it to a USB cable which I plugged into the EVK. That works fine. I also removed R190 on the EVK which disconnects the over current pin for USB1. No difference. We suspect a signal integrity problem of some kind since the same kernel has different results when run on the EVK vs our board, but the traces are pretty short, differentially routed, and not shorted to anything so there isn't really much to go wrong.

We are using the 3.10.20 kernel and mainline u-boot here.

Any ideas what we are missing here?

Thanks,

Matt

Labels (2)
0 Kudos
11 Replies

2,632 Views
ngisp
Contributor I

I am porting 3.10 kernel to our custom board. Below are logs I am getting for USB interface .Can anybody find the reason for these continous logs for USB. However I am able mount the USB device as USBH1. Also the continous log comes only when USB is not mount , if I connect the USB it stops reoccurring, else continuously comes.

(This message :-  usb 1-1: reset high-speed USB device number 2 using ci_hdrc)

U-Boot > bootm 0x12000000 - 0x18000000

## Booting kernel from Legacy Image at 12000000 ...

   Image Name:   Linux-3.10.17-svn322

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    5270864 Bytes = 5 MiB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 18000000

   Booting using the fdt blob at 0x18000000

   Loading Kernel Image ... OK

OK

   Using Device Tree in place at 18000000, end 1800e476

Starting kernel ...

Booting Linux on physical CPU 0x0

Linux version 3.10.17-svn322 (supriya@supriya-desktop) (gcc version 4.8.1 (GCC) ) #11 SMP PREEMPT Tue Sep 23 18:14:29 IST 2014

CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 Quad MAGIK2 Smart Device Board

cma: CMA: reserved 320 MiB at 3c000000

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @81514000 s8896 r8192 d15680 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait rw consoleblank=0 ip=off video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 bpp=32 fbmem=10M fb0base=0x27b00000 vmalloc=400M

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 1024MB = 1024MB total

Memory: 697676k/697676k available, 350900k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f000000 - 0x7fe00000   (  14 MB)

      .text : 0x80008000 - 0x80bfec44   (12252 kB)

      .init : 0x80bff000 - 0x80c432c0   ( 273 kB)

      .data : 0x80c44000 - 0x80c942e0   ( 321 kB)

       .bss : 0x80c942e0 - 0x80cfd464   ( 421 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

Preemptible hierarchical RCU implementation.

NR_IRQS:16 nr_irqs:16 16

L310 cache controller enabled

l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1048576 B

sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms

CPU identified as i.MX6Q, silicon rev 1.5

Console: colour dummy device 80x30

Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

Setting up static identity map for 0x8062aab0 - 0x8062ab08

CPU1: Booted secondary processor

CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

CPU2: Booted secondary processor

CPU2: thread -1, cpu 2, socket 0, mpidr 80000002

CPU3: Booted secondary processor

CPU3: thread -1, cpu 3, socket 0, mpidr 80000003

Brought up 4 CPUs

SMP: Total of 4 processors activated (6324.22 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

pinctrl core: initialized pinctrl subsystem

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

Use WDOG2 as reset source

syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered

vdd1p1: 800 <--> 1375 mV at 1125 mV

vdd3p0: 2800 <--> 3150 mV at 3000 mV

vdd2p5: 2000 <--> 2750 mV at 2425 mV

cpu: 725 <--> 1450 mV at 1150 mV

vddpu: 725 <--> 1450 mV at 1150 mV

vddsoc: 725 <--> 1450 mV at 1200 mV

syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered

syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered

                imx6q_usb_init

hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 4 bytes.

imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver

bio: create slab <bio-0> at 0

mxs-dma 110000.dma-apbh: initialized

usb_otg_vbus: 5000 mV

usb_h1_vbus: 5000 mV

wm8962-supply: no parameters

mipi_dsi_pwr_on: no parameters

sensor-supply: 3300 mV

i2c-core: driver [max17135] using legacy suspend method

i2c-core: driver [max17135] using legacy resume method

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: IMX I2C adapter registered

Linux video capture interface: v2.00

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

PTP clock support registered

imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)

mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed

mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Initialized.

cfg80211: Calling CRDA to update world regulatory domain

Switching to clocksource mxc_timer1

NET: Registered protocol family 2

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available

pureg-dummy: no parameters

imx6_busfreq busfreq.15: DDR medium rate not supported.

Bus freq driver module loaded

VFS: Disk quotas dquot_6.5.2

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

fuse init (API version 7.22)

msgmni has been set to 2002

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

imx-weim 21b8000.weim: WEIM driver registered.

mxc_mipi_dsi 21e0000.mipi: i.MX MIPI DSI driver probed

MIPI DSI driver module loaded

imx-sdma 20ec000.sdma: no iram assigned, using external mem

imx-sdma 20ec000.sdma: loaded firmware 1.1

imx-sdma 20ec000.sdma: initialized

pfuze100-regulator 1-0008: unrecognized pfuze chip ID!

pfuze100-regulator: probe of 1-0008 failed with error -5

Serial: IMX driver

2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX

console [ttymxc0] enabled

serial: Freescale lpuart driver

[drm] Initialized drm 1.1.0 20060810

[drm] Initialized vivante 1.0.0 20120216 on minor 0

brd: module loaded

loop: module loaded

m25p80 spi32766.0: found mr25h256, expected m25p32

m25p80 spi32766.0: mr25h256 (32 Kbytes)

spi_imx 2008000.ecspi: probed

CAN device driver interface

libphy: fec_enet_mii_bus: probed

fec 2188000.ethernet eth0: registered PHC device 0

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

usbcore: registered new interface driver usb-storage

ci_hdrc ci_hdrc.0: doesn't support gadget

ci_hdrc ci_hdrc.0: EHCI Host Controller

ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: EHCI Host Controller

usb usb1: Manufacturer: Linux 3.10.17-svn322 ehci_hcd

usb usb1: SerialNumber: ci_hdrc.0

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

mousedev: PS/2 mouse device common for all mice

elan-touch 2-0010: elan - Read Hello Packet Failed

elan-touch: probe of 2-0010 failed with error -22

egalax_ts 1-0004: Failed to read firmware version

egalax_ts: probe of 1-0004 failed with error -5

egalax_ts 2-0004: Failed to read firmware version

egalax_ts: probe of 2-0004 failed with error -5

i2c-core: driver [isl29023] using legacy suspend method

i2c-core: driver [isl29023] using legacy resume method

snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0

i2c /dev entries driver

mag3110 2-000e: check mag3110 chip ID

mag3110 2-000e: read chip ID 0xfffffffb is not equal to 0xc4!

mag3110: probe of 2-000e failed with error -22

i2c-core: driver [mag3110] using legacy suspend method

i2c-core: driver [mag3110] using legacy resume method

mma8451 0-001c: read chip ID 0x1 is not equal to 0x1a or 0x2a!

mma8451: probe of 0-001c failed with error -22

imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)

cpuidle: using governor ladder

cpuidle: using governor menu

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: no vqmmc regulator found

mmc0: no vmmc regulator found

mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA

usb 1-1: new high-speed USB device number 2 using ci_hdrc

mmc0: host does not support reading read-only switch. assuming write-enable.

usb 1-1: New USB device found, idVendor=0424, idProduct=2512

usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

mmc0: new high speed SDHC card at address aaaa

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 2 ports detected

mmcblk0: mmc0:aaaa SS08G 7.40 GiB

mmcblk0: p1

Galcore version 4.6.9.9754

mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed

mxc_asrc 2034000.asrc: mxc_asrc registered

mxc_vpu 2040000.vpu: VPU initialized

leds-gpio leds.20: pins are not configured from the driver

usb 1-1.2: new high-speed USB device number 3 using ci_hdrc

caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)

caam 2100000.caam: job rings = 2, qi = 0

caam 2100000.caam: authenc-hmac-md5-cbc-aes-caam

caam 2100000.caam: authencesn-hmac-md5-cbc-aes-caam

caam 2100000.caam: authenc-hmac-sha1-cbc-aes-caam

caam 2100000.caam: authencesn-hmac-sha1-cbc-aes-caam

caam 2100000.caam: authenc-hmac-sha224-cbc-aes-caam

caam 2100000.caam: authencesn-hmac-sha224-cbc-aes-caam

caam 2100000.caam: authenc-hmac-sha256-cbc-aes-caam

caam 2100000.caam: authencesn-hmac-sha256-cbc-aes-caam

caam 2100000.caam: authenc-hmac-md5-cbc-des3_ede-caam

caam 2100000.caam: authencesn-hmac-md5-cbc-des3_ede-caam

caam 2100000.caam: authenc-hmac-sha1-cbc-des3_ede-caam

caam 2100000.caam: authencesn-hmac-sha1-cbc-des3_ede-caam

caam 2100000.caam: authenc-hmac-sha224-cbc-des3_ede-caam

caam 2100000.caam: authenc-hmac-sha224-cbc-des-caam

caam 2100000.caam: authencesn-hmac-sha224-cbc-des-caam

caam 2100000.caam: authenc-hmac-sha256-cbc-des-caam

usb 1-1.2: New USB device found, idVendor=8564, idProduct=1000

usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

usb 1-1.2: Product: Mass Storage Device

caam 2100000.caam: authencesn-hmac-sha256-cbc-des-caam

usb 1-1.2: Manufacturer: JetFlash

caam 2100000.caam: ecb-des-caam

usb 1-1.2: SerialNumber: 99TL2DWA1OQMAIUS

caam 2100000.caam: ecb-arc4-caam

caam 2100000.caam: ecb-aes-caam

usb-storage 1-1.2:1.0: USB Mass Storage device detected

caam 2100000.caam: ctr-aes-caam

scsi0 : usb-storage 1-1.2:1.0

caam 2100000.caam: cbc-aes-caam

caam 2100000.caam: ecb-des3-caam

caam 2100000.caam: cbc-3des-caam

caam 2100000.caam: cbc-des-caam

caam 2100000.caam: fsl,sec-v4.0 algorithms registered in /proc/crypto

platform 2101000.jr0: registering rng-caam

platform caam_sm: caam_sm_test: 8-byte key test match OK

platform caam_sm: caam_sm_test: 16-byte key test match OK

platform caam_sm: caam_sm_test: 32-byte key test match OK

platform caam_secvio.35: security violation service handlers armed

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

i2c-core: driver [cs42888] using legacy suspend method

i2c-core: driver [cs42888] using legacy resume method

wm8962 0-001a: Failed to read ID register

wm8962: probe of 0-001a failed with error -5

fsl-hdmi-dai hdmi_audio.16: failed to probe. Load HDMI-video first.

fsl-hdmi-dai: probe of hdmi_audio.16 failed with error -12

imx-wm8962 sound.28: failed to find codec platform device

imx-wm8962: probe of sound.28 failed with error -22

imx-audio-hdmi sound-hdmi.29: initialize HDMI-audio failed. load HDMI-video first!

TCP: cubic registered

NET: Registered protocol family 10

sit: IPv6 over IPv4 tunneling driver

NET: Registered protocol family 17

can: controller area network core (rev 20120528 abi 9)

NET: Registered protocol family 29

can: raw protocol (rev 20120528)

can: broadcast manager protocol (rev 20120528 t)

can: netlink gateway (rev 20130117) max_hops=1

8021q: 802.1Q VLAN Support v1.8

Key type dns_resolver registered

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

imx6-cpufreq imx6-cpufreq.0: failed to get regulators

imx6-cpufreq: probe of imx6-cpufreq.0 failed with error -2

vddpu: disabling

input: gpio-keys.27 as /devices/soc0/gpio-keys.27/input/input0

snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:01 UTC (1)

ALSA device list:

  No soundcards found.

EXT4-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommended

EXT4-fs (mmcblk0p1): recovery complete

EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

VFS: Mounted root (ext4 filesystem) on device 179:1.

devtmpfs: mounted

Freeing unused kernel memory: 272K (80bff000 - 80c43000)

INIT: version 2.88 booting

Error opening /dev/fb0: No such file or directory

Starting udev

udevd[190]: starting version 182

scsi 0:0:0:0: Direct-Access     JetFlash Transcend 8GB    1100 PQ: 0 ANSI: 4

sd 0:0:0:0: [sda] 15826944 512-byte logical blocks: (8.10 GB/7.54 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Attached SCSI removable disk

FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory

bootlogd.

EXT4-fs (mmcblk0p1): re-mounted. Opts: data=ordered

Populating dev cache

ALSA: Restoring mixer settings...

/usr/sbin/alsactl: load_state:1729: No soundcards found...

Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:05, irq=-1)

IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

udhcpc (v1.21.1) started

Sending discover...

libphy: 2188000.ethernet:05 - Link is Up - 100/Full

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Sending discover...

Sending select for 10.20.1.26...

Lease of 10.20.1.26 obtained, lease time 518400

/etc/udhcpc.d/50default: Adding DNS 10.20.1.4

/etc/udhcpc.d/50default: Adding DNS 4.4.4.4

done.

Starting rpcbind daemon...done.

Wed Sep 17 06:53:00 UTC 2014

INIT: Entering runlevel: 5

Starting system message bus: dbus.

Starting OpenBSD Secure Shell server: sshd

done.

Starting advanced power management daemon: No APM support in kernel

(failed.)

creating NFS state directory: done

starting 8 nfsd kernel threads: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).

Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem

done

starting mountd: done

starting statd: done

Starting syslogd/klogd: done

* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon

   ...done.

Starting Telephony daemon

Starting Lighttpd Web Server: lighttpd.

imx-audio: setting default mixer settings.

Use the default setting in the audio driver

Starting OProfileUI server

Running local boot scripts (/etc/rc.local).

Stopping Bootlog daemon: bootlogd.

Poky Next (Yocto Project Reference Distro) 1.4+snapshot-20140917 imx6qsabresd /dev/ttymxc0

imx6qsabresd login: root

root@imx6qsabresd:~# usb 1-1.2: USB disconnect, device number 3

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~# ls usb 1-1: reset high-speed USB device number 2 using ci_hdrc

/sys/usb 1-1: reset high-speed USB device number 2 using ci_hdrc

ususb 1-1: reset high-speed USB device number 2 using ci_hdrc                                                                                                                                                                               usb 1-1: reset high-speed USB device number 2 using ci_hdrc

^C

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

^C

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

ls /sys/bus/usb/

devices/           drivers_autoprobe  uevent

drivers/           drivers_probe

root@imx6qsabresd:~# ls /sys/bus/usb/usb 1-1: reset high-speed USB device number 2 using ci_hdrc

devices            drivers_autoprobe  uevent

drivers            drivers_probe

root@imx6qsabresd:~# ls /sys/bus/usb/usb 1-1: reset high-speed USB device number 2 using ci_hdrc

devices/usb 1-1: reset high-speed USB device number 2 using ci_hdrc

1-0:1.0  1-1      1-1:1.0  usb1

Starting OpenBSD Secure Shell server: sshd

done.

Starting advanced power management daemon: No APM support in kernel

(failed.)

creating NFS state directory: done

starting 8 nfsd kernel threads: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).

Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem

done

starting mountd: done

starting statd: done

Starting syslogd/klogd: done

* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon

   ...done.

Starting Telephony daemon

Starting Lighttpd Web Server: lighttpd.

imx-audio: setting default mixer settings.

Use the default setting in the audio driver

Starting OProfileUI server

Running local boot scripts (/etc/rc.local).

Stopping Bootlog daemon: bootlogd.

Poky Next (Yocto Project Reference Distro) 1.4+snapshot-20140917 imx6qsabresd /dev/ttymxc0

imx6qsabresd login: usb 1-1: reset high-speed USB device number 2 using ci_hdrc

ootusb 1-1: reset high-speed USB device number 2 using ci_hdrc

root@imx6qsabresd:~#

root@imx6qsabresd:~#

root@imx6qsabresd:~# usb 1-1: reset high-speed USB device number 2 using ci_hdrc

usb 1-1.2: new high-speed USB device number 3 using ci_hdrc

usb-storage 1-1.2:1.0: USB Mass Storage device detected

scsi0 : usb-storage 1-1.2:1.0

scsi 0:0:0:0: Direct-Access     JetFlash Transcend 8GB    1100 PQ: 0 ANSI: 4

sd 0:0:0:0: [sda] 15826944 512-byte logical blocks: (8.10 GB/7.54 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sd 0:0:0:0: [sda] Attached SCSI removable disk

FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

max11801_ts 1-0048: FIFO_RD_AUX_MSB read fails

0 Kudos

2,632 Views
igorpadykov
NXP Employee
NXP Employee

Hi sn

suggest to check if some USB- lines not connected (as in previous posts)

and try with other kernel L2.6.35_1.1.0_ER_SOURCE : i.MX28 Linux 2.6.35 Source Code Files

~igor

0 Kudos

2,632 Views
ngisp
Contributor I

Hi igor,

Can you help us with below issue ;-

We are porting kernel 3.10 for our custom board. After adding custom board specific defconfig , .dtsi and dts files ,we would like to configure few GPIO as I2C .

In kernel defconfig I have enabled - CONFIG_I2C_GPIO=y.

Also the below changes have been added to dtsi file too in arch/arm/boot/dts/imx6qdl.dtsi . and we including it in our .dtsi .

i2c@0 {

                compatible = "i2c-gpio";

                gpios = <&gpio1 5 0 /* sda */

                                  &gpio1 4 0 /* scl */

                                >;

                i2c-gpio,sda-open-drain;

                i2c-gpio,scl-open-drain;

                i2c-gpio,delay-us = <5>;        /* ~100 kHz */

                status = "disabled";

        };


Is there any other  related changes required or expected ??? Logs from "drivers/i2c/busses/i2c-gpio.c" indicate "i2c_gpio_init()" getting called but "i2c_gpio_probe()" is not as no logs from this function.

What should be given here i2c@0 -- 0 signifies what ???


Regards

0 Kudos

2,632 Views
fabio_estevam
NXP Employee
NXP Employee

It would be better to start a new thread about the i2c gpio topic.

Two suggestions:

1. Make sure you configure the pictrl for the GPIO pins

2. You should change 'status = "disabled'' to 'status = "okay"'

0 Kudos

2,632 Views
ngisp
Contributor I

Hey Fabio ..

Thanks on adding pin ctrl I see my log coming :-

               i2c_gpio_probe

i2c-gpio: probe of i2c.27 failed with error -16

               i2c_gpio_probe

i2c-gpio i2c.28: using pins 5 (SDA) and 4 (SCL)

       i2c_adap_imx_init

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: IMX I2C adapter registered

i2c i2c-3: IMX I2C adapter registered

However I am struggling with error -16 can you help me figure out what it means n how to fix it :-

  i2c@4{

                compatible = "i2c-gpio";

                gpios = <&gpio4 10 0 /* sda */

                        &gpio1 6 0 /* scl */

                        >;

                i2c-gpio,sda-open-drain;

                i2c-gpio,scl-open-drain;

                i2c-gpio,delay-us = <5>;        /* ~100 kHz */

                pinctrl-names = "default";

                /*pinctrl-0 = <&pinctrl_hdmi_hdcp_2>;*/

                status = "okay";

        };

        i2c@5{

                compatible = "i2c-gpio";

                gpios = <&gpio1 5 0  /*sda */

                        &gpio1 4 0  /*scl */

                        >;

                i2c-gpio,sda-open-drain;

                i2c-gpio,scl-open-drain;

                i2c-gpio,delay-us = <5>;      /*   ~100 kHz */

                pinctrl-names = "default";

                pinctrl-0 = <&pinctrl_i2c3_5>;

                status = "okay";

        };

I was expecting something similar

*****************************************************************************************************

i2c-gpio i2c-gpio.3: using pins 5 (SDA) and 4 (SCL)

i2c-gpio i2c-gpio.4: using pins 106 (SDA) and 6 (SCL)

*****************************************************************************************************

But not getting the logs for 106(SDA) and 6(SCL)

??

0 Kudos

2,632 Views
fabio_estevam
NXP Employee
NXP Employee

Please start a new thread, since we are mo longer talking about USB issues anymore.

0 Kudos

2,632 Views
ngisp
Contributor I

okay

0 Kudos

2,632 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

2,632 Views
fabio_estevam
NXP Employee
NXP Employee

- Does it work fine if you run the same kernel on a mx28evk?

- I am not sure if 3.10 has all the required pieces to have USB host working on mx28. Could you try 3.14 instead?

0 Kudos

2,632 Views
mbrandt
Contributor II

The same kernel works on the EVK, so I think the USB support in 3.10.20 is good.

I'm pretty sure this is a hardware problem now. I think the D- line is not connected. I can see the enumeration attempts on D+ but nothing on D-. Must be a bad solder joint to the ball because I can probe at a via right next to it and see nothing.

0 Kudos

2,632 Views
igorpadykov
NXP Employee
NXP Employee

Hi Matt,

looks as smth wrong with hardware. DDR errors, unstable power all can lead to wrong

USB operation. One can power WiFi from external power supply, reduce DDR frequency or

at last run i.MX28 EVK OBDS with USB test.

0 Kudos