2014-02-26 15:59:21 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-01-25 08:26:56 -07:00
|
|
|
die() {
|
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2014-02-26 15:59:21 -07:00
|
|
|
NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
|
2015-01-25 08:26:56 -07:00
|
|
|
make O=sandbox sandbox_config || die "Cannot configure U-Boot"
|
|
|
|
make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot"
|
2014-10-13 23:42:10 -06:00
|
|
|
dd if=/dev/zero of=spi.bin bs=1M count=2
|
2015-03-25 12:23:05 -06:00
|
|
|
echo -n "this is a test" > testflash.bin
|
|
|
|
dd if=/dev/zero bs=1M count=4 >>testflash.bin
|
2015-05-20 14:27:29 -05:00
|
|
|
./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm"
|
2014-10-13 23:42:10 -06:00
|
|
|
rm spi.bin
|
2015-03-25 12:23:05 -06:00
|
|
|
rm testflash.bin
|