OpenWrt Forum Archive

Topic: kernel warning message attaching usb wifi dongle

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi trying to learn about openwrt,

I'va a small router with one antenna and a usb slot.

I attach to the usb slot a unpowered usb hub  and to that I plug a usb storage drive

to be able to save system log messages

the sqashfs-root/etc/config/system files contains

config system
    option hostname Router
    option timezone UTC
        option log_type 'file'
        option log_file '/mnt/usb/messages'

so the cronlogleve and conloglevel are set to default values.

Everything works fine but as soon as I plug (or reboot) with a second usb wifi dongle attached to the unpowered

usb hub the messages log gets populated by the same kernel warn message below

......

Tue Dec 26 15:09:07 2017 kern.warn kernel: [   24.209135] ------------[ cut here ]------------
Tue Dec 26 15:09:07 2017 kern.warn kernel: [   24.212450] WARNING: CPU: 0 PID: 75 at drivers/usb/core/urb.c:449 usb_submit_urb+0x2dc/0x538 [usbcore]()
Tue Dec 26 15:09:07 2017 kern.warn kernel: [   24.221842] usb 1-1.2: BOGUS urb xfer, pipe 1 != type 3

.......................

when I log the messages in memory and without the usb hub attached

and attaching the second usb wifi dongle directly to the USB port I dont get any error at all



any idea on what is going on ???

I build my router image from trunk repo.

Thank _You very much for any help with this

Bests

P

(Last edited by Pippo1980 on 28 Dec 2017, 11:53)

Pippo1980 wrote:

I attach to the usb slot a unpowered usb hub  and to that I plug a usb storage drive
...
Everything works fine but as soon as I plug (or reboot) with a second usb wifi dongle attached to the unpowered usb hub the messages log gets populated by the same kernel warn message below
...
and attaching the second usb wifi dongle directly to the USB port I dont get any error at all

You've already stated that the dongle works fine if you plug it directly to the USB port. Does the wi-fi dongle work correctly if you plug it into the hub alone, without the USB storage device?

Based on the symptoms and behavior it sounds like your router might be incapable of providing enough power through the USB bus to operate the unpowered hub and these two devices simultaneously. You should consider an externally powered USB hub with high enough power ratings to satisfy the requirements of your two devices.

(Last edited by Antek on 28 Dec 2017, 12:08)

the error says

....  usb 1-1.2: ...........

colud it be (being a USB 2.0 hub) that I am building the image with a usb hub 1.1 driver ??

P.

I don't get the error using hub + usb storage

Get the error using  hub + usb storage + wifi dongle

in my buildroot

I selected as kernel modules / usb support :

kmod-usb-ohci (should be usb 1 correct me if I am wrong)

kmod-usb-storage

kmod-usb-storage-extras

kmod usb2

kmod-usbmon

Is everything Ok this way ??

What happens if you replace the unpowered USB hub by a powered one?

HI Antek & tm026,

I discovered my cheap usb hub marked as usb 2.0  is indeed a usb 1.0 hub !!!!!!

Never trust am.... marketplace !!! I'll let you know as soon as I get my hand on a real usb 2.0 hub !!

Thank you very much for helping me out

Bests

P.

HI Antek & tm026,

  finally got a USB 3.0 hub.

Sorry for the a naive question should I install usb 3.0 support kernel module or the 2.0 one would work ?

Thanks

Best

P.

(Last edited by Pippo1980 on 27 Jan 2018, 13:10)

The discussion might have continued from here.