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.

BL1835MOD cape not working with Beaglebone Black-RevC

Other Parts Discussed in Thread: WL1835MOD, WL1835

Hi,

   I am trying to bring up BBB with WL1835MOD cape. Since I am doing it for the first time, I am referring to the link :

"http://processors.wiki.ti.com/index.php/WL18xx_First_Time_Getting_Started_Guide_(Beaglebone)#Boot_the_Board"

Does the link holds true for Latest beaglebone RevC

I am facing the following problems:

1. The sd-script.sh is not working as it is. All the commands reuired some or the other modification. Like I had to add "sudo" before fdisk in the 4th line. Similarly I had to do other changes to make progress. Can you tell me what is the way to use this script directly?

2.  I have been able to make the SD image by following another line: "https://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat". Now I am facing the issue thaton trying to boot the board by pressing S2 switch, it just gets stuck there and nothing happens there after. I am not sure what is happening, On connecting the micro-USB to the host PC to see text on minicom,  it automatically opens the boot image folder which shows : MLO, u-boot.img, and uImage files

 3. Another thing is I am not using the patch give in the link: "https://gforge.ti.com/gf/download/user/9653/6805/ti-cape.tar.gz". does it makes any difference? 

Please advise on how to make progress. I am totally stuck now.

Thanks

Puneet

  • Moving this to the WiLink forum.

  • Hi Puneet,

    1. Which SDK are you using? For SDK7.0, the script file should be "create-sdcard.sh" located in "~/ti-sdk-am335x-evm-07.00.00.00/bin" folder. And you must run the script with sudo -> "sudo ./create_sdcard.sh"

    2. For BBB it is a bit tricky as unlike the BBW, the serial port doesn’t have a connector and you need to use a USB level shifter.
    See attached picture. The connector is located below the WL8 cape.


    3. Those patches would be required for SDK 6.0. However, I recommend that you try the prebuilt images from : http://processors.wiki.ti.com/index.php/WL18xx_AMxxx_platform_integration_guide#Prebuilt_images and confirm if everything is working fine.


    Regards,
    Gigi Joseph.

  • Thanks a lot Gigi Joseph,

    1.I am not sure which  SDK am I using. I have not downloaded any SDK as of now. If there is any default SDk it would be getting used. 

     2. I am using the Cape from circuitco. I can see four J pins on the top of it. Please let me know if I can use those pins.

     

    3.I will try with this images. Does it have all the patches/fixes for BBB RevC (with debian installed)?

    4. Now, while I was thinking of doing some experiment with the EMMS boot loader I moved MLO to MLO_back and rebooted!!!  Now I am under more sever problem. The board is not not at all booting. Please help me to resolve this problem asap. which is the full proof SD card image to bring up the board again.

    Please help 

    Regrads

    Puneet

  • Hi Gigi Joseph,
    I have been able to boot up the BBB with the SDK prebuilt image. Now I am trying to use he prebuilt images given on the following page:
    http://processors.wiki.ti.com/index.php/WL18xx_AMxxx_platform_integration_guide

    THe points to the boot image and rootfs I am using are:
    https://gforge.ti.com/gf/download/user/6430/7079/tisdk-boot-am335x-evm-sdk7.0-ecs.tar.gz
    https://gforge.ti.com/gf/download/user/6430/7236/tisdk-rootfs-image-am335x-evm-sdk7.0-ecs-tp-opt.tar.gz

    I am assuming here that I should be able to connect with WLAN after using these images. is it the correct assumption?

    When I loaded by SD card with the above mentioned images and power on the BBB with WL1835MOD cape, the LED on Cape gets lighted. After this I am tying to run the first demo of the WLAN. when I run the command ifconfig wlan0 up
    I dont see the following results :
    wlcore: PHY firmware version: Rev 8.2.0.0.146
    wlcore: firmware booted (Rev 8.4.0.0.26).

    I means the firmware is not yeet been loaded. Please tell me if I am missing anything.

    Further when I am scaning for APs I am able to see the AP but on trying to connect, I am not able to connect. It does not show any mesage:

    root@am335x-evm:/mnt/boot# iw wlan0 connect Puneet
    root@am335x-evm:/mnt/boot#

    Can you please advice. Further I want to connect using WAP. Can you send me the steps to setup WAP?
    Thanks
    puneet
  • Hi Puneet,

    Yes, WLAN should work without any issue with the images you are using.
    What do you see when you execute: "ifconfig -a" & "iw wlan0 scan"? Can you share the results?
    Have you connected the external power supply as well? This is required.

    To connect to an AP with security, please see the below link:
    http://processors.wiki.ti.com/index.php/Connect_to_Secure_AP_using_WPA_Supplicant

    Regards,
    Gigi Joseph.
  • HI Gigi Joseph,
    The external power is connected in my case. I can see the LED on cape switching "ON" when I do "ifconfig wlan0 up".

    ==============================
    root@am335x-evm:~# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 78:A5:04:CA:05:BF
    inet addr:192.168.0.171 Bcast:0.0.0.0 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:63 errors:0 dropped:0 overruns:0 frame:0
    TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:9086 (8.8 KiB) TX bytes:6132 (5.9 KiB)
    Interrupt:56

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

    wlan0 Link encap:Ethernet HWaddr 84:DD:20:7A:0B:46
    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:~# ifconfig wlan0 up
    root@am335x-evm:~#
    < I don't see any comments here. !!!!!>

    ================================
    root@am335x-evm:~# iw wlan0 scan | grep SSID
    SSID: InviPresence
    SSID: Puneet
    SSID: shaiju-e2500
    SSID: HP-Print-D1-Deskjet 3540 series
    SSID: Konoth
    SSID: SABAKAZI
    SSID: rajiv
    SSID: NETGEAR162
    SSID: shaiju-e2500-guest
    SSID: PGWIFI
    SSID:
    SSID: Viva603
    SSID: Winternet
    SSID:
    SSID: Sagar
    SSID: arnigs
    SSID: priya
    SSID: nowwifi
    SSID:
    SSID: Ayush
    SSID: Vikash
    SSID: BALAJI-PC_Network
    ================================================================
    The details printed for the access point I want to connect to is :
    BSS c0:a0:bb:ff:fb:e4 (on wlan0)
    TSF: 32601341090 usec (0d, 09:03:21)
    freq: 2417
    beacon interval: 100
    capability: ESS Privacy ShortSlotTime (0x0411)
    signal: -81.00 dBm
    last seen: 1590 ms ago
    Information elements from Probe Response frame:
    SSID: Puneet
    Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
    DS Parameter set: channel 2
    ERP: <no flags>
    Extended supported rates: 24.0 36.0 48.0 54.0
    HT capabilities:
    Capabilities: 0x186f
    RX LDPC
    HT20/HT40
    SM Power Save disabled
    RX HT20 SGI
    RX HT40 SGI
    No RX STBC
    Max AMSDU length: 7935 bytes
    DSSS/CCK HT40
    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
    Minimum RX AMPDU time spacing: 16 usec (0x07)
    HT RX MCS rate indexes supported: 0-15
    HT TX MCS rate indexes are undefined
    HT operation:
    * primary channel: 2
    * secondary channel offset: no secondary
    * STA channel width: 20 MHz
    * RIFS: 0
    * HT protection: no
    * non-GF present: 0
    * OBSS non-GF present: 0
    * dual beacon: 0
    * dual CTS protection: 0
    * STBC beacon: 0
    * L-SIG TXOP Prot: 0
    * PCO active: 0
    * PCO phase: 0
    Extended capabilities: HT Information Exchange Supported
    WPA: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: TKIP CCMP
    * Authentication suites: PSK
    RSN: * Version: 1
    * Group cipher: TKIP
    * Pairwise ciphers: TKIP CCMP
    * Authentication suites: PSK
    * Capabilities: 16-PTKSA-RC (0x000c)
    WMM: * Parameter version 1
    * BE: CW 15-1023, AIFSN 3
    * BK: CW 15-1023, AIFSN 7
    * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
    * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    WPS: * Version: 1.0
    * Wi-Fi Protected Setup State: 2 (Configured)
    * Response Type: 3 (AP)
    * UUID: 3529c6ca-a94c-1c9c-4f45-c0a0bbfffbe4
    * Manufacturer: D-Link Corporation
    * Model: DIR-803
    * Model Number: 00000000
    * Serial Number: 00000000
    * Primary Device Type: 6-0050f204-1
    * Device name: DIR-803
    * Config methods: Label, Display, PBC, Keypad
    * RF Bands: 0x3
    * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20

    Currently I am trying to build the kernel with WLAN configs and trying .waiting your response.
    Thanks
    Puneet
  • root@am335x-evm:~# iw wlan0 connect Puneet
    root@am335x-evm:~# iw wlan0 link
    Not connected.
  • Hi Puneet,

    "iw wlan0 connect <AP SSID>" would only work with AP that is "Open" (No security). To connect to APs with security, please see: http://processors.wiki.ti.com/index.php/Connect_to_Secure_AP_using_WPA_Supplicant

    Regards,
    Gigi Joseph.
  • Thanks Gigi,

           I could figure that out.Now the WLAN is working with WPA. One more question. Now that I have booted from SD card once. Is it possible that I can configure the board such that it should always boot up from SD card whenever the SD card is inserted. It should not be required every time to press the BOOT button in case SD card is inserted. I  want to keep the EMMC image as it is (dont want to flash that now) as it might be required to check somethings which were originally working.

    Thanks

    Puneet

  • Hi Puneet,

    I am not sure about this, I think you can post it in the Sitara forum.

    Regards,
    Gigi Joseph.
  • Hi Puneet,
    You can get a script to build a filesystem and kernel for debian K3.8 from http://processors.wiki.ti.com/index.php/WL1835_Cape_on_BeagleBone_with_Debian
    Iain

  • and there is no way to avoid pressing S2 every time the board is powered on.
    Iain