X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Fdm%2Ftest-dm.sh;h=5c47ffd5d23c74321c92d04c00b16120f4339165;hb=0e6b7a28243175ae0874d53b6e6e4eff8548d71f;hp=8ebc39297cb53ec315c828a4d0429e8c7ae46dc7;hpb=ade8bc14ad419f698406b162c9c5dfeee7406b4c;p=oweals%2Fu-boot.git diff --git a/test/dm/test-dm.sh b/test/dm/test-dm.sh index 8ebc39297c..5c47ffd5d2 100755 --- a/test/dm/test-dm.sh +++ b/test/dm/test-dm.sh @@ -6,9 +6,11 @@ die() { } NUM_CPUS=$(cat /proc/cpuinfo |grep -c processor) -dtc -I dts -O dtb test/dm/test.dts -o test/dm/test.dtb make O=sandbox sandbox_config || die "Cannot configure U-Boot" make O=sandbox -s -j${NUM_CPUS} || die "Cannot build U-Boot" dd if=/dev/zero of=spi.bin bs=1M count=2 -./sandbox/u-boot -d test/dm/test.dtb -c "dm test" +echo -n "this is a test" > testflash.bin +dd if=/dev/zero bs=1M count=4 >>testflash.bin +./sandbox/u-boot -d ./sandbox/arch/sandbox/dts/test.dtb -c "dm test" rm spi.bin +rm testflash.bin