<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to enable bcm4329 wifi? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194662#M10201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is bcm4329 driver/firmware exist under ..'hardware/broadcom'.&lt;BR /&gt;It seems support different hw port.&amp;nbsp;Is&amp;nbsp;there a programing gudie document about it?&lt;BR /&gt;Does anybody has experience to build and enable wifi on imx51 android solution throung SDIO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2011 02:57:56 GMT</pubDate>
    <dc:creator>Ching</dc:creator>
    <dc:date>2011-12-12T02:57:56Z</dc:date>
    <item>
      <title>How to enable bcm4329 wifi?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194662#M10201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is bcm4329 driver/firmware exist under ..'hardware/broadcom'.&lt;BR /&gt;It seems support different hw port.&amp;nbsp;Is&amp;nbsp;there a programing gudie document about it?&lt;BR /&gt;Does anybody has experience to build and enable wifi on imx51 android solution throung SDIO?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 02:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194662#M10201</guid>
      <dc:creator>Ching</dc:creator>
      <dc:date>2011-12-12T02:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable bcm4329 wifi?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194663#M10202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1)wifi based on BCM4329 module should be connected to sdio interface on i.mx51.&lt;/P&gt;&lt;P&gt;(2)Compile wifi driver from Broadcom and get a &amp;nbsp;.ko file(such as dhd.ko).&lt;/P&gt;&lt;P&gt;(3)Open&amp;nbsp;nvram.txt and modify crystal (for example,&amp;nbsp;you use 38.4MHz on hardware,then xtalfreq=38400)&lt;/P&gt;&lt;P&gt;(4)copy dhd.ko to /opt/nfsroot/system/lib/modules&lt;/P&gt;&lt;P&gt;(5)copy sdio-bcm4329-dhd.bin(firmware) and nvram.txt to /opt/nfsroot/system/lib/modules&lt;/P&gt;&lt;P&gt;(6)enter ~/android22/kernel_imx/drivers/mmc/core and find sdio.c file&lt;/P&gt;&lt;P&gt;search whether there is the following function, if not , please search it on website(google)&lt;/P&gt;&lt;P&gt;int sdio_reset_comm(struct mmc_card *card)&lt;BR /&gt;{&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;EXPORT_SYMBOL(sido_reset_comm);&lt;/P&gt;&lt;P&gt;(7)configure linux kernel&lt;/P&gt;&lt;P&gt;a. choose Device driver--&amp;gt;Network driver support--&amp;gt;Wireless LAN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*]Wireless Lan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*]IEEE802.11 For Host AP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*]Support downloading firmware images with host AP driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] Support for non-volatile firmware download&lt;/P&gt;&lt;P&gt;b.choose Networking support--&amp;gt;Wireless&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] old wireless static regulatory definitions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] wireless extensions sysfs files&lt;/P&gt;&lt;P&gt;(8) load driver&lt;/P&gt;&lt;P&gt;#/system/bin/insmod /system/lib/modules/dhd.ko "firmware_path=/system/etc/wifi/sdio-bcm4329-dhd.bin&lt;BR /&gt;nvram_path=/system/etc/wifi/nvram.txt"&lt;/P&gt;&lt;P&gt;The following will display :&lt;/P&gt;&lt;P&gt;/#DHD: dongle ram size is set to 294912(orig 294912)&lt;BR /&gt;Firmware version = wl0: Aug 11 2010 13:21:15 version 4.218.243.1&lt;BR /&gt;eth1: Broadcom Dongle Host Driver mac=00:26:37:a4:f7:e7&lt;BR /&gt;Enter wl_control_wl_start&lt;BR /&gt;Exited wl_control_wl_start&lt;/P&gt;&lt;P&gt;&amp;lt;-------How to debug wifi on linux command line --------------------&amp;gt;&lt;/P&gt;&lt;P&gt;customer can use "wireless-tools" to debug wifi network. this tool can be downloaded from internet. after compliling, some tools can be got :&lt;/P&gt;&lt;P&gt;frename iwconfig iwevent iwgetid iwlist iwpriv iwspy&lt;/P&gt;&lt;P&gt;**Use "iwconfig" to set AP ( router)&lt;/P&gt;&lt;P&gt;#iwconfig eth1 mode Managed&lt;BR /&gt;#iwconfig eth1 key 1234567890&lt;BR /&gt;#iwconfig eth1 key open&lt;BR /&gt;#iwconfig eth1 essid TP-LINK_432F1A&lt;/P&gt;&lt;P&gt;**Get DHCP Address&lt;/P&gt;&lt;P&gt;#/system/bin/dhcpcd eth1&lt;/P&gt;&lt;P&gt;**Search AP&lt;/P&gt;&lt;P&gt;#iwlist eth1 scan&lt;/P&gt;&lt;P&gt;Cell 01 - Address: 00:23:CD:43:2F:1A&lt;BR /&gt;ESSID:"TP-LINK_432F1A"&lt;BR /&gt;Cell 02 - Address: 00:23:CD:5D:56:66&lt;BR /&gt;ESSID:"TP-LINK_789"&lt;/P&gt;&lt;P&gt;******Customer can also use "wpa_supplicant" to test BCM4329"&lt;/P&gt;&lt;P&gt;A. Configure&amp;nbsp;wpa_supplicant.conf file&lt;/P&gt;&lt;P&gt;Open /opt/nfsroot/system/etc/wifi/wpa_supplicant.conf and add the following lines:&lt;/P&gt;&lt;P&gt;ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant GROUP=wifi&lt;/P&gt;&lt;P&gt;ap_scan=1&lt;/P&gt;&lt;P&gt;update_config=1&lt;/P&gt;&lt;P&gt;B. Run wpa_supplicant service by back&lt;/P&gt;&lt;P&gt;#/system/bin/wpa_supplicant -B -Dwext -ieth1 -c/data/misc/wifi/wpa_supplicant.conf&lt;/P&gt;&lt;P&gt;C. Run wpa_cli to connect AP&lt;/P&gt;&lt;P&gt;# wpa_cli –i eth1&lt;BR /&gt;&amp;gt;add_network&lt;BR /&gt;0&lt;BR /&gt;&amp;gt; set_network 0 ssid "TP-LINK_432F1A"&lt;BR /&gt;OK&lt;BR /&gt;&amp;gt; set_network 0 wep_key2 "1234567890"&lt;BR /&gt;OK&lt;BR /&gt;&amp;gt; enable_network 0&lt;BR /&gt;OK&lt;/P&gt;&lt;P&gt;&amp;gt;q&lt;/P&gt;&lt;P&gt;****************************For android2.2 based on i.mx51******************************&lt;/P&gt;&lt;P&gt;(1) Adjust init.rc file&lt;/P&gt;&lt;P&gt;At position "prepare for wifi", to add:&lt;/P&gt;&lt;P&gt;（1）在prepare for wifi 处添加目录并修改权限&lt;BR /&gt;setprop wifi.interface eth1&lt;BR /&gt;mkdir /data/misc/wifi/sockets 0777 wifi wifi&lt;BR /&gt;mkdir /data/misc/dhcp 0777 dhcp dhcp&lt;BR /&gt;mkdir /data/misc/wifi 0777 wifi wifi&lt;BR /&gt;mkdir /system/etc/wifi 0777 wifi wifi&lt;BR /&gt;mkdir /data/system/wpa_supplicant 0771 wifi wifi&lt;BR /&gt;mkdir /data/misc/wifi/wpa_supplicant 0771 wifi wifi&lt;BR /&gt;chmod 0777 /data/misc&lt;BR /&gt;chmod 0777 /data/misc/wifi&lt;BR /&gt;chmod 0777 /data/misc/wifi/wpa_supplicant.conf&lt;BR /&gt;chmod 0771 /system/etc/wifi&lt;BR /&gt;chmod 0777 /system/etc/wifi/wpa_supplicant.conf&lt;BR /&gt;chmod 0777 /data/system/wpa_supplicant&lt;BR /&gt;chmod 0777 /data/misc/wifi/wpa_supplicant&lt;BR /&gt;chmod 0777 /system/etc/dhcpcd&lt;BR /&gt;chmod 0777 /system/etc/dhcpcd/dhcpcd-hooks&lt;BR /&gt;chown wifi wifi data/system/wpa_supplicant&lt;BR /&gt;chown wifi wifi /system/etc/wifi/wpa_supplicant.conf&lt;BR /&gt;chown dhcp dhcp /data/misc/dhcp&lt;BR /&gt;chown wifi wifi /data/misc/wifi/wpa_supplicant&lt;BR /&gt;chown dhcp dhcp /system/etc/dhcpcd&lt;BR /&gt;chown dhcp dhcp /system/etc/dhcpcd/dhcpcd-hooks&lt;/P&gt;&lt;P&gt;(2)Modify wpa_supplicant and DHCP service&lt;/P&gt;&lt;P&gt;service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -d -B -Dwext -ieth1 -c/data/misc/wifi/wpa_supplicant.conf&lt;/P&gt;&lt;P&gt;user root&lt;BR /&gt;group wifi inet&lt;BR /&gt;socket wpa_eth1 dgram 777 wifi wifi&lt;BR /&gt;disable&lt;BR /&gt;oneshot&lt;/P&gt;&lt;P&gt;service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d -B eth1&lt;BR /&gt;user root&lt;BR /&gt;group system dhcp wifi&lt;BR /&gt;disabled&lt;BR /&gt;oneshot&lt;/P&gt;&lt;P&gt;(3)modify HAL for wifi .&lt;/P&gt;&lt;P&gt;Open android/hardware/libhardware_legacy/wifi/wifi.c and add:&lt;/P&gt;&lt;P&gt;#ifndef WIFI_DRIVER_MODULE_PATH&lt;BR /&gt;#define WIFI_DRIVER_MODULE_PATH "/system/lib/modules/dhd.ko"&lt;BR /&gt;#endif&lt;BR /&gt;#ifndef WIFI_DRIVER_MODULE_NAME&lt;/P&gt;&lt;P&gt;#define WIFI_DRIVER_MODULE_NAME "dhd"&lt;BR /&gt;#endif&lt;BR /&gt;#ifndef WIFI_DRIVER_MODULE_ARG&lt;BR /&gt;#define WIFI_DRIVER_MODULE_ARG "firmware_path=/system/etc/wifi/sdio-bcm4329-dhd.bin&lt;BR /&gt;nvram_path=/system/etc/wifi/nvram.txt"&lt;BR /&gt;#endif&lt;BR /&gt;#ifndef WIFI_FIRMWARE_LOADER&lt;BR /&gt;#define WIFI_FIRMWARE_LOADER ""&lt;BR /&gt;#endif&lt;BR /&gt;#define WIFI_TEST_INTERFACE "eth1"&lt;BR /&gt;#define WIFI_DRIVER_LOADER_DELAY 5000000&lt;/P&gt;&lt;P&gt;static const char IFACE_DIR[] = "/mywifi";/*这里填一个不存在的文件目录*/&lt;BR /&gt;static const char DRIVER_MODULE_NAME[] = WIFI_DRIVER_MODULE_NAME;&lt;BR /&gt;static const char DRIVER_MODULE_TAG[] = WIFI_DRIVER_MODULE_NAME " ";&lt;BR /&gt;static const char DRIVER_MODULE_PATH[] = WIFI_DRIVER_MODULE_PATH;&lt;BR /&gt;static const char DRIVER_MODULE_ARG[] = WIFI_DRIVER_MODULE_ARG;&lt;BR /&gt;static const char FIRMWARE_LOADER[] = WIFI_FIRMWARE_LOADER;&lt;BR /&gt;static const char DRIVER_PROP_NAME[] = "wlan.driver.status";&lt;BR /&gt;static const char SUPPLICANT_NAME[] = "wpa_supplicant";&lt;BR /&gt;static const char SUPP_PROP_NAME[] = "init.svc.wpa_supplicant";&lt;BR /&gt;static const char SUPP_CONFIG_TEMPLATE[]= "/system/etc/wifi/wpa_supplicant.conf";&lt;BR /&gt;static const char SUPP_CONFIG_FILE[] = "/data/misc/wifi/wpa_supplicant.conf";&lt;BR /&gt;static const char MODULE_FILE[] = "/proc/modules";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(4) modify android/device/fsl/imx51_bbg/BoardConfig.mk file&lt;/P&gt;&lt;P&gt;BOARD_WPA_SUPPLICANT_DRIVER := WEXT&lt;BR /&gt;HAVE_CUSTOM_WIFI_DRIVER_2 :=false&lt;BR /&gt;WIFI_DRIVER_MODULE_PATH := /system/lib/modules/dhd.ko&lt;BR /&gt;WIFI_DRIVER_MODULE_NAME :=”dhd”&lt;BR /&gt;WIFI_DRIVER_MODULE_ARG :=”firmware_path=/system/etc/wifi/ sdio-bcm4329-dhd.bin nvram_path=/system/etc/wifi/nvram.txt”&lt;/P&gt;&lt;P&gt;(5)modify frameworks/base/wifi/java/android/net/wifi/WifiStateTracker.java file&lt;/P&gt;&lt;P&gt;mInterfaceName = SystemProperties.get("wifi.interface", "tiwlan0");&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;mInterfaceName = SystemProperties.get("wifi.interface", "eth1");&lt;/P&gt;&lt;P&gt;(6)modify android/build/target/board/generic/system.prop&lt;/P&gt;&lt;P&gt;add : wifi.interfae=eth1&lt;/P&gt;&lt;P&gt;(7)modify android/external/wpa_supplicant/wpa_supplicant.conf :&lt;/P&gt;&lt;P&gt;ctrl_interface=eth1&lt;/P&gt;&lt;P&gt;update_config=1&lt;/P&gt;&lt;P&gt;ap_scan=1&lt;/P&gt;&lt;P&gt;(8) configure AP and delete password .&lt;/P&gt;&lt;P&gt;(9) compile android source code.&lt;/P&gt;&lt;P&gt;(10) That is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it seems very complex , acturally it is not difficult.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 13:40:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194663#M10202</guid>
      <dc:creator>wigros_sun</dc:creator>
      <dc:date>2011-12-12T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable bcm4329 wifi?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194664#M10203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wondering (outloud) if you got this working on your system....Any tips &amp;amp; pitfalls would be MUCH appreciated!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 21:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-bcm4329-wifi/m-p/194664#M10203</guid>
      <dc:creator>mbp</dc:creator>
      <dc:date>2013-05-20T21:10:37Z</dc:date>
    </item>
  </channel>
</rss>

