This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
小弟刚做dm368,现在有需求需要在dm368无法获得IP的情况下,卡在dhcp一直等待有IP出现。
现在的情况是dhcp有timeout时间,所以各位有谁知道如何配置吗?论坛中似乎没有这方面的问题。
[ 2.621897] net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=181b8b0)
[ 2.690089] Sending DHCP requests .. timeout!(我需要一直停在这里,只到能获取IP。)
kernel/net/ipv4/ipconfig.c
printk(KERN_NOTICE "Sending %s%s%s requests .", do_bootp ? ((ic_proto_enabled & IC_USE_DHCP) ? "DHCP" : "BOOTP") : "", (do_bootp && do_rarp) ? " and " : "", do_rarp ? "RARP" : "");
start_jiffies = jiffies; d = ic_first_dev; retries = CONF_SEND_RETRIES; get_random_bytes(&timeout, sizeof(timeout)); timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned) CONF_TIMEOUT_RANDOM)
增加CONF_BASE_TIMEOUT 和 CONF_TIMEOUT_RANDOM两个宏