nixos-riscv/fpga/upload.sh

18 lines
435 B
Bash
Raw Normal View History

2024-03-04 18:32:25 +01:00
#!/bin/sh
set -e
set -x
dst=femu:nixos/
rsync -a fpga/fpgactl "$dst"
rsync -a fpga/boot.sh "$dst"
rsync -a fpga/env.sh "$dst"
rsync "$OPENSBI/share/opensbi/lp64/fpga/openpiton/firmware/fw_payload.bin" "$dst/opensbi.bin"
rsync "$KERNEL/Image" "$dst/kernel.bin"
rsync "$INITRD/initrd" "$dst/initrd.bin"
2024-03-07 16:49:48 +01:00
rsync "$ROOTFS/sd-image/rootfs.img" "$dst/rootfs.img"
rsync "$UBOOT_ENV" "$dst/uboot.env"
2024-03-04 18:32:25 +01:00
echo "Now go to $dst and run ./boot.sh"