Change the uboot implementation to download code through the Loady command

Source: Internet
Author: User

Recently started a friendly arm of the nanopc-t3, personal feeling is good, the board's craft and Yan value are very high, that is, the price is slightly higher. The student party can't afford to hurt. Play the occasion found that the official provided Uboot does not support the serial port through the loady command to download code. Obsessive-compulsive disorder, recompile uboot to support Loady commands. The following is a specific process for sharing a reference.

The PC system recommends the use of a ubuntu14.04 64-bit system.

Download the extract uboot source code, configure Uboot and compile:

1, Vim UBOOT_NANOPI2-NANOPI2-LOLLIPOP-MR1/COMMON/CMD_LOAD.C


2, save changes, compile Uboot:

Make S5p6818_nanopi3_config

     Make cross_compile=arm-linux-

3, the compilation completes, generates the Uboot.bin file in the source directory, namely is the target file.


Second, replace the Uboot in SD card by FastBoot

1, on the computer first with the command sudo apt-get install android-tools-fastboot installation fastboot tools;

To see if FastBoot is installed successfully:

2, with the serial port accessories to connect NANOPC-T3 and computer, in the power to start 2 seconds, in the serial terminals on the press ENTER, into the u-boot command line mode;

3, in the U-boot command line Mode input Command FastBoot carriage return, into the fastboot mode;

4, with the microUSB line to connect nanopc-t3 and computer, switch to the computer on the Uboot source file location, enter the following command to burn write U-boot.bin:

5, Burn write complete:


Three Authentication Loady command

In the Development Board Uboot Environment Enter Loady 0x40008000 carriage return, then press CTRL + A key to release, and then hold down the S key to select the code

Download.

Download Complete:


At this point, uboot update success, the implementation of the serial Port Loady command to download the function of the code.


The article uses the Uboot source code and the test code downloading address: Click opens the link



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.