GUIDINGLI commented on pull request #5539:
URL: https://github.com/apache/incubator-nuttx/pull/5539#issuecomment-1044211023


   OK, add telnet.
   But with which cmd, I haven't run this before.
   
   ligd@Opt:~$ sudo telnet 10.0.2.15
   [sudo] password for ligd: 
   Trying 10.0.2.15...
   
   
   ^C
   
   ligd@Opt:~$ telnet 127.0.0.1
   Trying 127.0.0.1...
   telnet: Unable to connect to remote host: Connection refused
   
   
   ligd@Opt:~/platform/mainline/nuttx$ qemu-system-arm -net nic -net 
user,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:10021-10.0.2.15:21,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001
 -M sabrelite -smp 4 -kernel ./nuttx -nographic
   
   NuttShell (NSH) NuttX-10.2.0
   nsh> nfsmount 192.168.31.12 /mnt/nfs /home/ligd/nfsserver
   nsh> ifconfig
   eth0 Link encap:Ethernet HWaddr 00:e0:de:ad:be:ef at UP
        inet addr:10.0.2.15 DRaddr:10.0.2.2 Mask:255.255.255.0
   
                IPv4   TCP   UDP  ICMP
   Received     0013  0013  0000  0000
   Dropped      0000  0000  0000  0000
     IPv4        VHL: 0000   Frg: 0000
     Checksum   0000  0000  0000  ----
     TCP         ACK: 0000   SYN: 0000
                 RST: 0000  0000
     Type       0000  ----  ----  0000
   Sent         0019  0019  0000  0000
     Rexmit     ----  0005  ----  ----
   nsh> 
   nsh> ps
     PID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK  
 USED  FILLED COMMAND
       0     0   0   0 FIFO     Kthread N-- Assigned           00000000 001000 
000464  46.4%  CPU0 IDLE
       1     1   1   0 FIFO     Kthread N-- Running            00000000 001000 
000208  20.8%  CPU1 IDLE
       2     2   2   0 FIFO     Kthread N-- Running            00000000 001000 
000208  20.8%  CPU2 IDLE
       3     3   3   0 FIFO     Kthread N-- Running            00000000 001000 
000208  20.8%  CPU3 IDLE
       4     4 --- 224 RR       Kthread --- Waiting  Semaphore 00000000 002016 
000152   7.5%  hpwork 0x1084f54c
       5     5 --- 100 RR       Kthread --- Waiting  Semaphore 00000000 002016 
000352  17.4%  lpwork 0x1084f558
       6     6   0 100 RR       Task    --- Running            00000000 003048 
001624  53.2%  nsh_main
       7     7 --- 100 RR       Task    --- Waiting  Semaphore 00000000 002008 
000384  19.1%  Telnet daemon 0x10859f50
   nsh> 
   nsh> ping 192.168.31.12
   PING 192.168.31.12 56 bytes of data
   56 bytes from 192.168.31.12: icmp_seq=0 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=1 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=2 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=3 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=4 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=5 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=6 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=7 time=20 ms
   56 bytes from 192.168.31.12: icmp_seq=8 time=10 ms
   56 bytes from 192.168.31.12: icmp_seq=9 time=10 ms
   10 packets transmitted, 10 received, 0% packet loss, time 10110 ms
   nsh> 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to