This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beagle Bone AM335X and TiWi-5E

Other Parts Discussed in Thread: TPS65217, WL1271, AM3354

Hi 

I am using Beagle Bone (AM335X) with TiWi-5 wifi Module.With angstrom build i am able to bring up the WiFi.(http://dominion.thruhere.net/koen/angstrom/beaglebone/Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2013.03.27.img.xz)

Now i am trying to bring up the WiFi with Arago project from ti-sdk with kernel 3.2.0 and kernel configuration is tisdk_am335x-evm_defconfig. With this I have enabled the wl12xx drivers and built the kernel and modules..File System is is the targetNFS from ti-sdk.

and in board-am335x.c file i have changed the configuration for WiFi Enable, interrupt and mmc1 SDIO interface.

After boot up i can not see wlan0.(WLAN LED on TiWi-5E gets on for small duration).

Below is the GPIO pin Configuration.

/* Module pin mux for mmc1 */
static struct pinmux_config mmc1_common_pin_mux[] = {
{"gpmc_ad3.mmc1_dat3", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad2.mmc1_dat2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad0.mmc1_dat0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{NULL, 0},
};

static struct pinmux_config wl12xx_pin_mux[] = {

{"gpmc_ad4.gpio1_4", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP },//WLAN enable 
{"gpmc_ad7.gpio1_7", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT }, // IRQ
{"gpmc_ad12.gpio1_12", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP}, //BT enable
{NULL, 0},
};

#define AM335XEVM_WLAN_PMENA_GPIO GPIO_TO_PIN(1, 30)
#define AM335XEVM_WLAN_IRQ_GPIO GPIO_TO_PIN(1, 7)
#define AM335XEVM_SK_WLAN_IRQ_GPIO GPIO_TO_PIN(0, 31)

struct wl12xx_platform_data am335xevm_wlan_data = {
.irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO),
.board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */
.bt_enable_gpio = GPIO_TO_PIN(1, 12),
.wlan_enable_gpio = GPIO_TO_PIN(1, 4),
};

---------------------------------------------

Below is the Kernel logs

[ 0.907073] Board name: A335BONE
[ 0.910430] Board version: 00A6
[ 0.913726] The board is a AM335x Beaglebone.
[ 0.920532] tps65217 1-0024: TPS65217 ID 0xf version 1.1
[ 0.928192] print_constraints: DCDC1: 900 <--> 1800 mV at 1800 mV
[ 0.936798] print_constraints: DCDC2: 900 <--> 3300 mV at 1275 mV
[ 0.945373] print_constraints: DCDC3: 900 <--> 1500 mV at 1125 mV
[ 0.953887] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 0.962432] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 0.970886] print_constraints: LDO3: 1800 <--> 3300 mV at 3300 mV
[ 0.979431] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 0.986755] omap_hsmmc.0: alias fck already exists
[ 0.992279] omap_hsmmc.1: alias fck already exists
[ 0.997985] Configure Bluetooth Enable pin...
[ 1.004089] registered am33xx_sr device

.....

[ 1.487304] mmcblk0: mmc0:1234 SA04G 3.63 GiB
[ 1.494354] mmcblk0: p1 p2
[ 1.602966] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 1.621948] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.628540] mmc1: new SDIO card at address 0001
[ 4.459533] PHY: 0:00 - Link is Up - 100/Full
[ 4.498992] Sending DHCP requests ., OK

......

Starting udev
[ 7.745269] cfg80211: Calling CRDA to update world regulatory domain
[ 8.963928] wl1271: ERROR could not get nvs file: -2
[ 8.972412] wl1271: loaded
[ 9.089660] cfg80211: World regulatory domain updated:
[ 9.095184] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 9.103973] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.112243] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.120513] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.128784] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.137054] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.592071] EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.603668] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.686706] EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
[ 9.698059] EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1686: No soundcards found...
NOT configuring network interfaces: / is an NFS mount
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Dropbear SSH server: dropbear.
Starting telnet daemon.
Performing wifi calibration...
rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
Error: could not load module /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko: No such file or directory
Failed to load kernel module using command /sbin/insmod /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
Calibration not complete. Removing half-baked nvs
[ 12.046966] wl1271: ERROR could not get nvs file: -2
[ 12.055145] wl1271: loaded
Starting network benchmark server: netserver.
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: lighttpd.

-------------

Can anybody tell me is the ping configuration is correct or something wrong ?do i need to change the pin muxing in mux33xx.c ?.I tried to calibrate the module manually and  "calibrator plt calibrate" command just hangs.All the modules are loaded and ifconfig doesnot show wlan0.

root@am335x-evm:~# lsmod
Module Size Used by
g_mass_storage 37599 0
wl12xx_sdio 4612 0
wl12xx 160063 1 wl12xx_sdio
mac80211 258211 1 wl12xx
cfg80211 159059 2 mac80211,wl12xx


root@am335x-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:31:8B:39:6E
inet addr:172.16.40.138 Bcast:172.16.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:82338 errors:0 dropped:14113 overruns:0 frame:0
TX packets:13055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34147356 (32.5 MiB) TX bytes:2048216 (1.9 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:228 errors:0 dropped:0 overruns:0 frame:0
TX packets:228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39972 (39.0 KiB) TX bytes:39972 (39.0 KiB)

root@am335x-evm:~#

Can anybody tell me what is wrong and how to go further ?.Appreciate your responses.I am attaching board-am335x file and kernel.log

am335X_TiWi5.zip
  • Now after installing the build utilities SDIO read fails and  logs are attached.Also i am attaching dmesg for further reference.

    [ 8.129058] cfg80211: Calling CRDA to update world regulatory domain
    [ 8.706512] wl12xx: driver version: ol_R5.SP4.01-2-g1aa2c8e
    [ 8.712371] wl12xx: compilation time: Fri Sep 20 05:41:23 2013
    [ 9.027313] cfg80211: World regulatory domain updated:
    [ 9.032775] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 9.041564] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.049957] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 9.058227] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 9.066497] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.074798] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 10.455230] ------------[ cut here ]------------
    [ 10.460205] WARNING: at /home/skottary/work/download_thirdparty/TiWi5/build-utilites/compat-wireless/drivers/net/wireless/wl12xx/sdio.c:95 wl12xx_sdio_raw_read+0xd0/0x13c [wl12xx_sdio]()
    [ 10.478424] ---[ end trace 989b17a130e07024 ]---
    [ 10.483276] wl1271_sdio mmc1:0001:2: sdio read failed (-84)
    [ 10.494903] wl12xx: ERROR couldn't get hw info
    [ 10.503662] wl12xx_driver: probe of wl12xx failed with error -84

    ....

    Performing wifi calibration...
    rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
    [ 14.944519] ------------[ cut here ]------------
    [ 14.949401] WARNING: at /home/skottary/work/download_thirdparty/TiWi5/build-utilites/compat-wireless/drivers/net/wireless/wl12xx/sdio.c:95 wl12xx_sdio_raw_read+0xd0/0x13c [wl12xx_sdio]()
    [ 14.967773] ---[ end trace 989b17a130e07025 ]---
    [ 14.972625] wl1271_sdio mmc1:0001:2: sdio read failed (-84)
    [ 14.979583] wl12xx: ERROR couldn't get hw info
    [ 14.984466] wl12xx_driver: probe of wl12xx failed with error -84
    Fail to set PLT power mode on
    Calibration not complete. Removing half-baked nvs
    [ 17.045318] ------------[ cut here ]------------
    [ 17.050201] WARNING: at /home/skottary/work/download_thirdparty/TiWi5/build-utilites/compat-wireless/drivers/net/wireless/wl12xx/sdio.c:95 wl12xx_sdio_raw_read+0xd0/0x13c [wl12xx_sdio]()
    [ 17.068572] ---[ end trace 989b17a130e07026 ]---
    [ 17.073425] wl1271_sdio mmc1:0001:2: sdio read failed (-84)
    [ 17.080352] wl12xx: ERROR couldn't get hw info
    [ 17.085418] wl12xx_driver: probe of wl12xx failed with error -84

  • Hi Also

    I have attached the log after enabling the mmc_debug.Not able to understand what is interrupt message.

    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320159] mmc1: starting CMD52 arg 83fff801 flags 00000195
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320159] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x83fff801
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320190] omap_hsmmc omap_hsmmc.1: IRQ Status is 1
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320190] mmc1: req done (CMD52): 0: 00001001 00000000 00000000 00000000
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320220] mmc1: starting CMD53 arg 279c6804 flags 000001b5
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320251] mmc1: blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320281] omap_hsmmc omap_hsmmc.1: mmc1: CMD53, argument 0x279c6804
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320312] omap_hsmmc omap_hsmmc.1: IRQ Status is 208003
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 12.320312] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x208003 : CC TC ERRI DCRC
    Jul 4 23:05:14 am335x-evm user.debug kernel: [ 13.684570] mmc1: req done (CMD53): 0: 00001000 00000000 00000000 00000000

     Sunil 

  • Hi Sunil,

    Sorry for late reply.

    Messages regarding to the wl1271-nvs.bin is not important. It simply means that such file doesn't exist (which is absolutely normal since it never exist in the first place) and calibrator needs to generate a new one.

    However, cannot find the wl12xx_sdio.ko means that you either didn't place this file in the correct directory or you didn't compile the driver correctly to generate such file. Did you follow the instruction on our driver building page?

    Lastly, in your second and third post, your MMC didn't seem to configured correctly. Please double check your configuration (both HW and SW). Here's some info from our wiki page.

  • Hi Sunil,

    Have you tried the latest sitara SDK (v6.0 - see http://www.ti.com/tool/linuxezsdk-sitara)?

    It already includes the board file modifications for beagle bone.

    br,

    Kobi

  • Hi Victor

    Yes I followed the driver build page and below is the message observed and still not able to wlan0 working.

    [ 1.481811] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [ 1.668395] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [ 1.691711] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.700866] mmc1: new SDIO card at address 0001
    [ 4.444519] PHY: 0:00 - Link is Up - 100/Full
    [ 4.483978] Sending DHCP requests ., OK
    [ 4.524383] VFS: Mounted root (nfs filesystem) on device 0:14.
    [ 4.530883] Freeing init memory: 232K
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such device
    Starting udev
    [ 7.395965] Disabling lock debugging due to kernel taint
    [ 8.527709] cfg80211: Calling CRDA to update world regulatory domain
    [ 8.704254] wl12xx: driver version: ol_R5.SP4.01-2-g1aa2c8e
    [ 8.710083] wl12xx: compilation time: Fri Sep 20 05:41:23 2013
    [ 8.754028] mmc1: mmc_power_restore_host: powering up
    [ 9.102233] cfg80211: World regulatory domain updated:
    [ 9.107696] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 9.116424] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.124694] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 9.132965] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 9.141448] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.149719] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.185760] mmc1: mmc_power_save_host: powering down
    [ 9.224151] wl12xx: ERROR could not get nvs file ti-connectivity/wl1271-nvs.bin: -2
    [ 9.235321] wl12xx: loaded

    Performing wifi calibration...
    rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
    [ 13.040435] wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    [ 14.414031] wl1271_sdio: probe of mmc1:0001:2 failed with error -110
    Fail to set PLT power mode on
    Calibration not complete. Removing half-baked nvs
    [ 15.868347] wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    [ 17.241485] wl1271_sdio: probe of mmc1:0001:2 failed with error -110

    dmesg after unloding the driver and loading once again

    root@am335x-evm:/lib/firmware/ti-connectivity# dmesg
    [ 204.901275] omap_hsmmc omap_hsmmc.1: context was not lost
    [ 204.901306] omap_hsmmc omap_hsmmc.1: enabled
    [ 204.901336] mmc1: starting CMD52 arg 80022000 flags 00000195
    [ 204.901336] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80022000
    [ 204.901367] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    [ 204.901397] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    [ 206.265625] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [ 206.266296] wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    [ 206.272979] mmc1: starting CMD52 arg 80042000 flags 00000195
    [ 206.272979] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80042000
    [ 206.273010] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    [ 206.273010] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    [ 207.637268] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [ 207.641632] wl1271_sdio: probe of mmc1:0001:2 failed with error -110
    [ 207.734893] omap_hsmmc omap_hsmmc.1: disabled
    [ 301.329254] cfg80211: Calling CRDA to update world regulatory domain
    [ 301.391601] wl12xx: driver version: ol_R5.SP4.01-2-g1aa2c8e
    [ 301.397460] wl12xx: compilation time: Fri Sep 20 05:41:23 2013
    [ 301.480651] cfg80211: World regulatory domain updated:
    [ 301.486114] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 301.494842] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 301.503112] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 301.511383] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 301.519744] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 301.528015] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 311.241851] omap_hsmmc omap_hsmmc.1: context was not lost
    [ 311.241882] omap_hsmmc omap_hsmmc.1: enabled
    [ 311.241912] mmc1: starting CMD52 arg 80022000 flags 00000195
    [ 311.241912] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80022000
    [ 311.241943] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    [ 311.241973] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    [ 312.606201] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [ 312.606933] wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    [ 312.613586] mmc1: starting CMD52 arg 80042000 flags 00000195
    [ 312.613616] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80042000
    [ 312.613647] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    [ 312.613647] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    [ 313.977905] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [ 313.982147] wl1271_sdio: probe of mmc1:0001:2 failed with error -110

    -----------------------------------------------------------------------------------------------------------------------------------

    Also i have another build without WL12xx_NLCP_Build(ti sdk 6 nfs and drivers installed from the kernel 3.2) which shows wlan0 for ifconfig -a

    [ 1.461669] mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz

    [ 1.648376] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [ 1.671722] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [ 1.680877] mmc1: new SDIO card at address 0001
    [ 4.424530] PHY: 0:00 - Link is Up - 100/Full
    [ 4.463958] Sending DHCP requests ., OK
    [ 4.494506] VFS: Mounted root (nfs filesystem) on device 0:14.
    [ 4.501007] Freeing init memory: 232K
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such device
    Starting udev
    [ 8.441925] cfg80211: Calling CRDA to update world regulatory domain
    [ 9.558563] wl1271: ERROR could not get nvs file: -2
    [ 9.566802] wl1271: loaded
    [ 9.967529] cfg80211: World regulatory domain updated:
    [ 9.972900] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 9.981689] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 9.989959] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 9.998229] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 10.006500] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 10.014770] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

    Performing wifi calibration...
    rm: can't remove '/lib/firmware/ti-connectivity/wl1271-nvs.bin': No such file or directory
    Error: could not load module /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko: No such file or directory
    Failed to load kernel module using command /sbin/insmod /lib/modules/3.2.0-g30df33e-dirty/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko
    Calibration not complete. Removing half-baked nvs
    [ 13.014160] wl1271: ERROR could not get nvs file: -2
    [ 13.022308] wl1271: loaded

    root@am335x-evm:~# ifconfig -a

    eth0 Link encap:Ethernet HWaddr 00:18:31:8B:39:6E
    inet addr:172.16.40.156 Bcast:172.16.40.255 Mask:255.255.255.0
    UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
    RX packets:27108 errors:0 dropped:507 overruns:0 frame:0
    TX packets:12599 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:27417088 (26.1 MiB) TX bytes:2007324 (1.9 MiB)

    eth1 Link encap:Ethernet HWaddr 00:18:31:8B:39:6F
    BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@am335x-evm:~# modprobe wl12xx_sdio
    [ 453.052886] wl1271: loaded
    root@am335x-evm:~#
    root@am335x-evm:~#
    root@am335x-evm:~#
    root@am335x-evm:~# dmesg
    [ 453.024871] omap_hsmmc omap_hsmmc.1: context was not lost
    [ 453.024902] omap_hsmmc omap_hsmmc.1: enabled
    [ 453.024932] mmc1: starting CMD52 arg 80022000 flags 00000195
    [ 453.024932] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80022000
    [ 453.024963] omap_hsmmc omap_hsmmc.1: IRQ Status is 1
    [ 453.024993] mmc1: req done (CMD52): 0: 00001000 00000000 00000000 00000000
    [ 453.026947] mmc1: starting CMD52 arg 80022202 flags 00000195
    [ 453.026977] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80022202
    [ 453.027008] omap_hsmmc omap_hsmmc.1: IRQ Status is 1
    [ 453.027038] mmc1: req done (CMD52): 0: 00001002 00000000 00000000 00000000
    [ 453.027130] mmc1: starting CMD52 arg 80042000 flags 00000195
    [ 453.027160] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80042000
    [ 453.027160] omap_hsmmc omap_hsmmc.1: IRQ Status is 1
    [ 453.027191] mmc1: req done (CMD52): 0: 00001000 00000000 00000000 00000000
    [ 453.027221] mmc1: starting CMD52 arg 80042202 flags 00000195
    [ 453.027221] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80042202
    [ 453.027252] omap_hsmmc omap_hsmmc.1: IRQ Status is 1
    [ 453.027282] mmc1: req done (CMD52): 0: 00001002 00000000 00000000 00000000
    [ 453.050140] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050170] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050201] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050201] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050231] cfg80211: Updating information on frequency 2422 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050231] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050262] cfg80211: Updating information on frequency 2427 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050262] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050262] cfg80211: Updating information on frequency 2432 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050292] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050292] cfg80211: Updating information on frequency 2437 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050323] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050323] cfg80211: Updating information on frequency 2442 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050354] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050354] cfg80211: Updating information on frequency 2447 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050384] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050384] cfg80211: Updating information on frequency 2452 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050415] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050415] cfg80211: Updating information on frequency 2457 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050445] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050445] cfg80211: Updating information on frequency 2462 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050476] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050476] cfg80211: Updating information on frequency 2467 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050506] cfg80211: 2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 453.050506] cfg80211: Updating information on frequency 2472 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050506] cfg80211: 2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 453.050537] cfg80211: Updating information on frequency 2484 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050537] cfg80211: 2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 453.050567] cfg80211: Disabling freq 5035 MHz
    [ 453.050567] cfg80211: Disabling freq 5040 MHz
    [ 453.050567] cfg80211: Disabling freq 5045 MHz
    [ 453.050598] cfg80211: Disabling freq 5055 MHz
    [ 453.050598] cfg80211: Disabling freq 5060 MHz
    [ 453.050598] cfg80211: Disabling freq 5080 MHz
    [ 453.050598] cfg80211: Disabling freq 5170 MHz
    [ 453.050628] cfg80211: Updating information on frequency 5180 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050628] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050659] cfg80211: Updating information on frequency 5190 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050659] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050689] cfg80211: Updating information on frequency 5200 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050689] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050720] cfg80211: Updating information on frequency 5210 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050720] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050720] cfg80211: Updating information on frequency 5220 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050750] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050750] cfg80211: Updating information on frequency 5230 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050781] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050781] cfg80211: Updating information on frequency 5240 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050811] cfg80211: 5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050811] cfg80211: Disabling freq 5260 MHz
    [ 453.050811] cfg80211: Disabling freq 5280 MHz
    [ 453.050842] cfg80211: Disabling freq 5300 MHz
    [ 453.050842] cfg80211: Disabling freq 5320 MHz
    [ 453.050842] cfg80211: Disabling freq 5500 MHz
    [ 453.050872] cfg80211: Disabling freq 5520 MHz
    [ 453.050872] cfg80211: Disabling freq 5540 MHz
    [ 453.050872] cfg80211: Disabling freq 5560 MHz
    [ 453.050872] cfg80211: Disabling freq 5580 MHz
    [ 453.050903] cfg80211: Disabling freq 5600 MHz
    [ 453.050903] cfg80211: Disabling freq 5620 MHz
    [ 453.050903] cfg80211: Disabling freq 5640 MHz
    [ 453.050903] cfg80211: Disabling freq 5660 MHz
    [ 453.050933] cfg80211: Disabling freq 5680 MHz
    [ 453.050933] cfg80211: Disabling freq 5700 MHz
    [ 453.050933] cfg80211: Updating information on frequency 5745 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050964] cfg80211: 5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050964] cfg80211: Updating information on frequency 5765 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.050994] cfg80211: 5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.050994] cfg80211: Updating information on frequency 5785 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.051025] cfg80211: 5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.051025] cfg80211: Updating information on frequency 5805 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.051025] cfg80211: 5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.051055] cfg80211: Updating information on frequency 5825 MHz for a 20 MHz width channel with regulatory rule:
    [ 453.051055] cfg80211: 5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 453.052886] wl1271: loaded
    [ 453.125152] omap_hsmmc omap_hsmmc.1: disabled

    If i copy reference nvs file and load the driver once again drivers gets loaded and after this ifconfig -a shows mac address configured in the nvs file.

    root@am335x-evm:~# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:18:31:8B:39:6E
    inet addr:172.16.40.156 Bcast:172.16.40.255 Mask:255.255.255.0
    UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
    RX packets:36684 errors:0 dropped:2216 overruns:0 frame:0
    TX packets:13449 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:28492039 (27.1 MiB) TX bytes:2137170 (2.0 MiB)

    eth1 Link encap:Ethernet HWaddr 00:18:31:8B:39:6F
    BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    wlan0 Link encap:Ethernet HWaddr 00:18:31:8B:39:6D
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    Below error while bringing up the wlan0

    root@am335x-evm:~# ifconfig wlan0 up
    [ 558.515106] mmc1: mmc_power_restore_host: powering up
    [ 558.933349] wl1271: ERROR could not get firmware: -2
    [ 558.941406] mmc1: mmc_power_save_host: powering down
    [ 558.975067] mmc1: mmc_power_restore_host: powering up
    [ 559.389648] wl1271: ERROR could not get firmware: -2
    [ 559.397583] mmc1: mmc_power_save_host: powering down
    [ 559.425079] mmc1: mmc_power_restore_host: powering up
    [ 559.839660] wl1271: ERROR could not get firmware: -2
    [ 559.847564] mmc1: mmc_power_save_host: powering down
    [ 559.853820] wl1271: ERROR firmware boot failed despite 3 retries
    ifconfig: SIOCSIFFLAGS: No such file or directory

  • Hi Kobi

    Yes I am using the the SDK 6.0.They have support for mmc2 and i am trying for mmc1.I have not tried configuring TiWi% module in mmc2

    Sunil Kottary    

  • Hi Victor

    I had sent you the replay and now i could not find it did u get it.When i load thesdio test driver below is the message i am getting

    root@am335x-evm:~# insmod wl12xx_sdio_test.ko
    [ 137.039306] mmc1: mmc_power_restore_host: powering up
    [ 137.274688] mmc1: mmc_power_restore_host: powering up
    [ 137.675720] wl1271: chip id 0x4030111 (1271 PG20)
    [ 137.696716] wl1271: ERROR could not get firmware: -2
    [ 137.701965] wl12xx_sdio_test mmc1:0001:2: firmware fetch error
    [ 137.711120] mmc1: mmc_power_save_host: powering down
    [ 137.718078] wl12xx_sdio_test: probe of mmc1:0001:2 failed with error -2
    [ 137.725250] mmc1: mmc_power_save_host: powering down

    and i am trying to bring up the wlan0 getting below message

    root@am335x-evm:~# ifconfig wlan0 up
    [ 81.274719] mmc1: mmc_power_restore_host: powering up
    [ 81.690612] wl1271: ERROR could not get firmware: -2
    [ 81.698547] mmc1: mmc_power_save_host: powering down
    [ 81.705291] mmc1: mmc_power_save_host: powering down
    [ 81.734680] mmc1: mmc_power_restore_host: powering up
    [ 82.150115] wl1271: ERROR could not get firmware: -2
    [ 82.158050] mmc1: mmc_power_save_host: powering down
    [ 82.164306] mmc1: mmc_power_save_host: powering down
    [ 82.184692] mmc1: mmc_power_restore_host: powering up
    [ 82.599243] wl1271: ERROR could not get firmware: -2
    [ 82.607177] mmc1: mmc_power_save_host: powering down
    [ 82.613464] wl1271: ERROR firmware boot failed despite 3 retries

    What firmware does it looking for ?

  • Hi Sunil,

    It's looking for the following firmwares: https://github.com/TI-OpenLink/firmwares

    If you read through and follow the build script, you should be getting these files.

  • Hi Victor

    Good News is i am able to bring up the wlan0 .Initially i tried to use wl12xx drivers from 3.2 kernel and did not work.

    Then i installed the drivers by folllowing the instruction from below link  http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions

    one issue i faced is the wl1271-nvs.bin file which has a size of 1113 bytes .But the driver is looking for 912 byte file and because of this nvs file firmware is not download and wlan0 was not up.

    So i replaced the WL1271-nvs.bin downloaded from ti and the wlan0 is up without any issue but iw dev wlan0 scan was not giving any result.

    So debugged further and found TiWi5 uses WL1273 chip and ref clock has to be 26MHz..After this change iw was able to detect the WiFi networks.

    For the platform changes i had every thing correct then i went and referred angstrom patch for beagle bone for mmc1 to work with WL12XX.

    This is the Working pin mux forbeagle Bone with TiWi5 (Refereed angstrom patch).Can anybody tell me why ad11 works ?

    /* Module pin mux for mmc1 */
    static struct pinmux_config mmc1_common_pin_mux[] = {
    {"gpmc_ad0.mmc1_dat0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad2.mmc1_dat2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad11.mmc1_dat3", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {NULL, 0},
    };

    below are the 2 mmc1 configurations does not work

    /* Module pin mux for mmc1 */
    static struct pinmux_config mmc1_common_pin_mux[] = {
    {"gpmc_ad8.mmc1_dat0", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad9.mmc1_dat1", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad10.mmc1_dat2", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad11.mmc1_dat3", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {NULL, 0},
    };

    /* Module pin mux for mmc1 */

    static struct pinmux_config mmc1_common_pin_mux[] = {
    {"gpmc_ad0.mmc1_dat0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad2.mmc1_dat2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_ad3.mmc1_dat3", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
    {NULL, 0},
    };

    Sunil 

  • Hi Victor

    Now i a trying Bluetooth and could not find any devices.Getting "Initialization timedout" message

    [ 235.780975] Bluetooth: Core ver 2.16
    [ 235.784881] NET: Registered protocol family 31
    [ 235.789581] Bluetooth: HCI device and connection manager initialized
    [ 235.796234] Bluetooth: HCI socket layer initialized
    [ 235.801330] Bluetooth: L2CAP socket layer initialized
    [ 235.806640] Bluetooth: SCO socket layer initialized
    [ 237.478698] Gpio value is :44
    [ 237.492584] WL1271: BT Enable
    [ 246.932403] Bluetooth: RFCOMM TTY layer initialized
    [ 246.937591] Bluetooth: RFCOMM socket layer initialized
    [ 246.942962] Bluetooth: RFCOMM ver 1.11


    root@am335x-evm:/usr/share/wl1271-demos/bluetooth/scripts# ./BT_Demo.sh
    Starting BT Demo .......

    /*
    * #################################################
    * Cleaning BT
    * #################################################
    */

    [ 619.125000] WL1271: BT Disable


    !!!!!!!!!!! Start from the MAIN MENU !!!!!!!!!!!!!!!!!

    /*
    * #################################################
    * Initialize BT
    * #################################################
    */

    [ 620.547332] Gpio value is :44
    [ 620.563201] WL1271: BT Enable
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_7.6.15.bts
    Loaded BTS script version 1
    texas: changing baud rate to 3000000, flow control to 1

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    1 - BT Scan Remote Devices
    2 - BT Get capabilities of Remote Device
    3 - OPP Test
    4 - FTP Test
    5 - HID Test
    6 - HSP Test
    7 - A2DP Test
    8 - AVRCP Test
    9 - Pair Remote Device
    10 - Unpair Remote Device
    11 - Exit Without BT Shut Down
    12 - Exit With BT Shut Down
    ====> Initialization timed out.
    1

    /*
    * ########### BT-Scan #############
    * Scan for the remote BT devices
    * #################################
    */

    Device is not available: No such device

    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    MAIN NENU
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    1 - BT Scan Remote Devices
    2 - BT Get capabilities of Remote Device
    3 - OPP Test
    4 - FTP Test
    5 - HID Test
    6 - HSP Test
    7 - A2DP Test
    8 - AVRCP Test
    9 - Pair Remote Device
    10 - Unpair Remote Device
    11 - Exit Without BT Shut Down
    12 - Exit With BT Shut Down

  • Hi SUNIL,

    It looks like your system cannot find the the BTS file (at least I don't see it in the log) so BT cannot initialize. Can you provide the log of what was shown prior to this?

    And did you follow the bottom section of this wiki page to build the BT driver and acquire the necessary BTS files?

  • Hi Victor

    Now i am am able transfer data between Beagle-bone EVM and Bluetooth devices.I think by default bts file TIInit_7.6.15.bts supports the baud rate of 3000000 .After running the Bt_demo.sh which tries to connect with UART with baudrate of 3000000  as shown below

    hciattach /dev/ttyO1 texas 3000000 &

    this did not work properly and showing device not found message.

    Then we changed the bts file which supports 115200 baudrate from lsr which works fine.

    How can we change the baudrate in bts file ?.I need to increase the data rate presently i am getting a data rate of 10KB/s.is there any to where we can edit the BTS file(similar to calibrator where we can edit the mac add in nvs file)

    Sunil

  • Hi Victror

    I am refreing this site https://github.com/TI-ECS/bt-firmware which has TIInit_7.6.15.bts and file size is 50.5kB

    Also https://github.com/TI-ECS/bt-firmware/tree/master/am335x which has TIInit_7.6.15.bts and file size is 46kb

    Can you tell me what are the difference and supported baudrate

    I followed the instructions in http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Build_Instructions

    which resulted in the BTS file of size 11KB. Wondering what are the changes 

    Sunil 

  • Hi Victor

    i have both WLAN and BT working and i am not able to do calibration.Below is the command used and followed the instruction from below link

    http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Process

    calibrator plt autocalibrate wlan0 /lib/modules/3.2.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko /lib/firmware/ti-connectivity/ini_files/127x/TQS_D_1.7.ini /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00

    [59931.491119] wl1271_sdio: probe of mmc1:0001:1 failed with error -110

    [59932.862792] wl1271_sdio: probe of mmc1:0001:2 failed with error -110
    Fail to set PLT power mode on
    Calibration not complete. Removing half-baked nvs
    root@am335x-evm:/lib/firmware/ti-connectivity# Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125701] omap_hsmmc omap_hsmmc.1: context was not lost
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125732] omap_hsmmc omap_hsmmc.1: enabled
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125762] mmc1: starting CMD52 arg 80022000 flags 00000195
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125762] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80022000
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125793] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59930.125823] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59931.490051] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    Jul 11 03:27:19 am335x-evm user.warn kernel: [59931.491119] wl1271_sdio: probe of mmc1:0001:1 failed with error -110
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59931.497833] mmc1: starting CMD52 arg 80042000 flags 00000195
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59931.497863] omap_hsmmc omap_hsmmc.1: mmc1: CMD52, argument 0x80042000
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59931.497863] omap_hsmmc omap_hsmmc.1: IRQ Status is 38000
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59931.497894] omap_hsmmc omap_hsmmc.1: MMC IRQ 0x38000 : ERRI CTO CCRC
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59932.862121] mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    Jul 11 03:27:19 am335x-evm user.warn kernel: [59932.862792] wl1271_sdio: probe of mmc1:0001:2 failed with error -110
    Jul 11 03:27:19 am335x-evm user.debug kernel: [59932.953186] omap_hsmmc omap_hsmmc.1: disabled

    2).I am able to create a reference nvs file using below command and how can write BT BD address to nvs file?

    calibrator set ref_nvs /lib/firmware/ti-connectivity/ini_files/127x/TQS_D_1.7.ini wl1271-nvs.bin

    above reference nvs file has default mac address 0b:ad:de:ad:be:ef  .I want to use the mac address fused to the chip.

  • Hi Sunil,

    Can you please double check if you have the wl127x-fw-4-plt.bin file under your firmware folder?

    Another thing is that this BeagleBone cape isn't supported by TI directly. Instead, You'd probably want to checkout the BeagleBoard.org forum to get more info.

  • Hi Victor

    it does exist.Can you get me the answer for previour 2 questions regarding the BT ?

    root@sunil-evm:/lib/firmware/ti-connectivity# ls -ltr
    drwxrwxr-x 5 1000 1000 4096 Sep 30 2013 ini_files
    -rwxrwxr-x 1 1000 1000 283856 Sep 30 2013 wl128x-fw-multirole-roc.bin
    -rwxrwxr-x 1 1000 1000 271064 Sep 30 2013 wl128x-fw-multirole-plt.bin
    -rwxrwxr-x 1 1000 1000 376288 Sep 30 2013 wl128x-fw-4-sr.bin
    -rwxrwxr-x 1 1000 1000 375008 Sep 30 2013 wl128x-fw-4-plt.bin
    -rwxrwxr-x 1 1000 1000 360228 Sep 30 2013 wl128x-fw-4-mr.bin
    -rwxrwxr-x 1 1000 1000 365796 Sep 30 2013 wl127x-fw-4-sr.bin
    -rwxrwxr-x 1 1000 1000 364836 Sep 30 2013 wl127x-fw-4-plt.bin
    -rwxrwxr-x 1 1000 1000 354896 Sep 30 2013 wl127x-fw-4-mr.bin
    -rwxrwxr-x 1 1000 1000 912 Sep 30 2013 wl1271-nvs_working.bin
    -rw-rw-r-- 1 1000 1000 1113 Sep 30 2013 wl1271-nvs-org.bin
    -rwxrwxr-x 1 1000 1000 279504 Sep 30 2013 wl1271-fw-multirole-roc.bin
    -rwxrwxr-x 1 1000 1000 266772 Sep 30 2013 wl1271-fw-multirole-plt.bin
    -rw-rw-r-- 1 1000 1000 2319 Sep 30 2013 LICENCE
    -rw-rw-r-- 1 1000 1000 1615 Sep 30 2013 Android.mk
    -rw------- 1 root root 912 Oct 3 2013 wl1271-nvs.bin

  • Hi Sunil,

    Setting the MAC address to 00:00:00:00:00:00 during auto-calibration will let the calibrator to assign MAC address from BT address.

    And the only difference between the two BTS files is BLE support. The one under https://github.com/TI-ECS/bt-firmware supports BLE, whereas the one under https://github.com/TI-ECS/bt-firmware/tree/master/am335x does not.

    The bts files you got form the build script should be identical to on the github because it is where the script fetches those from. Here's an extraction from the script.

  • Hi  

    I am using AM3354 and running linux 3.2 kernel. I am using arago matrix gui files under my rootfs. i would like to use gnome for running my xorg .

    Please let us know the compatible gnome version. 

    Thanks,

    Lofna

  • Hi Sunil,

    I get the same error (sdio read failed (-84)).

    I can't find that error in your later posts. So, could you please explain how you fixed that.


    Thanks

    Björn