Thank you Xiang. I tried your config options, but the simulator still crashes when I do a ping.
You didn't attach a whole config file– would you be willing to send one? cheers adam On Mon, Feb 10, 2020 at 8:50 PM Xiang Xiao <xiaoxiang781...@gmail.com> wrote: > Do you enable CONFIG_SIM_NET_BRIDGE? > To get the basic network, the below options are required: > CONFIG_NET=y > > CONFIG_NETINIT_DHCPC=y > CONFIG_NETUTILS_DHCPC=y > > CONFIG_NET_ICMP=y > CONFIG_NET_ICMP_SOCKET=y > > CONFIG_NET_UDP=y > CONFIG_NET_UDP_BINDTODEVICE=y > > CONFIG_SIM_NET_BRIDGE=y > > CONFIG_SYSTEM_PING=y > > IPv6 need more options: > CONFIG_NET_ICMPv6=y > CONFIG_NET_ICMPv6_AUTOCONF=y > CONFIG_NET_ICMPv6_SOCKET=y > > CONFIG_NET_IPv6=y > > CONFIG_SYSTEM_PING6=y > > Anyway, you can try the attached config which has more options to get > the better network. > > > On Tue, Feb 11, 2020 at 12:22 PM Adam Feuer <a...@starcat.io> wrote: > > > > Xiang, > > > > Thanks for the tips! I tried to get this working, but I don't see any > > network interfaces on my nuttx system other than loopback. > > > > I ran the script on my Linux box, it created a nuttx0: interface with an > IP > > address. But on the nuttx simulator all I see is this: > > > > nsh> ifconfig > > > lo Link encap:Local Loopback at UP > > > inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0 > > > > > > > > > > Do you have a defconfig that I can run that will bring up NSH? Or any > > defconfig that will show the network is working? > > > > cheers > > adam > > > > > > > > On Mon, Feb 10, 2020 at 7:45 PM Xiang Xiao <xiaoxiang781...@gmail.com> > > wrote: > > > > > Adam, please follow this instruction if you want to connect the real > > > network instead loopback: > > > > > > > https://github.com/apache/incubator-nuttx/pull/249/commits/1b489449f790c2b4618df9133114bb05f0132e87 > > > The setup is very simple, you don't need config any IP address > manually. > > > > > > Thanks > > > Xiang > > > > > > On Tue, Feb 11, 2020 at 2:23 AM Gregory Nutt <spudan...@gmail.com> > wrote: > > > > > > > > > > > > > I'm trying to get the NuttX simulator working with TCP/IP > networking. I > > > > > used the sim:nsh defconfig as a base, then used "make menuconfig" > to > > > select > > > > > TCP/IP, ICMP, and ping commands. > > > > > > > > > > My host is Ubuntu 19.10 Eoan. I installed bridge-utils and > configured a > > > > > bridge device nuttx0 and gave it an IP address 10.0.1.1. From > linux I > > > can > > > > > ping the bridge. > > > > > > > > > > I can compile and run the simulator. Commands seem to work. I can > > > configure > > > > > the eth0 interface with IP address 10.0.1.2 and bring it up using > > > ifup. But > > > > > when I try to ping the bridge, the nuttx simulator immediately > exits > > > with > > > > > no messages. > > > > > > > > > > I checked the .config against the sim:nettest defconfig, and my > > > settings in > > > > > .config match that one. > > > > > > > > > > What am I doing wrong? How do I debug this? > > > > > > > > I don't use TCP/IP networking with the simulator. Perhaps Xiao Xiang > > > > will respond later. > > > > > > > > I am creating a simulator example that runs the TCP blaster example > > > > using the loopback 127.0.0.1 device. I will give that to you once I > > > > verify it. > > > > > > > > > > > > > > > > > -- > > Adam Feuer <a...@starcat.io> > -- Adam Feuer <a...@starcat.io>