Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Oct 2010 07:53 PM by  Nathan.kuo
Bluetooth and WIFI on AM3517
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Nathan.kuo
New Member
New Member
Posts:


--
07 Oct 2010 02:03 AM
    HI

    I used the AM35x-OMAP35x-PSP-SDK-03.00.00.05 patces WILink 6 on AM3517 EVM

    I reference this document "1016614A_AM3517_EVM_WiLink_6-0_Getting_Started_Guide" to enable bluetooth and wifi

    But i execute hciattach tool to enable bluetooth will fail and wifi enable will fail , why?

    Another I have also the same MMC2 issue on AM3517.
    The interface MMC2 which using sdcard/sdio at boot and kernel can't work, but MMC1 does work functional.
    MMC2 is using through MMC slot on Application_Board. So about the h/w part, is there any configurations I need to set up for MMC2 ?
    How could I solve this problem?


    BT log
    root@am3517-evm:~# dbus-uuidgen --ensure
    root@am3517-evm:~# grep messagebus /etc/passwd
    messagebus:sXKqf3qGOIUHg:500:500:Linux User,,,:/home/messagebus:/bin/sh
    root@am3517-evm:~# adduser messagebus
    adduser: messagebus: login already in use
    root@am3517-evm:~# mkdir /var/run/dbus
    root@am3517-evm:~# dbus-daemon --system --fork
    root@am3517-evm:~# bluetoothd
    root@am3517-evm:~# echo 0 > /sys/class/gpio/gpio56/value
    root@am3517-evm:~# sleep 1
    root@am3517-evm:~# echo 1 > /sys/class/gpio/gpio56/value
    root@am3517-evm:~# hciattach -t 50 /dev/ttyS1 texas 3000000
    Found a Texas Instruments' chip!
    Firmware file : /lib/firmware/TIInit_7.2.31.bts
    Loaded BTS script version 1
    texas: changing baud rate to 3000000, flow control to 1
    ll_recv: Unknown HCI packet type ff
    Cannot send hci command to socket: Network is down
    Can't initialize device: Network is down

    root@am3517-evm:~# hciconfig hci0 -a
    Can't get device info: No such device

    WIFI log
    root@am3517-evm:~# ls
    bt wlan
    root@am3517-evm:~# cd wlan/
    root@am3517-evm:~/wlan# ls
    firmware.bin sta_run wlan_cu
    nvs_map.bin tiwlan.ini wpa_supplicant.txt
    sdio.ko tiwlan_drv.ko
    sta_rm tiwlan_loader
    root@am3517-evm:~/wlan# ./sta_run
    sdioDrv_init
    setting SDIO F&I clock Configuration
    done setting SDIO F&I clock Configuration
    TI WiLink 1271 SDIO: Driver loaded
    TI WLAN: driver loading
    hPlatform_Wlan_Hardware_Init
    wlan_muxcfg
    setting GPIO PMENA_GPIO[3]=1, LVLSHFTENA_GPIO[129]=0
    wifi_probe_irq
    wifi_probe_irq: got wlan irq 331
    wifi_probe_irq: got wlan irq trigger falling flag
    hPlatform_DevicePowerOff
    unplug_device
    hPlatform_initInterrupt
    IRQ= 331 FLAGS= 2
    TIWLAN: 3703.598357: pInitParams->RoamingScanning_2_4G_enable 0
    hPlatform_DevicePowerOn
    sdioDrv_WriteSyncBytes: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSyncBytes: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    TIWLAN: 3704.732576: CHIP VERSION... set 1273 chip top registers
    sdioDrv_WriteSync: tiwlan_sdio_probe not yet called
    sdioDrv_ReadSync: tiwlan_sdio_probe not yet called
    sdioDrv_DisableFunction: tiwlan_sdio_probe not yet called
    hPlatform_DevicePowerOff
    unplug_device
    Unhandled fault: external abort on non-linefetch (0x1028) at 0xfa0b412c
    Internal error: : 1028 [#1]
    last sysfs file: /sys/kernel/uevent_seqnum
    Modules linked in: tiwlan_drv sdio
    CPU: 0 Not tainted (2.6.32 #3)
    PC is at omap_hsmmc_status_notify_cb+0x7c/0x108
    LR is at omap_hsmmc_status_notify_cb+0x74/0x108
    pc : [<c028a4dc>] lr : [<c028a4d4>] psr: 20000013
    sp : cd9e5dc8 ip : c048bd71 fp : cfbcce14
    r10: cfbc9180 r9 : 0000000a r8 : cfbccf04
    r7 : 00000000 r6 : cf9c45c0 r5 : 00000000 r4 : 001dc000
    r3 : 0000000e r2 : fa0b4000 r1 : 00000000 r0 : 00000003
    Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    Control: 10c5387d Table: 8d830019 DAC: 00000015
    Process ifconfig (pid: 1573, stack limit = 0xcd9e42e8)
    Stack: (0xcd9e5dc8 to 0xcd9e6000)
    5dc0: bf0aed94 00000064 00000000 c004ad68 bf0aed94 bf008b00
    5de0: 00000001 00000000 00000000 bf00cda8 00002000 cfbccf10 00008914 c02da710
    5e00: cfbb4fa4 cfbb4c54 cfbccf10 cfbccf0c cfbccec8 cfbb51f8 00000000 cfbcc22c
    5e20: 00000006 cfbcc214 00000000 00000001 00000000 cd8a0400 00008914 bf081e1c
    5e40: cfbc9c8c bf009580 cfbcce14 cd8a0400 00001043 00001002 cfbc9c8c bf00d90c
    5e60: cfbc9c8c 00000000 cfbc9180 bf008648 cd8a0400 bf090ff8 00001043 c02cb6b8
    5e80: cd8a0400 00000041 00001043 c02cac10 00000000 cd8b2f00 cfbc9c80 cd9e5ec0
    5ea0: cfbc9c8c c03070b8 cd8a0400 bebb4b98 6c776974 00306e61 00000000 00000000
    5ec0: 00001043 010e010a bebb4ec3 0009c3bd 00001043 010e010a bebb4ec3 0009c3bd
    5ee0: 00001002 cd872dc0 00008914 bebb4b98 cd872dc0 bebb4b98 cd9e4000 00000000
    5f00: 00000000 c02bafb8 cd872dc0 bebb4b98 00008914 c00bd88c 00000003 cd872dc0
    5f20: 00000003 c00bdfc0 000ad000 000000ad 00000021 000ce000 00000000 c00a4980
    5f40: 00100077 00000000 00000000 000000ad 00000000 c00c0e6c 0000004b cd9c9f00
    5f60: cd9c9f04 cd9c9ee8 00000003 bebb4b98 00008914 cd872dc0 c00360a8 cd9e4000
    5f80: 00000000 c00be038 00000003 00000000 bebb4b98 0008bb60 bebb4b98 000001c3
    5fa0: 00000036 c0035f00 0008bb60 bebb4b98 00000003 00008914 bebb4b98 0008bb60
    5fc0: 0008bb60 bebb4b98 000001c3 00000036 0008bb0c 0008bc90 00001043 00000000
    5fe0: bebb4dd0 bebb4b70 000116dc 4018faec 60000010 00000003 00000000 00110000
    [<c028a4dc>] (omap_hsmmc_status_notify_cb+0x7c/0x108) from [<c004ad68>] (omap_am3517evm_wifi_set_carddetect+0x20/0x44)
    [<c004ad68>] (omap_am3517evm_wifi_set_carddetect+0x20/0x44) from [<bf008b00>] (unplug_device+0x40/0xb8 [tiwlan_drv])
    [<bf008b00>] (unplug_device+0x40/0xb8 [tiwlan_drv]) from [<bf00cda8>] (drvMain_SmEvent+0x1c8/0xa18 [tiwlan_drv])
    [<bf00cda8>] (drvMain_SmEvent+0x1c8/0xa18 [tiwlan_drv]) from [<bf081e1c>] (context_DriverTask+0x98/0x100 [tiwlan_drv])
    [<bf081e1c>] (context_DriverTask+0x98/0x100 [tiwlan_drv]) from [<bf00d90c>] (drvMain_InsertAction+0x7c/0x114 [tiwlan_drv])
    [<bf00d90c>] (drvMain_InsertAction+0x7c/0x114 [tiwlan_drv]) from [<bf008648>] (wlanDrvIf_Start+0x30/0x74 [tiwlan_drv])
    [<bf008648>] (wlanDrvIf_Start+0x30/0x74 [tiwlan_drv]) from [<c02cb6b8>] (dev_open+0xb0/0x10c)
    [<c02cb6b8>] (dev_open+0xb0/0x10c) from [<c02cac10>] (dev_change_flags+0x90/0x160)
    [<c02cac10>] (dev_change_flags+0x90/0x160) from [<c03070b8>] (devinet_ioctl+0x2d4/0x658)
    [<c03070b8>] (devinet_ioctl+0x2d4/0x658) from [<c02bafb8>] (sock_ioctl+0x1f8/0x248)
    [<c02bafb8>] (sock_ioctl+0x1f8/0x248) from [<c00bd88c>] (vfs_ioctl+0x2c/0x70)
    [<c00bd88c>] (vfs_ioctl+0x2c/0x70) from [<c00bdfc0>] (do_vfs_ioctl+0x518/0x55c)
    [<c00bdfc0>] (do_vfs_ioctl+0x518/0x55c) from [<c00be038>] (sys_ioctl+0x34/0x54)
    [<c00be038>] (sys_ioctl+0x34/0x54) from [<c0035f00>] (ret_fast_syscall+0x0/0x2c)
    Code: e5934000 ebf77078 e596203c e1a01005 (e592312c)
    ---[ end trace 11e40e440adbe455 ]---
    TIWLAN: 3705.585295: ***** recovery trigger: BUS_FAILURE *****, ts=1356620283
    TIWLAN: 3705.592436: .....drvMain_Recovery, ts=1356620290
    Segmentation fault
    ##
    ## Configure wlan using the following command:
    ./wlan_cu -i/var/run/tiwlan0
    ##
    ##
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    07 Oct 2010 08:22 AM
    Nathan,

    If you have registered your kit you can review the WiFi getting started guide: http://support.logicpd.co...ng_Started_Guide.pdf

    All of the files referenced are available in the AM3517 downloads.
    Nathan.kuo
    New Member
    New Member
    Posts:


    --
    10 Oct 2010 07:53 PM
    Posted By richardl on 7 Oct 2010 8:22 AM
    Nathan,

    If you have registered your kit you can review the WiFi getting started guide: http://support.logicpd.co...ng_Started_Guide.pdf

    All of the files referenced are available in the AM3517 downloads.





    HI

    I rafer to the 1016614A_AM3517_EVM_WiLink_6-0_Getting_Started_Guide.pdf to set up my environment but the same error to enable wifi and bluetooth ,Another i download the AM3517_Linux_WiLink6-0_1-0-0_Demo but the same results.
    I want to use MMC2 interface , but can't work for sdcard and sdio.
    Please provide me the solution I want to use MMC2 and wifi module on the SOM
    Thank you
    You are not authorized to post a reply.