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