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
|
reset init
|
||||||
halt
|
halt
|
||||||
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/ethernet
|
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/ethernet
|
||||||
|
reset run
|
||||||
shutdown
|
shutdown
|
|
@ -2,4 +2,5 @@ init
|
||||||
reset init
|
reset init
|
||||||
halt
|
halt
|
||||||
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/fpga_config
|
flash write_image erase target/thumbv7em-none-eabihf/debug/examples/fpga_config
|
||||||
|
reset run
|
||||||
shutdown
|
shutdown
|
|
@ -40,14 +40,13 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
flashFPGAConfig = writeShellScriptBin "flash-fpga-config" ''
|
flashFPGAConfig = writeShellScriptBin "flash-fpga-config" ''
|
||||||
set-gdb-config-file "fpga_config" && cargo run --example fpga_config
|
openocd-flash fpga-config
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFPGA = writeShellScriptBin "configure-fpga" ''
|
configureFPGA = writeShellScriptBin "configure-fpga" ''
|
||||||
nc -zv localhost 3333 \
|
compile-migen-script \
|
||||||
&& compile-migen-script \
|
&& cargo build --example fpga_config \
|
||||||
&& flash-fpga-config \
|
&& flash-fpga-config
|
||||||
|| echo "Please run OpenOcd first."
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
verifyFPGAConfig = writeShellScriptBin "verify-fpga-config" ''
|
verifyFPGAConfig = writeShellScriptBin "verify-fpga-config" ''
|
||||||
|
|
Loading…
Reference in New Issue