Emmc record porting in Android system (2)-u-Boot Mode for emmc writing.

Source: Internet
Author: User

Bytes ------------------------------------------------------------------------------------------------------------------------

U-boot
Emmc devices can be burned in two ways:

Fastboot
Command: Use the USB interface to burn and write data.

Steps:

1. Write U-boot to start from SD card, which involves file modification.

2. Follow these steps to install U-boot on SD so that the Development Board starts from SD card.

3. Enter the Development Board command terminal #:

4. First, the emmc format is used to allocate four partitions. Vfat
Partition, system partition, userdata
Partition: cache partition.

#: Fdisk-C 0

-C:
Indicates the current device.

0:
Indicates the initialization of the emmc device node. The order in which the MMC/SD device is loaded is from 0 to 3. No matter which channel you use to specify the start device, multiple devices are allocated from 0. E. g.: emmc
Accounts for 0 channels,

The allocated node is 0, and the SD card occupies Channel 2.
Port. The allocated node is 1.

If emmc is not initialized, only SD card mode is used. When the SD card occupies two channels, the allocated node is 0.

Understand the source code and modify it later.

Therefore, if you want to partition the SD partition on the board, use the following command (when emmc Initialization is successful)

#: Fdisk-C 1

View the device partition information:

#: Fdisk-P 0

5. format the partition, vfat
Partitions are in the FAT32 format. All others are ext3
File System Format.

Format: vfat partition #: fatformat MMC

0: indicates the loaded emmc device node.

1: Indicates 1st partitions. Note. By default, the first partition of the program must be a FAT partition,

Can only be specified as 1
The program will compare whether it is partition 1. If it is not, it will not be formatted.

Format: ext3 Partition:

#: Ext3format MMC 0: 2 // System

#: Ext3format MMC 0: 3 // userdata

#: Ext3format MMC 0: 4 // Cache

6: Burn and write files:

#: Fastboot

Connect the development board to the PC through USB cable.

Download tool: fastboot to Windows, and put the zimage system userdata file to be burned into the fastboot file.

Click Start in Windows ---->
Run: Enter cmd.

The path to fastboot under the control line is as follows:

Enter the command: fastboot flash bootloader u-boot.bin

Fastboot flash kernel zimage

Fastboot flash ramdisk ramdisk-uboot.img

Fastboot flash system... ext3

7. Modify the U-boot startup parameters:

Set bootcmd "movi read kernel c0008000; movi rootfs c0800000 180000;

Bootm c0008000 c0800000"

Save

---------------------------------------------------------------------------

Sdfuse writing method:

Steps:

1: Write U-boot to start from SD card, which involves file modification.

: 2: Burn U-boot to SD according to the above method, so that the development board starts from SD card.

3: Create the file directory sdfuse in SD and put the file to be burned in it.

4: Start the Development Board in SD card mode and enter the Development Board command terminal #:

5: partition: fdisk-C 0

Make sure that node 0 has been assigned to emmc
, SD card allocated Node 1.

6: format the same as above.

7: Burn and write files:

Sdfuse flash bootloader u-boot.bin

Sdfuse flash kernel zimage

Sdfuse flash ramdisk ramdisk-uboot.img.

Sdfuse flash system. ext3

You can also modify the file to enable automatic writing:

Sdfuse flashall

8: Modify the U-boot startup parameters.

Http://blog.csdn.net/yunfly163/article/details/7495156

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.