WiFi BT PLT - matianfu/survivor GitHub Wiki

Overview

PLT for Production Line Test

ti has a guide for command line tool for wl1271
http://processors.wiki.ti.com/index.php/OMAP35x_Wireless_Connectivity_WL1271_Command_Line_Interface_(CLI)_User%27s_Guide

Problem

There are source codes as well as Android.mk file in the following folder

<android_source_tree>/hardware/ti/wlan/wl1271/xxx  

but

make modules  

or

make TARGET_PRODUCT=xxxx OMAPES=4.x modules  

do NOT list the wlan_cu (CLI tool) in the module list.

This is due to a wrong device name macro comparison in Android.mk file in project local root folder

<android_source_tree>/hardware/ti/wlan/wl1271/Android.mk  

-- ifeq ($(BOARD_WLAN_DEVICE),wl1271)
++ ifeq ($(BOARD_WLAN_DEVICE),wl12xx_mac80211)

Save the file.

There is another problem after the above change. The build system complains with:

Module is attempting to use the 'user' tag  

Do a grep for LOCAL_MODULE_TAGS and it seems the 'user' tag has been deprecated in this version. Change it to 'optional' should be the cure but this will raise another problem:

*** hardware/ti/wlan/wl1271/config: MODULE.TARGET.ETC.dhcpcd.conf already defined by hardware/ti/wlan/mac80211/config.  Stop.  

No detailed investigation into the problem, but looks like the config under wl1271 folder are doing the same thing as the config under mac80211 folder. Or may be they are the same, just a copy and rename. Do diff them if you have time.

Now a workaround solution works. Rename the Android.mk under wl1271/config folder to something else, such as Android.mk.old and let the build system neglect this file.

Then finally we got wlan_cu, wlan_loader, libCustomWifi, libtiOsLib listed in make modules output.

Need further work.