Commit c28c2768 authored by Federico Vaga's avatar Federico Vaga

Merge branch '16-remove-sdbfs' into 'master'

Resolve "remove sdbfs"

Closes #16

See merge request be-cem-edl/fec/hardware-modules/svec!13
parents 8f2e30db c1e2b888
// SPDX-FileCopyrightText: 2022 CERN (home.cern)
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#include <stdio.h>
main(int argc, char *argv[])
{
FILE *f_in = fopen(argv[1], "rb");
unsigned char c;
printf("@00\n");
while(fread(&c,1,1,f_in) == 1)
printf("%02X\n", c);
fclose(f_in);
}
\ No newline at end of file
#!/bin/bash
# A trivial script to build the SDB flash image for the SVEC. Requires sdb-tools installed in the system
PROMGEN=`which promgen`
GENSDBFS=`which gensdbfs`
if [ ! -f "$PROMGEN" ]; then
echo "You seem to not have the promgen utility. Do you have Xilinx ISE installed?"
exit
fi
if [ ! -f "$GENSDBFS" ]; then
echo "You seem to not have the gensdbfs. Have you compiled and installed it (check the manual)?"
exit
fi
gensdbfs fs image.bin
promgen -p mcs -o image.mcs -spi -data_file up 0 image.bin -w
./bin2vmf image.bin > image.vmf
# This is an example config file, that can be used to build a filesystem
# from this very directory. Please note that gensdbfs doesn't look for
# config files in subdirectories but only in the tol-level one.
.
vendor = 0xce42
device = 0x5fec
position = 0x600000
svec-bootloader.bin
position = 0
afpga.bin
position = 0x100000
../../../hdl/syn/golden/svec_top.bin
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment