LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-20-2005, 08:50 PM   #1
quackking
LQ Newbie
 
Registered: Feb 2004
Distribution: mandrake 9.2+
Posts: 19

Rep: Reputation: 0
How do I mount my Samsung YP-T7J USB mp3 player?


Hi. I just got a Samsung YP-T7JX (512MB MP3 player/photo viewer) - as far as I can see it is similar to an iPod Shuffle. I am running a few boxen, but lets start with this Mandrake 2006. system, with kernel 2.6.12.

# uname -a

shows:

Linux beastie 2.6.12-11mdk #1 Sun Aug 28 19:07:22 CEST 2005 i686 AMD Athlon(tm) XP 1800+ unknown GNU/Linux

The device shows up when I plug it into my USB 2.0 port:

# lsusb

shows:

Bus 004 Device 003: ID 04e8:5047 Samsung Electronics Co., Ltd
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

and

# dmesg | tail

shows:

device eth0 entered promiscuous mode
ohci_hcd 0000:00:02.2: wakeup
ohci_hcd 0000:00:02.3: wakeup
usb 4-1: new high speed USB device using ehci_hcd and address 2
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-1: USB disconnect, address 2
usb 4-1: new high speed USB device using ehci_hcd and address 3
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5


(I plugged and unplugged it a few times, and I don't think the scsi message applies to this device, but I could be wrong)

I can mount other USB devices (like my 1.1 Minolta DImage 7 camera) just fine.

What commands to I need to get read/write access to this device? I want to be able to copy files (mp3s and jpgs) onto the player. I think that it is pre-formatted as FAT32. The device itself comes only with support for WinXP/Media Player 10.

Thanks in advance!
 
Old 12-20-2005, 09:57 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Does it appear as a drive in WinXP? Do you have SCSI disk support enabled? You may also need the SCSI "Scan All LUNs" option enabled.
 
Old 12-21-2005, 08:58 AM   #3
quackking
LQ Newbie
 
Registered: Feb 2004
Distribution: mandrake 9.2+
Posts: 19

Original Poster
Rep: Reputation: 0
I don't have XP, so I don't know, but the documentation implies that you can see it, and copy things to it, using Windows Explorer - (kinda like a DAV drive?) so I think that it does.

How do I tell whether I've got those SCSI options enabled?


lsmod shows these relevant lines:

...
sg 34044 0
usb_storage 72416 0
...
sr_mod 15428 0
floppy 55380 0
sbp2 21288 1
scsi_mod 121096 4 sg,usb_storage,sr_mod,sbp2
...
ehci_hcd 29160 0
ohci_hcd 19108 0
usbcore 108380 4 usb_storage,ehci_hcd,ohci_hcd
...



and

# cat /proc/scsi/scsi
shows:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD_RW ND-3520A Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02


(I have a Firewire DVD burner which shows up and hotplugs correctly.)


I think the SCSI stuff is loaded, by default, in Mandrake 2006.5


Oh, yeah. USB is loaded, and (the second block is relevant)

# cat /proc/bus/usb/devices

T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 6
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-11mdk ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:0b.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms

T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04e8 ProdID=5047 Rev= 1.00
S: Manufacturer=TELECHIPSAPIC
S: Product=Samsung YP-T7J
S: SerialNumber=A032330942CF8C10
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=64ms

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-11mdk ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:0b.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-11mdk ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-11mdk ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms


So, the device is there, but the USB-SCSI Mass Storage emulation does not fire up?


Finally,
#tail -f /var/log/messages (when I plug it in)

Dec 21 11:27:29 beastie kernel: usb 4-1: new high speed USB device using ehci_hcd and address 6
Dec 21 11:27:29 beastie hal.dev[17053]: DEVNAME is not set
Dec 21 11:27:29 beastie hal.dev[17069]: DEVNAME is not set



Thanks!

Last edited by quackking; 12-21-2005 at 10:28 AM.
 
Old 12-22-2005, 07:44 PM   #4
quackking
LQ Newbie
 
Registered: Feb 2004
Distribution: mandrake 9.2+
Posts: 19

Original Poster
Rep: Reputation: 0
Help help!

I even followed the directions on this IBM site:

http://publib.boulder.ibm.com/infoce...ig_2hsaga.html

and created a new initrd with scsi Max_Luns now set to 128..

# Edit the /etc/modules.conf file.
# Add the following line:

* options scsi_mod max_scsi_luns=128

Note: If you already have a max_scsi_lun option in the modules.conf file, ensure that the value is set to 128 or 256. If you are using a 2.6 kernel distribution, replace max_scsi_luns with max_luns.


but no go - I still can see the device attaching, as per above, but it does not invoke the USB SCSI emulation, so I can't mount it.

Help Help!!
 
Old 12-26-2005, 11:17 AM   #5
quackking
LQ Newbie
 
Registered: Feb 2004
Distribution: mandrake 9.2+
Posts: 19

Original Poster
Rep: Reputation: 0
Hi. I still have this problem. ANYBODY OUT THERE?

Thanks!
 
Old 12-26-2005, 11:52 AM   #6
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
try "modprobe sd_mod"
if that doesn't give you any errors then do "dmesg | tail"

This is what my dmesg looks like when i plug in my samsung yp-c1x:

Code:
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
  Vendor: Samsung   Model: YP-C1             Rev: 2001
  Type:   Direct-Access                      ANSI SCSI revision: 04
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1011712 512-byte hdwr sectors (518 MB)
sda: Write Protect is off
sda: Mode Sense: 38 00 00 00
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
I previously had trouble setting up a usb memory stick because i didn't have sd_mod loaded. Under linux usb storage devices are handled as scsi devices so you need scsi disk support either compiled into the kernel or as a module(in the case of a module, sd_mod needs to be loaded).

Hope this helps
 
Old 12-26-2005, 11:58 AM   #7
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
oh, also, once you've plugged the mp3 player in, you can see if it has been assigned a /dev/sd* node with "fdisk -l"
 
Old 12-27-2005, 04:23 PM   #8
quackking
LQ Newbie
 
Registered: Feb 2004
Distribution: mandrake 9.2+
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks, dmartins, but no luck:

# modprobe sd_mod
works.

lsmod shows:

...
sd_mod 14832 0
...
and
...
scsi_mod 110440 4 sd_mod,usb-storage,sr_mod,sbp2





# dmesg | tail

shows only :

Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-2: new high speed USB device using ehci_hcd and address 2
usb 4-2: USB disconnect, address 2
usb 4-1: new high speed USB device using ehci_hcd and address 3


That is, I don't get the critical line:

scsi0 : SCSI emulation for USB Mass Storage devices

that you do.

# fdisk -l does not show any devices in the /dev/sd* tree, only

Disk /dev/hda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1020 8193118+ 83 Linux
/dev/hda2 1021 21478 164328885 5 Extended
/dev/hda5 1021 1124 835348+ 82 Linux swap
/dev/hda6 1125 6096 39937558+ 83 Linux
/dev/hda7 6097 21478 123555883+ 83 Linux

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 944 7582648+ 83 Linux
/dev/hdb2 945 1580 5108670 5 Extended
/dev/hdb5 945 1071 1020096 82 Linux swap
/dev/hdb6 1072 1580 4088511 83 Linux


Any more ideas? I must be close...

btw, this thing comes up like a flash drive with no trouble -and no drivers needed - in XP (I borrowed a friend's laptop to see)..
 
Old 12-28-2005, 05:11 PM   #9
ttrainor
LQ Newbie
 
Registered: Dec 2005
Distribution: FC4 2.6.14
Posts: 3

Rep: Reputation: 0
I got this same player for my wife's christmas present, it's a really cool little thing. I have the same problem, and I'm on Fedora Core 4, with kernel 2.6.14-1.1653_FC4. When I do a tail -f /var/log/messages and plug in the device, I get this:

Dec 28 17:41:01 localhost kernel: usb 1-6: new high speed USB device using ehci_hcd and address 13
Dec 28 17:42:23 localhost kernel: usb 1-6: USB disconnect, address 13

No device node gets created in /dev, and I don't even get that bit about the USB mass storage module being loaded.
After googling around and reading man udev and man hotplug, I added this rule to /etc/udev/rules.d/50-udev.rules:

# Samsung YP-T7J
SYSFS{product}=="Samsung YP-T7J", BUS="usb", MODE="0660", NAME="%k", SYMLINK="mp3"

Now I get a device node created when I plug it in, but when I go to mount it, I get:

[root@localhost device]# mount /dev/mp3 -t vfat /mnt/mp3
mount: /dev/mp3 is not a block device

[root@localhost dev]# file usbdev1.14
usbdev1.14: character special (189/13)

What gives? This is supposed to be a regular mass-storage device. I think our problem is with either udev or hotplug. As a side note, my sony camera mounts just fine as a scsi device, but it's not a USB2.0 high speed device.

Can anyone help us?

Last edited by ttrainor; 12-28-2005 at 05:53 PM.
 
Old 01-07-2006, 04:54 PM   #10
syntheticexctasy
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
the yp-t7j is a windows-only player. it uses the Media transfer protocol which is only supported my windows media player 10 at this time.

http://en.wikipedia.org/wiki/Media_Transfer_Protocol

Last edited by syntheticexctasy; 01-07-2006 at 04:56 PM.
 
Old 01-08-2006, 07:07 AM   #11
ttrainor
LQ Newbie
 
Registered: Dec 2005
Distribution: FC4 2.6.14
Posts: 3

Rep: Reputation: 0
Thanks for your response, and the informative link. After reading some of the links in the wiki article, I'm still holding out hope that mtp will be implemented for linux (without all the DRM junk)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB MP3 Player Won't Mount (Philips PSA232) redrun Linux - Hardware 3 11-19-2005 11:18 PM
Mount mp3 player via usb? donbellioni Linux - Hardware 7 11-16-2004 11:47 AM
Can't mount mp3 player redneon Linux - Hardware 4 06-03-2004 05:11 AM
mount mp3 player to /mnt/mp3? Muzzy Linux - General 4 05-09-2004 05:31 AM
Samsung Yepp Mp3 Player astablemaverick Linux - General 3 12-28-2003 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration