mob453 logo

*
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


0 Members and 1 Guest are viewing this topic.Pages: [1]
Author
Topic: HOWTO: Access Motorola phones through USB on Ubuntu using Moto4Lin  (Read 250 times)

hecatae
*
Posts: 4536

Phone model  Sony Ericsson K800i
Phone model 2  R8BF003
Network  3 UK



Most of the information reproduced here, for convenience's sake , can be found at the moto4lin's wikipage Here

moto4lin allows you to access your cell phone's file system under linux. Upload/Download pictures, ringtones, etc. . Its still in alpha, so be careful, but I have been running it without any problems whatsoever. .


There's lots more supported now, I would definitely recommend checking out the Supported ModelsSupported Models section at the moto4lin wiki.

Here is the list of 'officially' supported models (motorola phones not listed here may also work, try it out):
C350, C350l, C380, C650, V180, V220, V300, V500, V547, V600, E398, E1000



If your motorola phone works with this app, but its not in the official list, add it to the moto4lin wiki, Supported Models and fill in the USB ID as well. That way everyone gets it.

Moto4lin supports AT and P2K modes on these phones. I have not tested the AT mode as of yet, but it's basically for Modem functionality and GPRS (me thinks), but its the P2K mode that I was interested in, since it lets you access your cell phone's file system.

#Requirements
Install the following...

Code:
~$sudo apt-get install cvs
~$sudo apt-get install libqt3-mt-dev
~$sudo apt-get install zlib1g-dev
~$sudo apt-get install libusb-dev

#Installing moto4lin
We are going to get the moto4lin source from a cvs repository. You might get an error from cvs at this stage, ignore and proceed. Asked for password? Just press Enter.

Code:
~$cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/moto4lin login
~$cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/moto4lin co -P moto4lin

This should download the source into a directory named moto4lin. Now compile the source.

Code:
~$cd moto4lin
~/moto4lin$qmake
~/moto4lin$make
~/moto4lin$sudo make install

Should you receive any compilation errors, you most likely do not have the required libraries, try looking through the error messages to figure out what you are missing. If everything goes ok, you have installed moto4lin successfully.

#Configure moto4lin
Connect your phone to your computer using your usb cable.

Now run moto4lin...

Code:
~$sudo moto4lin

You need to run it under root, to access the P2K mode on your phone, at least until its fixed, or someone figures out how to run it as normal user.

In the bottom status bar of the moto4lin window it should say, at least the first time: '[info] Phone pluged as AT'

GoTo: Settings -> Preferences...
Set 'ACM Device' = '/dev/ttyACM0'
Then we need to figure out the following,
'AT Vendor ID',
'AT Product ID',
'P2K Vendor ID',
'P2K Product ID'.

Click 'Update List' -> retrieves a list of the 'AT Vendor ID' and 'AT Product ID' of all your USB devices. Find your cell phone's AT IDs from the list.
(Once you have found it write it down, because an ODD thing is when moto4lin is run under root, it does not save any changes to settings)
Select 'Switch to P2K' -> if it is successful, it should say '[info] Phone pluged as P2K' in the status bar of the main window.
Clicking 'Update List' again will now retrieve the 'P2K Vendor ID' and 'P2K Product ID' of all your USB devices. Write your cell phone's P2K IDs down.

Alternatively you can search HERE for the AT and P2K IDs of your cellphone.

Now quit moto4lin, and run as normal user

Code:
~$moto4lin

Goto Settings -> Preferences and fill in the AT IDs and the P2K IDs.

Quit moto4lin, and the settings will be saved.
So run under root for execution and run as normal user for configuration.

#Running moto4lin
Now run moto4lin as root...

Code:
~$sudo moto4lin

Check the current mode:
If its already in P2K mode, click 'Connect' to load up your Motorola file system

If its in AT mode, Goto Settings -> Preferences...Select 'Switch to P2K' then try connecting.

 


moblinks

*
Posts: 1337

« Posted on: September 05, 2008, 10:04:58 AM »

 
Read and post to this forum using your mobile phone! Click here to read how! | Send in MMS photos from your phone at mobMMS!


hecatae
*
Posts: 4536

Phone model  Sony Ericsson K800i
Phone model 2  R8BF003
Network  3 UK


« Reply #1 on: February 26, 2008, 09:08:34 AM »

Flashing a motorola under linux:

http://moto4lin.sourceforge.net/wiki/Flashing

Require libusb 0.x to build. On Ubuntu this required the deb package libusb-dev (tested w/ver. 0.1.12-2).

How to use

At first, this is most important, program should be launched as root. It can flash any shx file.

USE: flasher [-d DEVICE] [-e ERASEARG] SHXFILE

DEVICE - ACM device, like /dev/ttyACM0

ERASEARG - ERASE argument. Originally 2 values were used for it:

1) 0x80 - for code reflashing. Just erases the ranges specified.

2) 0x2 - for DRM&Language package reflashing. Erases the ranges specified and also the 0xB1 magic in the MEM_MAP, which is restored with RBRK command. RBRK is normally sent after flashing is complete. This program doesn't send RBRK anyway, so only the default value should be used.

SHXFILE - SHX file to flash.

It's recommended to switch phone manually to FLASH mode by turning it off and then pressing the buttons "*", "#" and Power simultaneously on phone.

Program will create temporary files in current directory. So it's should be RW. Note it doesn't cleanup automatically.

 


Pages: [1]
Jump to: