I forked the project at https://github.com/CoreELEC/ap6xxx-aml and modified some parts of the code. When compiling with the CoreELEC project, I replaced PKG_VERSION, PKG_SITE, and PKG_URL, but I keep encountering errors during compilation. Could you please advise on how to resolve this issue?
Fix the errors you get?
Because you didn’t provide any other info this is all you can get.
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-2018 Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)
PKG_NAME="ap6xxx-aml"
PKG_VERSION="e9bc18378a1c155511754f04ef695c5b9551962a"
PKG_SHA256=""
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/simonhust/ap6xxx-aml"
PKG_URL="https://github.com/simonhust/ap6xxx-aml/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
PKG_LONGDESC="ap6xxx: Linux drivers for AP6xxx WLAN chips used in some devices based on Amlogic SoCs"
PKG_IS_KERNEL_PKG="yes"
PKG_TOOLCHAIN="manual"
pre_make_target() {
unset LDFLAGS
}
make_target() {
echo
echo "building ap6356s and others"
kernel_make -C ${PKG_BUILD}/bcmdhd.1.363.59.144.x.cn \
PWD=${PKG_BUILD}/bcmdhd.1.363.59.144.x.cn \
KDIR=$(kernel_path) \
ARCH=${TARGET_KERNEL_ARCH} \
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
CONFIG_BCMDHD_DISABLE_WOWLAN=y \
dhd
if [ "$DEVICE" = "Amlogic-ng" ]; then
echo
echo "building ap6275s"
kernel_make -C ${PKG_BUILD}/bcmdhd.100.10.545.x \
PWD=${PKG_BUILD}/bcmdhd.100.10.545.x \
KDIR=$(kernel_path) \
ARCH=${TARGET_KERNEL_ARCH} \
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
CONFIG_BCMDHD_DISABLE_WOWLAN=y \
bcmdhd_sdio
echo
echo "building ap6275p"
kernel_make -C ${PKG_BUILD}/bcmdhd.101.10.361.x \
M=${PKG_BUILD}/bcmdhd.101.10.361.xx \
PWD=${PKG_BUILD}/bcmdhd.101.10.361.x \
KERNEL_SRC=$(kernel_path) \
CONFIG_BCMDHD_DISABLE_WOWLAN=y \
CONFIG_BCMDHD_PCIE=y \
bcmdhd_pcie
fi
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
find ${PKG_BUILD}/ -name \*.ko -not -path '*/\.*' \
-exec cp {} ${INSTALL}/$(get_full_module_dir)/${PKG_NAME} \;
}
post_install() {
if [ "${PROJECT}" = "Amlogic" ]; then
rm ${INSTALL}/usr/lib/modprobe.d/dhd_sdio.conf
rm ${INSTALL}/usr/lib/udev/rules.d/80-dhd_sdio.rules
fi
}
I don’t see any error here ![]()
Maybe need a make clean… EEOR LOG,
2025-11-21 16:07:29 (412 KB/s) - '/home/glsimon/CoreELEC/sources/ap6xxx-aml/ap6xxx-aml-e9bc18378a1c155511754f04ef695c5b9551962a.tar.gz' saved [12333374]
INFO Calculated checksum: 07ed691c2a3d45ee2b116104edc15163e4fee6971ad12d78e13ac22d7bcb6684
CLEAN ap6xxx-aml
* Removing /home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/build/ap6xxx-aml-c952e40780e1278a5fe2105acf6d6f1622ea4a9b ...
* Removing /home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/install_pkg/ap6xxx-aml-c952e40780e1278a5fe2105acf6d6f1622ea4a9b ...
* Removing /home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/qa_checks/ap6xxx-aml-* ...
UNPACK ap6xxx-aml
BUILD ap6xxx-aml (target)
TOOLCHAIN manual
building ap6356s and others
make[1]: Entering directory '/home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/build/ap6xxx-aml-e9bc18378a1c155511754f04ef695c5b9551962a'
make[1]: *** /home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/build/ap6xxx-aml-e9bc18378a1c155511754f04ef695c5b9551962a/bcmdhd.1.363.59.144.x.cn: No such file or directory. Stop.
make[1]: Leaving directory '/home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/build/ap6xxx-aml-e9bc18378a1c155511754f04ef695c5b9551962a'
FAILURE: scripts/build ap6xxx-aml:target during make_target (package.mk)
*********** FAILED COMMAND ***********
kernel_make -C ${PKG_BUILD}/bcmdhd.1.363.59.144.x.cn PWD=${PKG_BUILD}/bcmdhd.1.363.59.144.x.cn KDIR=$(kernel_path) ARCH=${TARGET_KERNEL_ARCH} CROSS_COMPILE=${TARGET_KERNEL_PREFIX} CONFIG_BCMDHD_DISABLE_WOWLAN=y dhd
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
FAILURE: scripts/install ap6xxx-aml:target has failed!
The following log for this failure is available:
/home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/.threads/logs/128.log
>>> ap6xxx-aml:target seq 128 >>>
[361/363] [FAIL] install ap6xxx-aml:target
The following log for this failure is available:
/home/glsimon/CoreELEC/build.CoreELEC-Amlogic-ng.arm-21/.threads/logs/128.log
Parallel build failure - see log for details. Time of failure: Fri Nov 21 16:07:33 CST 2025
make: *** [Makefile:7:release] 错误 1
Fro CE-21 branch you need to use p-amlogic branch for ap6xxx-aml but you used 5.15.170.
1 Like
okay,i will try it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.