1#!/bin/sh 2 3die() { 4 echo $1 5 exit 1 6} 7 8NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor) 9make O=sandbox sandbox_config || die "Cannot configure U-Boot" 10make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" 11dd if=/dev/zero of=spi.bin bs=1M count=2 12echo -n "this is a test" > testflash.bin 13dd if=/dev/zero bs=1M count=4 >>testflash.bin 14./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm" 15rm spi.bin 16rm testflash.bin 17