How does uboot run scripts?

Source: Internet
Author: User

1. You can enable config_cmd_time to record the running time of the command in uboot.

2. The autoscr command has changed to the source command. You can open config_source, and the source command can execute the memory script generated by mkimage.

#!/bin/shfile=$1result=$2if [ $# -lt 1 ]then        echo "$0 file_name result_file_name"                                                                                                                                                                 fimkimage -A arm -O linux -T script -C none -n "uboot-nor script" -d $file $result
3. Install mkimage on the host:

sudo apt-get install u-boot-tools

4. You can generate a TXT file to record the script content to be executed. Because it is a TXT file, there is no for loop. If you want to do this, how many times can external scripts help you generate loop content, so you don't have to worry about loop.

5. If ext4 is supported for uboot, you can load the content generated by mkimage to the memory using the following command.

ext4load mmc 0:5 0x00001000 xxx.img

6. Call Source

source 0x00001000


How does uboot run scripts?

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.