You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/22 04:21:48 UTC

[GitHub] [incubator-nuttx] btashton opened a new pull request #2365: board: Add network configuration to nucleo-h743zi

btashton opened a new pull request #2365:
URL: https://github.com/apache/incubator-nuttx/pull/2365


   ## Summary
   This adds a network configuration to the nucleo-h743zi dev board.  I plan to pack this configuration with a lot of features to help with code coverage.
   
   ## Impact
   
   ## Testing
   I have done verification of `telnetd` `wget` and dhcp client
   Here is the device booting up on the uart with a default address of 10.0.0.1 grabbing a file from the local network.
   Then using dhcp to hop on a different network and contacting the Google DNS server at 8.8.8.8 via ping.
   
   ```
   NuttShell (NSH) NuttX-9.1.0
   nsh> ifconfig
   eth0    Link encap:Ethernet HWaddr 46:fd:66:78:00:00 at UP
           inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
   
   lo      Link encap:Local Loopback at UP
           inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0
   
                IPv4   TCP   UDP  ICMP
   Received     0000  0000  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         0000  0000  0000  0000
     Rexmit     ----  0000  ----  ----
   nsh> wget -o /dev/console http://10.0.0.1:8000/hello
   Hello Web
   nsh> renew eth0
   nsh> ifconfig
   eth0    Link encap:Ethernet HWaddr 46:fd:66:78:00:00 at UP
           inet addr:192.168.86.21 DRaddr:192.168.86.1 Mask:255.255.255.0
   
   lo      Link encap:Local Loopback at UP
           inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0
   
                IPv4   TCP   UDP  ICMP
   Received     0009  0005  0004  0000
   Dropped      0000  0000  0000  0000
     IPv4        VHL: 0000   Frg: 0000
     Checksum   0000  0000  0000  ----
     TCP         ACK: 0000   SYN: 0000
                 RST: 0001  0001
     Type       0000  ----  ----  0000
   Sent         0008  0006  0002  0000
     Rexmit     ----  0001  ----  ----
   nsh> ping 8.8.8.8
   PING 8.8.8.8 56 bytes of data
   56 bytes from 8.8.8.8: icmp_seq=0 time=30 ms
   56 bytes from 8.8.8.8: icmp_seq=1 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=2 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=3 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=4 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=5 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=6 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=7 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=8 time=0 ms
   56 bytes from 8.8.8.8: icmp_seq=9 time=0 ms
   10 packets transmitted, 10 received, 0% packet loss, time 10100 ms
   nsh> 
   ```
   
   I am also able to connect to the board via telnet:
   ```
   ❯ telnet 192.168.86.21
   Trying 192.168.86.21...
   Connected to 192.168.86.21.
   Escape character is '^]'.
   
   NuttShell (NSH) NuttX-9.1.0
   nsh> free
                total       used       free    largest
   Umem:       979856      25792     954064     487168
   nsh> ps
     PID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK COMMAND
       0   0 FIFO     Kthread N-- Ready              00000000 001004 <noname>
       1 224 FIFO     Kthread --- Waiting  Signal    00000000 002028 <noname>
       2 100 FIFO     Kthread --- Waiting  Signal    00000000 002028 <noname>
       3 100 FIFO     Task    --- Waiting  Semaphore 00000000 002028 <noname>
       4 100 FIFO     Kthread --- Waiting  Semaphore 00000000 001004 <noname>
       5 100 FIFO     Task    --- Waiting  Semaphore 00000000 002020 <noname> 0x38003380
       8 100 FIFO     Kthread --- Waiting  Semaphore 00000000 001004 <noname>
       9 100 FIFO     Task    --- Running            00000000 002028 <noname>
   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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] btashton removed a comment on pull request #2365: board: Add network configuration to nucleo-h743zi

Posted by GitBox <gi...@apache.org>.
btashton removed a comment on pull request #2365:
URL: https://github.com/apache/incubator-nuttx/pull/2365#issuecomment-731701756


   I'll rebase this after the USB one is finished to address the compiler warning issue.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #2365: board: Add network configuration to nucleo-h743zi

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #2365:
URL: https://github.com/apache/incubator-nuttx/pull/2365


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] btashton commented on pull request #2365: board: Add network configuration to nucleo-h743zi

Posted by GitBox <gi...@apache.org>.
btashton commented on pull request #2365:
URL: https://github.com/apache/incubator-nuttx/pull/2365#issuecomment-731701756


   I'll rebase this after the USB one is finished to address the compiler warning issue.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org