Android Deep Exploration (Vol. 1) Hal and Driver Development fifth chapter build s3c6410 Development Board test Environment reading notes

Source: Internet
Author: User

As the main hardware device for developing and learning embedded technology, the Development Board is important to the machine. Because even if you canPCon DevelopmentLinuxdriver, and recompile it intoARMArchitecture ofLinuxDrive module, but it will be tested on the development Board eventually. There are two reasons: becauseARMThe architecture's Development Board can be based onX86Architecture ofPCin theCPUdirectives and binary formats are different, and drivers need access to the hardware, some difficult toPCon the simulation. The development Board is similar to a mobile phone and is suitable for testing the program, especially the underlyingLinuxDrive.

5.1 is a brief introduction to the Development Board.

5.2 need to install the Serial debugging tool is minicom. Since the development of Linux drivers is not common with Android applications, debugging is done directly on Eclipse , So you need to use other methods to display the Linux driver output debugging information, that is, serial communication. A USB to RS232 Serial line is required here.

1. Check whether the current system supports USB to serial port

Lsmod | Qrep usbserial

2. Installing minicom

Apt-get Install minicom

3. Configure minicom

Minicom-s

Go to the menu and set and save as shown.

4. Test minicom

Minicom

Start the Android system and you'll receive a message.

5.3 Burn write Android system

1. Erase nandflashusing eboot :

(1). Preparation: Use a serial line or USB The serial cable connects the development Board and PC , and start minicom .

(2). Enter Eboot Status: Turn on the switch, there is a wait 5s prompt, press PC the SPACEBAR on the keyboard keeps the development Board Eboot state.

(3) Erase nandflash: Enter A.

2. Burn and write Android steps

(1). Preparation: Prepare a SD Card, FAT32 partition format, insert card reader and connect PC .

(2) write mmc.bin and zimage-sd.bin to SD card

(3) Preparing for The burning of Android: Speaking Android_fs.tar,mmc.bin,zimage Copy the file to the SD card and set the switch.

(4) Calibration screen

5.4 Configuring a limited network

You can use the Linux command ifconfig to set the IP and subnet masks, using the route command to set the gateway.

Ifconfig eth0 192.168.17.150 Network 255.255.255.0 up

Route add default GW 192.168.17.254 dev eth0

Software 1308 class 31st Zhang Fan Blog Park address: http://home.cnblogs.com/u/sxauzzz/

Android Deep Exploration (Vol. 1) Hal and Driver Development fifth chapter build s3c6410 Development Board test Environment reading notes

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.