主机端—Ubuntu 11.04
开发板内核—linux-2.6.30
Busybox版本—1.6.0
移植过程:
内核移植:make menuconfig
选择上Networking --->
Networking support
Networking options --->
<*> Packet socket
[*] Packet socket: mmapped IO
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
[ * ] Network packet filtering (replaces ipchains) ---> //添加,后面子选项可不选,配置CONFIG_NETFILTER
说明:若没选 Packet socket, [ * ] Network packet filtering (replaces ipchains) --->选项,在执行udhcpc命令时出现如下错误:
Networking Utilities --->
udhcp Server/Client --->
[*] udhcp Server (udhcpd)
[*] dhcprelay
[*] Lease display utility (dumpleases)
[*] udhcp Client (udhcpc)
[*] Log udhcp messages to syslog
重新编译内核和busybox,得到udhcpc和udhcpd命令。