平台介紹:
主機端—Ubuntu 11.04
開發板內核—linux-2.6.30
Busybox版本—1.6.0
BusyBox各版本下載 http://www.linuxidc.com/Linux/2011-08/40704.htm
移植過程:
內核移植: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命令。