2014-02-26 22:59:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-01-25 15:26:56 +00:00
|
|
|
die() {
|
|
|
|
echo $1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2014-02-26 22:59:21 +00:00
|
|
|
NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor)
|
2015-01-25 15:26:56 +00: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-14 05:42:10 +00:00
|
|
|
dd if=/dev/zero of=spi.bin bs=1M count=2
|
2015-03-25 18:23:05 +00:00
|
|
|
echo -n "this is a test" > testflash.bin
|
|
|
|
dd if=/dev/zero bs=1M count=4 >>testflash.bin
|
2015-05-20 19:27:29 +00:00
|
|
|
./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "ut dm"
|
2014-10-14 05:42:10 +00:00
|
|
|
rm spi.bin
|
2015-03-25 18:23:05 +00:00
|
|
|
rm testflash.bin
|