Android Deep Exploration--fifth chapter

Source: Internet
Author: User

For the steps to write a Linux driver: The main step is to build its driver skeleton, any type of program has a basic structure; the second step is to register and unregister the device file, and any Linux driver needs to have a device file, or the application will not be able to interact with the driver. The work of setting up a device file is generally done in the first step of the function of processing Linux initialization, and deleting the device file is generally done in the 1th step of the function of processing the Linux exit; The third step is to specify the driver-related information, the driver is self-describing, and the fourth step is to specify the callback function, The Linux driver contains a variety of actions, also known as events, the fifth step, writing business logic, this step is the core of the Linux driver, the skeleton and callback function of the Linux driver is meaningless; The sixth step is to write the makefile file; The seventh step is to compile the Linux driver The eighth step is to install and uninstall the Linux driver.

Burn Write Android system

(1) before the Android burning, be sure to start the Eboot erase Nandflash, using the Eboot erase steps as follows: Preparation, with the serial cable or USB to the serial port to connect the development Board and the PC, and start the minicom, enter the Eboot state, open the Development Board power switch, Initiating launch in 5 seconds. Tip, press the SPACEBAR on the PC keyboard to stop the Development Board in the Eboot state. Erase Nandflash Enter "A" to perform the erase Nandflash

(2) Burn write Android step: give SD card partition, format partition, write Mmc.bin and Zimage-sd.bin to SD card, copy Android_fs.tar, Mmc.bin and Zimage to SD card, set up switch of development Board. Burning from SD card to write Android

Android Deep Exploration--fifth chapter

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: 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.