Linux mobile phone DIY. Build a unified installation package

Source: Internet
Author: User

Linux mobile phone DIY. Build a unified installation package

Papayas on September 25

I. Sequencing

Because the difference between xiaxin e600 and Philips 968 is large, it is necessary to perform a standard installation.
. As early as a few days ago, subtle developed a new package to address the drawbacks of the current installation package. Therefore, the installation package
On this basis, we have re-considered the system features and future software factors of Xia xine600 and Philips 968.
.
This unified installation package does not contain any personal logo.

Ii. Current idea of uniform installation package

First, install the official qnes lite package (setup. PRG) to inject the "software installation" into the mobile phone system,
This "software installation" is the only way to install it in the future. Running "software installation" actually calls the mobile phone
.
The specific position of this script is defined by _config.txt in the system metadata.
The default value of xiaxin e600 is/mnt/SD/DIY. It is easier for xiaxin users to operate SD cards.
Philips 968 default/mnt/doc/user_local/notepad/DIY, considering Philips Power Supply
SD card can be installed.

The following is a description of the directories. The names of these directories cannot be changed at will.

DIY/EXE installation package executable program for future prompts
Library file of qnes Simulator for DIY/libqnes e600
DIY/libqt graphical library files
DIY/setup installation package storage location
DIY/Setup/install. Sh click "Install software" to run the script
DIY/soft future graphical software program location
DIY/tmp temporary directory, which can be deleted
DIY/Java e600, 968 Java package location

Run install. Sh to traverse all the. tar files and. PRG files under DIY/setupand decompress them in sequence,
And generate a series of folders under setup, and then traverse these directories for software installation. Installation Complete
Move all the tar files to the tmp directory. All logs are recorded in the log.txt file. This is also
The core idea of subtle's is to go through the basics. There are no. tar files or. PRG files,
As long as a folder can be installed normally, the folder name is random.
The installation package supports .tar.prg. in this case, .tar is generally a simple tar command.
The. PRG is compressed after tar synthesis. Recently, Linux uses tar for compression.
The .tar package is reserved due to frequent errors.

3. How to Build the installation package

The installation package, that is, the folder, must comply with certain specifications. Take the subtle term package as an example.
Note:

File List in the "term" directory:

Name.txt records the name of the installed software, which is a term and the name of the following three files.
The uniform package automatically copies the following three files to the corresponding directory,
And establish the relevant dismounting script. The content in the top file must also be name.txt
Consistent content.

Execution script of term software
Term. desktop software menu configuration file
Term.png software display icon

The following three processes the special files contained in the term package.

Passwd special files
Install. sh: the script for installing special files, called during software installation
Uninstall. sh: Specifies the script for uninstalling special files. It is called when the software is uninstalled.


All the above files must be edited using ultraedit, and do not convert them to DOS format. Otherwise
Probably not recognized!

Currently, there is no precedent that can be correctly run after packaging in a non-Linux environment. Therefore, you must use the tar command
These files are directly packaged.
CD term
Tar CVF term.tar * generate. Tar package
Gzip term.tar becomes term.tar.gz, and you can change the name to term. PRG.

If you do not have a Linux user, you can copy the term directory to the DIY/setup directory.
Complete the corresponding operation.

4. Update the original package and DIY directory

First, reinstalling the "original package" will not affect the packages that have been installed according to the unified standard, that is, they do not need
Uninstall installed software. In general, the "software installation" itself and the DIY project will be updated through an independent installation package.
Reload the original package and overwrite the DIY directory.
For Philips 968 users who may put the DIY directory on their mobile phones, copy the latest DIY directory
Delete the _ config.txt file in the SDK root directory and click "Install software.
_Config.txt records the absolute location of the diydirectory. This file is very important, and its other _log.txt files are similar.
Files can be deleted at will.

Subtle's blog: http://blog.csdn.net/subtle_Y
Full range of articles address, mobile phone application development column: http://blog.csdn.net/liwei_cmg

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.