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.

Unable to calibrate WL1273L - fail with radio status -90



I am unable to run the calibration process on a TiWi5 (WL1273L) based design.  Calibration fails with the error message:

Fail to calibrate ith radio status (-90)

I get the same error on all of my prototype boards.  The boards appear to work fine otherwise.  I am able to connect to both 2.4GHz and 5GHz networks and transfer data without any apparent problems.

The boards are based on the DM368 running the IPNC 5.1.0 code base (2.6.37 kernel) plus the compat-wireless drivers built using the tools at github.com/TI-ECS/build-utilities.git.  I set gen_tag in wl12xx_build.sh to ol_R5.SP7.01.  I have tried this with and without the additional patches listed on LSR's TiWi5 support page.  I have also tried replacing two of the WiFi modules with parts from different lots but always get the same error.

Thank you for your assistance,

-Carl

  • Hi Carl,

    Please ensure you are following the steps mentioned in: processors.wiki.ti.com/.../WL12xx_NLCP_Calibration_Process (rmmod wl12xx_sdio, ini file, etc).

    Also, please share the complete logs.

    Regards,
    Gigi Joseph.
  • Hi Gigi Joseph,

    Sorry if I wasn't clear - yes I followed the calibration process.  The logs are below along with the steps I used to try to calibrate the module.  I've tried using both the .ini file supplied by LSR and the one from TI that comes with ti-utils.  I have also tried various manual calibration steps.  Notice that it succeeds with single band calibration but not dual.

    Thank you,

    -Carl

    DM36x initialization passed!
    TI UBL Version: 1.51
    Booting Catalog Boot Loader
    BootMode = NAND
    Starting NAND Copy...
    Valid magicnum, 0xA1ACED66, found in block 0x00000019.
       DONE
    Jumping to entry point at 0x81080000.
    
    
    U-Boot 2010.12-rc2-00000-g665ae7d (Jan 20 2015 - 18:08:06)
    
    Cores: ARM 432 MHz
    DDR:   340 MHz
    I2C:   ready
    DRAM:  128 MiB
    NAND:  256 MiB
    MMC:   davinci: 0
    Bad block table found at page 131008, version 0x01
    Bad block table found at page 130944, version 0x01
    Net:   Ethernet PHY: GENERIC @ 0x00
    DaVinci-EMAC
    Hit any key to stop autoboot:  0 
    
    Loading from nand0, offset 0x400000
       Image Name:   Linux-2.6.37_SVI_DM368_5.1.0
       Created:      2015-02-02  23:03:15 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3684160 Bytes = 3.5 MiB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting kernel from Legacy Image at 80700000 ...
       Image Name:   Linux-2.6.37_SVI_DM368_5.1.0
       Created:      2015-02-02  23:03:15 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3684160 Bytes = 3.5 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    [    0.000000] Linux version 2.6.37_SVI_DM368_5.1.0 (carl@ubuntu) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Mon Feb 2 17:03:15 CST 2015
    [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    [    0.000000] CPU: VIVT data cache, VIVT instruction cache
    [    0.000000] Machine: DM368 SVI Cam
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] DaVinci dm36x_rev1.2 variant 0x8
    [    0.000000] On node 0 totalpages: 12288
    [    0.000000] free_area_init_node: node 0, pgdat c0387170, node_mem_map c03a6000
    [    0.000000]   DMA zone: 96 pages used for memmap
    [    0.000000]   DMA zone: 0 pages reserved
    [    0.000000]   DMA zone: 12192 pages, LIFO batch:1
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
    [    0.000000] Kernel command line: console=ttyS0,115200n8 eth=2a:05:66:4c:28:81 ip=off noinitrd rw rootfstype=ubifs ubi.mtd=3,2048 root=ubi0:rootfs ubi.mtd=4,2048 mem=48M cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm debug LOGLEVEL=7
    [    0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 2a:05:66:4c:28:81
    [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Memory: 48MB = 48MB total
    [    0.000000] Memory: 44944k/44944k available, 4208k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     DMA     : 0xff000000 - 0xffe00000   (  14 MB)
    [    0.000000]     vmalloc : 0xc3800000 - 0xfea00000   ( 946 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xc3000000   (  48 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .init : 0xc0008000 - 0xc002b000   ( 140 kB)
    [    0.000000]       .text : 0xc002b000 - 0xc0361000   (3288 kB)
    [    0.000000]       .data : 0xc0362000 - 0xc038b740   ( 166 kB)
    [    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptable hierarchical RCU implementation.
    [    0.000000]  RCU-based detection of stalled CPUs is disabled.
    [    0.000000]  Verbose stalled-CPUs detection is disabled.
    [    0.000000] NR_IRQS:245
    [    0.000000] Console: colour dummy device 80x30
    [    0.000300] Calibrating delay loop... 215.44 BogoMIPS (lpj=1077248)
    [    0.240071] pid_max: default: 32768 minimum: 301
    [    0.240310] Security Framework initialized
    [    0.240525] Mount-cache hash table entries: 512
    [    0.241389] CPU: Testing write buffer coherency: ok
    [    0.243106] devtmpfs: initialized
    [    0.246217] DaVinci: 8 gpio irqs
    [    0.246895] NET: Registered protocol family 16
    [    0.247015] MUX: initialized INT_EDMA_CC
    [    0.267958] MUX: initialized UART1_TXD
    [    0.267998] MUX: initialized UART1_RXD
    [    0.289470] MUX: initialized INT_EMAC_RXTHRESH
    [    0.289513] MUX: initialized INT_EMAC_RXPULSE
    [    0.289537] MUX: initialized INT_EMAC_TXPULSE
    [    0.289560] MUX: initialized INT_EMAC_MISCPULSE
    [    0.291397] SVI: Configuring WiFi
    [    0.391895] MUX: initialized GPIO31
    [    0.391941] MUX: initialized INT_PRTCSS_GIO1
    [    0.392734] MUX: initialized INT_PRTCSS_GIO0
    [    0.392775] MUX: initialized GPIO28
    [    0.392807] MUX: initialized GPIO27
    [    0.392830] MUX: initialized GPIO88_85
    [    0.392854] MUX: initialized INT_PRTCSS
    [    0.464969] bio: create slab <bio-0> at 0
    [    0.469907] SCSI subsystem initialized
    [    0.474354] usbcore: registered new interface driver usbfs
    [    0.475759] usbcore: registered new interface driver hub
    [    0.476691] usbcore: registered new device driver usb
    [    0.482042] vpss vpss: dm365_vpss vpss probed
    [    0.482102] vpss vpss: dm365_vpss vpss probe success
    [    0.490009] Switching to clocksource timer0_1
    [    0.579427] NET: Registered protocol family 2
    [    0.579736] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.580832] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    [    0.580972] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.581061] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.581091] TCP reno registered
    [    0.581132] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.581195] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.581725] NET: Registered protocol family 1
    [    0.651856] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    0.655602] msgmni has been set to 87
    [    0.659739] io scheduler noop registered (default)
    [    0.661887] CSL: Module install successful, device major num = 253 
    [    0.661933] CSL: Module version 0.10.00, built on Feb  2 2015 16:50:26 
    [    0.661986] I2C: Module install successful, device major num = 252 
    [    0.662031] DMA: Module install successful, device major num = 251 
    [    0.662061] DRV: Module install successful
    [    0.662086] DRV: Module built on Feb  2 2015 16:50:28 
    [    0.662112] DRV: EDMACC.QUEPRI  = 00002777
    [    0.662134] DRV: SYSTEM.MSTPRI0 = 00440011
    [    0.662156] DRV: SYSTEM.MSTPRI1 = 00000444
    [    0.662177] DRV: ISP.BCR        = 00000002
    [    0.662199] DRV: SYSTEM.MISC    = 00000399
    [    0.662223] EDMAK module: built on Feb  2 2015 at 16:50:11
    [    0.662252]   Reference Linux version 2.6.37
    [    0.662277]   File /home/carl/sviCam/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
    [    0.664108] IRQK module: built on Feb  2 2015 at 16:50:10
    [    0.664156]   Reference Linux version 2.6.37
    [    0.664182]   File /home/carl/sviCam/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
    [    0.666041] irqk initialized
    [    0.667887] CMEMK module: built on Feb  2 2015 at 16:50:09
    [    0.667938]   Reference Linux version 2.6.37
    [    0.667965]   File /home/carl/sviCam/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    [    0.673324] allocated heap buffer 0xc4000000 of size 0x5000000
    [    0.673366] heap fallback enabled - will try heap if pool buffer is not available
    [    0.673407] CMEM Range Overlaps Kernel Physical - allowing overlap
    [    0.673442] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
    [    0.673590] cmemk initialized
    [    0.673647] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.771441] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    [    1.371213] console [ttyS0] enabled
    [    1.431324] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
    [    1.473065] brd: module loaded
    [    1.483250] ONFI flash detected
    [    1.486534] ONFI param page 0 valid
    [    1.490414] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xaa (Micron NAND 256MiB 1,8V 8-bit)
    [    1.499457] Bad block table found at page 131008, version 0x01
    [    1.506020] Bad block table found at page 130944, version 0x01
    [    1.512572] Creating 5 MTD partitions on "davinci_nand.0":
    [    1.518107] 0x000000000000-0x0000003c0000 : "bootloader"
    [    1.528602] 0x0000003c0000-0x000000400000 : "env"
    [    1.538548] 0x000000400000-0x000000800000 : "kernel"
    [    1.548834] 0x000000800000-0x000008000000 : "rootfs"
    [    1.559692] 0x000008000000-0x000010000000 : "nandfs"
    [    1.570664] davinci_nand davinci_nand.0: controller rev. 2.3
    [    1.579637] UBI: attaching mtd3 to ubi0
    [    1.583838] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    1.590311] UBI: logical eraseblock size:    126976 bytes
    [    1.595731] UBI: smallest flash I/O unit:    2048
    [    1.600559] UBI: sub-page size:              512
    [    1.605196] UBI: VID header offset:          2048 (aligned 2048)
    [    1.611296] UBI: data offset:                4096
    [    2.241620] UBI: max. sequence number:       10
    [    2.261767] UBI: attached mtd3 to ubi0
    [    2.265540] UBI: MTD device name:            "rootfs"
    [    2.270735] UBI: MTD device size:            120 MiB
    [    2.275718] UBI: number of good PEBs:        960
    [    2.280448] UBI: number of bad PEBs:         0
    [    2.284911] UBI: number of corrupted PEBs:   0
    [    2.289362] UBI: max. allowed volumes:       128
    [    2.294051] UBI: wear-leveling threshold:    4096
    [    2.298771] UBI: number of internal volumes: 1
    [    2.303290] UBI: number of user volumes:     1
    [    2.307748] UBI: available PEBs:             0
    [    2.312245] UBI: total number of reserved PEBs: 960
    [    2.317138] UBI: number of PEBs reserved for bad PEB handling: 9
    [    2.323203] UBI: max/mean erase counter: 2/0
    [    2.327485] UBI: image sequence number:  1299503027
    [    2.332456] UBI: background thread "ubi_bgt0d" started, PID 406
    [    2.338449] UBI: attaching mtd4 to ubi1
    [    2.342364] UBI: physical eraseblock size:   131072 bytes (128 KiB)
    [    2.348648] UBI: logical eraseblock size:    126976 bytes
    [    2.354102] UBI: smallest flash I/O unit:    2048
    [    2.358820] UBI: sub-page size:              512
    [    2.363496] UBI: VID header offset:          2048 (aligned 2048)
    [    2.369516] UBI: data offset:                4096
    [    3.033770] UBI: max. sequence number:       68
    [    3.053880] UBI: attached mtd4 to ubi1
    [    3.057653] UBI: MTD device name:            "nandfs"
    [    3.062841] UBI: MTD device size:            128 MiB
    [    3.067822] UBI: number of good PEBs:        1020
    [    3.072650] UBI: number of bad PEBs:         4
    [    3.077107] UBI: number of corrupted PEBs:   0
    [    3.081621] UBI: max. allowed volumes:       128
    [    3.086251] UBI: wear-leveling threshold:    4096
    [    3.091026] UBI: number of internal volumes: 1
    [    3.095483] UBI: number of user volumes:     1
    [    3.099932] UBI: available PEBs:             0
    [    3.104430] UBI: total number of reserved PEBs: 1020
    [    3.109411] UBI: number of PEBs reserved for bad PEB handling: 10
    [    3.115562] UBI: max/mean erase counter: 2/1
    [    3.119846] UBI: image sequence number:  -736151582
    [    3.124817] UBI: background thread "ubi_bgt1d" started, PID 409
    [    3.180117] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
    [    3.186332] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [    3.196058] davinci_mdio.0: probed
    [    3.199508] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver Micrel KS8001 or KS8721
    [    3.208177] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver Micrel KS8001 or KS8721
    [    3.219540] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    3.229835] rtc-pcf85063 1-0051: chip found, driver version 1.0
    [    3.237564] rtc-pcf85063 1-0051: rtc core: registered rtc-pcf85063 as rtc0
    [    3.245290] i2c /dev entries driver
    [    3.251386] Linux media interface: v0.10
    [    3.256053] Linux video capture interface: v2.00
    [    3.263115] vpbe-osd vpbe-osd: OSD sub device probe success
    [    3.269588] vpbe-venc vpbe-venc: VENC sub device probe success
    [    3.276161] vpbe_display_init
    [    3.279292] vpbe_display_probe
    [    3.282789] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
    [    3.288538] vpbe-venc: venc_set_ntsc
    [    3.292238] vpbe-venc: venc_enabledigitaloutput
    [    3.296836] Setting default output to Composite
    [    3.301520] Setting default mode to ntsc
    [    3.305470] vpbe-venc: venc_set_ntsc
    [    3.309062] vpbe-venc: venc_enabledigitaloutput
    [    3.313708] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    3.320506] vpbe-v4l2 vpbe-v4l2: layer=c294f200,layer->video_dev=c294f2e8
    [    3.328385] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
    [    3.335320] vpbe-v4l2 vpbe-v4l2: layer=c2943400,layer->video_dev=c29434e8
    [    3.343370] Successfully completed the probing of vpbe v4l2 device
    [    3.350453] vpbe_display_init:VPBE V4L2 Display Driver V1.0 loaded
    [    3.356890] watchdog watchdog: heartbeat 60 sec
    [    3.364321] TI Davinci ADC v1.1
    [    3.379554] Registered led device: led-red
    [    3.384763] Registered led device: led-green
    [    3.390025] Registered led device: led-usr0
    [    3.395201] Registered led device: led-usr1
    [    3.400607] Registered led device: led-usr2
    [    3.405631] Registered led device: led-usr3
    [    3.411847] nf_conntrack version 0.5.0 (702 buckets, 2808 max)
    [    3.419840] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.425629] TCP cubic registered
    [    3.428895] NET: Registered protocol family 17
    [    3.443710] rtc-pcf85063 1-0051: setting system clock to 2015-02-03 08:49:49 UTC (1422953389)
    [    3.554885] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [    3.561024] UBIFS: file system size:   82407424 bytes (80476 KiB, 78 MiB, 649 LEBs)
    [    3.568708] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
    [    3.576090] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    3.581983] UBIFS: default compressor: lzo
    [    3.586097] UBIFS: reserved for root:  0 bytes (0 KiB)
    [    3.593359] VFS: Mounted root (ubifs filesystem) on device 0:13.
    [    3.601526] devtmpfs: mounted
    [    3.604682] Freeing init memory: 140K
    INIT: version 2.86 booting
    [    4.160650] UBIFS: mounted UBI device 1, volume 0, name "nandfs"
    [    4.166694] UBIFS: file system size:   126468096 bytes (123504 KiB, 120 MiB, 996 LEBs)
    [    4.174728] UBIFS: journal size:       6348800 bytes (6200 KiB, 6 MiB, 50 LEBs)
    [    4.182116] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [    4.187964] UBIFS: default compressor: lzo
    [    4.192125] UBIFS: reserved for root:  4952683 bytes (4836 KiB)
    Starting mounting local filesystems: mount mount: mounting /dev/root on / failed: No such file or directory
    mount: mounting tmpfs on /dev/shm failed: No such file or directory
    mount: mounting /dev/mmcblk0p1 on /mnt/mmc/ipnc failed: No such file or directory
     failed (3: ).
    Starting internet superserver: inetd.
    insmod: can't read '/opt/ipnc/modules/deflate.ko': No such file or directory
    insmod: can't read '/opt/ipnc/modules/mmc_core.ko': No such file or directory
    insmod: can't read '/opt/ipnc/modules/mmc_block.ko': No such file or directory
    [    4.983033] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    [    4.990284] SVI: Turning WiFi power on
    [    5.000295] davinci_mmc davinci_mmc.1: Using DMA, 4-bit mode
    [    5.186535] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    5.198022] Loading iSCSI transport class v2.0-870.
    [    5.217515] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    5.240848] mmc1: new SDIO card at address 0001
    [    5.246286] SVI: Turning WiFi power off
    [    5.522413] iscsi: registered transport (tcp)
    [    5.605770] musb-hdrc: version 6.0, peripheral, debug=0
    insmod: error inserting '/opt/ipnc/modules/davinci.ko': -1 No such device
    [    5.801979] loop: module loaded
    [    5.872380] tun: Universal TUN/TAP device driver, 1.6
    [    5.877461] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [    5.932921] console [netcon0] enabled
    [    5.936609] netconsole: network logging started
    [    6.024636] PPP generic driver version 2.4.2
    [    6.055292] PPP Deflate Compression module registered
    mkdosfs 2.11 (12 Mar 2005)
    unable to get drive geometry, using default 255/63/dev/ram0 has 255 heads and 63 sectors per track,
    logical sector size is 512,
    using 0xf8 media descriptor, with 8192 sectors;
    file system has 2 12-bit FATs and 4 sectors per cluster.
    FAT size is 6 sectors, and provides 2036 clusters.
    Root directory contains 512 slots.
    Volume ID is 54d08bb1, no volume label.
    INIT: Entering runlevel: 5
    Starting telnet daemon.
    Starting syslogd/klogd: done
    getty: ioctl() TIOCSPGR
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org (none) console
    
    Arago 2009.11 (none) console
    
    (none) login: root
    -sh: can't access tty; job control turned off
    root@(none):~# udevd -d
    root@(none):~# [   19.729456] udevd (640): /proc/640/oom_adj is deprecated, please use /proc/640/oom_score_adj instead.
    [   19.739572] udev: starting version 141
    
    root@(none):~# modprobe wl12xx 
    [   29.662462] Compat-wireless backport release: ol_R5.SP4.01
    [   29.667983] Backport based on wl12xx.git ol_R5.SP7.01
    [   29.980715] cfg80211: Calling CRDA to update world regulatory domain
    [   30.481123] cfg80211: World regulatory domain updated:
    [   30.486300] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [   30.500283] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   30.508240] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   30.530260] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   30.538215] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   30.560270] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   30.999482] wl12xx: driver version: ol_R5.SP7.01-dirty
    [   31.009716] wl12xx: compilation time: Mon Feb  2 17:06:41 2015
    root@(none):~# rm /lib/firmware/ti-connectivity/wl1271-nvs.bin 
    
    root@(none):~# lsmod | grep wl12xx
    wl12xx                188256  0 
    mac80211              232635  1 wl12xx
    cfg80211              136672  2 wl12xx,mac80211
    compat                  5960  2 wl12xx,mac80211
    
    root@(none):~# ./calibrator plt autocalibrate wlan0 /lib/modules/2.6.37_SVI_DM36
    8_5.1.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko ./930-0049-R1.1.ini /
    lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00
    [   65.829393] SVI: Turning WiFi power on
    [   65.947331] SVI: Turning WiFi power off
    [   65.952059] SVI: Turning WiFi power on
    [   66.099345] SVI: Turning WiFi power on
    [   66.420927] SVI: Turning WiFi power off
    [   66.515240] wl12xx: loaded
    [   66.543097] wl12xx: power up
    [   66.569357] SVI: Turning WiFi power on
    [   67.199758] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    Using nvs version 2.1
    Calibrate /lib/firmware/ti-connectivity/wl1271-nvs.bin
    Fail to calibrat[   67.291196] wl12xx: power down
    e ith radio stat[   67.294496] SVI: Turning WiFi power off
    us (-90)
    Writing mac address 00:00:00:00:00:00 to file /lib/firmware/ti-connectivity/wl1271-nvs.bin
    [   67.326796] SVI: Turning WiFi power on
    [   67.449378] netconsole: network logging stopped, interface wlan0 unregistered
    [   67.519767] SVI: Turning WiFi power off
    Calibration done. FEM1 has 2 bands. AutoFEM is off. Resulting nvs is /lib/firmware/ti-connectivity/wl1271-nvs.bin
    
    root@(none):~# rm /lib/firmware/ti-connectivity/wl1271-nvs.bin 
    
    root@(none):~# ./calibrator plt autocalibrate wlan0 /lib/modules/2.6.37_SVI_DM36
    8_5.1.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko /lib/firmware/ti-conn
    ectivity/ini_files/127x/TQS_D_1.7.ini /lib/firmware/ti-connectivity/wl1271-nvs.b
    in 00:00:00:00:00:00 
    [   31.026441] SVI: Turning WiFi power on
    [   31.150943] SVI: Turning WiFi power off
    [   31.155671] SVI: Turning WiFi power on
    [   31.302974] SVI: Turning WiFi power on
    [   31.624286] SVI: Turning WiFi power off
    [   31.720150] wl12xx: loaded
    [   31.739787] wl12xx: power up
    [   31.763018] SVI: Turning WiFi power on
    [   32.303462] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    Using nvs version 2.1
    Calibrate /lib/firmware/ti-connectivity/wl1271-nvs.bin
    Fail to calibrat[   32.394824] wl12xx: power down
    e ith radio stat[   32.398128] SVI: Turning WiFi power off
    us (-90)
    Writing mac address 00:00:00:00:00:00 to file /lib/firmware/ti-connectivity/wl1271-nvs.bin
    [   32.426844] SVI: Turning WiFi power on
    [   32.543009] netconsole: network logging stopped, interface wlan0 unregistered
    [   32.624744] SVI: Turning WiFi power off
    Calibration done. FEM1 has 2 bands. AutoFEM is off. Resulting nvs is /lib/firmware/ti-connectivity/wl1271-nvs.bin
    
    root@(none):~# ./calibrator set ref_nvs ./930-0049-R1.1.ini new_nvs.bin
    0403
    
    root@(none):~# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin 
    
    root@(none):~# ifconfig wlan0 down
    ifconfig: SIOCGIFFLAGS: No such device
    
    root@(none):~# rmmod wl12xx_sdio
    ERROR: Module wl12xx_sdio does not exist in /proc/modules
    
    root@(none):~# modprobe wl12xx_sdio
    [  137.844284] SVI: Turning WiFi power on
    [  137.965167] SVI: Turning WiFi power off
    [  137.969892] SVI: Turning WiFi power on
    [  138.117191] SVI: Turning WiFi power on
    [  138.438501] SVI: Turning WiFi power off
    [  138.538745] wl12xx: loaded
    
    root@(none):~# ./calibrator plt calibrate 
    [  153.358994] wl12xx: power up
    [  153.387202] SVI: Turning WiFi power on
    [  153.857718] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    Unknown arch. Not setting nvs ver 2.1Calibrate ./new-nvs.bin
    Writing calibration data to ./new-nvs.bin
    [  153.935092] wl12xx: power down
    [  153.938970] SVI: Turning WiFi power off
    
    root@(none):~# ./calibrator plt calibrate dual
    [  162.399176] wl12xx: power up
    [  162.427238] SVI: Turning WiFi power on
    [  162.818075] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    Unknown arch. Not setting nvs ver 2.1Calibrate ./new-nvs.bin
    Fail to calibrat[  162.888607] wl12xx: power down
    e ith radio stat[  162.892542] SVI: Turning WiFi power off
    us (-90)
    
    root@(none):~# 

  • Here is another calibration log file, this time with the --debug switch.

    Thanks,

    -Carl

    root@(none):~# ./calibrator --debug plt autocalibrate wlan0 /lib/modules/2.6.37_
    SVI_DM368_5.1.0/updates/drivers/net/wireless/wl12xx/wl12xx_sdio.ko ./930-0049-R1
    .1.ini /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:00:00:00:00:00
    [   90.184670] SVI: Turning WiFi power on
    [   90.311381] SVI: Turning WiFi power off
    [   90.316104] SVI: Turning WiFi power on
    [   90.463427] SVI: Turning WiFi power on
    [   90.784735] SVI: Turning WiFi power off
    [   90.880671] wl12xx: loaded
    [   90.901711] wl12xx: power up
    [   90.943463] SVI: Turning WiFi power on
    [   91.463905] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955982
        .nlmsg_pid = 882
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422955982
        .nlmsg_pid = 882
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955983
        .nlmsg_pid = 882
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422955983
        .nlmsg_pid = 882
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Using nvs version 2.1
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE -----------------[   91.576057] wl12xx: power down
    ----------
      [H[   91.580555] SVI: Turning WiFi power off
    EADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955984
        .nlmsg_pid = 882
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422955984
        .nlmsg_pid = 882
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Calibrate /lib/firmware/ti-connectivity/wl1271-nvs.bin
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 556
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955985
        .nlmsg_pid = 882
      [PAYLOAD] 540 octets
        2d 01 00 00 08 00 01 00 03 00 00 00 10 02 45 00 0c 02 -.............E...
        03 00 0d 00 01 00 02 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 a6 ff ff 00 ..................
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Fail to calibrate ith radio status (-90)
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955985
        .nlmsg_pid = 882
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422955985
        .nlmsg_pid = 882
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Writing mac address 00:00:00:00:00:00 to file /lib/firmware/ti-connectivity/wl1271-nvs.bin
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422955986
        .nlmsg_pid = 8[   91.943388] SVI: Turning WiFi power on
    82
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422955986
        .nlmsg_pid = 882
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    [   92.063461] netconsole: network logging stopped, interface wlan0 unregistered
    [   92.133836] SVI: Turning WiFi power off
    Calibration done. FEM1 has 2 bands. AutoFEM is off. Resulting nvs is /lib/firmware/ti-connectivity/wl1271-nvs.bin
    
    
    root@(none):~# rm new-nvs.bin
    
    root@(none):~# ./calibrator set ref_nvs ./930-0049-R1.1.ini ./new-nvs.bin
    
    root@(none):~# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin 
    
    root@(none):~# modprobe wl12xx_sdio
    [   22.991368] SVI: Turning WiFi power on
    [   23.112423] SVI: Turning WiFi power off
    [   23.117149] SVI: Turning WiFi power on
    [   23.264461] SVI: Turning WiFi power on
    [   23.585781] SVI: Turning WiFi power off
    [   23.681590] wl12xx: loaded
    
    root@(none):~# ./calibrator --debug plt calibrate dual
    [   43.376540] wl12xx: power up
    [   43.404505] SVI: Turning WiFi power on
    [   43.875000] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422956472
        .nlmsg_pid = 983
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422956472
        .nlmsg_pid = 983
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422956473
        .nlmsg_pid = 983
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422956473
        .nlmsg_pid = 983
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Unknown arch. Not setting nvs ver 2.1Calibrate ./new-nvs.bin
    -- Debug: [   43.984024] wl12xx: power down
    Received Message[   43.988223] SVI: Turning WiFi power off
    :
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 556
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422956474
        .nlmsg_pid = 983
      [PAYLOAD] 540 octets
        2d 01 00 00 08 00 01 00 04 00 00 00 10 02 45 00 0c 02 -.............E...
        03 00 0d 00 01 00 02 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..................
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 a6 ff ff 00 ..................
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    Fail to calibrate ith radio status (-90)
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422956474
        .nlmsg_pid = 983
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422956474
        .nlmsg_pid = 983
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [HEADER] 16 octets
        .nlmsg_len = 36
        .nlmsg_type = 2 <ERROR>
        .nlmsg_flags = 0 <>
        .nlmsg_seq = 1422956475
        .nlmsg_pid = 983
      [ERRORMSG] 20 octets
        .error = 0 "Success"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .nlmsg_type = 17 <0x11>
        .nlmsg_flags = 5 <REQUEST,ACK>
        .nlmsg_seq = 1422956475
        .nlmsg_pid = 983
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    
    root@(none):~# 

  • Hi Carl,

    This indicates something wrong with the ini file only - Anyway, let me check internally and get back to you.
    Can you share the ini files that you have tried?

    Regards,
    Gigi Joseph.
  • Here are the two .ini files I have tried - Thanks,

    -Carl

    ini.zip

  • Do you see any issues with the ini files? Any other thoughts on what could be causing this issue?
    Thanks,
    -Carl
  • Hi Carl,

    A few questions so I can better assist:

    1. Which module exactly are you using? 

    2. Are you working with RTTT/TrioScope tool? If so we would like to get some inputs from there.

    3. Do you have access to the FEM pins? If so we would like to monitor one of them.

    Once you provide the answers we'll be able to support some debug steps.

    Best regards,

    Oren Shani

  • Hi Oren,

    1) The module is an LSR TiWi5 which is based on the WL1273L. Please see my initial post for our full configuration.

    2) I do not have the RTTT/TrioScope tool. If it would help debug this issue, can you point me to a source for it?

    3) I'm sure I can remove the cover from one of our modules. What would you like me to monitor?

    Thank you,
    -Carl
  • Carl,

    2) As for the RTTT/TrioScope tools - it requires access to the RS232 lines on your WL6 chip. Please check if you have access to those lines. They should be exposed on the module...

    3) If you get access to the FEM you should try to monitor and save an image of pin 11 which is PDET (power detector line of the FEM).

    For more questions related to debug of your specific module and design you can also address my email: orenshani@ti.com.
    This will allow you also to share your module and board scheamtics.

     

    Regards,
    Oren

     

     

  • Hi Oren,

    2) I have been able to use the WLAN Eval Tool available on the LSR website which uses the Rx/Tx signals from the module. I can calibrate the module using that tool but it still fails with -90 using the Linux calibrator tool. Unfortunately, the WLAN Eval Tool is not a workable production method for calibrating the modules.

    3) I'll see if I can get a scope shot of pin 11.

    Thanks,
    -Carl
  • Hi Carl,

    2) I was not familiar with this LSR Eval tool so I downloaded it myself from thier website. Basically it looks like a limited edition of the RTTT tool I was talking about. Just to verify: you used the 'Run TX BIP' button and same  FW version as you used on the Linux? 

    I will try to see if this tool can help us and if not i will share with you the RTTT tool. 

    3) I am waiting for your update on that.

    By the way, the -90 you're getting indicated a fail on BIP procedure of the first sub-band of the 5GHz band. 

    Regards,
    Oren

  • Hi Carl,
    I reviewed your log file a little to understand exactly how you are running the plt commands.
    I noticed that you are running the following command:
    ./calibrator plt calibrate dual

    It's been a while since I ran this process...can you tell me where did it say to include 'dual' for this command?
    As far as i rememebr you don't need to use it for dual band calibration as long as you're using the right (dual) INI file.

    By the way, please try to use also the following command which is just for the BIP process:
    calibrator wlan0 plt tx_bip
    (taken from here: linuxwireless.org/.../calibrator)

    Regards,
    Oren
  • Hi Oren,

    2) Yes, I used the Run TX BIP button but it only works with the WLAN Firmware (480-0027) also available from the LSR website. It does not work with the PLT firmware that came with the Linux compat-wireless driver build.

    3) I should have time to remove the lid from a module tomorrow.

    Regarding the calibrator tool: I used the "dual" flag based on the calibrator help information. The source code seems to confirm that although the autocalibrate command does use the ini file contents to select single or dual band calibration, the calibrate command does not. If I don't use the "dual" flag, the calibrate command succeeds but only calibrates 2.4GHz.

    I've looked at tx_bip and other commands but don't know what parameters to use. If I skip the ref_point command and use tx_bip 1 0 0 0 0 0 0 0 <file>, it succeeds but based on the calibrator source, I believe this is only single band again. If I use tx_bip 1 1 1 1 1 1 1 1 <file>, it fails with -90 status again.

    Thank you,
    -Carl
  • Hi Carl,Can you please do the following:
    1. Try to access pin 11 of the FEM and capture it's behaivlr during BIP process.
    2. Send us your schematics for review
    3. Run TX_BIP one sub band at a time (use command 'calibrator wlan0 plt tx_bip' binary inputs to mask sub bands).
    Thanks,Oren Shani
  • Hi Oren,

    1) I am waiting on our CM to remove the lid for me.  I'll attach a scope picture when it's available.

    2) I'll send schematics separately

    3) I tried the tx_bip command with one bit set at a time.  All but the first bit failed; the failures are consistent.  Four of the commands fail with -80 status but three result in "wl12xx: ERROR command complete timeout" which causes an exception.  I have to remove and reload the wl12xx kernel modules to continue.  The log is attached below.  Is this a driver issue?

    Thanks,

    -Carl

    root@(none):~# udevd -d
    root@(none):~# [   20.520891] udevd (695): /proc/695/oom_adj is deprecated, please use /proc/695/oom_score_adj instead.
    [   20.531026] udev: starting version 141
    modprobe wl12xx
    [   25.764304] Compat-wireless backport release: ol_R5.SP4.01
    [   25.769824] Backport based on wl12xx.git ol_R5.SP7.01
    [   26.083417] cfg80211: Calling CRDA to update world regulatory domain
    [   26.591201] cfg80211: World regulatory domain updated:
    [   26.603047] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [   26.611451] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   26.633036] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   26.640995] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   26.663038] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   26.670994] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   27.097824] wl12xx: driver version: ol_R5.SP7.01-dirty
    [   27.108154] wl12xx: compilation time: Fri Feb  6 17:35:36 2015
    root@(none):~# ./calibrator set ref_nvs 930-0049-R1.1.ini new-nvs.bin
    0403root@(none):~# 
    root@(none):~# ./calibrator set nvs_mac new-nvs.bin 00:00:00:00:00:00
    Writing mac address 00:00:00:00:00:00 to file new-nvs.bin
    root@(none):~# cp new-nvs.bin /lib/firmware/ti-connectivity/wl1271-nvs.bin 
    root@(none):~# modprobe wl12xx_sdio
    [   98.623492] SVI: Turning WiFi power on
    [   98.741367] SVI: Turning WiFi power off
    [   98.746111] SVI: Turning WiFi power on
    [   98.893403] SVI: Turning WiFi power on
    [   99.214722] SVI: Turning WiFi power off
    [   99.315357] wl12xx: loaded
    root@(none):~# ./calibrator wlan0 plt power_mode on
    [    9.787187] wl12xx: power up
    [    9.816735] SVI: Turning WiFi power on
    [   10.367259] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    root@(none):~# ./calibrator wlan0 plt tx_bip 1 0 0 0 0 0 0 0 new-nvs.bin 
    Writing calibration data to new-nvs.bin
    
    
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 1 0 0 0 0 0 0 new-nvs.bin 
    [   41.806869] wl12xx: ERROR command complete timeout
    [   41.811693] ------------[ cut here ]------------
    [   41.816338] WARNING: at /home/carl/ti/build-utilities/build/compat-wireless/drivers/net/wireless/wl12xx/main.c:1441 0xbf1099f8()
    [   41.829263] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat ppp_deflate ppp_generic netconsole slhc tun loop usbmon cppi_dma musb_hdrc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi davinci_mmc libcrc32c sha1_generic md5 des_generic crc32c crc_ccitt
    [   41.854276] Backtrace: 
    [   41.856875] Function entered at [<c002f518>] from [<c02e8864>]
    [   41.862734]  r7:00000000 r6:bf1099f8 r5:bf128223 r4:000005a1
    [   41.868522] Function entered at [<c02e884c>] from [<c004135c>]
    [   41.874370] Function entered at [<c0041304>] from [<c0041398>]
    [   41.883095]  r8:00000208 r7:c206782c r6:00000096 r5:c207d700 r4:c207d700
    [   41.890610] Function entered at [<c0041374>] from [<bf1099f8>]
    [   41.896461] Function entered at [<bf1099c0>] from [<bf10e720>]
    [   41.903581]  r4:ffffff92
    [   41.906154] Function entered at [<bf10e22c>] from [<bf110544>]
    [   41.913019] Function entered at [<bf1104d8>] from [<bf1231a0>]
    [   41.919597]  r7:00000001 r6:c207d700 r5:00000000 r4:c2067828
    [   41.925334] Function entered at [<bf123088>] from [<bf0dd08c>]
    [   41.932200] Function entered at [<bf0dd050>] from [<bf0a9a70>]
    [   41.938773] Function entered at [<bf0a9a10>] from [<c0281e84>]
    [   41.944638]  r4:00000000
    [   41.947922] Function entered at [<c0281c8c>] from [<c02800a0>]
    [   41.953777] Function entered at [<c0280048>] from [<c0281c78>]
    [   41.960894]  r6:c2016840 r5:c03832b0 r4:c2016840
    [   41.965573] Function entered at [<c0281c50>] from [<c027fd10>]
    [   41.972442]  r5:0000023c r4:c288c000
    [   41.976068] Function entered at [<c027fa9c>] from [<c02806ec>]
    [   41.982932] Function entered at [<c0280434>] from [<c02578bc>]
    [   41.989507] Function entered at [<c0257828>] from [<c0257e6c>]
    [   41.995372]  r6:c241f840 r5:00000000 r4:c20fbf34
    [   42.000769] Function entered at [<c0257cbc>] from [<c002c020>]
    [   42.006618] ---[ end trace 6d3ca1ef5fb68312 ]---
    [   42.012582] wl12xx: WARNING TEST command failed
    [   42.017841] wl12xx: WARNING testmode cmd test failed: -110
    command failed: Connection timed out (-110)
    
    
    <remove and reload kernel modules>
    root@(none):~# ./calibrator wlan0 plt power_mode on
    [  129.135266] wl12xx: power up
    [  129.164789] SVI: Turning WiFi power on
    [  129.635331] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 1 0 0 0 0 0 new-nvs.bin 
    Fail to calibrate ith radio status (-80)
    
    
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 0 1 0 0 0 0 new-nvs.bin  
    [  151.578641] wl12xx: ERROR command complete timeout
    [  151.583465] ------------[ cut here ]------------
    [  151.588108] WARNING: at /home/carl/ti/build-utilities/build/compat-wireless/drivers/net/wireless/wl12xx/main.c:1441 0xbf2539f8()
    [  151.600976] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat ppp_deflate ppp_generic netconsole slhc tun loop usbmon cppi_dma musb_hdrc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi davinci_mmc libcrc32c sha1_generic md5 des_generic crc32c crc_ccitt [last unloaded: compat]
    [  151.628092] Backtrace: 
    [  151.630683] Function entered at [<c002f518>] from [<c02e8864>]
    [  151.636536]  r7:00000000 r6:bf2539f8 r5:bf272223 r4:000005a1
    [  151.642436] Function entered at [<c02e884c>] from [<c004135c>]
    [  151.648286] Function entered at [<c0041304>] from [<c0041398>]
    [  151.657555]  r8:00000208 r7:c206742c r6:00000096 r5:c20a9700 r4:c20a9700
    [  151.665051] Function entered at [<c0041374>] from [<bf2539f8>]
    [  151.671926] Function entered at [<bf2539c0>] from [<bf258720>]
    [  151.677794]  r4:ffffff92
    [  151.681079] Function entered at [<bf25822c>] from [<bf25a544>]
    [  151.686933] Function entered at [<bf25a4d8>] from [<bf26d1a0>]
    [  151.694053]  r7:00000001 r6:c20a9700 r5:00000000 r4:c2067428
    [  151.700510] Function entered at [<bf26d088>] from [<bf22708c>]
    [  151.706361] Function entered at [<bf227050>] from [<bf1f3a70>]
    [  151.713479] Function entered at [<bf1f3a10>] from [<c0281e84>]
    [  151.720058]  r4:00000000
    [  151.722631] Function entered at [<c0281c8c>] from [<c02800a0>]
    [  151.728477] Function entered at [<c0280048>] from [<c0281c78>]
    [  151.735612]  r6:c20c4180 r5:c03832b0 r4:c20c4180
    [  151.741013] Function entered at [<c0281c50>] from [<c027fd10>]
    [  151.746860]  r5:0000023c r4:c288c000
    [  151.751497] Function entered at [<c027fa9c>] from [<c02806ec>]
    [  151.757348] Function entered at [<c0280434>] from [<c02578bc>]
    [  151.764477] Function entered at [<c0257828>] from [<c0257e6c>]
    [  151.771059]  r6:c241f840 r5:00000000 r4:c20adf34
    [  151.775735] Function entered at [<c0257cbc>] from [<c002c020>]
    [  151.782604] ---[ end trace 6d3ca1ef5fb68314 ]---
    [  151.787335] wl12xx: WARNING TEST command failed
    [  151.792895] wl12xx: WARNING testmode cmd test failed: -110
    command failed: Connection timed out (-110)
    
    
    <remove and reload kernel modules>
    root@(none):~# ./calibrator wlan0 plt power_mode on
    [   91.452438] wl12xx: power up
    [   91.482177] SVI: Turning WiFi power on
    [   91.952729] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 0 0 1 0 0 0 new-nvs.bin 
    Fail to calibrate ith radio status (-80)
    
    
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 0 0 0 1 0 0 new-nvs.bin 
    Fail to calibrate ith radio status (-80)
    
    
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 0 0 0 0 1 0 new-nvs.bin 
    [    9.165598] wl12xx: ERROR command complete timeout
    [    9.170422] ------------[ cut here ]------------
    [    9.175065] WARNING: at /home/carl/ti/build-utilities/build/compat-wireless/drivers/net/wireless/wl12xx/main.c:1441 0xbf39d9f8()
    [    9.188184] Modules linked in: wl12xx_sdio wl12xx mac80211 cfg80211 compat ppp_deflate ppp_generic netconsole slhc tun loop usbmon cppi_dma musb_hdrc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi davinci_mmc libcrc32c sha1_generic md5 des_generic crc32c crc_ccitt [last unloaded: compat]
    [    9.215293] Backtrace: 
    [    9.217882] Function entered at [<c002f518>] from [<c02e8864>]
    [    9.223730]  r7:00000000 r6:bf39d9f8 r5:bf3bc223 r4:000005a1
    [    9.229515] Function entered at [<c02e884c>] from [<c004135c>]
    [    9.235360] Function entered at [<c0041304>] from [<c0041398>]
    [    9.244614]  r8:00000208 r7:c206742c r6:00000096 r5:c20b5700 r4:c20b5700
    [    9.252107] Function entered at [<c0041374>] from [<bf39d9f8>]
    [    9.258978] Function entered at [<bf39d9c0>] from [<bf3a2720>]
    [    9.264844]  r4:ffffff92
    [    9.268133] Function entered at [<bf3a222c>] from [<bf3a4544>]
    [    9.273987] Function entered at [<bf3a44d8>] from [<bf3b71a0>]
    [    9.281112]  r7:00000001 r6:c20b5700 r5:00000000 r4:c2067428
    [    9.287567] Function entered at [<bf3b7088>] from [<bf37108c>]
    [    9.293417] Function entered at [<bf371050>] from [<bf33da70>]
    [    9.300538] Function entered at [<bf33da10>] from [<c0281e84>]
    [    9.307115]  r4:00000000
    [    9.309686] Function entered at [<c0281c8c>] from [<c02800a0>]
    [    9.316545] Function entered at [<c0280048>] from [<c0281c78>]
    [    9.322410]  r6:c2016c00 r5:c03832b0 r4:c2016c00
    [    9.327815] Function entered at [<c0281c50>] from [<c027fd10>]
    [    9.333662]  r5:0000023c r4:c288c000
    [    9.338318] Function entered at [<c027fa9c>] from [<c02806ec>]
    [    9.344168] Function entered at [<c0280434>] from [<c02578bc>]
    [    9.351305] Function entered at [<c0257828>] from [<c0257e6c>]
    [    9.357882]  r6:c241f840 r5:00000000 r4:c219df34
    [    9.362562] Function entered at [<c0257cbc>] from [<c002c020>]
    [    9.369426] ---[ end trace 6d3ca1ef5fb68316 ]---
    [    9.374153] wl12xx: WARNING TEST command failed
    [    9.379703] wl12xx: WARNING testmode cmd test failed: -110
    command failed: Connection timed out (-110)
    
    
    <remove and reload kernel modules>
    root@(none):~# ./calibrator wlan0 plt power_mode on
    [   66.936286] wl12xx: power up
    [   66.965849] SVI: Turning WiFi power on
    [   67.436354] wl12xx: firmware booted in PLT mode (PLT 6.3.10.0.137)
    root@(none):~# ./calibrator wlan0 plt tx_bip 0 0 0 0 0 0 0 1 new-nvs.bin 
    Fail to calibrate ith radio status (-80)
    

  • Hi Oren,

    Here are a few scope shots of the PDET pin during calibration.  The first two pictures are from the 'calibrator plt calibrate' command which I believe only tries to calibrate the 2.4GHz band.  PDET2.png is an expanded view of the same capture.  PDET3.png was captured using the 'calibrator plt calibrate dual' command.

    I've sent the board schematics separately to your email address.

    Thank you,

    -Carl

    PDET Scope Photos.zip

  • Hi,

    I am sorry to start from the beginning but can you please answer several questions:

    1. We haven't received the schematics yet - can you please provide them?

    2. Can you please confirm that the device is  WL1273L: WL1273LYFVR PG3.32 vs Frontend RF module :TQP6M9002?

    3. Can you please operate the device in operational mode and see if you are able to connect to some AP on 5 GHz?

    4. Can you please redo the trial's again band by band (5 GHz only) using the following set of commands and using the ini file below?

    Expert mode

    calibrator wlan0 plt power_mode on

    calibrator wlan0 plt ref_point <voltage> <power> <subband>                       -Alexey the reference point should be taken from the ini please set it.

    calibrator wlan0 plt tx_bip <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1> <0|1>

    calibrator wlan0 plt power_mode off

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/968/TQS_5F00_D_5F00_1.7.ini

    Thanks,

    Alexey

  • Hi,

    In addition on number 4 can you please capture the calibration again (using the 2 commands each time( setting ref point, tx_bip) - we would like to see each calibration(each sub-band) on scope separately ( if it possible can you please keep higher resolution on the Y axis so it will be more clear).

    For each of the sub-bands please take the reference from the ini ( the following parameters):

    FEM1_TXBiPReferencePDvoltage_5G = 019A 01AE 01C2 01CC 01DB 01DB 01D1 # Length: 7; Unit: 1mV; Format: Unsigned; Source: TI; Comment: This parameter define the reference point of the FEM power detector
    FEM1_TxBiPReferencePower_5G = 80 80 80 80 80 80 80 # Length: 7; Unit: 1/8dB; Format: Signed; Source: TI; Comment: Reference output power that produces given reference power detector output voltage .

    Thanks,
    Alexey