美服客户端3.2.2登陆国服一键切换包

2010年09月1号 6:01 下午  |  分类:魔兽世界

在3.1.3的基础上稍做修改而来,用法跟3.1.3一样,理论上台服欧服也是能用的,不过没做测试

需要注意的是美服已经更新到3.3.5,这个是不能用的,需要重新装个3.2.2才能上

登陆界面采用的是国服中文界面,这样的好处是可以看到点卡剩余时间

下载地址:点我下载

I8320 ROM研究笔记(二)——文件系统

2010年08月10号 5:42 下午  |  分类:未分类

网上找到的资料显示,I8320是512M的ROM,256M的RAM,以及16G的闪存

运行一下mount跟fdisk看看

# mount
rootfs on / type rootfs (rw)
/dev/root on / type cramfs (ro)
mdev on /dev type tmpfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw)
tmpfs on /var type tmpfs (rw)
/dev/stl5 on /mnt/.lfs type j4fs (rw)
/dev/stl2 on /csa type rfs (rw,codepage=utf8,vfat,fcache(blks)=128,xattr)
/dev/bml8 on /usr type cramfs (ro)
/dev/stl9 on /mnt/rsv type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/mmca1 on /mnt/ums type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/mmca2 on /opt type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/mmca3 on /mnt/csc type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)

可以看出,根文件系统是cramfs,/mnt/.lfs是日志目录,但是新建文件试了下,提示不可写,/csa /mnt/rsv /mnt/ums /opt /mnt/csc这五个目录是可写的,新建文件重起后还在,因此可以通过备份及还原这五个目录来达到备份及恢复手机数据的目的

# fdisk -l
 
Disk /dev/tbmlc: 525 MB, 525598720 bytes
255 heads, 63 sectors/track, 63 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Disk /dev/tbmlc doesn't contain a valid partition table
 
Disk /dev/mmca: 16.4 GB, 16441671680 bytes
211 heads, 16 sectors/track, 9512 cylinders
Units = cylinders of 3376 * 512 = 1728512 bytes
 
    Device Boot      Start         End      Blocks  Id System
/dev/mmca1               1        8986    15167480  83 Linux
Partition 1 does not end on cylinder boundary
/dev/mmca2            8986        9452      786432  83 Linux
Partition 2 does not end on cylinder boundary
/dev/mmca3            9452        9513      102400  83 Linux
Partition 3 does not end on cylinder boundary
 
Disk /dev/bml0/c: 525 MB, 525598720 bytes
255 heads, 63 sectors/track, 63 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Disk /dev/bml0/c doesn't contain a valid partition table

可以看出,手机内置的闪存也就是/dev/mmca,分成了三个区,第一个就是手机的内存,算下来有14.4G,第二个是/opt目录,占了768K,第三个是/mnt/csc目录,占了100K

/dev/tbmlc和/dev/bml0/c都是500M多,这两个是啥呢?还没搞清楚

再看下/opt下有些啥

# ls -la	(/opt)
-r-xr-xr-x    1 root     root       131072 Mar 11 19:42 $RFS_LOG.LO$
-rw-r--r--    1 root     root           15 Jan  1  2000 .bd_addr
lrwxrwxrwx    1 root     root           14 Mar 11 19:44 apps -> /mnt/ums/.apps
lrwxrwxrwx    1 root     root           16 Mar 11 19:42 dbspace -> /mnt/rsv/dbspace
-rw-r--r--    1 root     root            0 Jun 22 10:42 default_contents.flg
lrwxrwxrwx    1 root     root           12 Mar 11 19:44 etc -> /mnt/rsv/etc
lrwxrwxrwx    1 root     root            8 Mar 11 19:44 media -> /mnt/ums
drwxr-xr-x   30 root     root        16384 Jul 10 07:45 share
drwxrwxrwx    5 root     root        16384 Jun 22 10:51 system
-rwxrwxrwx    1 root     root        73100 Jan  1  2005 systemfile.list
lrwxrwxrwx    1 root     root           13 Mar 11 19:44 user -> /mnt/rsv/user
lrwxrwxrwx    1 root     root           12 Mar 11 19:44 var -> /mnt/rsv/var

可以看出,占用空间大的文件夹都链接到了别的分区,/mnt/ums跟/mntrsv

dbspace -> /mnt/rsv/dbspace,这个就是手机内置数据库的文件夹,如果只想备份联系人及短信的话,把这个文件夹备份出来就够了

另外,在每个分区根目录下,都有一文件$RFS_LOG.LO$,相关链接:RFS aka Robust File System

I8320 ROM研究笔记(一)——/bin目录

2010年08月9号 11:10 上午  |  分类:I8320

闲着没事,把/bin目录的程序挨个运行了一遍,有些知道是做啥的,有些还不知道,先记下来,以后没准用得到。

首先就是busybox了,因为这里面的都是linux标准命令,只是简单看了下实现了哪些,没有挨个运行

# busybox
BusyBox v1.11.0 (2010-01-26 11:15:33 KST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
 
Usage: busybox [function] [arguments]...
   or: function [arguments]...
 
        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!
 
Currently defined functions:
        [, [[, addgroup, adduser, ar, arping, ash, awk, bunzip2, bzcat, bzip2, cat, chattr, chcon, chgrp, chmod,
        chown, chvt, clear, cp, date, dd, df, dmesg, du, echo, egrep, env, expr, fdisk, fgrep, find, free, fsck,
        ftpget, ftpput, getenforce, getopt, getsebool, getty, grep, gunzip, gzip, halt, head, hexdump, hostname,
        id, ifconfig, inetd, init, insmod, ipcrm, ipcs, kill, killall, klogd, linuxrc, ln, load_policy, login,
        logread, losetup, ls, lsattr, lsmod, matchpathcon, mdev, mkdir, mknod, modprobe, more, mount, mv, passwd,
        pidof, ping, poweroff, ps, pwd, reboot, renice, reset, restorecon, rm, rmdir, rmmod, route, runcon, sed,
        selinuxenabled, sestatus, setenforce, setfiles, setsebool, sh, sleep, start-stop-daemon, stty, sync, sysctl,
        syslogd, tail, tar, telnetd, test, tftp, time, top, touch, udhcpc, umount, uname, unzip, uptime, vi, wget,
        which, zcat

AK8973_fops_test:这个应该是电子罗盘(Asahi Kasei AK8973)的测试程序,不知道是没有硬件还是没有驱动,无法运行,另外输入*运行的似乎也是这个程序

# AK8973_fops_test
ENTER YOUR CHOICE:
 1.FIELD VALUES
 2.TEMP VALUES
1
 
could not open /dev/ecompass

ISL29013_fops_test:光传感器(ISL29013)测试程序,依然是提示没有硬件

# ISL29013_fops_test
 
USAGE:
    set   
 
    get
    wait
    wrong
# ISL29013_fops_test get
 
could not open /dev/ISL29013

KXSD9_test:加速度传感器(Kionix KXSD9-2042),这个可以运行

USAGE:
    getacc
			Sensitivity: counts_per_g: 819, error_RT: 25
			Zero_g_offset: counts: 2048, error_RT: 205
			KXSD9_IOC_GET_ACC ioctl failed
    mwup_enb
    mwup_disb
    wait
    stress
    wrong

L_test:光线感应

Press any key to continue...
 
********************************************************************
 0.  Exit
 1.  Get ADC value
 2.  Get illuminance level
 3.  Get ADC value in loop [loop count: 1000, loop interval: 1000 ms]
 4.  Get illuminance level in loop
 5.  SYSFS Get ADC value
 6.  SYSFS Get illuminance level
********************************************************************
 Enter choice:

P_test:距离感应

************************************************************
 0.  Exit
 1.  Powerup in mode A	(shell输出)
 2.  Powerup in mode B	(除了shell输出还可以控制屏亮灭)
 3.  Get prox sensor output
 4.  In mode B wait for prox sensor status change
 5.  S/W reset
 6.  Get proximity sensor output [loop:10000]
 7.  In mode B wait for prox sensor status change [loop:100]
 8.  Shutdown
 9.  Return to operation after shutdown
 10. SYSFS Powerup in mode A
 11. SYSFS Powerup in mode B
 12. SYSFS Get prox sensor output
 13. SYSFS S/W reset
 14. SYSFS Shutdown
 15. SYSFS Return to operation after shutdown
************************************************************
 Enter choice:

acct_flushd:这个没有搞懂是做啥的,运行后没反应

acct_view:这个也不知道是干啥用的

Usage : acct_view [option] file_path
     EX1) acct_view /var/log/pacct   <<--- summary view
     EX2) acct_view -a /var/log/pacct   <<--- all data view

amp_tunning:音频系统(MAX9877

*****************************************************
*    SAMSUNG ELECTRONICS RIEDEL AUDIO AMP TUNNING   *
*---------------------------------------------------*
* 1. input mode control  *
* 2. speaker volume control *
* 3. left headphone volume control                        *
* 4. right headphone volume control                            *
* 5. output mode control                        *
* 0. Exit                                           *
*****************************************************
Select command number :

assy_test:这个似乎是屏幕,触摸屏,背光,摄像头等一系列功能测试,一运行屏幕显示就乱了

camtest:摄像头测试

chkcon:应该是关于selinux的,但是I8320好象没开selinux

csa_mount:不知道是挂载什么的,提示Device or resource busy

devmgr:提示是test_mode is not selected!!,怎么进入test mode?

free:显示内存使用状态的?

# free
Unknown HZ value! (30350535) Assume 100.
             total       used       free     shared    buffers     cached
Mem:        254388     225176      29212          0       6672      65288
-/+ buffers/cache:     153216     101172
Swap:            0          0          0

fsck_ums:不知道干啥的

# fsck_ums
fsck test go ? : 0
Normal disconnection from UMS connection. pass fsck.vfat

fuser

# fuser
No process specification given
Usage: fuser [ -a | -s | -c ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
             [ - ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
       fuser -l
       fuser -V
Show which processes use the named files, sockets, or filesystems.
 
    -a        display unused files too
    -c        mounted FS
    -f        silently ignored (for POSIX compatibility)
    -i        ask before killing (ignored without -k)
    -k        kill processes accessing the named file
    -l        list available signal names
    -m        show all processes using the named filesystems
    -n SPACE  search in this name space (file, udp, or tcp)
    -s        silent operation
    -SIGNAL   send this signal instead of SIGKILL
    -u        display user IDs
    -v        verbose output
    -V        display version information
    -         reset options
 
  udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]

gdbserver:跟调试有关的?

# gdbserver
Usage:  gdbserver [OPTIONS] COMM PROG [ARGS ...]
        gdbserver [OPTIONS] --attach COMM PID
        gdbserver [OPTIONS] --multi COMM
 
COMM may either be a tty device (for serial debugging), or
HOST:PORT to listen for a TCP connection.
 
Options:
  --debug               Enable debugging output.

kill:杀死进程的,标准linux命令

killall

Usage: killall [OPTION]... [--] NAME...
       killall -l, --list
       killall -V, --version
 
  -e,--exact          require exact match for very long names
  -I,--ignore-case    case insensitive process name match
  -g,--process-group  kill process group instead of process
  -i,--interactive    ask for confirmation before killing
  -l,--list           list all known signal names
  -q,--quiet          don't print complaints
  -r,--regexp         interpret NAME as an extended regular expression
  -s,--signal SIGNAL  send this signal instead of SIGTERM
  -u,--user USER      kill only process(es) running as USER
  -v,--verbose        report if the signal was successfully sent
  -V,--version        display version information
  -w,--wait           wait for processes to die

lcd_test:屏幕测试,运行后是三色自动切换

memps

# memps
memps [-a] | [-s]
 | [-f]
         -s = sum (show only sum of each)
         -f = all (show all processes via output file)
        -a = all (show all processes)

mft_earphone:没反应

mft_radio:依然没反应

mmc_mount:应该是挂载TF卡,手里没TF卡

mtop:内存监控,输出类似于top

# mtop
memory monitor version 0.2
show memory information target processes.
Usage :
        mtop [-vp(c)] : show all processes.
        mtop [-vp(c)] pid1 : show single processes with VMA.
        mtop [-vp(c)] pid1 pid2 pid3 ... : show multi processes.
 
        [-v(p)] option : sort by VM(PM).
        [-c] option : show the list only Samsung App libraries.
        [-t line] option : show the list as the number of 'line' from Top.
        [-b line] option : show the list as the number of 'line' from Bottom.
        No option : print this help message.
 
        example :
                mtop -p(c)
                mtop -p(c)b 10 pid1 ...
                mtop -v(c)t 10 pid1 ...

nation:显示当年选择的国家?输出是9,数了下,土耳其是排第九

oldfuser:没搞懂干啥的

# oldfuser
Usage: fuser [ -a | -s | -c ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
             [ - ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
       fuser -l
       fuser -V
Show which processes use the named files, sockets, or filesystems.
 
     -a        display unused files too
    -c        mounted FS
    -f        silently ignored (for POSIX compatibility)
    -i        ask before killing (ignored without -k)
    -k        kill processes accessing the named file
    -l        list available signal names
    -m        show all processes using the named filesystems
    -n SPACE  search in this name space (file, udp, or tcp)
    -s        silent operation
    -SIGNAL   send this signal instead of SIGKILL
    -u        display user IDs
    -v        verbose output
    -V        display version information
    -4        search IPv4 sockets only
    -6        search IPv6 sockets only
    -         reset options
 
  udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]

pbacam:没反应

pgrep

# pgrep
Unknown HZ value! (31095288) Assume 100.
pgrep: No matching criteria specified
Usage: pgrep [-flvx] [-d DELIM] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST]
        [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN]

pkill

# pkill
Unknown HZ value! (31168442) Assume 100.
pkill: No matching criteria specified
Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST]
        [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN]

pmap

# pmap
Unknown HZ value! (31190067) Assume 100.
Usage: pmap [-x | -d] [-q] pid...
-x  show details
-d  show offset and device number
-q  quiet; less header/footer info
-V  show the version number

powertop:以类似于top输出结果的形式显示各进程耗电情况,还能看到CPU的频率,相关链接

# powertop
     PowerTOP version 1.10       (C) 2007 Intel Corporation
 
Cn                Avg residency       P-states (frequencies)
C0 (cpu running)        ( 6.2%)          600 Mhz     0.0%
C1                0.0ms ( 0.0%)          550 Mhz     0.0%
C2                0.2ms ( 0.0%)          500 Mhz     0.0%
C3                7.2ms (93.8%)          250 Mhz   100.0%
C4                0.1ms ( 0.0%)
C5                0.0ms ( 0.0%)
C6                0.0ms ( 0.0%)
 
Wakeups-from-idle per second : 130.0    interval: 5.0s
no ACPI power usage estimate available
 
Top causes for wakeups:
  32.1% (131.8)        : gp timer
  31.6% (129.6)        : prcm
  31.1% (127.6)      sound_server : SYNC_WaitOnMultipleEvents (timeout_callback)
   2.4% ( 10.0)      sound_server : schedule_timeout (process_timeout)
   0.8% (  3.4)   java-app-domain : do_nanosleep (hrtimer_wakeup)
   0.6% (  2.4)        app-domain : schedule_timeout (process_timeout)
   0.5% (  2.0)    scim-panel-gtk : schedule_timeout (process_timeout)
   0.3% (  1.2)        : musb_hdrc.0
   0.1% (  0.6)            Server : schedule_timeout (process_timeout)
   0.1% (  0.6)      : queue_delayed_work_on (delayed_work_timer_fn)
   0.0% (  0.2)              sshd : sk_reset_timer (tcp_write_timer)
   0.0% (  0.2)              init : do_nanosleep (hrtimer_wakeup)
   0.0% (  0.2)      : __neigh_event_send (neigh_timer_handler)
   0.0% (  0.2)      : page_writeback_init (wb_timer_fn)
   0.0% (  0.2)      : neigh_table_init_no_netlink (neigh_periodic_timer)
   0.0% (  0.2)        app-domain : do_nanosleep (hrtimer_wakeup)
 
Suggestion: Enable the CONFIG_NO_HZ kernel configuration option.
This option is required to get any kind of longer sleep times in the CPU.
 
 Q - Quit   R - Refresh

proximity_test:距离传感器?运行时输出could not open /dev

ps:查看进程的

pstree:进程树

pwdx:进程工作目录

# pwdx
Unknown HZ value! (31717851) Assume 100.
Usage: pwdx pid...

radio_app:收音机命令行控制,需要插上耳机打开收音机程序

radio_test:同radio_app

readpanic:搞不清是干啥的

rz:接收PC传送的文件,在putty上没成功,参考链接

# rz --help
rz version 0.12.20
Usage: rz [options] [filename.if.xmodem]
Receive files with ZMODEM/YMODEM/XMODEM protocol
    (X) = option applies to XMODEM only
    (Y) = option applies to YMODEM only
    (Z) = option applies to ZMODEM only
  -+, --append                append to existing files
  -a, --ascii                 ASCII transfer (change CR/LF to LF)
  -b, --binary                binary transfer
  -B, --bufsize N             buffer N bytes (N==auto: buffer whole file)
  -c, --with-crc              Use 16 bit CRC (X)
  -C, --allow-remote-commands allow execution of remote commands (Z)
  -D, --null                  write all received data to /dev/null
      --delay-startup N       sleep N seconds before doing anything
  -e, --escape                Escape control characters (Z)
  -E, --rename                rename any files already existing
      --errors N              generate CRC error every N bytes (debugging)
  -h, --help                  Help, print this usage message
  -m, --min-bps N             stop transmission if BPS below N
  -M, --min-bps-time N          for at least N seconds (default: 120)
  -O, --disable-timeouts      disable timeout code, wait forever for data
      --o-sync                open output file(s) in synchronous write mode
  -p, --protect               protect existing files
  -q, --quiet                 quiet, no progress reports
  -r, --resume                try to resume interrupted file transfer (Z)
  -R, --restricted            restricted, more secure mode
  -s, --stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds
  -S, --timesync              request remote time (twice: set local time)
      --syslog[=off]          turn syslog on or off, if possible
  -t, --timeout N             set timeout to N tenths of a second
  -u, --keep-uppercase        keep upper case filenames
  -U, --unrestrict            disable restricted mode (if allowed to)
  -v, --verbose               be verbose, provide debugging information
  -w, --windowsize N          Window is N bytes (Z)
  -X  --xmodem                use XMODEM protocol
  -y, --overwrite             Yes, clobber existing file if any
      --ymodem                use YMODEM protocol
  -Z, --zmodem                use ZMODEM protocol
 
short options use the same arguments as the long ones

setparm:搞不清做啥的

skill:似乎是杀死进程的,可以自定义向进程发送的信号

Unknown HZ value! (32782029) Assume 100.
Usage:   skill [signal to send] [options] process selection criteria
Example: skill -KILL -v pts/*
 
The default signal is TERM. Use -l or -L to list available signals.
Particularly useful signals include HUP, INT, KILL, STOP, CONT, and 0.
Alternate signals may be specified in three ways: -SIGKILL -KILL -9
 
General options:
-f  fast mode            This is not currently useful.
-i  interactive use      You will be asked to approve each action.
-v  verbose output       Display information about selected processes.
-w  warnings enabled     This is not currently useful.
-n  no action            This only displays the process ID.
 
Selection criteria can be: terminal, user, pid, command.
The options below may be used to ensure correct interpretation.
-t  The next argument is a terminal (tty or pty).
-u  The next argument is a username.
-p  The next argument is a process ID number.
-c  The next argument is a command name.

slabtop:类似于top的程序,没搞清楚是监控什么的

snice

# snice
Unknown HZ value! (32894198) Assume 100.
Usage:   snice [new priority] [options] process selection criteria
Example: snice netscape crack +7
 
The default priority is +4. (snice +4 ...)
Priority numbers range from +20 (slowest) to -20 (fastest).
Negative priority numbers are restricted to administrative users.
 
General options:
-f  fast mode            This is not currently useful.
-i  interactive use      You will be asked to approve each action.
-v  verbose output       Display information about selected processes.
-w  warnings enabled     This is not currently useful.
-n  no action            This only displays the process ID.
 
Selection criteria can be: terminal, user, pid, command.
The options below may be used to ensure correct interpretation.
-t  The next argument is a terminal (tty or pty).
-u  The next argument is a username.
-p  The next argument is a process ID number.
-c  The next argument is a command name.

speaker-test:测试麦克风的?没搞清楚怎么用

# speaker-test
 
speaker-test 1.0.16
 
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 4458 to 6687
Period size range from 2229 to 2230
Using max buffer size 6684
Periods = 4
was set period_size = 2229
was set buffer_size = 6687
 0 - Front Left

sspeedc:不知道是做啥的

# sspeedc --help
usage: sspeedh OPTION [SIZE...]
 
  -h       display this help and exit
  -s       send mode
  -r       receive mode

strace:这个很有意思,可以跟踪所指定程序的系统调用,还可以输出到文件里,调试程序时应该很有用

# strace --help
strace: invalid option -- -
usage: strace [-dffhiqrtttTvVxx] [-a column] [-e expr] ... [-o file]
              [-p pid] ... [-s strsize] [-u username] [-E var=val] ...
              [command [arg ...]]
   or: strace -c [-e expr] ... [-O overhead] [-S sortby] [-E var=val] ...
              [command [arg ...]]
-c -- count time, calls, and errors for each syscall and report summary
-f -- follow forks, -ff -- with output into separate files
-F -- attempt to follow vforks, -h -- print help message
-i -- print instruction pointer at time of syscall
-q -- suppress messages about attaching, detaching, etc.
-r -- print relative timestamp, -t -- absolute timestamp, -tt -- with usecs
-T -- print time spent in each syscall, -V -- print version
-v -- verbose mode: print unabbreviated argv, stat, termio[s], etc. args
-x -- print non-ascii strings in hex, -xx -- print all strings in hex
-a column -- alignment COLUMN for printing syscall results (default 40)
-e expr -- a qualifying expression: option=[!]all or option=[!]val1[,val2]...
   options: trace, abbrev, verbose, raw, signal, read, or write
-o file -- send trace output to FILE instead of stderr
-O overhead -- set overhead for tracing syscalls to OVERHEAD usecs
-p pid -- trace process with process id PID, may be repeated
-s strsize -- limit length of print strings to STRSIZE chars (default 32)
-S sortby -- sort syscall counts by: time, calls, name, nothing (default time)
-u username -- run command as username handling setuid and/or setgid
-E var=val -- put var=val in the environment for command
-E var -- remove var from the environment for command

sysinfo:运行没反应

sz:通过ssh向PC发文件的,跟rz对应,参考链接

# sz version 0.12.20
Send file(s) with ZMODEM/YMODEM/XMODEM protocol
    (X) = option applies to XMODEM only
    (Y) = option applies to YMODEM only
    (Z) = option applies to ZMODEM only
  -+, --append                append to existing destination file (Z)
  -2, --twostop               use 2 stop bits
  -4, --try-4k                go up to 4K blocksize
      --start-4k              start with 4K blocksize (doesn't try 8)
  -8, --try-8k                go up to 8K blocksize
      --start-8k              start with 8K blocksize
  -a, --ascii                 ASCII transfer (change CR/LF to LF)
  -b, --binary                binary transfer
  -B, --bufsize N             buffer N bytes (N==auto: buffer whole file)
  -c, --command COMMAND       execute remote command COMMAND (Z)
  -C, --command-tries N       try N times to execute a command (Z)
  -d, --dot-to-slash          change '.' to '/' in pathnames (Y/Z)
      --delay-startup N       sleep N seconds before doing anything
  -e, --escape                escape all control characters (Z)
  -E, --rename                force receiver to rename files it already has
  -f, --full-path             send full pathname (Y/Z)
  -i, --immediate-command CMD send remote CMD, return immediately (Z)
  -h, --help                  print this usage message
  -k, --1k                    send 1024 byte packets (X)
  -L, --packetlen N           limit subpacket length to N bytes (Z)
  -l, --framelen N            limit frame length to N bytes (l>=L) (Z)
  -m, --min-bps N             stop transmission if BPS below N
  -M, --min-bps-time N          for at least N seconds (default: 120)
  -n, --newer                 send file if source newer (Z)
  -N, --newer-or-longer       send file if source newer or longer (Z)
  -o, --16-bit-crc            use 16 bit CRC instead of 32 bit CRC (Z)
  -O, --disable-timeouts      disable timeout code, wait forever
  -p, --protect               protect existing destination file (Z)
  -r, --resume                resume interrupted file transfer (Z)
  -R, --restricted            restricted, more secure mode
  -q, --quiet                 quiet (no progress reports)
  -s, --stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds
      --tcp                   build a TCP connection to transmit files
      --tcp-server            open socket, wait for connection
  -u, --unlink                unlink file after transmission
  -U, --unrestrict            turn off restricted mode (if allowed to)
  -v, --verbose               be verbose, provide debugging information
  -w, --windowsize N          Window is N bytes (Z)
  -X, --xmodem                use XMODEM protocol
  -y, --overwrite             overwrite existing files
  -Y, --overwrite-or-skip     overwrite existing files, else skip
      --ymodem                use YMODEM protocol
  -Z, --zmodem                use ZMODEM protocol
 
short options use the same arguments as the long ones

tload:没搞清干啥的

# tload --help
Unknown HZ value! (34101941) Assume 100.
tload: invalid option -- -
usage: tload [-V] [-d delay] [-s scale] [tty]

top:这个就不用说了,都知道是啥

u_switch:好象跟USB接口有关,没弄清怎么用

# u_switch
Usage : u_switch arg
# u_switch --help
arg : 0
=======================================
 before
=======================================
UART & USB Path Information
[  UART ] PHONE UART
[  USB  ] PDA USB
=======================================
 current
=======================================
UART & USB Path Information
[  UART ] PHONE UART
[  USB  ] PDA USB

udevinfo:不清楚做啥的

# udevinfo --help
Usage: udevinfo OPTIONS
  --query=<type>    query database for the specified value:
    name            name of device node
    symlink         pointing to node
    path            sysfs device path
    env             the device related imported environment
    all             all values
 
  --path=<devpath>  sysfs device path used for query or chain
  --name=<name>     node or symlink name used for query
 
  --root            prepend to query result or print udev_root
  --attribute-walk  print all SYSFS_attributes along the device chain
  --export-db       export the content of the udev database
  --help            print this text

udevtest:不清楚做啥的,看名字似乎跟上面的udevinfo有关

# udevtest --help
Usage: udevtest OPTIONS
  --action=     set action string
  --subsystem=  set subsystem string
  --force               don't skip node/link creation
  --help                print this help text

ums_fs_check_mmc:TF卡文件系统扫描?

ums_fs_check_movi:手机Flash存储器文件系统扫描?

uptime:显示系统运行时间的,参考链接

vmstat:查看虚拟内存的信息,参考链接

vtmtestapi:振动回馈测试(Immersion VibeTonz

# vtmtestapi	(?振动回馈)
Initialize return code is VIBE_S_SUCCESS
Open Device return code is VIBE_S_SUCCESS
Set License return code is VIBE_S_SUCCESS
***** Immersion VibeTonz? Sample Application *****
 Press the following keys
   0: Play & Modify Effect
   1: Advanced Interactions
   2: Set Deivce to low priority
   3: Set Device to high priority
   4: Riedel problem test
   q: QUIT

w:显示当前登陆用户,参考链接
watch:监测指定命令运行的结果,参考链接

# watch
Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command>

I8320数据的暴力备份与恢复法

2010年08月7号 2:25 下午  |  分类:I8320

I8320的联系人,短信等数据是保存在一个小型数据库里,虽然e大公布了连接数据库的办法,但是这个连接工具功能比较简单,如何从将近200个表中把相关数据导出来以及导回去,仍然是个问题。所以目前只能通过把整个数据库文件拷出来,等恢复的时候再拷回去的笨办法了:

通过ssh或者telnet连接到手机(为防止备份中途待机中断,建议插上USB数据线或者先执行下nosleep命令),输入

tar cvf /mnt/ums/i8320bak.tar /mnt/rsv/dbspace/inappdb_data.00 /mnt/rsv/dbspace/inappdb_indx.i0

完成后,通过大容量存储器模式把i8320bak.tar备份到PC上

恢复的时候,连上ssh,输入

tar xvf /mnt/ums/i8320bak.tar -C /

如果想备份所有的数据,包括安装的软件等,则运行(建议先通过大容量存储器模式把卡上的视频,音乐等大文件移动到PC上,不需要的文件删掉,这样可以少备份一些数据,速度更快些):

tar cvf /mnt/ums/i8320bak.tar /csa /opt /mnt/rsv /mnt/csc /mnt/ums

恢复:

tar xvf /mnt/ums/i8320bak.tar -C /

PS:如果是往TF卡上备份的话,把/mnt/ums换成/mnt/mmc就可以了;另个在用tar备份时,不能加参数z,不然会出错,不清楚是什么原因

原来I8320里带有截屏软件的

2010年08月4号 10:56 上午  |  分类:I8320

之前一直都是e大提供的方法,通过XWD来截图,但是由于要转换格式,而且支持XWD的图片格式转换软件又不多,找到的几个软件都感觉不太好用。后来,i3x上的mdalex发了个可以直接截JPG的程序,这个虽然挺好用,但是截图的速度有点慢。这两天研究ROM里的文件发现在/usr/bin目录下有个capture_generic,用了下,感觉挺不错,速度挺快,截出来格式是bmp的,用法如下:

usage : capture_generic  [-options ...]
 
where options include:
         -n  filename    : bmp is saved to filename.bmp
         -c              : bmp is continuosly saved when you press Enter key (filename000.bmp, filnename001.bmp..)
         -t              : bmp is saved with filename_date_time.bmp format

不过不能指定输出文件的路径,所以截的时候需要先切换到要存放的目录下,然后运行capture_generic -t

-n 是手动指定文件名,不需要加后缀

-c 是连续截图的,截变化的画面时挺好,按一下回车截一个,退出的话按q即可

-t 是按时间命名,一般用这个就好

[译]I8320 ROM版本号上各字母的含义

2010年08月2号 1:19 下午  |  分类:I8320

以i8320BUJA2例

i8320:手机型号

BU:这个应该是定制此机的运营商代码(这里就是指Vodofane了)

i8320BU _(1)_(2)_(数字)

(1)和(2)分别代表年份和月份,具体如下:

A 2001 1
B 2002 2
C 2003 3
D 2004 4
E 2005 5
F 2006 6
G 2007 7
H 2008 8
I 2009 9
J 2010 10
K 2011 11
L 2012 12

(上面i8320BUJA2里的JA就是指2010年1月了)

最后一位数字代表固件的修正版本

PS:本文转自西班牙网站,由于本人不懂西班牙语,这些是根据google翻译理解而来,如有不对,欢迎指正。

原文地址:Tutorial de Flasheo Samsung H1

(1)年份

(2) 月份

A

2001

一月

B

2002

二月

C

2003

三月

D

2004

四月

E

2005

五月

F

2006

六月

G

2007

七月

H

2008

八月

I

2009

九月

J

2010

十月

K

2011

十一月

L

2012

十二月

全文阅读 »

I8320上可能跟后台多任务有关的一个文件

2010年08月1号 12:06 下午  |  分类:I8320

/usr/etc/ui.conf,原内容如下:

#This file descripts UI policy.
 
# For Usage:
#
# Default : When the flip is closed, most applications are closed, too.
#           But specific applications, for example DMB, mp3 player, are not closed.
# Japan   : When the flip is closed, most applications not are closed.
 
Default
#Japan

设置为Default:当flip关闭时,除了特殊应用,如收音机,MP3播放器外,其它程序都会被关掉

设置为Japan:当flip关闭时,其它程序不会被关掉

查了下flip似乎是翻盖的意思,而I8320上没有翻盖,但是合上翻盖也就相当于按挂机键,这样的话也是讲的通的,做了个ROM,有时间了刷上试试有没用。

经刷机验证,修改此文件无效

ipv6真是好东西啊

2010年07月25号 7:51 下午  |  分类:日常应用

以前一直觉得这个没啥用,就没多关注,今天不经意发现我们学校能用IPV6,就试了下,这一试不要紧,还真发现了IPV6好玩的地方,比如说可以翻墙啦,访问外网不花流量啦(不过我们学校没限制,外网是可以随便访问的),还有许多大学的一些原本需要校内IP才能访问的资源通过IPV6也没限制了,比如说北邮的IPTV,连上看720P的高清一点不带卡的,有时间一定要好好研究一下,先存几个站点:

http://6rank.edu.cn/

http://ipv6.sjtu.edu.cn/

http://iptv.bupt.edu.cn/

http://ipv6.tsinghua.edu.cn/

http://ipv6.pku.edu.cn/

http://www.terena.org/webcam/

http://www.ipv6home.cn/

sixxs.org(通过网址.sixxs.org)可以翻墙,比如说http://samsung-h1.blogspot.com.sixxs.org

六飞(这个是软件,没有IPV6环境可以通过它来访问IPV6的资源)

discuz反静态化的greasemonkey脚本

2010年07月25号 11:35 上午  |  分类:日常应用

今天http://www.android-fans.net出了点问题,静态链接都打不开,手动把地址改成动态地址后没问题,但是手动一个一个改毕竟还是有点麻烦,就花了点时间写了个greasemonkey的脚本,可以暂时救急,当然别的论坛出现这问题时也能用,只要是discuz做的就行

?Download discuz.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ==UserScript==
// @name           discuz
// @namespace      discuz
// @include        http://www.android-fans.net/*
// ==/UserScript==
var orientpath, forumExp, forumText, threadExp, threadText;
orientpath = window.location.pathname;
forumExp = new RegExp("^/forum-([0-9]+)-([0-9]+)\.html$", "i");
forumText = "/forumdisplay.php?fid=$1&page=$2";
threadExp = new RegExp("^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$", "i");
threadText = "/viewthread.php?tid=$1&extra=page\%3D$3&page=$2";
if (forumExp.test(orientpath)) {
	window.location.href = "http://" + window.location.host + orientpath.replace(forumExp, forumText);
}
else if (threadExp.test(orientpath)) {
	window.location.href = "http://" + window.location.host + orientpath.replace(threadExp, threadText);
}

windows server 2003安装不上vmware server的解决办法

2010年07月13号 4:23 下午  |  分类:日常应用

安装时提示server ruturned unexpected error 1625

搜索了一下,找到了原因:当 Windows Installer 过程没有足够的连续内存可用于验证是否对 .msi 包或 .msp 包正确进行了签名时,将出现此问题。

解决办法:安装Windows Server 2003 更新(KB925336) 即可。

参考文章:http://support.microsoft.com/kb/925336

Pages: 1 2 3 Next