USB does not work with Linux 3.14.3

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

USB does not work with Linux 3.14.3

2,098 Views
till_klocke
Contributor I

Hello,

 

after I am now able to boot my Phytec phyFLEX board I have unfortunately the next problem. Currently I am booting a custom Debian based root fs which seems to work fine. Serial console and network are working, but USB doesn't. If I connect a device I don't see the expected messages in dmesg and the device isn't even powered. I attached my kernel configuration and the dmesg output to this post.

I hope that someone has an idea how to get USB working with the mainline Linux kernel.

Thanks in advance.

Original Attachment has been moved to: .config.zip

Original Attachment has been moved to: dmesg.log.zip

Labels (2)
0 Kudos
5 Replies

905 Views
patrickkniest
Contributor I

I have some good news :smileyhappy:

After trying some kernels I found one, which works fine for rev1.2 of element14 SabreLite.

https://github.com/boundarydevices/linux-imx6

branch boundary-imx_3.12.0

Terminal:

mkdir boundary3_12_0

cd boundary3_12_0/

mkdir deploy

git clone https://github.com/boundarydevices/linux-imx6.git

cd linux-imx6

git checkout origin/boundary-imx_3.12.0

export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

make imx_v6_v7_defconfig

make -j4

make zImage modules firmware

make modules_install INSTALL_MOD_PATH=~/boundary3_12_0/deploy

make firmware_install INSTALL_FW_PATH=~/boundary3_12_0/deploy/lib/firmware

cp -R arch/arm/boot/dts ../deploy/dts

cp arch/arm/boot/zImage ../deploy/

That works fine for me, also with ath9k_htc-Modul for one WLAN-USB-Stick.

But it works not for rev1.0 element14 SabreLite. After connecting something to USB port it comes that:

USB disconnect, device number 2

hub 1-0:1.0: cannot reset port 1 (err = -32)

hub 1-0:1.0: cannot reset port 1 (err = -32)

hub 1-0:1.0: cannot reset port 1 (err = -32)

hub 1-0:1.0: cannot reset port 1 (err = -32)

hub 1-0:1.0: cannot reset port 1 (err = -32)

hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?

So I tried some other kernels and found one in the freescale-git

Terminal:

mkdir freescale

cd freescale/

mkdir deploy

git clone https://github.com/Freescale/linux-mainline.git

cd linux-mainline/

git checkout origin/patches-3.10

export ARCH=arm

export CROSS_COMPILE=arm-linux-gnueabihf-

make imx_v6_v7_defconfig

make

make zImage modules firmware

make modules_install INSTALL_MOD_PATH=~/freescale/deploy

make firmware_install INSTALL_FW_PATH=~/freescale/deploy/lib/firmware

cp -R arch/arm/boot/dts ../deploy/dts

cp arch/arm/boot/zImage ../deploy/

That works one both boards, also with my wlan-stick.

Is it possible, that anyone makes a Tag to that branch? It is the only branch without tags...

0 Kudos

905 Views
patrickkniest
Contributor I

Hi Till,

I have the same problem. Also with 3.14 and with 3.11. Both compiled from howto of eewiki. I use SabreLite-Board. I tried a Kernel from BoundaryDevises, they use a yocto toolchain: http://boundarydevices.com/yocto-kernel-3-10-17-beta/ with that kernel the usb ports work well, but the debian don't find kernel moduls with apt-get. Because of that i cannot use my wifi-usb-stick.

0 Kudos

905 Views
till_klocke
Contributor I

I also tried the Linux 3.14.3 from the freescale repositories, but with the same result. So I activated the debugging output for LibUSB and did a 'lsusb'. Thre result is the follwowing:

[timestamp] [threadID] facility level [function call] <message>

--------------------------------------------------------------------------------

[ 0.000000] [0000073a] libusbx: error [op_init] could not find usbfs

unable to initialize libusb: -99

So can anyone here help me? Did anyone successfully run a recent Linux kernel on a imx6 based board?

0 Kudos

905 Views
fabio_estevam
NXP Employee
NXP Employee

It is working fine on imx6q-wandboard.

Which dts file do you use?

0 Kudos

905 Views
patrickkniest
Contributor I

fdtfile=imx6q-sabrelite.dtb

0 Kudos