Command in U-boot debugging

Source: Internet
Author: User

The second week of U-boot debugging is started today. You can directly download U-boot to DDR through bdi2000 and run it successfully. However, no matter how hard it is to be written to NAND Flash, it cannot be boot. You can use the NAND Operation Command in U-boot to confirm that the write operation is correct.

Let's talk about the NAND operation commands in U-boot.

Nand read <ddr_addr> <nand_offset> <Len> (read LEN Length data from offset in NAND Flash to DDR address)

E. g: NAND read 0x2000000 0x0x100

 

Nand write <ddr_addr> <nand_offset> <Len> (write data in DDR to the NAND flash with the length starting from offset to Len)

E. g: NAND write 0x2000000 0x0x100

 

Nand erase <nand_offset> <Len> (erased data whose length starts with nand_offset is Len)

E. g: NAND erase 0x0 0x100

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.