Skip to content

hyphop/uboot-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

uboot extra

script

simple plain script run from mem without mkimage wrappers

script is cool alternative for autoscript and source , we can use one script command for plain script and wrapped scripts!

sintax and parsing

#!script - script must begin from this marker
##END##  - its end marker - after this lines all strings ignored
'\0'     - its same end marker
72bytes  - mkimage header parsed 

script parsed by run_command_list

how to install it

just add next line to Makefile

obj-y += cmd_script.o

uboot usage

script [addr] [bytes] [nochk] [silent] - run script starting at addr
    bytes - read bytes (hex) limit
    nochk - no check #!script header
    silent - be silent

uboot usage examples

script 0x1000000				- simple run from addr 0x1000000
script 0x1000000 32 			- same but only fist 32 bytes
script 0x1000000 $filesize 			- same but limited by file size value 
script 0x1000000 $filesize nochk 		- same but without $!script header check
script 0x1000000 $filesize nochk silent	- same but silent

# tftp script usage
ADDR=0x1000000; tftp $ADDR test.script && script $ADDR $filesize 

# usage as files
ADDR=100000; ext4load mmc 1:5 $ADDR dhcp.cmd_test.script; script $ADDR $filesize

# spi flash usage
ADDR=100000; sf read $ADDR $SCRIPT_OFFSET $SCRIPT_BYTES; script $ADDR

AUTHOR

## hyphop ## for Khadas

Releases

No releases published

Packages

No packages published