Bug 6664

Summary: [p1022ds] harddisk and usb stick can not be mounted automatically
Product: [Build System, Metadata & Runtime] BSPs Reporter: Yi Zhao <yi.zhao>
Component: bsps-meta-fsl-ppcAssignee: Zhenhua Luo <zhenhua.luo>
Status: RESOLVED NOTABUG QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, b51469, chnarius, ke.zou, yi.zhao
Version: 1.7   
Target Milestone: 1.7   
Hardware: Other   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Found by QA test)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
/var/log/messages in current imag
none
/var/log/message in 1.7 m2 rc1 build none

Description Yi Zhao 2014-08-27 09:58:25 UTC
Image location: http://autobuilder.yoctoproject.org/pub/nightly/20140826-2/machines/p1022ds/

Git rev:
poky: master/52b788c6df9201764130ab744bf67b770b24b896
meta-fsl-ppc: master/d953212ae5936a7d969d13801b0c2c1eb65cee6f


The SATA hard disk in the box is not mounted automatically when system boot up. When plug a usb stick, it also can not be mounted automatically.
Here are the logs in serial port when a usb stick is plugged:
###########################
root@p1022ds:~# 
root@p1022ds:~# usb 1-1: new high-speed USB device number 2 using fsl-ehci
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi2 : usb-storage 1-1:1.0
scsi 2:0:0:0: Direct-Access     Kingston DataTraveler G2  1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 3905407 512-byte logical blocks: (1.99 GB/1.86 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] No Caching mode page found
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] No Caching mode page found
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] No Caching mode page found
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:~# mount
128.224.162.226:/export/pxeboot/rootfs on / type nfs (rw,relatime,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,timeo=11,retrans=3,sec=sys,mountaddr=128.224.162.226,moun
tvers=1,mountproto=udp,local_lock=all,addr=128.224.162.226)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1002052k,nr_inodes=173348,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /mnt/.psplash type tmpfs (rw,relatime,size=40k)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
root@p1022ds:~# 
#######################

This is a regression issue. It works on 1.7 M2 rc1. (git rev: poky/2d1660112e54653f7bb763939d0416472c49fe01  meta-fsl-ppc/5efa2d27dcf4637b008faf782b5e257b748b24c0).

Here are the logs when I plug a usb stick in 1.7 M2 rc1 build:
#######################
root@p1022ds:~# 
root@p1022ds:~# usb 1-1: new high-speed USB device number 2 using fsl-ehci
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi2 : usb-storage 1-1:1.0
scsi 2:0:0:0: Direct-Access     Kingston DataTraveler G2  1.00 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 3905407 512-byte logical blocks: (1.99 GB/1.86 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] No Caching mode page found
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] No Caching mode page found
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] No Caching mode page found
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sdb1): using internal journal
EXT3-fs (sdb1): recovery complete
EXT3-fs (sdb1): mounted filesystem with writeback data mode

root@p1022ds:~# 
root@p1022ds:~# mount
128.224.162.226:/export/pxeboot/rootfs on / type nfs (rw,relatime,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=udp,timeo=11,retrans=3,sec=sys,mountaddr=128.224.162.226,moun
tvers=1,mountproto=udp,local_lock=all,addr=128.224.162.226)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1002040k,nr_inodes=173342,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /mnt/.psplash type tmpfs (rw,relatime,size=40k)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
/dev/sda1 on /run/media/sda1 type ext2 (rw,relatime,errors=continue)
/dev/sda5 on /run/media/sda5 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)
/dev/sda6 on /run/media/sda6 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)
/dev/sda3 on /run/media/sda3 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)
/dev/sdb1 on /run/media/sdb1 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)
root@p1022ds:~# 
######################
Comment 1 Yi Zhao 2014-08-27 09:59:20 UTC
Created attachment 2093 [details]
/var/log/messages in current imag
Comment 2 Yi Zhao 2014-08-27 09:59:57 UTC
Created attachment 2094 [details]
/var/log/message in 1.7 m2 rc1 build
Comment 3 chnarius 2014-09-04 06:54:14 UTC
by default, auto-mounting is disabled. see
http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/commit/?id=06c140cb72406b6d88140ca1085c20352ba193d4

you can revert this commit to see if it works.
Comment 4 Yi Zhao 2014-09-09 07:27:47 UTC
(In reply to comment #3)
> by default, auto-mounting is disabled. see
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/commit/
> ?id=06c140cb72406b6d88140ca1085c20352ba193d4
> 
> you can revert this commit to see if it works.

Thanks for your reply. So this should not be a bug. Mark it as NOTABUG.