Bug 2803

Summary: meta-intel: BSPs built with linux-yocto-rt hang at 'waiting for removable media...' on USB hddimg boots
Product: [Yocto Project Subprojects] Kernel Reporter: Tom Zanussi <tom.zanussi>
Component: kernel-configurationAssignee: Darren Hart <dvhart>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, mihai.lindner, yp.kernel.watcher, yp.watcher
Version: 1.3   
Target Milestone: 1.3 M3   
Hardware: x86   
OS: x86_64   
Whiteboard: (Done)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
boot log none

Description Tom Zanussi 2012-07-20 05:04:02 UTC
Created attachment 646 [details]
boot log

Both the chiefriver and jasperforest BSPs hang on bootup with 'waiting for removable media...' when booted from a USB stick (.hddimg) (see attached serial log).  In both cases I tried both 3.2 and 3.4 rt kernels with the same result.

I'm not sure if it's a kernel config issue or just that the rt kernel reliably triggers an underlying problem or race having to do with mounting USB filesystems, or something like that, so just marked it as a kernel config issue for lack of a better idea.

To test this I basically replaced the preferred kernel in the machine config e.g

PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"

, built the core-image-rt image, etc.
Comment 1 Darren Hart 2012-07-23 18:04:14 UTC
I just built fri2 with linux-yocto-rt_3.2 and it behaves the same. If I add and remove the USB stick, the kernel reports the removal and addition and correctly identifies it as /dev/sda. I'll instrument the init script and see what is missing.

I think we need a INITDEBUG for our init scripts so we don't have to rebuild the the initrd to do this :/
Comment 2 Darren Hart 2012-07-23 18:05:51 UTC
Gah, scratch that. It actually works on the fri2.
Comment 3 Darren Hart 2012-07-23 19:30:56 UTC
Checked the linux-yocto-rt .config for the jasperforest BSP. It is missing:

CONFIG_BLK_DEV_SD
CONFIG_USB_STORAGE
CONFIG_VFAT_FS

etc.

See the fri2-preempt-rt.scc file, jasperforest is missing:

# default policy for preempt-rt kernels
include cfg/usb-mass-storage.scc
include cfg/boot-live.scc
include features/latencytop/latencytop.scc
include features/profiling/profiling.scc

I'll prepare a patch.
Comment 4 Darren Hart 2012-07-24 23:02:58 UTC
Patches submitted to linux-yocto list for both 3.2 and 3.4 kernels.
Comment 6 Mihai Lindner 2012-09-03 14:44:46 UTC
.