Newer
Older
barebox / scripts / erizo-nmon-image
@Antony Pavlov Antony Pavlov on 7 Jan 2019 292 bytes RISC-V: erizo: add nmon image creation
#!/bin/sh

if [ $# != 2 ]; then
	echo "Usage:"
	echo "  erizo-nmon-image <input-binary-file> <output-expect-file>"

	exit 1
fi

hexdump -v -e '/4 "%08x\n"' $1 | perl -e '$a = 0x80000000; while (<>) { chop; printf("expect \"nmon> \"\n"); printf("send \"w%08x$_\"\n", $a); $a = $a + 4; }' > $2