forked from M-Labs/humpback-dds
nix: rewire configure-fpga command
This commit is contained in:
parent
c084da1848
commit
537a375f2c
|
@ -2,4 +2,5 @@ init
|
|||
reset init
|
||||
halt
|
||||
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/ethernet
|
||||
reset run
|
||||
shutdown
|
|
@ -2,4 +2,5 @@ init
|
|||
reset init
|
||||
halt
|
||||
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/fpga_config
|
||||
reset run
|
||||
shutdown
|
|
@ -40,14 +40,13 @@ let
|
|||
'';
|
||||
|
||||
flashFPGAConfig = writeShellScriptBin "flash-fpga-config" ''
|
||||
set-gdb-config-file "fpga_config" && cargo run --example fpga_config
|
||||
openocd-flash fpga-config
|
||||
'';
|
||||
|
||||
configureFPGA = writeShellScriptBin "configure-fpga" ''
|
||||
nc -zv localhost 3333 \
|
||||
&& compile-migen-script \
|
||||
&& flash-fpga-config \
|
||||
|| echo "Please run OpenOcd first."
|
||||
compile-migen-script \
|
||||
&& cargo build --example fpga_config \
|
||||
&& flash-fpga-config
|
||||
'';
|
||||
|
||||
verifyFPGAConfig = writeShellScriptBin "verify-fpga-config" ''
|
||||
|
|
Loading…
Reference in New Issue