Memory (SDRAM/DDR) commands in U-boot-MW

Source: Internet
Author: User

[U-boot: v2013.07-RC2]

[Author: Bo Shen <voice.shen@gmail.com>]

1. Enabling MW commands

You can run the MW command by defining config_cmd_memory.

Note: Because this definition is already available in <include/config_cmdult.h>, it is in the configure file related to the Board (in <include/configs/>). By default, all include this file. Therefore, U-boot contains this command by default.

Source code: <Common/cmd_mem.c>

2. Usage

MW-memory write (fill)

Note: MW is modified by adding the base_address content to the parameter of the MW command.

Example:

2.1 modify the memory content of length to 1

U-boot> Base
Base Address: 0x20000000
U-boot> MD 0 0x1
20000000: 00000001
U-boot> MW 0 0xf5
U-boot> MD 0 0x1
20000000: 000000f5

3. Source Code Analysis

Do_mem_mm

| --> Mod_mem

| -->

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.