From 5be345933224af1f654737721143df57a61384b7 Mon Sep 17 00:00:00 2001 From: Adam Mooers <21245397+AdamMooers@users.noreply.github.com> Date: Tue, 8 Aug 2023 23:59:34 -0400 Subject: [PATCH] Moved network from to 192.168.2 because 192.168.1 is very common --- build/Makefile | 2 +- .../litex_vexriscv/rootfs_overlay/etc/network/interfaces | 6 +++--- client/noise_test.py | 2 +- client/util.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/Makefile b/build/Makefile index 12272e0..211e3cc 100644 --- a/build/Makefile +++ b/build/Makefile @@ -127,7 +127,7 @@ OPENFPGALOADER=./openFPGALoader/build/openFPGALoader flash: ${OPENFPGALOADER} -c digilent ../boot/digilent_arty.bit tftp: - cd ../boot && py3tftp --host 192.168.1.100 -p 6969 -v + cd ../boot && py3tftp --host 192.168.2.100 -p 6969 -v copy: scp ../boot/mmio.py ../linux/comm.py upsilon:~/ diff --git a/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces b/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces index 869576c..884debf 100644 --- a/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces +++ b/buildroot/board/litex_vexriscv/rootfs_overlay/etc/network/interfaces @@ -3,7 +3,7 @@ iface lo inet loopback auto eth0 iface eth0 inet static -address 192.168.1.50 +address 192.168.2.50 netmask 255.255.255.0 -network 192.168.1.0 -gateway 192.168.1.1 +network 192.168.2.0 +gateway 192.168.2.1 diff --git a/client/noise_test.py b/client/noise_test.py index 9a92feb..2f0fd02 100644 --- a/client/noise_test.py +++ b/client/noise_test.py @@ -40,7 +40,7 @@ def sign_extend(value, bits): # Start a SSH connection to the server. print('connecting') -client = SSHClient('192.168.1.50', user='root', pkey='~/.ssh/upsilon_key') +client = SSHClient('192.168.2.50', user='root', pkey='~/.ssh/upsilon_key') # Upload the script. print('connected') client.scp_send('../linux/noise_test.py', '/root/noise_test.py') diff --git a/client/util.py b/client/util.py index 81d1834..17b5f3b 100644 --- a/client/util.py +++ b/client/util.py @@ -34,7 +34,7 @@ def connect_execute(f, *arg): from pssh.clients import SSHClient # require parallel-ssh print('connecting') - client = SSHClient('192.168.1.50', user='root', pkey='~/.ssh/upsilon_key') + client = SSHClient('192.168.2.50', user='root', pkey='~/.ssh/upsilon_key') # Upload the script. print('connected') client.scp_send(f'../linux/{f}', '/root/')