Skip to content

Kernel Oops when USB receiver connected at boot(USB hid as a module) #125

Closed

Description

@hex445

Hello,

Yesterday I recompiled kernel with these options:
CONFIG_HID=m
CONFIG_USB_HID=m

I need this to use driver for PHILIPS MCE USB IR Receiver- Spinel plusf0r ASUS

"The module depends on usbhid but it has to be loaded before the usbhid module, in order to claim the device. Otherwise usbhid claims the device and hid-philips-asus can not act on it"

When receiver is connected at boot it causes kernel oops:
http://web1.ezrodlo.pl/oops.jpg

But when connected after boot(hid-philips-asus loaded) it works correctly.

Do you have any suggestions ?

Activity

  1. hex445 commented on Sep 27, 2012

    @hex445
    Author

    One more thing. When keyboard(or bluetooth adapter I had at hand) is not connected and usb receiver is plugged after complete boot, this oops also appears.

    I use this script(/etc/rc.local) if it matters.
    #!/bin/sh

    This script forces loading hid-philips-asus module before usbhid

    MODINFO=modinfo hid-philips-asus 2>/dev/null
    if [ -z "$MODINFO" ]; then
    echo "Module 'hid-philips-asus' is not installed."
    exit
    fi

    get list of existing hid modules

    MODULES=lsmod|grep hid| cut -d " " -f 1 | grep hid

    unload them

    echo "Unloading existing hid modules."
    for module in $MODULES; do
    modprobe -vr $module
    done

    echo "Loading hid_philips_asus module."

    load hid_philips_asus first

    modprobe -v hid_philips_asus

    echo "Reloading other hid modules."

    load the rest modules

    for module in $MODULES; do
    modprobe -v $module
    done

  2. ghollingworth commented on Sep 30, 2012

    @ghollingworth

    The stacktrace doesn't actually list where the crash happened. can you search for the PC address in the System.map file to see which function it was sat in?

  3. popcornmix commented on Sep 30, 2012

    @popcornmix
    Collaborator

    @ghollingworth
    There is mention of mce_request_packet (from drivers/media/rc/mceusb.c) in the photo.

  4. hex445 commented on Nov 15, 2012

    @hex445
    Author

    Linux raspberrypi 3.2.27+ #1 PREEMPT Wed Nov 14 19:42:38 UTC 2012 armv6l GNU/Linux
    Still the same
    http://web1.ezrodlo.pl/oops2.jpg

  5. hex445 commented on Jan 4, 2013

    @hex445
    Author

    3.6.11+
    Still the same

  6. ghollingworth commented on Jul 17, 2013

    @ghollingworth

    We've found and fixed a bunch of errors that could have caused this (dequeueing errors) Could you try again with the latest 3.6.y kernel

    $ sudo rpi-update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions