Blaze MAC80211 Connectivity Ubuntu

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
#REDIRECT [[Blaze MAC80211 Connectivity Andriod]]
+
==Blaze MAC80211 Connectivity on 128x using Ubuntu FS==
 +
 
 +
===Summary===
 +
 
 +
L24.12
 +
 
 +
'''OS Kernel:'''  Linux® 2.6.35 <br>
 +
'''WLAN Firmware Version:'''  Rev 7.1.4.50.63 <br>
 +
 
 +
===Status===
 +
 
 +
* Current Version
 +
 
 +
L24.12
 +
 
 +
'''OS Kernel:'''  Linux® 2.6.35 <br>
 +
'''WLAN Firmware Version:'''  Rev 7.1.4.50.63 <br>
 +
 
 +
* Previous Versions
 +
 +
===Hardware information===
 +
 
 +
'''Hardware:'''  OMAP4 Blaze(ES 2.1) (with 1283 PG 2.21 Connectivity device)<br>
 +
 
 +
===Software:===
 +
====Downloads:====
 +
 +
* Current images:
 +
Follow instructions in [https://wiki.ubuntu.com/ARM/OMAPMaverickInstall Ubuntu FS] to create Ubuntu File System
 +
* Previous Releases:
 +
 
 +
===Release Notes===
 +
 
 +
===Build Procedure===
 +
====Compat-wireless approach====
 +
* Download r3.tar.bz and HOWTO files from [https://gforge.ti.com/gf/project/openlink/frs/ R3-Final release package]
 +
* Follow the instructions provided in HOWTO file
 +
* Download L24 kernel instead of Android kernel
 +
  L24 kernel can be found in [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git;a=summary Ubuntu kernel]
 +
  Branch: ti-ubuntu-L24.12
 +
 
 +
* Apply kernel patches as mentioned in the HOWTO file
 +
'''Note:''' git clone creates "kernel-ubuntu" directory, so use "kernel-ubuntu" where ever "omap"  mentioned in HOWTO file (As compat-wireless approach is meant for Andriod and git clone of Andriod kernel creates "omap" directory)
 +
 
 +
* Ubuntu kernel config debian.ti-omap4/config/config.common.ubuntu is located here: [http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git;a=blob;f=debian.ti-omap4/config/config.common.ubuntu;h=ada8736e845a401c9371c0afecc73d8cdf12c248;hb=refs/heads/ti-ubuntu-L24.12 config file]
 +
 
 +
* Changes in Linux configuration for building kernel
 +
''Disable following flags in the kernel configuration menu''
 +
CONFIG_TIWLAN_MMC_CONTROLLER=5
 +
CONFIG_TIWLAN_SDIO=y
 +
''Enable following flags in the kernel configuration menu''
 +
CONFIG_CRC7=m
 +
CONFIG_CRYPTO_AES=m
 +
CONFIG_CRYPTO_ARC4=m
 +
CONFIG_DYNAMIC_DEBUG=y
 +
CONFIG_LIB80211_DEBUG=y
 +
CONFIG_LIB80211=m
 +
CONFIG_MAC80211_DEBUGFS=y
 +
CONFIG_MAC80211_HAS_RC=y
 +
CONFIG_MAC80211_LEDS=y
 +
CONFIG_MAC80211=m
 +
CONFIG_MAC80211_RC_DEFAULT="minstrel"
 +
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
 +
CONFIG_MAC80211_RC_MINSTREL=y
 +
CONFIG_NL80211_TESTMODE=y
 +
CONFIG_RFKILL_INPUT=y
 +
CONFIG_RFKILL_PM=y
 +
CONFIG_WIRELESS_EXT_SYSFS=y
 +
CONFIG_WIRELESS=y
 +
CONFIG_WL1271=m
 +
CONFIG_WL1271_SDIO=m
 +
CONFIG_WL12XX=m
 +
CONFIG_WL12XX_PLATFORM_DATA=y
 +
CONFIG_WLAN=y
 +
 
 +
* Build L24 kernel and modules, copy uImage to SD card boot partition and install the modules
 +
 
 +
* Remove the default i.e wl1271.ko, wl1271_sdio.ko, mac80211.ko and cfg80211.ko modules.
 +
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/wl1271.ko
 +
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/wl1271_sdio.ko
 +
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/net/mac80211/mac80211.ko
 +
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/net/wireless/cfg80211.ko
 +
 
 +
'''Note:''' kernel-version will be something like 2.6.35.7+ and mmc2 is the SD card second partition.
 +
 
 +
* Build wl12xx driver in compat-wireless-2.6 directory as mentioned in HOWTO file
 +
'''Note:''' Include <linux/vmalloc.h> in compat/compat-2.6.37.c file to avoid compilation error.
 +
 
 +
* Copy the modules to SD card.
 +
sudo cp compat/compat.ko /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/
 +
sudo cp net/mac80211/mac80211.ko  /media/mmc2/lib/modules/kernel-version/kernel/net/mac80211/
 +
sudo cp net/wireless/cfg80211.ko /media/mmc2/lib/modules/kernel-version/kernel/net/wireless/
 +
sudo cp drivers/net/wireless/wl12xx/wl12xx_sdio.ko /media/mmc2/lib/modules/kernel-version/kernel
 +
/drivers/net/wireless/wl12xx/1271_sdio.ko
 +
sudo cp drivers/net/wireless/wl12xx/wl12xx.ko /media/mmc2/lib/modules/kernel-version/kernel/drivers
 +
/net/wireless/wl12xx/wl1271.ko
 +
 
 +
'''Note:''' ''wl12xx.ko and wl12xx_sdio.ko are renamed to wl1271.ko and wl1271_sdio.ko''
 +
 
 +
* Edit wl1271.ko and wl1271_sdio.ko entries in modules.dep file (/media/mmc2/lib/modules/kernel-version/modules.dep) to add compat.ko module into modules dependencies. wl1271.ko and wl1271_sdio.ko modules depend on compat.ko
 +
  kernel/drivers/net/wireless/wl12xx/wl1271.ko: kernel/net/mac80211/mac80211.ko kernel/net/wireless
 +
  /cfg80211.ko kernel/drivers/net/wireless/wl12xx/compat.ko
 +
  kernel/drivers/net/wireless/wl12xx/wl1271_sdio.ko: kernel/drivers/net/wireless/wl12xx/wl1271.ko
 +
  kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/drivers/net/wireless/wl12xx
 +
  /compat.ko
 +
 
 +
* Now kernel boot-up installs the required modules.
 +
  ''lsmod''
 +
  Module          Size    Used by
 +
  ecb            1659    0
 +
  wl12xx_sdio    4375    0
 +
  wl12xx          157477  1 wl12xx_sdio
 +
  mac80211        236135  1 wl12xx
 +
  cfg80211        129704  2 wl12xx,mac80211
 +
  omap_hsi        43666  0
 +
  compat          11855  2 mac80211,cfg80211
 +
 
 +
===Current known issues:===
 +
 
 +
* Performance results:
 +
* Errata:
 +
* Miscellaneous:
 +
* Support:
 +
* Links
 +
 
 +
[http://www.omappedia.org/wiki/OMAP_WiLink_Connectivity_Home Back to Connectivity Home Page]

Latest revision as of 11:57, 8 June 2011

Contents

[edit] Blaze MAC80211 Connectivity on 128x using Ubuntu FS

[edit] Summary

L24.12

OS Kernel: Linux® 2.6.35
WLAN Firmware Version: Rev 7.1.4.50.63

[edit] Status

L24.12

OS Kernel: Linux® 2.6.35
WLAN Firmware Version: Rev 7.1.4.50.63

[edit] Hardware information

Hardware: OMAP4 Blaze(ES 2.1) (with 1283 PG 2.21 Connectivity device)

[edit] Software:

[edit] Downloads:

Follow instructions in Ubuntu FS to create Ubuntu File System

[edit] Release Notes

[edit] Build Procedure

[edit] Compat-wireless approach

 L24 kernel can be found in Ubuntu kernel
 Branch: ti-ubuntu-L24.12

Note: git clone creates "kernel-ubuntu" directory, so use "kernel-ubuntu" where ever "omap" mentioned in HOWTO file (As compat-wireless approach is meant for Andriod and git clone of Andriod kernel creates "omap" directory)

Disable following flags in the kernel configuration menu
CONFIG_TIWLAN_MMC_CONTROLLER=5
CONFIG_TIWLAN_SDIO=y
Enable following flags in the kernel configuration menu
CONFIG_CRC7=m
CONFIG_CRYPTO_AES=m
CONFIG_CRYPTO_ARC4=m
CONFIG_DYNAMIC_DEBUG=y
CONFIG_LIB80211_DEBUG=y
CONFIG_LIB80211=m
CONFIG_MAC80211_DEBUGFS=y
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_LEDS=y
CONFIG_MAC80211=m
CONFIG_MAC80211_RC_DEFAULT="minstrel"
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_NL80211_TESTMODE=y
CONFIG_RFKILL_INPUT=y
CONFIG_RFKILL_PM=y
CONFIG_WIRELESS_EXT_SYSFS=y
CONFIG_WIRELESS=y
CONFIG_WL1271=m
CONFIG_WL1271_SDIO=m
CONFIG_WL12XX=m
CONFIG_WL12XX_PLATFORM_DATA=y
CONFIG_WLAN=y
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/wl1271.ko
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/wl1271_sdio.ko
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/net/mac80211/mac80211.ko
sudo rm /media/mmc2/lib/modules/kernel-version/kernel/net/wireless/cfg80211.ko

Note: kernel-version will be something like 2.6.35.7+ and mmc2 is the SD card second partition.

Note: Include <linux/vmalloc.h> in compat/compat-2.6.37.c file to avoid compilation error.

sudo cp compat/compat.ko /media/mmc2/lib/modules/kernel-version/kernel/drivers/net/wireless/wl12xx/
sudo cp net/mac80211/mac80211.ko  /media/mmc2/lib/modules/kernel-version/kernel/net/mac80211/
sudo cp net/wireless/cfg80211.ko /media/mmc2/lib/modules/kernel-version/kernel/net/wireless/
sudo cp drivers/net/wireless/wl12xx/wl12xx_sdio.ko /media/mmc2/lib/modules/kernel-version/kernel
/drivers/net/wireless/wl12xx/1271_sdio.ko
sudo cp drivers/net/wireless/wl12xx/wl12xx.ko /media/mmc2/lib/modules/kernel-version/kernel/drivers
/net/wireless/wl12xx/wl1271.ko

Note: wl12xx.ko and wl12xx_sdio.ko are renamed to wl1271.ko and wl1271_sdio.ko

 kernel/drivers/net/wireless/wl12xx/wl1271.ko: kernel/net/mac80211/mac80211.ko kernel/net/wireless
 /cfg80211.ko kernel/drivers/net/wireless/wl12xx/compat.ko
 kernel/drivers/net/wireless/wl12xx/wl1271_sdio.ko: kernel/drivers/net/wireless/wl12xx/wl1271.ko 
 kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/drivers/net/wireless/wl12xx
 /compat.ko
  lsmod 
  Module          Size    Used by
  ecb             1659    0
  wl12xx_sdio     4375    0
  wl12xx          157477  1 wl12xx_sdio
  mac80211        236135  1 wl12xx
  cfg80211        129704  2 wl12xx,mac80211
  omap_hsi        43666   0
  compat          11855   2 mac80211,cfg80211

[edit] Current known issues:

Back to Connectivity Home Page

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox