Skip to content

snd-usb-audio: Boot fails with attached USB device; udevadm timeout; networking fails #69

Closed

Description

@velolala

Using latest raspbian (Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux) boot fails if there is a KORG NanoKey USB MIDI Keyboard attached at boot time.

See http://twitpic.com/aduhdh and http://twitpic.com/aduhq8 (or embedded below) for the boot messages. <- I can not connect to rPi in this condition so I had to take pictures of the screen ;)

Observed outcome:

If I have said USB device plugged in at boot time, booting becomes very slow (ca. 8 minutes until starting fake hwclock). After some time the boot screen is only updated line by line. Udevadm throws a timeout. After "[...] Setting preliminary keymap..." screen goes blank. rPi is not reachable via network (<- ethernet setup seems to fail as well).

Expected outcome:

If there is a problem with a USB device at boot time, booting should complete and networking should be startet nonetheless.

Diagnosis (update):

At this point I know of at least one more devices that leads to the same problem. It is the M-Audio USB UNO (see http://www.raspberrypi.org/phpBB3/viewtopic.php?t=13021 )

Both of them are driven by snd-usb-audio.

Please let me know, if you need further information for investigating this issue.

I am really interested in resolving/debugging this! I'd be very happy for any instructions on how to obtain more informations, kernels for debugging, etc.

EDIT:

  1. added "snd-usb-audio" to the title.
  2. removed non-working attachments
  3. added information about other devices

Activity

  1. velolala commented on Aug 2, 2012

    @velolala
    Author

    Found out that launchpad seems to be the better place for bugtracking
    ==> Closing this.
    ==> Go to https://bugs.launchpad.net/raspbian/+bug/1032103 for this issue.

  2. asb commented on Aug 2, 2012

    @asb

    Honestly I'm not sure it is. We prefer to keep track of kernel issues here.

  3. velolala commented on Aug 2, 2012

    @velolala
    Author

    Are you saying this probably is a kernel issue (and should stay here)?

  4. asb commented on Aug 2, 2012

    @asb

    Yes, looks likely to be a usb driver issue or an issue arising from insufficient power. Have you tried plugging this device in via a powered hub?

  5. velolala commented on Aug 2, 2012

    @velolala
    Author

    I tried booting with the NanoKEY attached to a powered hub (attached to the rPi) to rule out a power issue. Same result. See bootlog at http://twitpic.com/aeksee

    I'm going to reopen this. Should I close the launchpad bug (https://bugs.launchpad.net/raspbian/+bug/1032103) to remove redundancy?

    PS: There is a forum thread at raspberrypi.org as well: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=13021

  6. aefo commented on Aug 23, 2012

    @aefo

    Per the thread on Raspberry Pi forums,

    I see the same issue with my USB midi device (works fine when hot plugged, pi hangs/crashes when it's plugged in during reboot). It's a generic USB Midi device that shows up as "QinHeng Electronics CH345 MIDI adapter" when it's working correctly.

    I am able to re-produce the same hang/crash if I do a udevadm info query on the device after it has been hot-plugged (and is working ok). I assume this is what occurs on reboot/startup....

    [root@alarmpi ~]# udevadm --debug info -a -p $( udevadm info -q path -n /dev/snd/midiC0D0)

    Some debug / dump info about USB devices attached is at http://www.raspberrypi.org/phpBB3/download/file.php?id=922

  7. chrisisown commented on Sep 2, 2012

    @chrisisown

    Same problem here with a Philips USB Audio device (ID 0471:0110):
    The RaspberryPi doesn't boot when USB device is connected
    (I have no display available so I can't say for sure but I can't connect via SSH)
    When I connect the device after bootup finished, the sound works almost*
    Also udevadm --debug info -a -p $( udevadm info -q path -n /dev/snd/pcmC0D0p) hangs.
    (Don't know what that actually does, but there is no midi device so I chose the pcm available)

    *the sound is sometimes distorted or sounds "metallic" (hard to describe) but I think that's another story

  8. aefo commented on Jul 13, 2013

    @aefo

    FYI, I was previously seeing this issue (as reported above), I finally got round to fully rebuilding my device with all the latest OS releases and am not longer seeing the issue. I'm able to boot (and reboot) with the MIDI device attached and there so far no hangs.

  9. P33M commented on Jul 13, 2013

    @P33M
    Contributor

    If the problem's gone (it has been a year - a lot happened) then are you happy to close the issue?

  10. 44 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    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