You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
snd-usb-audio: Boot fails with attached USB device; udevadm timeout; networking fails #69
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.
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.
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.
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 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)
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
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.
Activity
velolala commentedon Aug 2, 2012
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.
asb commentedon Aug 2, 2012
Honestly I'm not sure it is. We prefer to keep track of kernel issues here.
velolala commentedon Aug 2, 2012
Are you saying this probably is a kernel issue (and should stay here)?
asb commentedon Aug 2, 2012
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?
velolala commentedon Aug 2, 2012
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
aefo commentedon Aug 23, 2012
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
chrisisown commentedon Sep 2, 2012
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
mm: fix NULL ptr dereference in migrate_pages
aefo commentedon Jul 13, 2013
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.
P33M commentedon Jul 13, 2013
If the problem's gone (it has been a year - a lot happened) then are you happy to close the issue?
SCSI: zfcp: fix schedule-inside-lock in scsi_device list loops
[SCSI] zfcp: fix schedule-inside-lock in scsi_device list loops
44 remaining items
kbuild: deb-pkg: don't set KBUILD_BUILD_VERSION unconditionally
wifi: ath10k: add peer map clean up for peer delete in ath10k_sta_sta…
drm/tests: Alloc drm_device on drm_exec tests
io_uring: Fix sqpoll utilization check racing with dying sqpoll
selftests/bpf: Fix send_signal test with nested CONFIG_PARAVIRT
kbuild: deb-pkg: don't set KBUILD_BUILD_VERSION unconditionally
fbdev: Fix out-of-bounds access when rotating console after font resize
smb: client: fix use-after-free infoleak via the readdir resume name
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2
smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan
smb: client: fix use-after-free infoleak via the readdir resume name
smb: client: fix OOB last_entry pointer from unbounded LastNameOffset
smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2
smb: client: fix OOB read in the SMB_FIND_FILE_UNIX name scan