A log that creates the package directory and then fails to find dcb/dcb has reached the packaging stage. Check whether the selected source actually builds the user-space utility before changing its install rule.
Identify the source tree
On the build host, open the OpenWrt source directory. Keep the log, configuration and local changes. These checks apply to a custom x86/64 snapshot.
git rev-parse HEAD
git status --short
git log -5 --oneline -- package/network/utils/iproute2
grep -n 'dcb' package/network/utils/iproute2/Makefile
grep -n 'CONFIG_PACKAGE_dcb' .config
Upstream commit f0f5525b75c6 added the dcb utility packaging. A custom revision can contain only part of that change. Compare actual files as well as commit IDs; a backport can use a different ID.
Trace the missing file backwards
If Package/dcb is absent, choose a suitable branch with complete support and test in a separate checkout. Enabling the kernel DCB option alone cannot produce the user-space binary.
If the definition exists but the option is absent from .config, search for dcb in menuconfig and check target dependencies. Building a package for later installation and including it in the firmware are different choices. Save and read the resulting configuration.
If selection is correct, compare the patch set, the top-level Makefile after patching and earlier build errors. Check whether the subdirectory list still excludes dcb or compilation or linking already failed.
grep -n 'dcb' package/network/utils/iproute2/patches/*.patch
find build_dir -type f -path '*/dcb/dcb'
make package/network/utils/iproute2/compile V=s -j1
Multiple targets and variants can remain under build_dir. Match the full path from find to the install command. If the binary exists only in another variant, check that variant's configuration. Do not fill the directory with a binary copied from another architecture.
Confirm the package was created for this target and installation finished successfully. On a matching test installation, run command -v dcb and dcb help. Hardware and driver support for a particular operation require separate checks. If other variants regress, keep the failure log and return to the working tree, configuration and image known to work.
Moving OpenWrt from x86 to ARM: check the ABI, packages and kernel modules
Comments