forked from M-Labs/zynq-rs
12 lines
242 B
Bash
12 lines
242 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e -m
|
||
|
|
||
|
ELF=$1
|
||
|
IMAGE=$ELF.bin
|
||
|
arm-none-eabihf-objcopy -O binary $ELF $IMAGE
|
||
|
qemu-system-arm -M xilinx-zynq-a9 -s -kernel $IMAGE -chardev file,id=uart0,path=/tmp/qemu.serial &
|
||
|
sleep 1
|
||
|
gdb -x qemu.gdb $ELF
|
||
|
kill -KILL %1
|