[gem5-users] SSH on ARM Full System

2021-08-01 Thread Md Rubel Ahmed via gem5-users
Hi,

Would you please be kind to share a bit more details on how you made these
two instances of gem5 get connected via ethernet? For example, I have the
following specific questions:

1. Where should I add the ethernet? in the RealView.py file or in the
FSConfig.py file or some other file? Do I need to rebuild gem5 if I
modify the realview.py file?
2. Is --node=0/1 compulsory? Asking this because I did not find any --node
argument in the starter_fs.py
3. How can I access the simulation? I ran two instances of fs. I used
./m5term localhost 3456 method, but it connects to one of them each time.
How can I connect terminals to both of them?
4. Do I need to use vmlinux.arm64  and
-disk-image=ubuntu-18.04-arm64-docker.img
or I can use other kernel and images?
5. Anything crucial to get the ethernet added and connected to the network

I am sorry if some of my questions are really silly but getting answer of
these questions will help me a lot. I main objective is to exercise the
ethernet.

Thanks for your time.

Regards,

*Rubel Ahmed*
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] SSH on ARM Full System

2021-06-28 Thread Νικόλαος Ταμπουρατζής via gem5-users



Dear gem5 community,

I have connected successfully two gem5s through e1000 ethernet card.  
You can see the terminal output in the following commands:


1st GEM5:

root@aarch64-gem5:/# ifconfig
eth0: flags=4163  mtu 1500
inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
ether 00:90:00:00:00:00  txqueuelen 1000  (Ethernet)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
loop  txqueuelen 1000  (Local Loopback)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@aarch64-gem5:/# ping -c 1 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=192 ms

--- 192.168.0.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 192.857/192.857/192.857/0.000 ms
root@aarch64-gem5:/# ssh root@192.168.0.3
[2.784304] random: ssh: uninitialized urandom read (32 bytes read)
ssh: connect to host 192.168.0.3 port 22: Connection refused
root@aarch64-gem5:/#


2nd gem5:

root@aarch64-gem5:/# ifconfig
eth0: flags=4163  mtu 1500
inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
ether 00:90:00:00:00:01  txqueuelen 1000  (Ethernet)
RX packets 2  bytes 158 (158.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 2  bytes 158 (158.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
loop  txqueuelen 1000  (Local Loopback)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@aarch64-gem5:/# ping -c 1 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=97.7 ms

--- 192.168.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 97.758/97.758/97.758/0.000 ms
root@aarch64-gem5:/# ssh root@192.168.0.2
[3.187606] random: ssh: uninitialized urandom read (32 bytes read)
ssh: connect to host 192.168.0.2 port 22: Connection refused
root@aarch64-gem5:/#



I have used this gem5 configuration:

$GEM5/build/ARM/gem5.opt -d $GEM5/node0  
$GEM5/configs/example/arm/starter_fs.py --kernel=vmlinux.arm64  
--num-cores=2 --disk-image=ubuntu-18.04-arm64-docker.img --node=0


and

$GEM5/build/ARM/gem5.opt -d $GEM5/node0  
$GEM5/configs/example/arm/starter_fs.py --kernel=vmlinux.arm64  
--num-cores=2 --disk-image=ubuntu-18.04-arm64-docker.img --node=1


I would like to connect one gem5 to another through ssh (because I  
would like to use MPI).


I have installed the openssh-client packet through qemu but I get the  
above connection refused. After that, I installed the openssh-server  
through qemu, but it is not booted after 2 hours (it installed a  
number of packets):


"The following NEW packages will be installed:
  ca-certificates dbus dmsetup gir1.2-glib-2.0 libapparmor1 libargon2-0
  libcryptsetup12 libdbus-1-3 libdevmapper1.02.1 libgirepository-1.0-1
  libglib2.0-0 libglib2.0-data libip4tc0 libjson-c3 libkmod2 libmpdec2
  libnss-systemd libpam-systemd libpsl5 libpython3-stdlib libpython3.6-minimal
  libpython3.6-stdlib libwrap0 mime-support ncurses-term networkd-dispatcher
  openssh-server openssh-sftp-server openssl publicsuffix python3
  python3-certifi python3-chardet python3-dbus python3-gi python3-idna
  python3-minimal python3-pkg-resources python3-requests python3-six
  python3-urllib3 python3.6 python3.6-minimal shared-mime-info ssh-import-id
  systemd systemd-sysv ucf wget xdg-user-dirs"

I appreciate it if someone knows how to speed up the boot time or how  
can I connect two gem5s through ssh, please.
Following is the gem5 terminal output after openssh-server  
installation (but it is not finished yet).




[0.460103] systemd[1]: System time before build time, advancing clock.
[0.460256] systemd[1]: Failed to insert module 'autofs4': No such  
file or directory
[0.461222] systemd[1]: systemd 237 running in system mode. (+PAM  
+AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP  
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2  
+IDN -PCRE2 default-hierarchy=hybrid)

[0.461283] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 18.04.2 LTS!

[0.472880] systemd[1]: File  
/lib/systemd/system/systemd-journald.service:36 configures an IP  
firewall (IPAddressDeny=any), but the local system does not support  
BPF/cgroup based firewalling.
[