Hi Fotis, Did you try it: https://acassis.wordpress.com/2021/09/02/using-internet-in-the-nuttx-running-on-simulator/
BR, Alan On 8/31/22, Fotis Panagiotopoulos <f.j.pa...@gmail.com> wrote: > Hello, > > motivated by the recent issues of the network, I would like to perform more > tests on NuttX and maybe automate some of them. > > The simulator sounds great for this case, but unfortunately I never got it > working. > > Can someone please help me with that? > > > I am using Fedora 36. > I need to have the simulator access a server outside the host, so the > bridge mode seems the only solution. > > I have created a bridge using the provided script: > > ./tools/simbridge.sh eno1 on > > I have configured: > > CONFIG_SIM_NETDEV=y > CONFIG_SIM_NETDEV_TAP=y > CONFIG_SIM_NET_BRIDGE=y > CONFIG_SIM_NET_BRIDGE_DEVICE="nuttx0" > > I added network administration capabilities to the final binary: > > sudo setcap cap_net_admin+eip "$SIM_EXEC" > > I found some other permission problems, so the simulator is run as root. > > > After boot, the network is properly configured, with a valid IP for my > network. > ifup is called, and it succeeds. > > I added prints in tapdev_init() and tapdev_ifup(), they both succeed. > > However, I cannot ping the simulator. Similarly, sim cannot access the > network. > > > I enabled all network prints. > > I can see some ARP packets being sent and received, but nothing else. > I get a bunch of warnings like the following: > > netdriver_recv_work: WARNING: Unsupported Ethernet type 3465 > > (where the Ethernet type number is a different number every time) >