On 1 Feb 2011, at 06:39, Shane Bryan wrote: > On Mon, Jan 31, 2011 at 05:37:51PM -0800, Rudolf Streif wrote: >> I am trying t build the pita Broadcom WL driver module on a MeeGo Netbook >> for which I built the image using meego-netbook-ia32-1.1.90.0.20110125.3.ks. >> When compiling the wl_linux.c it throws "implicit declaration of function >> 'init_MUTEX'". I installed the kernel headers and supposedly that macro is >> declared in semaphore.h. I built that driver on previous MeeGo Netbook >> releases but it won't compile on this one. I am not a kernel hacker, so if >> this is obvious, please forgive me. > > init_MUTEX was dropped in 2.6.37 kernel > > Grab the src.rpm from slain.org[1] and extract the Mutex and semaphore > patches from that (or, just use his rpm). > > Shane... > [1] http://slaine.org/_slaine/Meego_1.1_Wifi.html
Actually, now I remember why I didn't post the update for this last week. The kernel as it ships with the 1.1.90 builds is blocking the Broadcom driver from loading indirectly. In order to remove the init_MUTEX code from the driver you have to include the semaphore headers and use sema_init func in init_MUTEX's place. However, the kernel has lockdep rcu debugging enabled which is strictly GPL and by including the semaphore.h, including the inline code. When you try and load the Wl module, which doesn't specify a license type or if it does should be 'Mixed/Proprietary', it 'taints' the kernel which then unloads the module. I'm not sure if this is a recent addition to the kernels in the 1.1.90 builds as I think just patching the init_MUTEX function out of the driver worked ok on the 1.1.80 builds. A work around is to have the wl module report it's license as GPL, but I'm not prepared to ship a source rpm that makes those modifications as that's just not right. So, either the MeeGo trunk kernels turn off lockdep rcu debugs or we all spend time making the opensource BCM driver work on 2.6.37 Given the proliferation of BCM chipsets out there, this is something that should be addressed prior to the 1.2 release. -- Glen Gray <sla...@slaine.org> _______________________________________________ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev