2024-03-04 18:32:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2024-08-26 17:14:53 +02:00
|
|
|
#dst=femu:nixos
|
|
|
|
dst=fpgalogin1:nixos
|
2024-03-04 18:32:25 +01:00
|
|
|
|
2024-05-28 18:12:14 +02:00
|
|
|
if [ "$1" != "" ]; then
|
|
|
|
dst="$1"
|
|
|
|
fi
|
|
|
|
|
2024-08-26 17:14:53 +02:00
|
|
|
rsync -a fpga/run-login.sh "$dst/"
|
|
|
|
rsync -a fpga/run-node.sh "$dst/"
|
|
|
|
rsync -a fpga/fpgactl "$dst/"
|
|
|
|
rsync -a fpga/boot.sh "$dst/"
|
|
|
|
rsync -a fpga/env.sh "$dst/"
|
2024-07-12 12:13:06 +02:00
|
|
|
rsync $(find "$OPENSBI" -name fw_payload.bin) "$dst/opensbi.bin"
|
2024-03-04 18:32:25 +01:00
|
|
|
rsync "$KERNEL/Image" "$dst/kernel.bin"
|
|
|
|
rsync "$INITRD/initrd" "$dst/initrd.bin"
|
2024-07-03 18:45:26 +02:00
|
|
|
if [ -n "$ROOTFS" ]; then
|
|
|
|
rsync "$ROOTFS/sd-image/rootfs.img" "$dst/rootfs.img"
|
|
|
|
else
|
|
|
|
echo "Skipping rootfs"
|
|
|
|
fi
|
2024-07-08 13:32:29 +02:00
|
|
|
rsync "$BITSTREAM" "$dst/bitstream.bit"
|
2024-07-08 17:37:46 +02:00
|
|
|
rsync "$BOOTROM" "$dst/bootrom.bin"
|
2024-03-07 16:49:48 +01:00
|
|
|
rsync "$UBOOT_ENV" "$dst/uboot.env"
|
2024-03-04 18:32:25 +01:00
|
|
|
|
|
|
|
echo "Now go to $dst and run ./boot.sh"
|