Motorola Development Community

Member Login

Quick Search



A1200 General Chat Motorola A1200 is one of Motorola's most popular EZX phone with a clear transparent flip and 2 megapixel camera.


Reply
  #1  
Old 03-17-2006
MotoFans NWBE
 
Join Date: Mar 2006
Location: Hong Kong
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default A1200 telnet discuss

1st of all, STILL NOT WORKING

A1200 is my 1st motorola linux phone.
i don't know if i did something wrong or not, but like most of ppl, i can't telnet it
here are what i found out in 5 nights study

at+mode=13 for MotNet mode
hardwareID USB\VID_22b8&PID_6027
install usblan driver, then you can ping 169.254.142.2 ........ONLY

i can't make linloader runs any script by "open with",
but the linloader script executed, if i tap the icon
here is the setup in \.system\java\CardRegistry (F: in my case):
Code:
[AppLinkRecord100000101]
AllPosition = 200
BigIcon = loader.png
Directory = /mmc/mmca1/.system/QTDownLoad/loader
Args =
Exec = lin_loader
Group = 3
Icon = loader-sm.png
InstalledDate = 2006/2/19
JavaID = -1
Mime =
MpkgFile =
Name = LinLoader
OsVersion =
Position = 1
Rotation =
Shared = 0
Size = 24K
Type = 2
uid = 100000101
i changed linloader script to this:
Code:
#!/bin/bash
/mmc/mmca1/shell.txt
so you can run something by editing shell.txt
put it in /mmc/mmca1 so you can edit it by phone

now you can do something like:
Code:
#!/bin/bash
ls -l /etc > /mmc/mmca1/output.txt
in MotNet mode
cat /proc/motusbd
you will see "IP=0.0.0.0"
if i run
Code:
ifconfig usbl0 up 169.254.142.2 netmask 255.255.0.0
ok, i got "IP=169.254.142.2"
still not working.....

cp /etc/* /mmc/mmca1/etc -R
you can check them easier on pc

/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc3.d
/etc/rc.d/rc4.d
/etc/rc.d/rc5.d
/etc/rc.d/rc6.d
/etc/rc.d/rcS.d all empty

/etc/rc.d/rc2.d :
S10acgetflex.sh
S45tapisrv.sh
S47drmcheck.sh
S50apmd.sh
S65am.sh
S66db
these are what will run at boot, no samba, no inetd,
maybe they will be started when change the MotNet mode
maybe we can start them by ourself,
maybe it will works..........not really....

lets see what we got in /etc/inetd.conf (skipped some lines)
Code:
# If you want telnetd not to "keep-alives" (e.g. if it runs over a ISDN
# uplink), add "-n".  See 'man telnetd' for more details.
telnet	stream  tcp     nowait  root    /usr/sbin/tcpd in.telnetd
ok, lets ls -l /usr/sbin
Code:
total 0
OMG !!!!!!

is there anything in /usr/sbin in other motorola phone ?
if so, if we copy them to A1200, will it works?

and i found an interesting thing in /etc/hotplug/hotplug.functions
Code:
#!/bin/ash
#
# Setup and utility functions for use in hotplug agents
#
# Trimmed drastically for testing, start over with originals for production.
#

#DEBUG=yes export DEBUG
PATH=/bin:/sbin:/usr/sbin:/usr/bin:

#mesg () {
#    /usr/bin/logger -t $0 "$@"
#}
Reply With Quote
  #2  
Old 03-17-2006
Gnome's Avatar
MotoFans JUNR
 
Join Date: Mar 2006
Location: SPb/Moscow
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gnome
Default Re: A1200 telnet discuss

1. on A1200 LinLoader not work (yet). Reason: unknown (yet).
2. on A1200 Telnet not work *(yet). Reason: port 23 is closed, only 11000 and 19000 ports are opened.
3. netmask for A1200 - is B-mask (255.255.0.0), not A-mask (255.255.255.0)
4. CardRegistry (in A1200) and PlugCardDB (expect A1200) has different structure, and def. [AppLinkRecord100000101] not correct.
5. read this: http://www.motorolafans.com/index.ph...ewtopic&t=3231 (about a1200 linloader)
6. read tihs: http://www.motorolafans.com/index.ph...ewtopic&t=3044 (about a1200 telnet)
7. and read this: http://www.motorolafans.com/index.ph...ewtopic&t=3229 (about FW-struct)
__________________
---
S.Y., Pevnitsky Alexander
Reply With Quote
  #3  
Old 03-17-2006
MotoFans JUNR
 
Join Date: Nov 2005
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Can we see the results of a `ps -aux` please? The inetd.conf issue might be a non-issue if inetd isnt even running. However, if it IS running, it hsould be simple enough to cross-compile tcpd and in.telnetd and get it copied to /usr/sbin.
Reply With Quote
  #4  
Old 03-18-2006
MotoFans NWBE
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

lin_loader doesn't work yet on A1200 according to your guidance.
Reply With Quote
  #5  
Old 03-18-2006
MotoFans NWBE
 
Join Date: Mar 2006
Location: Hong Kong
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Quote:
3. netmask for A1200 - is B-mask (255.255.0.0), not A-mask (255.255.255.0)
oh yes, i was trying to say 255.255.0.0, there was a copy/paste mistake

Quote:
lin_loader doesn't work yet on A1200 according to your guidance.
it is not linloasder anymore, just a script that will run the script /mmc/mmca1/shell.txt

"UserId = root" should be added in the new section of CardRegistry,
as we are doing something only root can do,
but same result....

/usr/sbin/inetd is missing, as /usr/sbin is empty
but /etc/init.d/inetd try to run that

hope tcpd, in.telnetd and inetd are just placed in somewhere else, but not missing

here is the output of "ps -aux", after i changed to MotNet mode
Code:
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.2  1.0  1368  484 ?        S    21:48   0:00 init [
root         2  0.0  0.0     0    0 ?        S    21:48   0:00 [keventd]
root         4  0.0  0.0     0    0 ?        SN   21:48   0:00 [ksoftirqd_CPU0]
root         3  0.0  0.0     0    0 ?        S    21:48   0:00 [ipmd]
root         5  0.1  0.0     0    0 ?        S    21:48   0:00 [kswapd]
root         6  0.0  0.0     0    0 ?        S    21:48   0:00 [bdflush]
root         7  0.0  0.0     0    0 ?        S    21:48   0:00 [kupdated]
root         8  0.0  0.0     0    0 ?        D    21:48   0:00 [keventd]
root         9  0.0  0.0     0    0 ?        D    21:48   0:00 [kdebounced]
root        10  0.0  0.0     0    0 ?        D    21:48   0:00 [kemud]
root        11  0.0  0.0     0    0 ?        S    21:48   0:00 [mtdblockd]
root        12  0.0  0.0     0    0 ?        S    21:48   0:00 [khubd]
root        14  0.0  0.0     0    0 ?        D    21:48   0:00 [swapper]
root        35  0.0  0.0     0    0 ?        SN   21:48   0:00 [jffs2_gcd_mtd8]
root        37  0.0  0.0     0    0 ?        SN   21:48   0:00 [jffs2_gcd_mtd9]
root        67  0.8  3.6  4440 1680 ?        S    21:48   0:01 /usr/SYStapi/tapisrv
root        68  0.0  0.8  1700  416 ?        S    21:48   0:00 /usr/SYSqtapp/modem/modemlauncher
root        75  0.0  0.7  1352  332 ?        S    21:48   0:00 /usr/bin/apmd
ezx         76  0.1  1.2  1664  564 ?        S    21:48   0:00 /usr/bin/emud
root        81  7.3 12.5 17644 5800 ?        S    21:48   0:09 /usr/SYSqtapp/windowsserver/windowsserver -qws
root        84  0.6  6.1 14556 2872 ?        S    21:48   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
ezx         85  0.0  1.0  1464  476 tty1     Ss+  21:48   0:00 -bash
root        93  0.1  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root        95  9.4 18.3 24896 8508 ?        S    21:48   0:11 /usr/SYSqtapp/am/am
root        97  0.3  1.8  4396  860 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root        98  0.0  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root        99  0.2  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root       100  0.1  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root       114  0.0  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root       116  0.0  2.2 10732 1060 ?        S<   21:48   0:00 /usr/SYSqtapp/sound/soundmanager
root       152  3.1 13.6 27100 6316 ?        S<   21:48   0:03 /usr/SYSqtapp/phone/phone
root       232  0.0 18.3 24896 8508 ?        S    21:48   0:00 /usr/SYSqtapp/am/am
root       316  0.0  6.1 14556 2872 ?        S    21:48   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
root       317  0.0  6.1 14556 2872 ?        S    21:48   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
ezx        439  1.7 11.0 27064 5132 ?        S    21:48   0:01 /usr/SYSqtapp/windowsserver/openwindow
root       511  0.9  8.7 23884 4060 ?        S    21:48   0:00 /usr/SYSqtapp/windowsserver/misc1
root       679  0.0  8.7 23884 4060 ?        S    21:48   0:00 /usr/SYSqtapp/windowsserver/misc1
root       680  0.1  8.7 23884 4060 ?        S    21:48   0:00 /usr/SYSqtapp/windowsserver/misc1
root       728  0.0  6.1 14556 2872 ?        S    21:49   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
ezx        731  2.8 18.2 36448 8456 ?        S    21:49   0:02 /usr/SYSqtapp/messaging/messaging
ezx        732  0.3  5.8 12580 2688 ?        S    21:49   0:00 /usr/SYSqtapp/opera/brwdaemon
ezx        733  0.7 12.9 30084 6012 ?        S    21:49   0:00 /usr/SYSqtapp/addressbook/addrbk
root       741  0.1  6.1 14556 2872 ?        S    21:49   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
ezx        748  1.2 16.8 31000 7824 ?        S    21:49   0:01 /usr/SYSqtapp/vui/vr
root       750  0.0  8.7 23884 4060 ?        D    21:49   0:00 /usr/SYSqtapp/windowsserver/misc1
root       751  0.4  6.1 14556 2872 ?        S    21:49   0:00 /usr/bin/db_daemon -tapi -shareenv -delay 12
ezx        752  0.0 16.8 31000 7824 ?        S    21:49   0:00 /usr/SYSqtapp/vui/vr
ezx        754  0.0 16.8 31000 7824 ?        S    21:49   0:00 /usr/SYSqtapp/vui/vr
ezx        755  0.0 16.8 31000 7824 ?        S    21:49   0:00 /usr/SYSqtapp/vui/vr
root       810  0.1  3.4 15808 1588 ?        Ss+  21:50   0:00 /usr/SYSqtapp/ap_tcmd/tcmd -u MotNet
root       819  0.0  3.4 15808 1588 ?        S+   21:50   0:00 /usr/SYSqtapp/ap_tcmd/tcmd -u MotNet
root       820  0.0  3.4 15808 1588 ?        S+   21:50   0:00 /usr/SYSqtapp/ap_tcmd/tcmd -u MotNet
root       821  0.0  3.4 15808 1588 ?        S+   21:50   0:00 /usr/SYSqtapp/ap_tcmd/tcmd -u MotNet
ezx        834 10.0 16.8 31000 7824 ?        S    21:50   0:00 /usr/SYSqtapp/vui/vr
root       835  4.0  0.9  1444  440 ?        S    21:50   0:00 /bin/bash /mmc/mmca1/.system/QTDownLoad/loader/lin_loader
root       836  0.0  2.2 10732 1060 ?        S<   21:50   0:00 /usr/SYSqtapp/sound/soundmanager
root       837  0.0  0.9  1444  444 ?        S    21:50   0:00 /bin/sh /mmc/mmca1/shell.txt
root       841  0.0  1.7  2284  788 ?        R    21:50   0:00 ps -aux
Reply With Quote
  #6  
Old 03-18-2006
MotoFans NWBE
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Thanks for the information. I'm very interested in what you are doing. But after doing what you wrote here, I can't see anyting in output.txt.

Could you write what you did in detail?

Thanks again.
Reply With Quote
  #7  
Old 03-18-2006
MotoFans NWBE
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Another question. Now I can launch MotNet, but how to install USBLAN for A1200? You are right the PID is 6207, but I can't install USBLAN sucessfully. Thanks a lot.
Reply With Quote
  #8  
Old 03-19-2006
MotoFans NWBE
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Hi iwaskia, thank you very much. I have done the above tests.

You are right. But how can you be root user? I am still 'ezx' even I set userid=root.
Reply With Quote
  #9  
Old 03-19-2006
MotoFans NWBE
 
Join Date: Mar 2006
Location: Hong Kong
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

liganglun, i can see u have successfully installed usblan driver, right?

UserId = root
U and I are upper case
i can see my scripts are running as root in "ps -aux" output.

if u "ls / -R", u can see all files on phone,
but i can't found any file about telnet, tcpd, inetd, samba
maybe we need to copy /usr/sbin from other phone
Reply With Quote
  #10  
Old 03-19-2006
MotoFans NWBE
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: A1200 telnet discuss

Thanks. The issue was resolved. I made a new topic in another forum to look for the tcpd and in.telnetd.

Meanwhile got something new for you. During your A1200 is powered down, connect your phone to a computer, the phone will be powered on automaticaly, and then use Hyper Terminal to type at+mode command. I tried the mode from 1 to 100. Here is the new discovery:
at+mode=8 PST, new HW
at+mode=9 testagent
at+mode=10 ap logger
at+mode=11 motcdc; will find a new HW: Belcarra: VID:22B8 PID:6004
at+mode=12 MotDSPLog, new HW
at+mode=13 MotNet, New HW: USBLAN
at+mode=24 mass storage.
at+mode=30 MODEM enter test data mode
at+mode=31 MODEM exit
Reply With Quote
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telnet A1200 from Windows XP alokm A1200 General Chat 25 10-02-2009 11:28 AM
A1200 telnet problem kotnik A1200 General Chat 14 12-12-2008 07:39 AM
A1200 MacOS X telnet via usb or bt sschaubach A1200 General Chat 8 10-02-2006 02:13 PM
Discuss-What is the major problem og A780 xufuchang A780 General Chat 7 09-24-2006 12:24 AM
about a1200's telnet zhangyang Development 15 02-27-2006 05:36 PM

 
Advertisement

Partner Links





Web Analytics