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?