'How to add udhcpd in yocto?
I want to set my wireless interface (mlan0) to access point mode. I have hostapd in /usr/sbin. But I don't have udhcpd.
I have udhcpc in /sbin though. I checked my busybox.bb file and found CONFIG_UDHCPD=y in defconfig. Not sure what i am missing here.
Solution 1:[1]
dhcp recipe provides different packages:
poy/meta/recipes-connectivity/dhcp/dhcp.inc:
PACKAGES += "dhcp-libs dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
You just need to add:
IMAGE_INSTALL_append = " dhcp-server"
EDIT
Busybox provides udhcpd in separate package, so you need to add:
IMAGE_INSTALL_append = " busybox-udhcpd"
this package only installs busybox-udhcpd binary under /etc/init.d/ if CONFIG_UDHCPD=y
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
