<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3452</bug_id>
          
          <creation_ts>2012-11-16 09:28:43 +0000</creation_ts>
          <short_desc>[p1022ds] udev error: can not mount harddisk and usb stick</short_desc>
          <delta_ts>2013-04-24 09:12:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-ppc</component>
          <version>1.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Zhenhua Luo">zhenhua.luo</assigned_to>
          <cc>b40290</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>liang.li2</cc>
    
    <cc>msm-oss</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenhua.luo</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27515</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-11-16 09:28:43 +0000</bug_when>
    <thetext>Image Location: http://autobuilder.yoctoproject.org/pub/nightly/20121114-1/machines/p1022ds/

gitinfo:
meta-yocto        = &quot;master:1fd9a16d2a4594a4e9179dc7353ac51ce32eb712&quot;
meta-fsl-ppc      = &quot;master:8b14fc1436eb204d961c45f5515748c5636ceed6&quot;

When system booting, there were some error messages with udevd:
##################
udevd[1363]: starting version 182
ata_id[1481]: unable to open &apos;/dev/sda&apos;

udevd[1378]: inotify_add_watch(6, /dev/loop1, 10) failed: No such file or directory

udevd[1382]: inotify_add_watch(6, /dev/loop4, 10) failed: No such file or directory

udevd[1376]: inotify_add_watch(6, /dev/loop0, 10) failed: No such file or directory

udevd[1384]: inotify_add_watch(6, /dev/loop5, 10) failed: No such file or directory

udevd[1394]: inotify_add_watch(6, /dev/loop6, 10) failed: No such file or directory

udevd[1381]: inotify_add_watch(6, /dev/loop3, 10) failed: No such file or directory

udevd[1380]: inotify_add_watch(6, /dev/loop2, 10) failed: No such file or directory

udevd[1448]: inotify_add_watch(6, /dev/ram11, 10) failed: No such file or directory

udevd[1458]: inotify_add_watch(6, /dev/ram15, 10) failed: No such file or directory

udevd[1410]: inotify_add_watch(6, /dev/loop7, 10) failed: No such file or directory

udevd[1449]: inotify_add_watch(6, /dev/ram12, 10) failed: No such file or directory

udevd[1450]: inotify_add_watch(6, /dev/ram13, 10) failed: No such file or directory

udevd[1437]: inotify_add_watch(6, /dev/ram10, 10) failed: No such file or directory

udevd[1526]: inotify_add_watch(6, /dev/ram7, 10) failed: No such file or directory

udevd[1457]: inotify_add_watch(6, /dev/ram14, 10) failed: No such file or directory

udevd[1527]: inotify_add_watch(6, /dev/ram8, 10) failed: No such file or directory

udevd[1528]: inotify_add_watch(6, /dev/ram9, 10) failed: No such file or directory

udevd[1522]: inotify_add_watch(6, /dev/ram4, 10) failed: No such file or directory

udevd[1524]: inotify_add_watch(6, /dev/ram6, 10) failed: No such file or directory

udevd[1523]: inotify_add_watch(6, /dev/ram5, 10) failed: No such file or directory

udevd[1371]: inotify_add_watch(6, /dev/sda, 10) failed: No such file or directory

udevd[1376]: inotify_add_watch(6, /dev/sda3, 10) failed: No such file or directory

udevd[1371]: inotify_add_watch(6, /dev/sda1, 10) failed: No such file or directory

udevd[1375]: inotify_add_watch(6, /dev/sda2, 10) failed: No such file or directory

Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
#################

The system could not recognize the harddisk. There were no device files sda* in /dev/ directory:
################
root@p1022ds:~# ls /dev/sda*
ls: cannot access /dev/sda*: No such file or directory
root@p1022ds:~# fdisk -l /dev/sda
root@p1022ds:~# 
################

When I plugged a USB stick, there was a similar error message with udev and also could not create device file in /dev direcotry:
################
root@p1022ds:~# 
root@p1022ds:~# usb 1-1: new high speed USB device number 2 using fsl-ehci
scsi2 : usb-storage 1-1:1.0
scsi 2:0:0:0: Direct-Access     Netac    OnlyDisk         1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 2009600 512-byte logical blocks: (1.02 GB/981 MiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 2:0:0:0: [sdb] No Caching mode page present
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] No Caching mode page present
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] No Caching mode page present
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk

root@p1022ds:~# 
root@p1022ds:~# ls /dev/sdb*
ls: cannot access /dev/sdb*: No such file or directory
root@p1022ds:~# 
root@p1022ds:~# fdisk -l /dev/sdb
root@p1022ds:~# 
root@p1022ds:~# 
root@p1022ds:~# grep &quot;udev&quot; /var/log/messages 
Aug  9 11:11:00 p1022ds user.err kernel: 0&gt;udevd[1363]: starting version 182
Aug  9 11:24:36 p1022ds daemon.err udevd[1633]: inotify_add_watch(6, /dev/sdb, 10) failed: No such file or directory
Aug  9 11:24:36 p1022ds daemon.err udevd[1633]: inotify_add_watch(6, /dev/sdb1, 10) failed: No such file or directory
root@p1022ds:~# 
#####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31014</commentid>
    <comment_count>1</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2013-03-22 06:48:35 +0000</bug_when>
    <thetext>udev182 needs  CONFIG_DEVTMPFS and CONFIG_DEVTMPFS_MOUNT in kernel.

please enable the option Automount devtmpfs at /dev, after the kernel mounted the rootfs (CONFIG_DEVTMPFS_MOUNT) in kernel.
The option can be found in menuconfig under Device Drivers-&gt; Generic Driver options and is called Maintain a devtmpfs filesystem to mount at /dev.

I  tested  successfully in p1022ds board by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32014</commentid>
    <comment_count>2</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2013-04-12 05:54:27 +0000</bug_when>
    <thetext>
The udev is upgraded to 182, the /dev mount requires CONFIG_DEVTMPFS_MOUNT
is enabled in Kernel, so enable the option for QorIQ SDK targets</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32016</commentid>
    <comment_count>3</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2013-04-12 06:18:36 +0000</bug_when>
    <thetext>the patch for this applied in both dylan and master.

meta-fsl-ppc = &quot;master:5834aa107616f014952b282593fba563a70d2453&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32018</commentid>
    <comment_count>4</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2013-04-12 06:20:39 +0000</bug_when>
    <thetext>*** Bug 3837 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32568</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-04-24 09:12:25 +0000</bug_when>
    <thetext>Verified with dylan branch: 963a659205b18e6066cf5826703a60af4df71ef7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>