DIY Linux mobile phones. Significant breakthroughs in xiaxin e600 and Philips 968

Source: Internet
Author: User

DIY Linux mobile phones. Significant breakthroughs in xiaxin e600 and Philips 968

Grass papaya updated on afternoon

I. Sequencing

Xia xine600 and Philips 968 finally made a major breakthrough on the same day! You can execute a custom shell.
Script! In this case, I would like to thank those friends who have restarted the trial for countless times.
I did not translate a post to explain the execution of Shell yesterday. I suddenly thought of the shell
All scripts are interpreted and run with/bin/bash. If the file does not exist in Philips 968
It is absolutely impossible to run.
On the forum, I flipped through the file content extracted from the "new number" update package of xiaxin e600 and found it was ash,
There are also Sh, but there is no bash. I vaguely felt that there was a possible reason.

Ii. Important Notes

To facilitate a better understanding of this article, we provide the following link.
Full range of articles address, mobile phone application development column: http://blog.csdn.net/liwei_cmg
Related important resources of: http://play.younet.com/view.php? Tid = 24045

Iii. Trial Process

In Linux, unpack the original package (TAR xvf qnes. PRG) with the TQ user and replace qnes with the shell script,
The script content is as follows (do not specify which Shell to explain ):

Exec audioplayer &
Exec CP/mnt/user/CEC/apps/6self-defined/*. desktop/mnt/doc/user_local/qnes /.&
Exec ls>/mnt/doc/user_local/qnes/ls.txt &
Exec ls>/mnt/doc/user_local/ebook/ls.txt &

Use my packaging script (for example in my article) to perform the packaging operation so that the iron egg can be installed.
Response. I added a line of statement "#! /Bin/sh ", that is, change to/bin/sh to explain the execution, that is, the following content:

#! /Bin/sh
Exec audioplayer &
Exec CP/mnt/user/CEC/apps/6self-defined/*. desktop/mnt/doc/user_local/qnes /.&
Exec ls>/mnt/doc/user_local/qnes/ls.txt &
Exec ls>/mnt/doc/user_local/ebook/ls.txt &

The installation and execution of iron egg were packed, and a bunch of TXT files were found in the qnes directory.
The desktop file indicates that the shell is successfully executed on 968!
As for exec audioplayer, this statement is only based on the desktop file in the e600 extracted from the "new number,
It does not matter.

Since Philips 968 can be successfully executed, I naturally thought of trying this program at e600, and e600 cannot run the simulator.
Qnes may also have a lack of library files, allowing the "Electronic slave master" to be installed and tried. It was successful, and the Media Player was also started.
The operation was successful. It is clear that exec audioplayer & the statement that failed to be executed in Philips 968 will be okay in Xia xine600!
The "Electronic slaves" also sent me a copy of all the copied desktop files and generated ls files.

Iv. Summary

For the current installation packages of PHILIPS 968 and xiaxin e600, I use the tar command in Linux TQ to package them in sequence.
For more information, see the article. Other packaging methods in windows are not attempted.
The shell scripts of the two mobile phones can also be run successfully, but the install. conf file is not completely involved yet.
In the future, we will know more and more about Phillips and xiaxin operating systems.
The successful running of Shell means that DIY and third-party software are completely feasible. What you can do depends on what you want to do.
At present by executing a few simple shell also get some important information, can you view the http://play.younet.com/view.php? Tid = 24045.

V. general idea of extending mobile apps

By running shell scripts, we can know the structure of the entire operating system, including Linux kernel applications and
Layer Graphical System. In this way, you can obtain the methods and environment for managing system software and external software
Library file (LIB), resource file (PNG, Res ). Finally, cross-compilation and development are completed, and third-party software is transplanted.

At present, we can look forward to the fundamental changes brought about by shell scripts.

A. extend and improve the functions of the existing mobile phone system

Most of the original mobile phone system programs are managed through configuration files, which are completely closed to users.
. With this gap, you can fully understand the configuration information and flexibly expand the functions of the mobile phone program.

B. fully understand the impact of all user operations on the 968 mobile phone system and the storage of personal data on 968.
The master cleanup and master reset 99% of Philips and xiaxin mobile phones are two different shell scripts.
Now, you can see what the script has done.

C. Extend the mobile phone function application through shell programming
Currently, a large number of software on e680 are implemented using shell scripts, such as telnet, virtual memory extension, and Bluetooth.
Telnet, process monitoring, memory monitoring, data backup, mpkg installation and uninstallation, etc. This depends on the specific requirements.
.

D. Transplant and develop other third-party software such as QTE and Opie
There are too many contents in this regard, but some technical problems need to be solved. The following will be a detailed introduction.


E. Develop software based on the system graphical framework
This is relatively difficult, because the graphical SDK is not open, which will be described in detail below.


Vi. Important questions about the future direction.

Question 1: Can I use USB to telnet a shell script that can be run? This problem is very complicated and I don't know.
Chu. If you can complete telnet, DIY is too convenient. You don't have to reload the qnes installation package to run different
. You can operate Philips 968 and xiaxin e600 in windows!

Question 2: The qnes executable program in the original qnes. PRG package is also compatible with the arm instruction set, but is based on linux2.0.0
The kernel version, which is supported by the two mobile phones, is unknown at present. The cross-compilation tool available in my hand is
The kernel version of arm and Linux 2.4.3. the executable program compiled in this version can be fully run in e680 (Linux 2.4.0 ).
But I don't know if it can run on Philips 968 or xiaxin e600.
It's easy to know the kernel version of the executable program e600 and 968. Just write a shell script and copy it.
Run the Linux Command file to view several executable files.
If the program compiled in Linux 2.4.3 cannot run, you need to build an earlier version based on Linux 2.0.0.
Cross-compilation environment.

Question 3: Xia xine600 and Philips 968 are theoretically in this structure-Linux kernel + QTE + graphical framework.
The essence of the e680 series is the same, but the Philips Linux kernel code is not published, while the e680 series kernel code is open.
QTE is the same as the upper-layer graphical framework, and no source code is published. However, the e680 got the a760 (probably ).
Graphical development kit. Therefore, it is easy for some interested parties to develop third-party software using the upper-layer graphics library.
(Such as ezxplayer and image capture software ). Theoretically, these e680 series software cannot be transplanted through simple cross-compilation.
Because the upper-Layer Development kits of the two are different. However, when porting such software as QTE and Opie, the two are completely
Similarly, it may be easier for xiaxin e600 and Philips 968 than e680. The problem to be solved is mentioned in question 2.
It can be seen that it is not easy to develop software based on the upper-layer graphical framework. It is feasible to transplant QT and Opie software.
The layer design is unlikely because kernel code is not published.

VII. Appendix

Execute the preceding script to obtain part of xiaxin e600, which is used as an example only.

Exec CP/mnt/user/CEC/apps/6self-defined/*. desktop/mnt/doc/user_local/qnes /.&
Purpose: Copy all desktop files in the Custom directory to the qnes directory.

020javamanager. Desktop

[Desktop entry]
Type = mimetype
Mimetype = application/X-javaams
Comment = AMS
Exec = AMS
Shell = j9-xmjit-duser. home =/mnt/doc-dexec = AMS-jcl: midp20 javax. microedition. lcdui. appmanager/mnt/cellon/IBM/MIDlet/ams. jad
Icon = Common/menu/c8000_menu_user_define_java.png
Name = Java Manager
Name [En] = Java Manager
Name [zh_cn] = Java Manager
Name [zh_tw] = Java Manager


040colorball. Desktop

[Desktop entry]
Comment = colorball
Exec = colorball_amoi
Shell = j9-xmjit-xss6k-jcl: midp20-duser. home =/mnt/doc-dexec = colorball_amoi-CP/mnt/cellon/IBM/MIDlet/colorball/colorball_amoi.jar javax. microedition. lcdui. appmanager/mnt/cellon/IBM/MIDlet/colorball/colorball_amoi.jad
Icon = Common/menu/c8000_menu_user_define_colorball.png
Type = Application
Name = colorball
Name [En] = colorball
Name [zh_cn] = rolling ball
Name [zh_tw] = zookeeper ball

...

Exec ls>/mnt/doc/user_local/qnes/ls.txt &
Purpose: Display All contents in the executable file directory of the system.

Smallp. bnk
Alarm
Alerttest
Amoi
Audioplayer
Audiorecorder
Broadcast
Calculator
Calendar
...



Related Article

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.