OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
ETH / TCP communication

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Host Platforms
View previous topic :: View next topic  
Author Message
GeorgVienna



Joined: 16 Feb 2022
Posts: 3
Location: Vienna

PostPosted: Thu Feb 24, 2022 7:07 pm    Post subject: ETH / TCP communication Reply with quote

Hello,
I want to test a C application with TCP/IP port on RUN_MultiCoreHost_ARMv8-A-FMv1_arm_Cortex_A57MPx4.bat image to communicate with another C application on my pc and than count the instructions executed by the application.
I have a problem to setup up the ethernet communication.

First I tried with RUN_ARMv8-A-FMv1_arm_Cortex_A57MPx4.sh and adding:
--override ${MODULE}/eth0/redir="tcp:10080:10.0.2.15:80" \

STARTUP:
Info (ETH_SLP_SUM) ARMv8-A-FMv1/eth0 Virtual network:
Info (ETH_SLP_SUM) network : 10.0.0.0
Info (ETH_SLP_SUM) netmask : 255.0.0.0
Info (ETH_SLP_SUM) host (gw) : 10.0.2.2
Info (ETH_SLP_SUM) dhcp base : 10.0.2.15
Info (ETH_SLP_SUM) dns : 10.0.2.3
Info (ETH_SLP_SUM) MAC : 52:54:0a:00:02:02
Info (ETH_SLP_SUM) MAC (DNS) : 52:54:0a:00:02:03
Info (PSE_SLIRP) ARMv8-A-FMv1/eth0 Listening on host tcp port:10080. Redirecting to guest port:80
Info (PSE_SER) 'ARMv8-A-FMv1/uart0' Server connected to 50601

UART:
----------------------------------------------------
login[93]: root login on 'ttyAMA0'
~ # ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:12:34:56:78:9a brd ff:ff:ff:ff:ff:ff
~ # ifconfig eth0 10.0.2.15
[ 8770.731200] smc91x 1a000000.ethernet eth0: link up, 10Mbps, half-duplex, lpa 0x0000
~ # ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:12:34:56:78:9a brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/8 brd 10.255.255.255 scope global eth0
valid_lft forever preferred_lft forever
~ # ip a
~ # ping 192.168.1.233
PING 192.168.1.233 (192.168.1.233): 56 data bytes
ping: sendto: Network is unreachable
-------------------------

But I got no ethernet communication :/

Than I folloewd RUNNING AARCH64 LINUX WITH A ROOTFS RATHER THAN AN INITRD in ArmV8LinuxNotes.txt
Followed the guidline but without http://nfolamp.wordpress.com/2010/08/16/mounting-raw-image-files-and-kpartx/ as Im not sure how to do this in windows.
Added --override ${MODULE}/eth0/redir="tcp:10080:10.0.2.15:80" \
I could connect to http://www.google.com/index.html
But still no ping, ssh root@10.0.2.15, or telnet 10.0.2.15 10080 possible.

I'm I missing something basic?
Please help.

BR Georg
Back to top
View user's profile Send private message Visit poster's website
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1654
Location: United Kingdom

PostPosted: Mon Feb 28, 2022 2:42 am    Post subject: Reply with quote

First point to note is that the interface supports TCP/IP traffic and ping uses ICMP which is not supported so you cannot use ping to determine if the interface is alive.

The Ethernet interface model includes various forms of debug, please check the Ethernet model pdf document (you can find this in the VLNV library source directory)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Host Platforms All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Information regarding OVP © 2008-2022 Imperas Software