Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
bf27f7d42This file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/sh
SRC=$1
DEST=${2-"$1.load"}
ADDR=$3
BOOTARGS=$4
echo "load $ADDR" > $DEST
wc -c $SRC | awk '{printf "%04X", $1}' >> $DEST
hexdump -v -e '/1 "%02X"' $SRC >> $DEST
echo "\nboot $ADDR $BOOTARGS" >> $DEST