You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/10/23 02:35:08 UTC

[incubator-nuttx] branch master updated: freedom-k64f/demo: Support DHCP renew tool

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bc11d14  freedom-k64f/demo: Support DHCP renew tool
bc11d14 is described below

commit bc11d14d08866b20f7f1070b0d2e3c27ac0c3709
Author: Philippe Coval <rz...@users.sf.net>
AuthorDate: Thu Oct 22 17:00:58 2020 +0200

    freedom-k64f/demo: Support DHCP renew tool
    
    Usage:
    
        nsh> ifconfig
    
        eth0    Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
                inet addr:10.0.0.2 DRaddr:10.0.0.1 Mask:255.255.255.0
    
        nsh> renew eth0 && ifconfig
    
        eth0    Link encap:Ethernet HWaddr 52:13:FF:FF:FF:FF at UP
                inet addr:192.168.1.42 DRaddr:192.168.1.254 Mask:255.255.255.0
    
    CONFIG_NETDB_DNSCLIENT is needed for
    
        apps/netutils/netinit/netinit.c:659: \
        undefined reference to `netlib_set_ipv4dnsaddr'
    
    Change-Id: I54b8495637baf0f3f28abf67d4d4ce861ef49ced
    Bug: https://github.com/apache/incubator-nuttx/issues/1988
    Forwarded: https://github.com/apache/incubator-nuttx/pulls/rzr
    Signed-off-by: Philippe Coval <rz...@users.sf.net>
---
 boards/arm/kinetis/freedom-k64f/configs/demo/defconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/boards/arm/kinetis/freedom-k64f/configs/demo/defconfig b/boards/arm/kinetis/freedom-k64f/configs/demo/defconfig
index c22da31..e8ae493 100644
--- a/boards/arm/kinetis/freedom-k64f/configs/demo/defconfig
+++ b/boards/arm/kinetis/freedom-k64f/configs/demo/defconfig
@@ -31,6 +31,7 @@ CONFIG_FS_PROCFS=y
 CONFIG_FS_PROCFS_REGISTER=y
 CONFIG_INTELHEX_BINARY=y
 CONFIG_KINETIS_ENET=y
+CONFIG_KINETIS_ENET_MDIOPULLUP=y
 CONFIG_KINETIS_FTM0=y
 CONFIG_KINETIS_FTM0_CHANNEL=2
 CONFIG_KINETIS_FTM0_PWM=y
@@ -44,6 +45,9 @@ CONFIG_MMCSD=y
 CONFIG_MMCSD_MULTIBLOCK_DISABLE=y
 CONFIG_MMCSD_SDIO=y
 CONFIG_MOTOROLA_SREC=y
+CONFIG_NETDB_DNSCLIENT=y
+CONFIG_NET_BROADCAST=y
+CONFIG_NET_SOCKOPTS=y
 CONFIG_NET_UDP=y
 CONFIG_NFILE_DESCRIPTORS=8
 CONFIG_NSH_ARCHINIT=y
@@ -64,6 +68,7 @@ CONFIG_SDCLONE_DISABLE=y
 CONFIG_START_DAY=25
 CONFIG_START_MONTH=3
 CONFIG_START_YEAR=2013
+CONFIG_SYSTEM_DHCPC_RENEW=y
 CONFIG_SYSTEM_I2CTOOL=y
 CONFIG_SYSTEM_NSH=y
 CONFIG_TASK_NAME_SIZE=0