Porting Android to mini2440 (in progress)

Source: Internet
Author: User

There is a mini2440 Development Board of FriendlyArm in hand. At first, we saw that Android was transplanted to 2440 more than a year ago. At that time, FriendlyARM provided the installation image, but only mflash and dedicated touch screen (not NEC) are supported ). Over the past year, with the rapid development of Android, android has been transplanted to the mini2440 by various Daniel. Although Flash is only 64 MB, it can still run. Up to now, you can search for the portable version Android2.1 on the Internet.

I want to learn more about Linux, so I want to download the android source code according to the tutorial on the Internet, compile it, and install it in mini2440. I have been busy for a week and am still in the source code download phase. It is very depressing.

Because Android native does not support ArmV4 instruction sets, that is, arm4. Arm11 can support them. (currently, FriendlyArm's 6410 Development Board is the Arm11 Development Board, android, WinCE, and Linux have been transplanted to the courseware ). Therefore, you need to download the source code from freerunner. It may be that the services on the network or source code server are not good, they will always be disconnected, and the speed is also very slow. Sometimes they will be suspended for over 300 M a night, and in addition, they may be disconnected or crashed, it is really not easy to download the source code.

So far, I have some knowledge about the download process and some solutions to problems encountered during the download process. At least I know the file download status.

The installation of git and repo will not be written. You can refer to the webpage link in the references.

The following describes several problems encountered when downloading the source code. Although the download is not complete yet, I feel that I have a deep understanding of the download process and status. First, manifest. xml should be similar to a guide file. It provides many source code project paths. During repo sync, it will download from the corresponding path and the manifest I obtained from Arm9.net. the number of projects in xml is 145 (as can be seen using xml tools). Secondly, during repo sync execution, Fetching Projects: 1% (2/145) and 145 are the total number of projects, 2 is the number of downloaded files. When the connection is disconnected and Re-sync due to network reasons, Fetching Projects will continue, that is, the download will continue, as shown in Fetching Projects: 24% (35/145) will continue to download; 2 or 35 can be connected with manifest. the xml response project number corresponds.

To solve this problem, you must re-enter repo sync when the network is interrupted: Enter $? In the command line? = 1; while [$? -Ne 0]; do repo sync; done. (Note: while must be followed by spaces, reference 4). Then I output 0 = 1: command not found here. It is not clear why, but when the network is interrupted, will automatically run sync.

 

PS: the source code is still being downloaded, god bless me. Downloading the source code is only the first step in the long journey. It is critical to modify the root file system, compile the source code, and finally burn the code. The information on the Internet is also the same, and there is no complete solution (or I may have too many requirements, so the so-called dummies tutorial ). I have been using Linux for a short time, so I have a long way to go. If you want to succeed, you must write the ultimate tutorial. Come on.

 

References:

1. Install Git and use repo (download android native code): http://www.williamhua.com/2009/04/29/git-and-repo-for-dummies/

(A problem is the lack of repo sync );

2, Arm9.net netizen article: android transplanted to mini2440 http://www.arm9home.net/read.php? Tid-5600.html

3, repo usage: http://blog.csdn.net/free2o/archive/2009/03/11/3981588.aspx

4. Use of while and for in command line: http://codingstandards.javaeye.com/blog/780524

 

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.