<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5238</bug_id>
          
          <creation_ts>2013-09-19 16:08:27 +0000</creation_ts>
          <short_desc>generic-x86 image does not have broadcom wifi modules enabled</short_desc>
          <delta_ts>2013-11-04 13:29:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Razvan Ionescu">razvanx.ionescu</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>laurentiu.palcu</cc>
    
    <cc>mihai.lindner</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36996</commentid>
    <comment_count>0</comment_count>
    <who name="Razvan Ionescu">razvanx.ionescu</who>
    <bug_when>2013-09-19 16:08:27 +0000</bug_when>
    <thetext>Environment:
Lenovo S10-3 - AtomPC
Generic-x86 image
Build: 1.5_M5_RC4

poky 853bc53cd58a621918f0e5ce662dba263d1befb4
meta-intel 66def4d09cbdf1614622a7ab1d84bef312b5f55d

Issueing lspci command, I obtain:
09:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

But: iwconfig returns:
sit0      no wireless extensions.
lo        no wireless extensions.
eth0      no wireless extensions.

Please add the wifi module in generic-x86 image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37141</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-09-24 18:56:36 +0000</bug_when>
    <thetext>I added some kernel config options for broadcom wifi drivers into genericx86 BSP. that should resolve the issue. The fix is being sent to linux-yocto ML for review.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37497</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-02 20:10:26 +0000</bug_when>
    <thetext>A kernel commit went in to fix this:

commit 37c617df7e61b200d8e8aebbd6c450e21a4d6e80
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Tue Sep 24 18:31:45 2013 +0000

    common-pc-wifi.cfg: add support for broadcom wifi drivers
    
    This enables broadcom wifi driver modules for the common-pc(-64)
    machines.
    
    Fixes Bug:
    [YOCTO #5238]
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37501</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-02 20:17:03 +0000</bug_when>
    <thetext>This is the oecore commit pulling in the kernel fixes:

commit 41875facc982f1c96a5ddf275adba1634b1a5ced
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Wed Sep 25 15:30:12 2013 -0400

    linux-yocto/3.10: common-pc* config updates
    
    Bumping the 3.10 meta branch SRCREV to import the following config changes
    for tghe sugarbay and common-pc wifi fragments.
    
       dad2b7e common-pc-64: add kernel CONFIG options for sugarbay platform
       37c617d common-pc-wifi.cfg: add support for broadcom wifi drivers
    
    [YOCTO #5117]
    [YOCTO #5238]
    
    (From OE-Core rev: 180f465b0cab13e17dc92ac5c88d7d9001cd5b11)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37541</commentid>
    <comment_count>4</comment_count>
    <who name="Razvan Ionescu">razvanx.ionescu</who>
    <bug_when>2013-10-03 12:01:05 +0000</bug_when>
    <thetext>Verified with: dora:a02280f99f05b1c21de2a78de9222a2f62a0dabc (1.5 M5 RC6)
which contains the &quot;fixing&quot; commit, but unfortunately the bug still appears.

I tried to issue iwconfig wlan0 - iwconfig wlan10 and each time I obtained: No such device.
I now that the wifi is turned on (using the button), but in terminal I cannot see any result.

Also, lspci command returns the same result as in the bug description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37579</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-03 16:03:17 +0000</bug_when>
    <thetext>I do not have the h/w to test here. I have enabled all the broadcom wifi drivers in the kernel. Do you know what kernel driver is needed for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37582</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-03 16:16:18 +0000</bug_when>
    <thetext>Do you see, this file on the target image?

brcmfmac.ko

Also check if it is getting loaded by command

lsmod

And check weather this command makes any difference?

modprobe brcmfmac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37595</commentid>
    <comment_count>7</comment_count>
    <who name="Razvan Ionescu">razvanx.ionescu</who>
    <bug_when>2013-10-04 06:33:41 +0000</bug_when>
    <thetext>Thanks for your info.

The file exists. It is not loaded by default, but it is loaded after lsmod.
But, the wifi still does not work as expected. No wlan0 or any other wifi interface name turns on.

Do you still have any suggestions?

sh-4.2# pwd
/
sh-4.2# find ./ -name brcmfmac.ko
./lib/modules/3.10.11-yocto-standard/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
sh-4.2# lsmod
Module                  Size  Used by
xt_connmark             1511  2 
iptable_nat             2294  0 
nf_conntrack_ipv4      11367  3 
nf_defrag_ipv4          1069  1 nf_conntrack_ipv4
nf_nat_ipv4             3175  1 iptable_nat
nf_nat                 13395  2 nf_nat_ipv4,iptable_nat
nf_conntrack           60071  5 nf_nat,nf_nat_ipv4,xt_connmark,iptable_nat,nf_conntrack_ipv4
iptable_mangle          1339  1 
iptable_filter          1302  0 
ip_tables               9646  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               13518  4 ip_tables,iptable_filter,xt_connmark,iptable_mangle
nfnetlink               4137  1 
r8169                  53427  0 
uvesafb                23049  0 

sh-4.2# modprobe brcmfmac

sh-4.2# lsmod
Module                  Size  Used by
brcmfmac              112297  0 
brcmutil                5500  1 brcmfmac
cfg80211              368682  1 brcmfmac
xt_connmark             1511  2 
iptable_nat             2294  0 
nf_conntrack_ipv4      11367  3 
nf_defrag_ipv4          1069  1 nf_conntrack_ipv4
nf_nat_ipv4             3175  1 iptable_nat
nf_nat                 13395  2 nf_nat_ipv4,iptable_nat
nf_conntrack           60071  5 nf_nat,nf_nat_ipv4,xt_connmark,iptable_nat,nf_conntrack_ipv4
iptable_mangle          1339  1 
iptable_filter          1302  0 
ip_tables               9646  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               13518  4 ip_tables,iptable_filter,xt_connmark,iptable_mangle
nfnetlink               4137  1 
r8169                  53427  0 
uvesafb                23049  0 

sh-4.2# iwconfig
sit0      no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.

sh-4.2# iwconfig wlan0
wlan0     No such device</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37651</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-04 19:02:16 +0000</bug_when>
    <thetext>check dmesg. 
try loading brcmutil.ko also
If this does not work, then we do not have a working kernel driver for the wifi chip in the kernel tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37676</commentid>
    <comment_count>9</comment_count>
    <who name="Razvan Ionescu">razvanx.ionescu</who>
    <bug_when>2013-10-07 12:32:46 +0000</bug_when>
    <thetext>Nothing relevant in dmesg. I have loaded the suggested module, but the result is the same.
I tried also to connect to wifi using a USB WiFi Modem, but w/o success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37723</commentid>
    <comment_count>10</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2013-10-07 19:37:15 +0000</bug_when>
    <thetext>can this bug assigned to a developer who has access to the h/w ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38060</commentid>
    <comment_count>11</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-10-18 16:36:46 +0000</bug_when>
    <thetext>Work with Darren on this if needed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38109</commentid>
    <comment_count>12</comment_count>
      <attachid>1572</attachid>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-21 13:26:30 +0000</bug_when>
    <thetext>Created attachment 1572
linux-yocto: meta patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38110</commentid>
    <comment_count>13</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-21 13:29:01 +0000</bug_when>
    <thetext>Apparently, Broadcom IEEE802.11n PCIe SoftMAC WLAN driver (BRCMSMAC) depends on Broadcom AMBA bus driver too (BCMA) which is not built in the current kernel. With the following kernel config fragment I was able to make WLAN work on lenovo s10-3:

CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211_WEXT=y
CONFIG_BRCMSMAC=m
CONFIG_BCMA=m
CONFIG_BCMA_HOST_PCI_POSSIBLE=y
CONFIG_BCMA_HOST_PCI=y
CONFIG_BCMA_DRIVER_GMAC_CMN=y
CONFIG_CRC8=m
CONFIG_CORDIC=m

These should be added to meta/cfg/kernel-cache/bsp/common-pc/common-pc-wifi.cfg in linux-yocto repo. I attached the patch to this bug:

https://bugzilla.yoctoproject.org/attachment.cgi?id=1572</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38308</commentid>
    <comment_count>14</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-10-30 14:00:18 +0000</bug_when>
    <thetext>Patch sent on linux-yocto ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38459</commentid>
    <comment_count>15</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-11-04 13:29:04 +0000</bug_when>
    <thetext>Merged to master:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=baf005b0a566908dadb1eacb9e72e16972a95fcb</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1572</attachid>
            <date>2013-10-21 13:26:30 +0000</date>
            <delta_ts>2013-10-21 13:26:30 +0000</delta_ts>
            <desc>linux-yocto: meta patch</desc>
            <filename>0001-common-pc-wifi-add-missing-dependencies-for-BRCMSMAC.patch</filename>
            <type>text/plain</type>
            <size>1013</size>
            <attacher name="Laurentiu Palcu">laurentiu.palcu</attacher>
            
              <data encoding="base64">RnJvbSA2ODc0ZjJlNmYzMjQ0ZmFkZjA2OGM2OGExMmE3MzliZmFiZTA3ODYzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMYXVyZW50aXUgUGFsY3UgPGxhdXJlbnRpdS5wYWxjdUBpbnRl
bC5jb20+CkRhdGU6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