Closed Bug 1004859 Opened 11 years ago Closed 11 years ago

[Tarako] not possible to share internal memory via USB

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1003045

People

(Reporter: jhammink, Unassigned)

Details

Build Information Device: Tarako Gaia d26a776beae0070b0032248a2ce482bbe6321a6d Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/e90f4b655511 BuildID 20140501014002 Version 28.1 ro.build.version.incremental=eng.cltbld.20140501.054147 ro.build.date=Thu May 1 05:41:56 EDT 2014 Description It's currently not possible to share internal memory, even though this is an option in settings in Tarako. Steps to Reproduce 0. Remove SD card. 1. Go to settings. 2. Enable USB Storage. 3. Under Internal Storage, enable "Share using USB". 4. Connect the device. Expected Results On Windows, Mac or Ubuntu, device should show up as a mounted drive/shared volume. Actual Results It doesn't.
not sure but started seeing this in logcat: E/slog ( 99): check_available_volume: statfs return err! [2]
Does this reproduce on a 1.3 Buri device?
Component: Gaia → Gaia::Settings
Keywords: qawanted
Is the internal volume in a partition of its own, and formatted using VFAT?
Looks like a yaffs2 partition: fabrice@fabrice-x240:~/dev/B2G-flash-tool$ adb shell mount rootfs / rootfs ro,relatime 0 0 tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0 /dev/block/mtdblock11 /system yaffs2 rw,relatime 0 0 /dev/block/mtdblock12 /data yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock14 /cache yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock18 /productinfo yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock8 /runtimenv yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock6 /backupfixnv yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock5 /fixnv yaffs2 rw,nosuid,nodev,relatime 0 0 /dev/block/mtdblock13 /mnt/internal-sdcard yaffs2 rw,nosuid,nodev,relatime 0 0 debugfs /sys/kernel/debug debugfs rw,relatime 0 0 /dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 /dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
Yep: /dev/block/mtdblock13 /mnt/internal-sdcard yaffs2 rw,nosuid,nodev,relatime 0 0 It has to be vfat for UMS to work.
This issue does not reproduce on a Buri device running the latest 1.3 build. When USB storage is enabled and the device is plugged in to the computer via USB, the storage can be accessed and files can be added to or removed from the device. 1.3 Environmental Variables: Device: Buri BuildID: 20140502024001 Gaia: 667539f1ed4becc45b182a5f1046221d3eeb9e7c Gecko: 084f8c2adae5 Version: 28.0 Base Image: v1.2-device.cfg
Keywords: qawanted
QA Contact: jzimbrick
Sounds like we either need to fix this or disable this, as right now, this doesn't work at all.
blocking-b2g: --- → 1.3T?
I have land this patch on my side, and please help me to disable internal sdcard "Share using USB". commit deafa34c483537c9b9eca5331695d08eb9a61b7c Author: james.zhang <james.zhang@spreadtrum.com> Date: Fri May 2 15:34:43 2014 +0800 Bug#307801 - [6821][FirefoxOS_v1.3][ST_India_Delhi]Airtel,6821 Fail to open USB storage. [bug number ] 307801 [root cause ] need config ums in setting.json [changes ] add ums configure to setting.json [side effects] none [self test ] yes [reviewers ] james.zhang Change-Id: Ic226a28a07307f186e3fa0e2cfe19927b6febb3b diff --git a/sp6821a_gonk/settings.json b/sp6821a_gonk/settings.json index 384eb35..7fcb87e 100644 --- a/sp6821a_gonk/settings.json +++ b/sp6821a_gonk/settings.json @@ -13,5 +13,7 @@ "tethering.wifi.prefix": "24", "tethering.wifi.dhcpserver.startip": "192.168.42.2", "tethering.wifi.dhcpserver.endip": "192.168.42.254", - "device.storage.writable.name": "extsdcard" + "device.storage.writable.name": "extsdcard", + "ums.volume.sdcard.enabled": false, + "ums.volume.extsdcard.enabled": true }
Status: NEW → RESOLVED
blocking-b2g: 1.3T? → ---
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.