Hi Farrukh, 

This has been an issue that goes round and round, if you use the Launch VM and 
build a Live USB image you will hit a problem in a initramfs file. (This has 
been put into a number of Moblin bugzilla bugs, but I've lost track of what the 
bug number is. Maybe someone on the list can point me toward the current one 
and I'll add how I get around this issue).

Anyway, here's a short blurb of what is happening and then how I get around it. 
In the file "/usr/share/pdk/platforms/menlow-lpia-moblin2/initramfs/usb" (this 
is just one example using the menlow-lpia-moblin2 platform) there is this 
section of code (my comment is inline): 

    # Find the USB flash drive  
    while true
    do
      for device in 'sda' 'sdb' 'sdc' 'sdd'; do
        echo "checking device /dev/${device} for installation source..."
        mdev -s
     if [ -e /sys/block/${device}/removable ]; then
#### Comment out the following "if" line; 
#### this is the endless boot on VM since 
#### "removable" file above contains "0" for all sd* devices. 
#### Insert dummy "if" test to get around it.
#    if [ "$(cat /sys/block/${device}/removable)" = "1" ]; then
     if [ 1 -eq 1 ]; then
              echo "Found Removable drive at /dev/${device}"
              mount /dev/${device}  /mnt
              if [ -f /mnt/rootfs.img ] ; then
                 echo "Found Boot drive at /dev/${device}"              
                 found="yes"
              fi
              umount /dev/${device}
              if [ "$found" = "yes" ]; then
                 break;
              fi              
              echo "/dev/${device} does not contain a rootfs"
           fi
         fi
      done
      if [ "$found" = "yes" ]; then
        break;
      fi
      echo "Sleeping for 5 seconds"
      /bin/sleep 5
      echo "Sleeping finished"
    done 


Sorry for being verbose in the output, but I wanted to make sure you could see 
the line to edit. It's this line where the "if" statement tests "removable = 
1". In the VM this file always has zero stored so it loops endlessly, but on 
actual Menlow based hardware (like a Jax10) it will boot fine. 

For some reason this file isn't being setup correctly when booting in a VM. I 
haven't dug into finding out why (maybe someone else knows exactly where and 
can put in a patch faster than I could get up to speed. :-) )

This simple fix should get you up and running (I've tested this out in my VM 
and on actual hardware to verify it is able to boot). 

Hope this helps, 

Brian Wood
Intel Corporation 
UMG Platform Software Group (UPSG)
[EMAIL PROTECTED]
 

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farrukh
>Arshad
>Sent: Tuesday, November 11, 2008 1:33 AM
>To: [EMAIL PROTECTED]
>Subject: [Moblin Dev] mdev: /etc/mdev.conf: No such file or directory
>
>Hi guys,
>
>I am new to this. I have created an image as mentioned
>above<http://moblin.org/documentation/running-moblin-run-time-image-vm>and
>other documents but when I try to run the image using Lauch VM (as
>mentioned above) I got this following message while booting.
>
>mdev: /etc/mdev.conf: No such file or directory
>mdev: /etc/mdev.conf: No such file or directory
>mdev: /etc/mdev.conf: No such file or directory
>mdev: /etc/mdev.conf: No such file or directory
>.
>.
>.
>.
>Sleeping for 5 seconds
>.
>. << again the above message >>
>
>I just have selected core + X components. Any idea about it ?
>
>
>--
>Regards,
>Farrukh Arshad.
>
>++++++++++++
>
>"Defend wisdom, and it will exalt thee, and it will shield thee with a crown
>of pleasure"  -- Clement
>_______________________________________________
>Moblin dev Mailing List
>[email protected]
>
>To manage or unsubscribe from this mailing list visit:
>https://lists.moblin.org/mailman/listinfo/dev or your user account on 
>http://moblin.org once logged
>in.
>
>For more information on the Moblin Developer Mailing lists visit:
>http://moblin.org/community/mailing-lists

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to