Comment 31 for bug 708883

Revision history for this message
warmcat (andy-warmcat) wrote :

I added the modprobe ledtrig-heartbeat to /etc/rc.local for now, although I'm sure there's a better place.

I cycled the power 10 times. 9 times it was normal, but one time there was a 30s delay before boot completed. If it delayed 30s with LEDs off, many people will think the board is OFF.

Normal -->

[ 2.144744] udev[65]: starting version 165
Begin: Loading e[ 2.153198] usb 1-1: new high speed USB device using ehci-omap and address 2
ssential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
[ 2.357147] hub 1-1:1.0: USB hub found
[ 2.361633] hub 1-1:1.0: 5 ports detected
Begin: Running /scripts/local-premount ... done.
[ 2.412078] EXT3-fs: barriers not enabled
[ 2.419006] kjournald starting. Commit interval 5 seconds
[ 2.425384] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
[ 2.668670] usb 1-1.1: new high speed USB device using ehci-omap and address 3

Slow -->

Begin: Loading e[ 2.145019] usb 1-1: new high speed USB device using ehci-omap and address 2
ssential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
[ 2.341339] hub 1-1:1.0: USB hub found
[ 2.346069] hub 1-1:1.0: 5 ports detected
[ 2.824768] usb 1-1.1: new high speed USB device using ehci-omap and address 3

Begin: Running /scripts/local-premount ... done.
[ 32.391906] EXT3-fs: barriers not enabled

You can notice that the difference is usb node 1-1.1 enumeration happening before local-premount or not (before local-premount makes the delay).

usb node 1-1.1 is the SMSC USB Ethernet PHY.

Is there a race between the USB Ethernet PHY enumeration and the rootfs being ready to use network layer? Eg, no /sys mounted at that time in the bad case or somesuch?