LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2003, 12:28 PM   #1
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
installation of Nokia 5510, mounting its flash and converting mp3s into lsa


is there a possibility of transferring music to Nokia 5510 under Linux? music requires to be converted from mp3 to lsa files. there is software allowing to do that, but only for Windows. when i connect it to my pc, it is recognized in /var/log/messages correctly, and it mounts under /dev/sda but there are no partitions on it. when i try to view its status with hardware browser, it's shown as if the device was disconnected (the geometry bar is green). is there a way i could possibly mount it and transfer music onto it (as far as i know music must be transferred via Nokia Audio Manager under Windows, else it will not be available from phones point of view)? plz help me.
 
Old 09-28-2004, 03:30 PM   #2
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
There's a nice little program called nokryptia to convert mp3's to lse's. On the homepage

http://www.tuxmobil.org/nokryptia.html

you will also find some hints on getting access to the flash memory, which can be a bit tricky if you don't have a recent linux kernel (>= 2.4.22) and you've never compiled a kernel before.
 
Old 09-29-2004, 12:47 AM   #3
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well guess i'll manage, i'm using kernel 2.6.7, and after all i'm using Gentoo, which required me to compile my kernel during the installation, so i'm familiar with that.

and thnx, i'll give it a try.
 
Old 09-30-2004, 06:29 AM   #4
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
hi jogurt666,

did you actually get it working? i ran into some troubles trying to connect my nokia to kernel 2.6.6. Mounting works fine, but upload is quite unstable. Eventually, usb-storage driver will crash and i can't remount.
kernel 2.6.8.1 didn't work either; right now i've got it working with 2.6.9-rc2 and a new driver called "Low Performance USB Block driver".

if you've got the same problems and you're not into experiments with bleeding-edge software, i'd recommend using an older kernel. 2.6.0 is reported to work on the website mentioned above.
 
Old 09-30-2004, 09:10 AM   #5
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well to be honest i couldn't even mount my phone's file system, which as far as i remember was vfat (guess i've tried to mount it on Red Hat or Debian i don't remember now). i've added required lines which are:

UNUSUAL_DEV( 0x0421, 0x0404, 0x0000, 0xffff,
"Nokia",
"5510",
US_SC_SCSI, US_PR_BULK, NULL, US_FL_START_STOP),

to /usr/src/linux/drivers/usb/storage/unusual_devices.h, as mentioned in README file, but when i'm trying to recompile modules, i get an error saying something about bad or missing flag, that is US_FL_START_STOP. i don't know anything about C programming, so i can't tell wtf is wrong. as i connect my phone i get the following output in log file:

Sep 30 16:01:11 gentoo usb 1-2: new full speed USB device using address 5
Sep 30 16:01:11 gentoo scsi2 : SCSI emulation for USB Mass Storage devices
Sep 30 16:01:11 gentoo Vendor: Nokia Model: 5510 Rev: 0001
Sep 30 16:01:11 gentoo Type: Direct-Access ANSI SCSI revision: 02
Sep 30 16:01:11 gentoo SCSI device sda: 124896 512-byte hdwr sectors (64 MB)
Sep 30 16:01:11 gentoo sda: assuming Write Enabled
Sep 30 16:01:11 gentoo sda: assuming drive cache: write through
Sep 30 16:01:11 gentoo Device not ready. Make sure there is a disc in the drive.
Sep 30 16:01:11 gentoo /dev/scsi/host2/bus0/target0/lun0: p1
Sep 30 16:01:11 gentoo Device not ready. Make sure there is a disc in the drive.
Sep 30 16:01:11 gentoo Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Sep 30 16:01:11 gentoo Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 0, type 0
Sep 30 16:01:11 gentoo USB Mass Storage device found at 5
Sep 30 16:01:12 gentoo scsi.agent[22253]: disk at /devices/pci0000:00/0000:00:11.2/usb1/1-2/1-2:1.0/host2/2:0:0:0

vfat, and usb-storage are compiled as modules, which is obligatory (it was mentioned in README file) . dunno what is wrong. got any ideas?
 
Old 10-01-2004, 05:49 AM   #6
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
that UNUSUAL_DEV line is meant to be inserted into a 2.4 kernel, that's why you get this error trying to compile it with 2.6.7.

your log says something about "Attached scsi generic". usb storage devices should be managed by "scsi disk". check if you've got driver/SCSI devices/SCSI disk support (BLK_DEV_SD) enabled in your kernel and (in case you compiled it as a module) sd_mod is loaded.
 
Old 10-01-2004, 09:21 AM   #7
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
well everythig to be all right with the kernel modules etc. mobile phone's fs is also visible. that's what i get after typing fdisk -l:

Disk /dev/sda: 63 MB, 63946752 bytes
8 heads, 32 sectors/track, 487 cylinders
Units = cylinders of 256 * 512 = 131072 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 489 62576 6 FAT16
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 0, 32)
Partition 1 has different physical/logical endings:
phys=(487, 7, 32) logical=(488, 7, 31)
 
Old 10-01-2004, 10:10 AM   #8
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
that's almost exactly what i get, too (last line starts phys=(488, 7, 32) for me).
it doesn't seem to do any harm, though; especially i don't think it has anything to do with the instability during data transfer. btw, did you have any crashes with kernel 2.6.7?
 
Old 10-02-2004, 03:46 AM   #9
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Original Poster
Rep: Reputation: 30
after file system's format i could finally mount it, but yeah it did crash, when i've tried to umount it. i've read somewhere that i should sync it before umonting, but it didn't help. the kernel log data was similar to that when you unplug and IDE HDD from your PC when data is being transfered to/from it. the funniest thing is that no data was being transfered when i umounted it. finally files transfered to the phone were invisible for it.
 
Old 10-02-2004, 05:44 AM   #10
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
oh, let me guess ... and when you reboot & remount, you can't see the files you transferred, either. i had the same problems with kernels 2.6.6 and 2.6.8.1 (see post #4).

id did manage to transfer small amounts of data, though. copying a file of some kB, syncing and unmounting worked. not that it would help much for an mp3 player ...
 
  


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
converting, burning,mounting a dvd size mdf file on fedora 3 vtecturbo13 Linux - Software 3 11-09-2005 07:54 AM
Converting MP3s from 128kps to 96kps sekondborn Linux - Newbie 1 01-12-2005 10:45 PM
installing slack on Nokia 5510 hard disk? iluvatar Linux - Software 2 04-05-2004 01:15 PM
Saving Flash/Converting Flash shooter Linux - General 1 09-13-2003 11:22 PM
mounting fat32 winXP partition in linux for mp3s centr0 Linux - General 2 03-08-2003 10:28 AM

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

All times are GMT -5. The time now is 07: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