2013/1/3 Rafał Miłecki <zaj...@gmail.com>: > 2013/1/3 Rafał Miłecki <zaj...@gmail.com>: >> 2012/12/29 Hauke Mehrtens <ha...@hauke-m.de>: >>> On 12/28/2012 01:05 AM, Rafał Miłecki wrote: >>>> I don't use compat-wireless package in my builds and I wish to just >>>> use default kernel's drivers. So I did: >>>>> make kernel_menuconfig >>>> and enabled MAC80211 and wireless drivers. >>>> >>>> Unfortunately it seems that modules are still not compiled. >>>> >>>> Is there some extra mechanism in the OpenWRT building system stopping >>>> MAC80211/wireless drivers from being built? File >>>> target/linux/brcm47xx/config-3.3 was modified correctly: >>>>> grep MAC80211= target/linux/brcm47xx/config-3.3 >>>> CONFIG_MAC80211=m >>>> >>> >>> Don't the modules get compiled or are they not integrated into the >>> image? To get a kernel module into the kernel it needs a kmod package >>> like in package/kernel/modules/wireless.mk . >> >> Modules seem to compile, but they are not included on rootfs >> partition. I guess I need some .mk files :| > > OK, I'm getting closer ;) My package is generated: >> Generating index for package ./kmod-net-default-b43_3.3.8-1_brcm47xx.ipk > and it seems to be copied into root directory: >> ls >> staging_dir/target-mipsel_uClibc-0.9.33.2/root-brcm47xx/lib/modules/3.3.8/ | >> grep b43 > b43.ko > > But it's still not available on rootfs after installing firmware... > I've also noticed it's not visible in build_dir: >> ls build_dir/target-mipsel_uClibc-0.9.33.2/root-brcm47xx/lib/modules/3.3.8/ >> | grep b43 > > What's the difference between staging_dir and build_dir? Why the > second one doesn't contain b43.ko?
OK, I've finally created correct packages for all 3 required modules! :) Here goes log from my Netgear WNDR4500: b43-phy0: Broadcom 4331 WLAN found (core revision 29) bcma: bus1: Switched to core: 0x812 b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1 b43-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2059, Revision 0 b43-phy1: Broadcom 4331 WLAN found (core revision 29) bcma: bus2: Switched to core: 0x812 b43-phy1: Found PHY: Analog 9, Type 7 (HT), Revision 1 b43-phy1 debug: Found Radio: Manuf 0x17F, Version 0x2059, Revision 0 Broadcom 43xx driver loaded [ Features: PN ] define KernelPackage/net-default-cfg80211 SUBMENU:=$(WIRELESS_MENU) TITLE:=Default cfg80211 (not compat-wireless) KCONFIG:= \ CONFIG_CFG80211=m FILES:=$(LINUX_DIR)/net/wireless/cfg80211.ko AUTOLOAD:=$(call AutoLoad,30,cfg80211) endef $(eval $(call KernelPackage,net-default-cfg80211)) define KernelPackage/net-default-mac80211 SUBMENU:=$(WIRELESS_MENU) TITLE:=Default mac80211 (not compat-wireless) KCONFIG:= \ CONFIG_MAC80211=m FILES:=$(LINUX_DIR)/net/mac80211/mac80211.ko AUTOLOAD:=$(call AutoLoad,30,mac80211) endef $(eval $(call KernelPackage,net-default-mac80211)) define KernelPackage/net-default-b43 SUBMENU:=$(WIRELESS_MENU) TITLE:=Default b43 driver (not compat-wireless) KCONFIG:= \ CONFIG_B43=m \ CONFIG_B43_BCMA=y \ CONFIG_B43_BCMA_EXTRA=y \ CONFIG_B43_DEBUG=y \ CONFIG_B43_PHY_N=y \ CONFIG_B43_PHY_LP=y \ CONFIG_B43_PHY_HT=y FILES:=$(LINUX_DIR)/drivers/net/wireless/b43/b43.ko AUTOLOAD:=$(call AutoLoad,30,b43) endef $(eval $(call KernelPackage,net-default-b43)) -- Rafał _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel