On 2011-10-24 18:10, Chris Tapp wrote:
I've got a minimal root file system that will be used to install a poky image 
from a USB stick.

The init script this uses mounts sda1 (from where it's just booted), but sda1 
isn't ready when it tries to do this - I can see the bus enumeration messages 
on the console after the
mount fails.

How can my script test to see when the device is ready?

You could try looking for /dev/sda1 in /proc/partitions like in
attached script.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#! /bin/sh

while ! grep -q sdc1 /proc/partitions; do
      echo "... waiting for disk"
      sleep 1
done
echo "Disk /dev/sdc1 is ready"

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to