Modify

Opened 3 years ago

Last modified 3 years ago

#18410 new defect

Build failed on r43375 : module wlcore_sdio.ko is missing.

Reported by: 0xc0ffee Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

I got this error when taking TI OMAP3/4/AM33xx (Default Profile) as target using r43375 source. following is the output of "make V=99":

SHELL= /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/host/bin/flock /home/s117/OpenWrt/attitude_adjustment/trunk/tmp/.root-copy.flock -c 'cp -fpR /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/tmp-kmod-brcmfmac/. /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/'
rm -rf /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/tmp-kmod-brcmfmac
touch /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/stamp/.kmod-brcmfmac_installed
if [ -f /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mac80211.default.install.clean ]; then rm -f /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mac80211.default.install /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mac80211.default.install.clean; fi; echo "kmod-brcmfmac" >> /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mac80211.default.install
mkdir -p /home/s117/OpenWrt/attitude_adjustment/trunk/bin/omap/packages /home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/compat-wireless-2014-11-04/ipkg-omap/kmod-wlcore/CONTROL /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo
ERROR: module '/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/compat-wireless-2014-11-04/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko' is missing.
make[3]: *** [/home/s117/OpenWrt/attitude_adjustment/trunk/bin/omap/packages/base/kmod-wlcore_3.13.7+2014-11-04-1_omap.ipk] Error 1
make[3]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk/package/kernel/mac80211'
make[2]: *** [package/kernel/mac80211/compile] Error 2
make[2]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk'
make[1]: *** [/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk'
make: *** [world] Error 2

Attachments (1)

config.tar (150.0 KB) - added by 0xc0ffee 3 years ago.
build config

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by 0xc0ffee

build config

comment:1 follow-up: Changed 3 years ago by zloop

kernel < 3.15 dont support this driver (a compile with 3.18-rc* should work)

this was done by backport/upstream project - see text/links to search for in the fix submitted at:
http://patchwork.openwrt.org/patch/6729/

comment:2 in reply to: ↑ 1 Changed 3 years ago by 0xc0ffee

Replying to zloop:

kernel < 3.15 dont support this driver (a compile with 3.18-rc* should work)

this was done by backport/upstream project - see text/links to search for in the fix submitted at:
http://patchwork.openwrt.org/patch/6729/

I applied the patch, and perform "make" again after "make clean", but I got another compile error:

SHELL= /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/host/bin/flock /home/s117/OpenWrt/attitude_adjustment/trunk/tmp/.root-copy.flock -c 'cp -fpR /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/tmp-kmod-mmc-over-gpio/. /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/'
rm -rf /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/tmp-kmod-mmc-over-gpio
touch /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/root-omap/stamp/.kmod-mmc-over-gpio_installed
if [ -f /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mmc_over_gpio.default.install.clean ]; then rm -f /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mmc_over_gpio.default.install /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mmc_over_gpio.default.install.clean; fi; echo "kmod-mmc-over-gpio" >> /home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/pkginfo/mmc_over_gpio.default.install
make[3]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk/package/kernel/mmc_over_gpio'
make[3]: Entering directory `/home/s117/OpenWrt/attitude_adjustment/trunk/package/kernel/mt76'
make   -C "/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/linux-3.13.7" ARCH="arm" CROSS_COMPILE="arm-openwrt-linux-uclibcgnueabi-" SUBDIRS="/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20" NOSTDINC_FLAGS="-I/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20 -I/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/include/mac80211-backport/uapi -I/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/include/mac80211-backport -I/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/include/mac80211/uapi -I/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/usr/include/mac80211 -include backport/backport.h" modules
make[4]: Entering directory `/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/linux-3.13.7'
  CC [M]  /home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.o
/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.c: In function 'mt76pci_probe':
/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.c:59:2: error: implicit declaration of function 'pcim_enable_device' [-Werror=implicit-function-declaration]
  ret = pcim_enable_device(pdev);
  ^
cc1: all warnings being treated as errors
make[5]: *** [/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.o] Error 1
make[4]: *** [_module_/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20] Error 2
make[4]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/linux-3.13.7'
make[3]: *** [/home/s117/OpenWrt/attitude_adjustment/trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/.built] Error 2
make[3]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk/package/kernel/mt76'
make[2]: *** [package/kernel/mt76/compile] Error 2
make[2]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk'
make[1]: *** [/home/s117/OpenWrt/attitude_adjustment/trunk/staging_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/s117/OpenWrt/attitude_adjustment/trunk'
make: *** [world] Error 2

After modified the source file:
trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.c

s117@GS:~/OpenWrt/attitude_adjustment$ diff -u mt76-2012-11-20/pci.c trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.c 
--- mt76-2012-11-20/pci.c	2014-11-29 21:21:04.699897422 +0800
+++ trunk/build_dir/target-arm_cortex-a9+vfpv3_uClibc-0.9.33.2_eabi/linux-omap/mt76-2014-11-20/pci.c	2014-11-29 21:25:37.827825258 +0800
@@ -18,6 +18,8 @@
 #include "mt76.h"
 #include "trace.h"
 
+extern int pcim_enable_device(struct pci_dev *pdev);
+
 static const struct pci_device_id mt76pci_device_table[] = {
 	{ PCI_DEVICE(0x14c3, 0x7662) },
 };

problem solved, thanks a lot!

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.