Debug u-boot

Source: Internet
Author: User
Debug u-boot-Linux general technology-Linux programming and kernel information. The following is a detailed description. I want to download the keypad program in u-boot a few days ago and run it. It is invalid. Consult Tan, the old man said it may be that the interruption vector table is not set in u-boot. Compile u-boot today and download it to the Development Board 30008000 and go 30008000.

So I want to track the u-boot code to see what happened during the runtime.

The following is a summary of the u-boot debugging method (using AXD to debug u-boot ):

1. Compile u-boot in Linux, generate two files under the root directory, u-boot, u-boot.bin

2. Create a folder in windows D: \ u-boot_gdb

3, Linux File u-boot, u-boot.bin copy to D: \ u-boot_gdb, and u-boot renamed u-boot.axf

4. Open AXD
If the Command Line Interface is not enabled, press ALT + L

5. Load the binfile loadbinary D: \ u-boot_gdb \ u-boot.bin, 0x00100000
Load axf file (debug info) loadsymbols D: \ u-boot_gdb \ u-boot.axf
Setpc 0x00100000

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.