Bug 6455 - [beaglebone] USB devices don't work in second boot
Summary: [beaglebone] USB devices don't work in second boot
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 1.6.1
Hardware: BeagleBone arm
: Medium normal
Target Milestone: 1.6.2
Assignee: Denys Dmytriyenko
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-06-17 10:29 UTC by Yi Zhao
Modified: 2014-10-29 06:45 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
dmesg-first-boot (15.49 KB, application/octet-stream)
2014-06-17 10:29 UTC, Yi Zhao
no flags Details
dmesg-second-boot (13.43 KB, application/octet-stream)
2014-06-17 10:30 UTC, Yi Zhao
no flags Details
/var/log/messages-first-boot (26.46 KB, application/octet-stream)
2014-06-17 10:30 UTC, Yi Zhao
no flags Details
/varlog/messages-second-boot (27.29 KB, application/octet-stream)
2014-06-17 10:31 UTC, Yi Zhao
no flags Details
lsmod-first-boot (661 bytes, application/octet-stream)
2014-06-17 10:31 UTC, Yi Zhao
no flags Details
lsmod-second-boot (104 bytes, application/octet-stream)
2014-06-17 10:32 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-06-17 10:29:02 UTC
Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.6.1/machines/beaglebone/

Git rev: daisy/a43dba8c2904f9c1ce0425c53c5a7f4718121e6b

The USB devices (mouse, keyboard, USB stick) are only found during the first boot. After reboot, they don't work. Seems the system doesn't found them. Please see the attached logs.
Comment 1 Yi Zhao 2014-06-17 10:29:53 UTC
Created attachment 2002 [details]
dmesg-first-boot
Comment 2 Yi Zhao 2014-06-17 10:30:25 UTC
Created attachment 2003 [details]
dmesg-second-boot
Comment 3 Yi Zhao 2014-06-17 10:30:54 UTC
Created attachment 2004 [details]
/var/log/messages-first-boot
Comment 4 Yi Zhao 2014-06-17 10:31:22 UTC
Created attachment 2005 [details]
/varlog/messages-second-boot
Comment 5 Yi Zhao 2014-06-17 10:31:49 UTC
Created attachment 2006 [details]
lsmod-first-boot
Comment 6 Yi Zhao 2014-06-17 10:32:18 UTC
Created attachment 2007 [details]
lsmod-second-boot
Comment 7 Yi Zhao 2014-06-17 10:36:57 UTC
When remove the file /etc/udev/cache.data and reboot, the USB devices can be found and work again.
Comment 8 Paul Eggleton 2014-06-19 14:51:36 UTC
I could be wrong but this kind of sounds like a generic udev cache problem rather than being something device-specific. Do we see this with other machines?
Comment 9 Denys Dmytriyenko 2014-06-19 15:35:54 UTC
Yes, it is udev cache related. But I believe it used to handle USB devices properly before... Anyway, I've been looking into it, trying to make it work w/o disabling udev cache completely.
Comment 12 Denys Dmytriyenko 2014-07-03 14:43:30 UTC
The fix is in OE-Core master
Comment 13 Yi Zhao 2014-10-29 06:45:30 UTC
Verified with 1.6.2 rc1
git rev: daisy/313864bf528696a72c3ee6b3dec1a0c7b0b223f6