#18410: Build failed on r43375 : module wlcore_sdio.ko is missing.
-----------------------+------------------------
  Reporter:  0xc0ffee  |      Owner:  developers
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  packages  |    Version:  Trunk
Resolution:            |   Keywords:
-----------------------+------------------------

Comment (by 0xc0ffee):

 Replying to [comment:1 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!

--
Ticket URL: <https://dev.openwrt.org/ticket/18410#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to