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>

Reply via email to