General process of building and debugging the development environment of the android Development Board

Source: Internet
Author: User

Step 1: configure the host NFS service

A. Confirm the Virtual Machine IP Address
[Duli @] ifconfig // view the eth ip address, which is generally 192.168.1 .*
You can also configure the Virtual Machine IP Address by yourself.
[Duli @] ifconfig eth0 192.168.1.123

B. Create an NFS directory. Assume It is/home/duli/nfs_root.
[Duli @] sudo mkdir/home/duli/nfs_root

C. Copy the content of the root file system directory of the Development Board to the NFS directory, and set the 777 permission. // assume that your utc100_root file is under the/home/duli/android2.3 directory.
[Duli @] sudo CP-r/home/duli/android2.3/utc100_root/*/home/duli/nfs_root
[Duli @] sudo chmod/home/duli/nfs_root 777

D. Configure the NFS Directory
Add the NFS directory and configure root read/write permissions, modify/etc/exports, and add content
/Home/duli/nfs_root 192.168.1. * (RW, sync, no_root_squash)

/*###################################### #########################*/

Step 2: first run the U-boot command line (usually press a key within a few seconds at startup)

Assume that you have reached the U-boot command line (which commands are available for U-boot? You can press help to display them)

A. Set the Development Board IP address, which must be the same network segment as the virtual machine.
U-boot # Set ipaddr 192.168.1.122

B. Set the IP address of the Development Board server.
U-boot # Set serverip 192.168.1.123

C. Check whether the IP and Server IP settings of the Development Board are normal.
U-boot # echo $ ipaddr
U-boot # echo $ serverip

D. Check whether the development board is connected to the server and ping the Host IP address. Is the result correct?
U-boot # Ping 192.168.1.123

E. Save the existing kernel startup parameters.
To be safe, save the previous startup parameters.
U-boot # echo $ bootargs
Copy and save the displayed items so that when the network cannot be started, you need to set the original Startup Mode
Set the original startup parameters as follows:
U-boot # setenv bootargs content copied above
U-boot # saveenv

F. Set kernel startup parameters (specify the key to network startup)
U-boot # setenv bootargs root =/dev/nfs RW nfsroot = 192.168.1.123:/home/duli/nfs_root init =/init IP = 192.168.1.122: 192.168.1.123: 192.168.1.1: 255.255.255.0: utc100: eth0: off console = ttysac0, 115200
Be sure to save the environment parameters
U-boot # saveenv

G. Check whether the network parameter settings are correct, that is, they are consistent with the settings above.
U-boot # echo $ bootargs

D. Restart the Development Board.

/*###################################### #########################*/

Step 3: Debug init. RC (the following operations require cyclic operations)

A. Modify init. RC step by step
B. Save it to the nfs_root directory.
C. Restart the Development Board to view the startup status and logs.
D. Modify init. RC for the log to repeat the above actions

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.