In-depth analysis of e680g applications 4. solve the problems brought by LM

Source: Internet
Author: User

In-depth analysis of e680g applications 4. solve the problems brought by LM

Papaya 20060826

Resource download http://play.younet.com/view.php? Tid = 18578

I. Preface

If you have read three previous articles, it is easy to understand this article. Contents of this Article
This is to completely discard the so much trouble l/M brings to us! What to install, uninstall, rename, etc?
And changed the file on the mobile phone.
There are many people to thank here. At least two people should be named, yan0 and cyph. One-bit collection
The ezx_flexbit.cfg setting method is taken into consideration. The other one provides such a wonderful tool as flash kit.
Here, I have to admire www.e680.net as a good place. I downloaded flash kit from there.
To implement this method, telnet to the mobile phone, other Linux operating systems, and flashkit tools.

Ii. Principles

In fact, it is very simple. You can directly install and manage the mpkg program on some machines before Moto, just in the e680 Series
This feature was blocked, but fortunately we found that the function switch is in the file ezx_flexbit.cfg.
However, the ezx_flexbit.cfg file contains two files:
/Usr/Setup/ezx_flexbit.cfg
/Ezxlocal/download/appwrite/Setup/ezx_flexbit.cfg

Let's take a closer look at the principles of the ezx_flexbit.cfg file.

Open the file/ezxlocal/download/appwrite/Setup/ezx_flexbit.cfg first,
(This is my e680g. I have not made any changes to the flash drive.) The content is as follows:

[Sys_flex_table]
0 = 1208211392
1 = 374437888
2 = 2178351491
3 = 1678589
4 = 4289465088
5 = 195198976

Each row corresponds to a 32-bit binary value, but is displayed in decimal format. Let's convert it,
If the number is less than 32 bits, add 0 to the left end, and add the sequence number to the group of 4 bits. The content is as follows:

A B C D E F G H

0 0100 1000 0000 0011 1101 0111 1100 0000 0 = 1208211392
1 0001 0110 0101 0001 0111 1000 0000 0000 1 = 374437888
2 1000 0001 1101 0111 0000 0001 1000 0011 2 = 2178351491
3 0000 0000 0001 1001 1001 1100 1111 1101 3 = 1678589
4 1111 1111 1010 1100 0000 1011 0000 0000 4 = 4289465088
5 0000 1011 1010 0010 1000 0000 0000 0000 5 = 195198976

You can switch to another one to see if the results are consistent. Here, each 0 or 1 represents
Disable and enable a function. Here, only function switches that are significant are selected.

◆ 3 rows, group C, 1st bits

Enable the USB network menu, and the USB network will appear in the USB mode in the mobile phone settings. In this mode, connect to the computer.
Telnet directly.
It is not enabled here!
 
◆ 3 rows, group F, 1st bits

There is a message "Additional call charges may be charged, continue?" on your mobile phone.
Is not a prompt for Java surfing the Internet.
Enabled here!

◆ 4 rows, group D, 4th bits

The mute option appears in the shutter sound in the camera settings.
Not Enabled here!

◆ 4 rows, Group E, 1st bits
After taking the photo, the mobile phone will prompt whether to save it.
Not Enabled here!
 
◆ 5 rows, group A, 3rd bits
Enable mobile phone support for mpkg software installation.
It is extremely important. This small 1, 0 has caused great trouble for our e680g users! Not Enabled here!

Unfortunately, the file in/ezxlocal that we can modify is useless.
/Usr/Setup/ezx_flexbit.cfg. But I want to modify this/usr/Setup/ezx_flexbit.cfg.
It seems more difficult than login! I entered Telent's cell phone, and I couldn't make it happen, but I found that Mount was enough.
Function. However, the restart will definitely restore the previous look!

Let's first make a small experiment! First modify the ezx_flexbit.cfg content of/ezxlocal, and add
Mpkg and USB network functions, (3 rows C group 1st bits, 5 rows a group 3rd bits) after changing the corresponding binary value
Convert to decimal. The displayed file content is as follows:

A B C D E F G H

0 0100 1000 0000 0011 1101 0111 1100 0000 0 = 1208211392
1 0001 0110 0101 0001 0111 1000 0000 0000 1 = 374437888
2 1000 0001 1101 0111 0000 0001 1000 0011 2 = 2178351491
3 0000 0000 1001 1001 1001 1100 1111 1101 3 = 10067197 * Modification
4 1111 1111 1010 1100 0000 1011 0000 0000 4 = 4289465088
5 0010 1011 1010 0010 1000 0000 0000 0000 5 = 732069888 * Modification

The modified ezx_flexbit.cfg file is as follows:

[Sys_flex_table]
0 = 1208211392
1 = 374437888
2 = 2178351491
3 = 10067197
4 = 4289465088
5 = 732069888

Overwrite the file/ezxlocal/download/appwrite/Setup/ezx_flexbit.cfg on the mobile phone,
You can check the USB mode in settings and you will find that there is no change! Enter the following command in telnet:
Mount -- bind/ezxlocal/download/appwrite/Setup/ezx_flexbit.cfg/usr/Setup/ezx_flexbit.cfg
When you look at the USB mode, you will find another option-USB network, copy an mpkg installation file at will,
No problem! You can install and uninstall the application like Java, and you can see the name of the application! We already
We can see the effect of this file, but after the restart, everything is restored to its original state!

I once thought about whether I can run this command on my mobile phone.
However, it is found that the ezx user is running the mobile phone system, and the mount command is absolutely not supported. Attached here
If the method that can be used to modify this file is simple, please be sure to inform me!

Iii. Methods

The method is to modify this file. Here we use the flashkit tool to write data to the read-only Flash.
Enter a new file. For more information, see.
Http://club.ccmove.com/nclub/topicdisplay.aspx? Pageno = 1 & boardid = 1189 & topicid = 257967

My practices (some of the content posted above ):

1. telnet to the mobile phone and run the following command:
Tar zcvf/MMC/mmca1/setup.tar.gz/usr/setup

Note:
The entire file under/usr/setup is packed on the card to be used in other Linux
Mkfs. cramfs: Create the cramfs file and rewrite it with flashkit. Or directly without compression.
Tar CVF is the same. You can view the usage of Linux and tar.

2.copy setup.tar.gz to Linux and execute the decompression command:
Mkdir Moto
CD Moto
Tar zxvf setup.tar.gz
At this time, there will be a lot of warnings, it does not matter, after the execution is complete, the folder will be automatically created.

Note:
I am using the RedHat Linux installed on a virtual machine, through the Mount-T smbfs-o
Username = administrator, password = yiming, IP = 192.168.98.166-l
// LW/motoshare/home/root/Windows Access the fully-shared Windows Folder motoshare,
In Linux and Windows, you can perform operations.
(The local name is LW, the IP address is 192.168.98.166, and motoshare is my shared folder.
Needless to say .)

3. Modify the ezx_flexbit.cfg file in usr/setup according to your preferences.

4. In the created Moto folder, use mkfs. cramfs to package and run the following command:
Mkfs. cramfs usr/setup Liwei. cramfs

Note:
Previous cloud: Use mkfs. cramfs for packaging, not mkcramfs. Otherwise, you cannot Telnet.
If you are interested, verify it! Here, mkfs. cramfs can only package folders. So we have to overwrite
All the files under setup.

Note: The following is a detailed description of readme in Flash kit. Do not miss it!

5.copy the flashkit folder decompressed by flashkit.zip to/MMC/mma1. Pay attention to the content.
It is recommended that you do not copy Liwei. cramfs to/MMC/mmca1.

6. Because the USB method is used for telnet, unplug the USB cable.

7. Run/MMC/mmca1/flashkit/rwflash. Lin with loader. Check the directory.
You can see the content of rwflash. Lin.

8. Leave the phone idle for more than 30 seconds, and it will be okay for a long time. I will leave him idle for 1 minute.
(Leave the phone alone and wait. When the screen blanks out wait 30 secs
Longer, there's a good chance the phone entered low power mode .)

9. Re-plug the USB and telnet to the mobile phone to execute the command.
CAT/proc/rwflash_status
If it is displayed as "Unlocked", it indicates success. If it is displayed as "Unlocked", it must be restored to "6 ~ Until display
Unlocked. If it is still locked for a long time, shut down the system and start from Step 6!

10. Confirm that unlocked is displayed. Run CD/MMC/mmca1/flashkit to enter the Directory and run./start. Sh.
At this time, Telnet will be disconnected, and almost all functions of the phone will be killed. It is not necessary for you to build a mobile phone.
Things! But there are several processes, such as mmcsdapp, so that you can still see all
Rong!

11. Telnet 169.254.142.2 10000 on the Windows Command Line and use port 10000 for telnet.
Enter root, then the flashkit Virtual Shell is executed, and the operation is normal.

12. CAT/proc/MTD will contain content similar to the following. I forgot to copy my screen. Here I use synchronized xicated.
. However, my e680g is a six-row record.
Mtd4: 000e0000 00020000 "r/W Kernel
Mtd5: 018e00000 00020000 "r/W rootfs (cg33)
Mtd6: 00020000 00020000 "r/W setup" (cg36)
Mtd7: 00020000 00020000 "r/W logo" (cg37)
R/W indicates that data can be written. We need to overwrite mtd6: 00020000 00020000 "r/W setup"
(Of course, this method can also overwrite the content of mtd5 and mtd7 .)

13. Enter the command
Flashcp-V/MMC/mmca1/Liwei. cramfs/dev/mtd6

14. After the execution is completed, the battery is removed, and the power is powered off and restarted. The L/m problem is completely solved!

For friends who cannot use mkfs. cramfs, the package files I have used are provided here, which can be downloaded from youren.com.

Iv. Summary

If you have read it carefully, it must be nice now ~
I installed an MP3 player. The path for installing the mpkg software is/MMC/mmca1/. System/
Qtdownload. This is the path on the card, and obviously there is no need to install the mpkg software on the mobile phone. Same Series
The system also modifies/MMC/mmca1/. System/Java/plugcarddb. The configuration information is as follows:

[Applinkrecord00000033]
Allposition = 39
Bigicon = icon.png
Directory = mp3player
Exec = mp3player
Group = 4
Icon = icon_sm.png
Installeddate = 2006/9/1
Javaid =-1
Mime =
Mpkgfile =/MMC/mmca1/19425526. mpkg
Name = EQ ?? -???
OSS version = 1.1
Position = 5
Rotation =
Shared = 2
Size = 1455 K
Type = 4
Uid = 1, 100000033

Note that type = 4 here. When type = 2, the "Application name" is definitely displayed, and type = 5 is
Java software. If the mobile phone does not support mpkg, type = 4 applications can display names, but cannot
Executed.

Now, you can download an mpkgkit.exe renamed program. (The configuration file is modified.
The corresponding name value, but when you use a common tool to view it, Chinese characters are garbled.) change the name of the Installation Software at will.
The icon, let alone. In this example, the mpkgkit.exe tool is recommended.
It is slow to directly change the content of the mobile phone, and after the change, the Telnet speed is also slow. Solution
Copy the file to your computer, use mpkgkit.exe, and then copy it back.

The file XXX. Desktop is only read by the system during mpkg installation.
No function. To change the icon name, you only need to modify the configuration file plugcarddb.

5. After lm is completely solved, I will use the mpkg management method for your reference.

The configuration information of the plugcarddb file.

[Applinkrecord00000001]
Allposition =
Bigicon = liwei.png
Directory =..././MMC/mmca1/soft/Liwei
Exec = Liwei
Group = 4
Icon = liwei.png
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name = ???????? ?? # Script Loading
Osversion =
Position = 17
Rotation =
Shared = 0
Size =
Type = 4
Uid = 1, 100000001


[Applinkrecord00000002]
Allposition =
Bigicon = app.png
Directory =.../MMC/mmca1/soft/shortcuts
Exec = app. Sh
Group = 4
Icon = app.png
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name =? O ??? ?????? # Application Synthesis
Osversion =
Position =
Rotation =
Shared = 0
Size =
Type = 4
Uid = 1, 100000002


[Applinkrecord00000003]
Allposition =
Bigicon = game.png
Directory =.../MMC/mmca1/soft/shortcuts
Exec = game. Sh
Group = 4
Icon = game.png
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name = ???????????? # Game integrations
Osversion =
Position =
Rotation =
Shared = 0
Size =
Type = 4
Uid = 1, 100000003


[Applinkrecord00000004]
Allposition =
Bigicon = player.png
Directory =.../MMC/mmca1/soft/shortcuts
Exec = player. Sh
Group = 4
Icon = player.png
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name =? A ?????????? # Media integration
Osversion =
Position =
Rotation =
Shared = 0
Size =
Type = 4
Uid = 1, 100000004


Content of/MMC/mmca1/soft/Liwei

#! /Bin/bash
Exec $2 &

/MMC/mmca1/soft/shortcuts/APP. SH Content

#! /Bin/bash
Export qtdir =/usr/lib/ezx
Export LD_LIBRARY_PATH = $ qtdir/lib
Export ezx_res_font_path = $ qtdir/lib/Fonts
Export mystuff_data_path =/MMC/mmca1/EXE/APP

Chmod 444 $ mystuff_data_path
CD/usr/sysqtapp/mystuff
./Mystuff
Chmod 777 $ mystuff_data_path

The other several sh values are similar, but the paths are different. These paths store some mpkg
. The purpose is to consider limited menu resources. Of course, if you have the ability to complete
You can create a more beautiful control panel in the menu, which is much easier than the method here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.