• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » WLAN Applications Forum » Problem with wlan0 initialization and calibration
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Problem with wlan0 initialization and calibration

This question is answered
Fred Ford
Posted by Fred Ford
on Jul 12 2011 15:40 PM
Prodigy190 points

I've been working on the new release 5.02 with the intent of setting up the softAP within the kernel. But I am having problems with the open source drivers. so I backed up, overwritten my builds with the straight packaged 5.02 release , downloaded and installed it and ran in standard nfs configuration. I couldn't get calibrate to work, so I went back and followed the instructions as EXACTLY as possible. I build the SD card system redid the boot to use SD file system and got it running nicely - even the log files match.

Then I tried to calibrate it again - still times out. So I reran with debug(block below). The next steps are not as clear. Obviously this is not an acceptable outcome, and the wlan0 not coming up is possibly a consequence of not completing the calibration and generating the file.

 

What am I missing?

 

Thanks,

Fred

 

Starting kernel ...

 

Uncompressing Linux... done, booting the kernel.

Linux version 2.6.37 (jenkins@sdit-build01) (gcc version 4.3.3 (GCC) ) #2 PREEMPT Tue Jul 5 17:47:10 CDT 2011

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

CPU: VIVT data cache, VIVT instruction cache

Machine: DaVinci DA850/OMAP-L138/AM18x EVM

Memory policy: ECC disabled, Data cache writeback

DaVinci da850/omap-l138 variant 0x0

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off

.

.

.

Starting udev

udevd (85): /proc/85/oom_adj is deprecated, please use /proc/85/oom_score_adj instead.

udev: starting version 141

Remounting root file system...

cfg80211: Calling CRDA to update world regulatory domain

Compat-wireless backport release: compat-wireless-2011-04-26-3-g6542f4c

Backport based on wl12xx.git v2.6.35-33527-g1bbadc2

cfg80211: World regulatory domain updated:

cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

Caching udev devnodes

Populating dev cachewl1271: loaded

wl1271: initialized

mv: cannot rename '/tmp/devices': No such file or directory

NET: Registered protocol family 10

logger: mount: mount point /proc/bus/usb does not exist

ALSA: Restoring mixer settings...

Configuring network interfaces... davinci_mdio davinci_mdio.0: resetting idled controller

net eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:00, id=7c0f1)

ADDRCONF(NETDEV_UP): eth0: link is not ready

net eth0: DaVinci EMAC: ioctl not supported

eth0      no wireless extensions.

 

udhcpc (v1.13.2) started

Sending discover...

Sending discover...

Sending discover...

No lease, forking to background

done.

Setting up IP spoofing protection: rp_filter.

Thu Jul  7 13:46:00 UTC 2011

INIT: Entering runlevel: 5

Starting system message bus: dbus.

Starting Hardware abstraction layer hald

net eth0: DaVinci EMAC: ioctl not supported

Starting Dropbear SSH server: dropbear.

Starting telnet daemon.

Starting network benchmark server: netserver.

Starting syslogd/klogd: done

Starting thttpd.

Starting Matrix GUI application.

 

 _____                    _____           _         _

|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_

|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|

|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|

              |___|                    |___|

 

Arago Project http://arago-project.org am180x-evm ttyS2

 

Arago 2011.06 am180x-evm ttyS2

 

am180x-evm login: root

root@am180x-evm:~#

.

.
root@am180x-evm:/lib/firmware/ti-connectivity# calibrator --debug plt calibrate
wl1271: power up
wl1271: firmware booted in PLT mode (Rev 6.1.5.50.69)
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1310051523
    .nlmsg_pid = 1278
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 17 <0x11>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1310051523
    .nlmsg_pid = 1278
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1310051524
    .nlmsg_pid = 1278
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 17 <0x11>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1310051524
    .nlmsg_pid = 1278
---------------------------  END NETLINK MESSAGE   ---------------------------
wl1271: ERROR command complete timeout
------------[ cut here ]------------
WARNING: at /home/hudson/amsdk-nightly-build/arm9/arago-tmp/work/am180x-evm-arago-linux-gnueabi/ti-compat-wireless-wl12xx-0.20110517r3m1rc2-r57/compat-wireless-2.6/drivers/net/wireless/wl12xx/cmd.c:108 wl1271_cmd_send+0x344/0x388 [wl12xx]()
Modules linked in: wl12xx_sdio ipv6 wl12xx mac80211 minix compat cfg80211 [last unloaded: wl12xx_sdio]
Backtrace:
[<c0034698>] (dump_backtrace+0x0/0x10c) from [<c037496c>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:bf125dfc r5:bf135ea1 r4:0000006c
[<c0374954>] (dump_stack+0x0/0x1c) from [<c0045bc4>] (warn_slowpath_common+0x58/0x70)
[<c0045b6c>] (warn_slowpath_common+0x0/0x70) from [<c0045c00>] (warn_slowpath_null+0x24/0x2c)
 r8:00000208 r7:c312f82c r6:c3809180 r5:c3808de0 r4:ffffff92
[<c0045bdc>] (warn_slowpath_null+0x0/0x2c) from [<bf125dfc>] (wl1271_cmd_send+0x344/0x388 [wl12xx])
[<bf125ab8>] (wl1271_cmd_send+0x0/0x388 [wl12xx]) from [<bf127318>] (wl1271_cmd_test+0x34/0x54 [wl12xx])
[<bf1272e4>] (wl1271_cmd_test+0x0/0x54 [wl12xx]) from [<bf132c20>] (wl1271_tm_cmd+0xc8/0x37c [wl12xx])
 r4:c3808e04
[<bf132b58>] (wl1271_tm_cmd+0x0/0x37c [wl12xx]) from [<bf08418c>] (ieee80211_testmode_cmd+0x3c/0x48 [mac80211])
[<bf084150>] (ieee80211_testmode_cmd+0x0/0x48 [mac80211]) from [<bf039740>] (nl80211_testmode_do+0x60/0x6c [cfg80211])
[<bf0396e0>] (nl80211_testmode_do+0x0/0x6c [cfg80211]) from [<c02d4440>] (genl_rcv_msg+0x1f8/0x248)
 r4:00000000
[<c02d4248>] (genl_rcv_msg+0x0/0x248) from [<c02d265c>] (netlink_rcv_skb+0x58/0xbc)
[<c02d2604>] (netlink_rcv_skb+0x0/0xbc) from [<c02d4234>] (genl_rcv+0x28/0x3c)
 r6:c3033c00 r5:c04a2da0 r4:c3033c00
[<c02d420c>] (genl_rcv+0x0/0x3c) from [<c02d22cc>] (netlink_unicast+0x274/0x318)
 r5:0000023c r4:c387a600
[<c02d2058>] (netlink_unicast+0x0/0x318) from [<c02d2ca8>] (netlink_sendmsg+0x2b8/0x33c)
[<c02d29f0>] (netlink_sendmsg+0x0/0x33c) from [<c02a9ed4>] (sock_sendmsg+0x94/0xb0)
[<c02a9e40>] (sock_sendmsg+0x0/0xb0) from [<c02aa484>] (sys_sendmsg+0x1b0/0x20c)
 r6:c358a2c0 r5:00000000 r4:c3b11f34
[<c02aa2d4>] (sys_sendmsg+0x0/0x20c) from [<c0030fe0>] (ret_fast_syscall+0x0/0x2c)
---[ end trace ca2aa13a85588890 ]---
wl1271: WARNING TEST command failed
wl1271: WARNING testmode cmd test failed: -110
-- Debug: Received Message:
-------------------wl1271: power down
-------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 592
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1310051525
    .nlmsg_pid = 1278
  [ERRORMSG] 20 octets
    .error = -110 "Connection timed out"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 17 <0x11>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1310051525
    .nlmsg_pid = 1278
---------------------------  END NETLINK MESSAGE   ---------------------------
Fail to calibrate
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1310051526
    .nlmsg_pid = 1278
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 17 <0x11>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1310051526
    .nlmsg_pid = 1278

---------------------------  END NETLINK MESSAGE   ---------------------------

 

root@am180x-evm:~# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 0B:AD:DE:AD:BE:EF
          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)


 

AM1808 wl1273 Murata wlan0 initialize calibration
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Fred Ford
    Posted by Fred Ford
    on Jul 18 2011 08:19 AM
    Prodigy190 points

    Eyal,

    I went through all my environment and did find a problem with the bashrc file that caused my PATH variable to still include the Codesourcery compiler. I fixed that and confirmed that I was using the CROSS_COMPILE=arm-arago-linux-gnueabi- and that gcc identified its version as:

    Using built-in specs.
    Target: arm-arago-linux-gnueabi
    Configured with: /OE/arago-tmp/work/i686-armv5te-sdk-arago-linux-gnueabi/gcc-cross-sdk-4.3.3-r23.4-arago1/gcc-4.3.3/configure --build=i686-linux --host=i686-linux --target=arm-arago-linux-gnueabi --prefix=/arago-2011.06/armv5te --exec_prefix=/arago-2011.06/armv5te --bindir=/arago-2011.06/armv5te/bin --sbindir=/arago-2011.06/armv5te/bin --libexecdir=/arago-2011.06/armv5te/libexec --datadir=/arago-2011.06/armv5te/share --sysconfdir=/arago-2011.06/armv5te/etc --sharedstatedir=/arago-2011.06/armv5te/share/com --localstatedir=/arago-2011.06/armv5te/var --libdir=/arago-2011.06/armv5te/lib --includedir=/arago-2011.06/armv5te/include --oldincludedir=/arago-2011.06/armv5te/include --infodir=/arago-2011.06/armv5te/share/info --mandir=/arago-2011.06/armv5te/share/man --enable-largefile --disable-nls --enable-ipv6 --with-gnu-ld --enable-shared --enable-languages=c,c++,objc,fortran --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-arago-linux-gnueabi- --enable-target-optspace --enable-cheaders=c_std --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-float=soft --with-sysroot=/arago-2011.06/armv5te/arm-arago-linux-gnueabi --with-build-time-tools=/OE/arago-tmp/sysroots/i686-linux/usr/armv5te/arm-arago-linux-gnueabi/bin --with-build-sysroot=/OE/arago-tmp/sysroots/armv5te-arago-linux-gnueabi --disable-libunwind-exceptions --disable-libgomp --disable-libmudflap --with-mpfr=/OE/arago-tmp/sysroots/i686-linux/usr --enable-__cxa_atexit
    Thread model: posix
    gcc version 4.3.3 (GCC)

    All was good, or so I thought. Removed and cleaned the build directories, ran:

    make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    make da850_omapl138_defconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    make modules ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-gcc

    make modules_install INSTALL_MOD_PATH=/media/rootfs ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi

    Everything looked fine

    So I move the SD card over to the EVM and boot it up.

    cfg80211: disagrees about version of symbol module_layout

    I've checked and rechecked. The only thing I found, while grepping for the source of the error message, that looks suspicious is this:

    grep: patches/0004-PSP03.21.00.04.sdk-activate-wireless-extensions.patch: No such file or directory
    grep: patches/0005-Davinci-da850-Add-Mistral-WL12XX-config-support-to.patch: No such file or directory

    I went back and checked - no wireless modules of any sort were a part of the modules compile. Is there a separate script to build the cfg80211 and friends? Any other suggestions?


    I also trued the obvious thd recompiled without changing anything etc. I am not in the process of compiling everything from source, but I have a feeling I know what the outcome will be.

    Thanks,

    Fred

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal Reizer
    Posted by Eyal Reizer
    on Jul 18 2011 08:56 AM
    Intellectual1165 points

    Fred,

    The wireless modules are part of a compat-wireless package that has sperate SDK recipe.

    This is why you don't see it being built when you build the kernel.

    Can you try this pre-compiled uImage that is for the wl1273 module and let me know if it behaves better for you:

     

    4274.uImage-am180x-evm.zip

     

    Best Regards,

    Eyal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Fred Ford
    Posted by Fred Ford
    on Jul 18 2011 10:50 AM
    Prodigy190 points

    Eyal,

    Much better! Now how do I make that?

    Fred

    root@am180x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr AE:5F:57:37:54:7F 
              UP 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)
              Interrupt:33

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              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)

    root@am180x-evm:~# ifconfig wlan0 hw ether 00:22:33:44:55:66
    root@am180x-evm:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr AE:5F:57:37:54:7F 
              UP 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)
              Interrupt:33

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:260 (260.0 B)  TX bytes:260 (260.0 B)

    root@am180x-evm:~# ifconfig wlan0                          
    wlan0     Link encap:Ethernet  HWaddr 00:22:33:44:55:66 
              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@am180x-evm:~# ifconfig wlan0 up
    wl1271: firmware booted (Rev 6.1.5.50.69)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@am180x-evm:~# cd /usr/sbin
    root@am180x-evm:/usr/sbin# wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.con
    f -iwlan0 -B
    wpa_supplicant v0.8.x
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    eapol_version=1
    ap_scan=1
    fast_reauth=1
    Priority group 20
       id=18 ssid='example'
    Priority group 10
       id=4 ssid='example'
    Priority group 5
       id=0 ssid='simple'
       id=13 ssid='static-wep-test'
       id=14 ssid='static-wep-test2'
    Priority group 2
       id=1 ssid='second ssid'
       id=2 ssid='example'
       id=5 ssid='example'
       id=7 ssid='example'
    Priority group 1
       id=3 ssid='example'
    Priority group 0
       id=6 ssid='example'
       id=8 ssid='example'
       id=9 ssid=''
       id=10 ssid='1x-test'
       id=11 ssid='leap-example'
       id=12 ssid='plaintext-test'
       id=15 ssid='test adhoc'
       id=16 ssid='example'
       id=17 ssid='example'
       id=19 ssid=''
    nl80211: interface wlan0 in phy phy0
    rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
    nl80211: Using driver-based off-channel TX
    netlink: Operstate: linkmode=1, operstate=5
    nl80211: driver param='(null)'
    wlan0: Own MAC address: 00:22:33:44:55:66
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=3 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
    wlan0: RSN: flushing PMKID list in the driver
    wlan0: Setting scan request: 0 sec 100000 usec
    WPS: UUID based on MAC address - hexdump(len=16): 1e 9b a5 d7 80 ac 5f 95 9c 11 2d 6b 0e c2 68 0d
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: Supplicant port status: Unauthorized
    Using existing control interface directory.
    wlan0: Added interface wlan0
    Daemonize..
    root@am180x-evm:/usr/sbin# wl1271: down
    wl1271: firmware booted (Rev 6.1.5.50.69)
    wl1271: down
    wl1271: firmware booted (Rev 6.1.5.50.69)
    ADDRCONF(NETDEV_UP): wlan0: link is not ready
    ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    wl1271: Association completed.
    root@am180x-evm:/usr/sbin# ifconfig
    eth0      Link encap:Ethernet  HWaddr AE:5F:57:37:54:7F 
              UP 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)
              Interrupt:33

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:260 (260.0 B)  TX bytes:260 (260.0 B)

    wlan0     Link encap:Ethernet  HWaddr 00:22:33:44:55:66 
              inet6 addr: fe80::222:33ff:fe44:5566/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:52 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:3984 (3.8 KiB)  TX bytes:976 (976.0 B)

    root@am180x-evm:/usr/sbin# iw wlan0 scan
    BSS 00:1b:11:4b:e7:1b (on wlan0)
            TSF: 704057446784 usec (8d, 03:34:17)
            freq: 2412
            beacon interval: 100
            capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
            signal: -72.00 dBm
            last seen: 1640 ms ago
            Information elements from Probe Response frame:
            SSID: GlenEllen
            Supported rates: 1.0* 2.0* 5.5* 11.0*
            DS Parameter set: channel 1
            ERP: <no flags>
            Extended supported rates: 6.0 9.0 12.0 18.0 24.0 36.0 48.0 54.0
            RSN:     * Version: 1
                     * Group cipher: TKIP
                     * Pairwise ciphers: TKIP CCMP
                     * Authentication suites: PSK
                     * Capabilities: (0x0000)
            WPA:     * Version: 1
                     * Group cipher: TKIP
                     * Pairwise ciphers: TKIP CCMP
                     * Authentication suites: PSK
            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
            HT capabilities:
                    Capabilities: 0x104e
                            HT20/HT40
                            SM Power Save disabled
                            RX HT40 SGI
                            No RX STBC
                            Max AMSDU length: 3839 bytes
                            DSSS/CCK HT40
                    Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
                    Minimum RX AMPDU time spacing: 8 usec (0x06)
                    HT RX MCS rate indexes supported: 0-15
                    HT TX MCS rate indexes are undefined
            WPS:     * Version: 1.0
                     * Wi-Fi Protected Setup State: 2 (Configured)
                     * Response Type: 3 (AP)
                     * Unknown TLV (0x1047, 16 bytes): 1e 6a 08 75 e2 d3 38 ff b4 72 c9 82 f2 5a fa 9f
                     * Manufacturer: D-Link Systems
                     * Model: DIR-655
                     * Model Number: A1/A2
                     * Serial Number: none
                     * Primary Device Type: 6-0050f204-1
                     * Device name: Xtreme N GIGABIT Router
                     * Config methods:
    BSS e0:cb:4e:95:d4:e7 (on wlan0) -- associated
            TSF: 246186602971 usec (2d, 20:23:06)
            freq: 2412
            beacon interval: 100
            capability: ESS (0x0001)
            signal: -81.00 dBm
            last seen: 1700 ms ago
            Information elements from Probe Response frame:
            SSID: GlenEllenA
            Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
            DS Parameter set: channel 1
            ERP: Barker_Preamble_Mode
            Extended supported rates: 6.0 9.0 12.0 48.0
    BSS 00:1b:11:53:f4:01 (on wlan0)
            TSF: 7832688161 usec (0d, 02:10:32)
            freq: 2462
            beacon interval: 100
            capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
            signal: -87.00 dBm
            last seen: 1550 ms ago
            Information elements from Probe Response frame:
            SSID: WhiteCap
            Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 12.0 24.0 36.0
            DS Parameter set: channel 11
            ERP: <no flags>
            Extended supported rates: 9.0 18.0 48.0 54.0
            RSN:     * Version: 1
                     * Group cipher: TKIP
                     * Pairwise ciphers: TKIP
                     * Authentication suites: PSK
                     * Capabilities: PreAuth (0x0001)
            WPA:     * Version: 1
                     * Group cipher: TKIP
                     * Pairwise ciphers: TKIP
                     * Authentication suites: PSK
    root@am180x-evm:/usr/sbin# ifconfig
    eth0      Link encap:Ethernet  HWaddr AE:5F:57:37:54:7F 
              UP 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)
              Interrupt:33

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:4 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:260 (260.0 B)  TX bytes:260 (260.0 B)

    wlan0     Link encap:Ethernet  HWaddr 00:22:33:44:55:66 
              inet6 addr: fe80::222:33ff:fe44:5566/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:123 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:9099 (8.8 KiB)  TX bytes:976 (976.0 B)

    root@am180x-evm:/usr/sbin#

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal Reizer
    Posted by Eyal Reizer
    on Jul 18 2011 13:43 PM
    Intellectual1165 points

    Fred,

     

    I have actually done a similar thing to what you have done.

    Just changed the PSP .config to use the different refernce clock value as we discussed and and just did:

     

    make uImage

    No need to even do "make modules" as we just need to replace the kernel. Everything else in the file system had stayed as in the original zip.

     

    I assume you are using the GCC that came together with the SDK installation, right?

     

    Can you attach your ".config" and a full capture of your screen from running "make uImage"

     

    Best Regards,

    Eyal

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Fred Ford
    Posted by Fred Ford
    on Jul 19 2011 15:28 PM
    Prodigy190 points

    Eyal,

     

    OK, uncle. I've tried it six days from Sunday and I have no other ideas. I downloaded a new install of the 5.02 SDK, ran the   changed and ran the following commands:

    . ~/ti-sdk-am180x-evm-05.02.00.00/linux-devkit/environment-setup

    [linux-devkit]:~/ti-sdk-am180x-evm-05.02.00.00/psp/linux-2.6.37-psp03.21.00.04.button> arm-arago-linux-gnueabi-gcc -v
    Using built-in specs.
    Target: arm-arago-linux-gnueabi
    Configured with: /OE/arago-tmp/work/i686-armv5te-sdk-arago-linux-gnueabi/gcc-cross-sdk-4.3.3-r23.4-arago1/gcc-4.3.3/configure --build=i686-linux --host=i686-linux --target=arm-arago-linux-gnueabi --prefix=/arago-2011.06/armv5te --exec_prefix=/arago-2011.06/armv5te --bindir=/arago-2011.06/armv5te/bin --sbindir=/arago-2011.06/armv5te/bin --libexecdir=/arago-2011.06/armv5te/libexec --datadir=/arago-2011.06/armv5te/share --sysconfdir=/arago-2011.06/armv5te/etc --sharedstatedir=/arago-2011.06/armv5te/share/com --localstatedir=/arago-2011.06/armv5te/var --libdir=/arago-2011.06/armv5te/lib --includedir=/arago-2011.06/armv5te/include --oldincludedir=/arago-2011.06/armv5te/include --infodir=/arago-2011.06/armv5te/share/info --mandir=/arago-2011.06/armv5te/share/man --enable-largefile --disable-nls --enable-ipv6 --with-gnu-ld --enable-shared --enable-languages=c,c++,objc,fortran --enable-threads=posix --disable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-arago-linux-gnueabi- --enable-target-optspace --enable-cheaders=c_std --enable-libssp --disable-bootstrap --disable-libgomp --disable-libmudflap --with-float=soft --with-sysroot=/arago-2011.06/armv5te/arm-arago-linux-gnueabi --with-build-time-tools=/OE/arago-tmp/sysroots/i686-linux/usr/armv5te/arm-arago-linux-gnueabi/bin --with-build-sysroot=/OE/arago-tmp/sysroots/armv5te-arago-linux-gnueabi --disable-libunwind-exceptions --disable-libgomp --disable-libmudflap --with-mpfr=/OE/arago-tmp/sysroots/i686-linux/usr --enable-__cxa_atexit
    Thread model: posix
    gcc version 4.3.3 (GCC)

    make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    vi arch/arm/configs/da850_omapl138_defconfig
    make da850_omapl138_defconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    I copied it over the same way I copied your bin...

    The only thing I thought of while I was writing this is that the mkImage I was using was still an old one - could that be it? Never mind I'll try it after I post this and get back quiclkly if that resolves it.

    I captured the entire make output using tee, but it is gigantic - is there perhaps an FTP site I could copy it to?

    here is a diff with the release defconfig:

    [linux-devkit]:~/ti-sdk-am180x-evm-05.02.00.00/psp/linux-2.6.37-psp03.21.00.04.button/arch/arm/configs> diff da850_omapl138_defconfig ../../../../linux-2.6.37-psp03.21.00.04.sdk/arch/arm/configs
    284c284
    < CONFIG_DA850_MISTRAL_WL12XX_REFCLOCK=1
    ---
    > CONFIG_DA850_MISTRAL_WL12XX_REFCLOCK=2
    [linux-devkit]:~/ti-sdk-am180x-evm-05.02.00.00/psp/linux-2.6.37-psp03.21.00.04.button/arch/arm/configs>

    I can only guess it has to do wih something else on my server. But I am running an approved OS - Ubuntu 10.04 desktop. I'm now going to try it all on my laptop which can run Ubuntu 10.10.

    Here is the beginning of the make output:

    [linux-devkit]:~/ti-sdk-am180x-evm-05.02.00.00/psp/linux-2.6.37-psp03.21.00.04.button> more make.tee
    scripts/kconfig/conf --silentoldconfig Kconfig
      CHK     include/linux/version.h
      UPD     include/linux/version.h
      CHK     include/generated/utsrelease.h
      UPD     include/generated/utsrelease.h
      Generating include/generated/mach-types.h
      CC      kernel/bounds.s
      GEN     include/generated/bounds.h
      CC      arch/arm/kernel/asm-offsets.s
      GEN     include/generated/asm-offsets.h
      CALL    scripts/checksyscalls.sh
      HOSTCC  scripts/genksyms/genksyms.o
      SHIPPED scripts/genksyms/lex.c
      SHIPPED scripts/genksyms/parse.h
      SHIPPED scripts/genksyms/keywords.c
      HOSTCC  scripts/genksyms/lex.o
      SHIPPED scripts/genksyms/parse.c
      HOSTCC  scripts/genksyms/parse.o
      HOSTLD  scripts/genksyms/genksyms
      CC      scripts/mod/empty.o
      HOSTCC  scripts/mod/mk_elfconfig
      MKELF   scripts/mod/elfconfig.h
      HOSTCC  scripts/mod/file2alias.o
      HOSTCC  scripts/mod/modpost.o
      HOSTCC  scripts/mod/sumversion.o
      HOSTLD  scripts/mod/modpost
      HOSTCC  scripts/kallsyms
      HOSTCC  scripts/pnmtologo
      HOSTCC  scripts/conmakehash
      HOSTCC  scripts/bin2c
      CC      init/main.o
      CHK     include/generated/compile.h
      UPD     include/generated/compile.h
      CC      init/version.o
      CC      init/do_mounts.o
      CC      init/do_mounts_rd.o
      CC      init/do_mounts_initrd.o
      LD      init/mounts.o
      CC      init/initramfs.o
      CC      init/calibrate.o
      LD      init/built-in.o
      HOSTCC  usr/gen_init_cpio
      GEN     usr/initramfs_data.cpio
      AS      usr/initramfs_data.o
      LD      usr/built-in.o
      CC      arch/arm/kernel/elf.o
      AS      arch/arm/kernel/entry-armv.o
      AS      arch/arm/kernel/entry-common.o
      CC      arch/arm/kernel/irq.o
      CC      arch/arm/kernel/process.o
      CC      arch/arm/kernel/ptrace.o
      CC      arch/arm/kernel/return_address.o
      CC      arch/arm/kernel/setup.o
      CC      arch/arm/kernel/signal.o
      CC      arch/arm/kernel/sys_arm.o
      CC      arch/arm/kernel/stacktrace.o
      CC      arch/arm/kernel/time.o
      CC      arch/arm/kernel/traps.o
      CC      arch/arm/kernel/leds.o
      CC      arch/arm/kernel/armksyms.o
      CC      arch/arm/kernel/module.o
      CC      arch/arm/kernel/io.o
      LD      arch/arm/kernel/built-in.o
      AS      arch/arm/kernel/head.o
      CC      arch/arm/kernel/init_task.o
      LDS     arch/arm/kernel/vmlinux.lds
      CC      arch/arm/mm/dma-mapping.o
      CC      arch/arm/mm/extable.o
      CC      arch/arm/mm/fault.o
      CC      arch/arm/mm/init.o
      CC      arch/arm/mm/iomap.o
      CC      arch/arm/mm/fault-armv.o
      CC      arch/arm/mm/flush.o
      CC      arch/arm/mm/ioremap.o
      CC      arch/arm/mm/mmap.o
      CC      arch/arm/mm/pgd.o
      CC      arch/arm/mm/mmu.o
      CC      arch/arm/mm/vmregion.o
      CC      arch/arm/mm/proc-syms.o
      CC      arch/arm/mm/alignment.o
      AS      arch/arm/mm/abort-ev5tj.o
      AS      arch/arm/mm/pabort-legacy.o
      CC      arch/arm/mm/copypage-v4wb.o
      AS      arch/arm/mm/tlb-v4wbi.o
      AS      arch/arm/mm/proc-arm926.o

     

    Fred

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Fred Ford
    Posted by Fred Ford
    on Jul 20 2011 00:06 AM
    Prodigy190 points

    Eyal.

     

    OK, I took my laptop and created a new partition on the hard drive. I then loaded Ubuntu 10.04 into that partition. I downloaded an new copy of the Sitara 5.02 release. I set the environment for the compilers on the release, and then built the u-boot (for mkImage) and linked the tools directory into the PATH and went over to the kernel. I then changed the one line in the defconfig and did the full make, created the uImage, copied it to the SD card.

    With baited breath I plugged it into my evm and watched it boot. SAME FAILURE!!!

    The problem is something I am doing differently than you are and that I fully documented in these last two posts. Could you carefully check the commands I am using and Tell me shat you did differently? These are the only things in common between these runs. The error MUST be here

    . ~/ti-sdk-am180x-evm-05.02.00.00/linux-devkit/environment-setup

    make distclean ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    vi arch/arm/configs/da850_omapl138_defconfig
    make da850_omapl138_defconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-
    make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    Thanks,

    Fred

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal Reizer
    Posted by Eyal Reizer
    on Jul 20 2011 01:10 AM
    Intellectual1165 points

    Fred,

     

    I am going to try and replicate exactly what you are doing as I don't see anything wrong.

    In the meantime, if you could do just one more test and use the attached defconfig.txt file as your ".config" .

    (dont do "make defconfig...) just copy the file as your .config and run :

     

    "make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-"

     

    6518.defconfig.txt

     

    Best Regards,

    Eyal

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal Reizer
    Posted by Eyal Reizer
    on Jul 20 2011 06:29 AM
    Intellectual1165 points

    Fred,

     

    OK, ww have recreated the same problem you are seeing when we did a clean install from the SDK image.

    Aparently there is a problem with the da850_omapl138_defconfig (and the .config)  files that are inside the PSP.

    Please use the attached file as your .config (The ref clock value is already set to 1 for your 1273 module).

    This should hopefully solve your problem.

    1882.wl1273.config

    We are going to check with the SDK team and find how we got a bad defconfig file into the PSP in the SDK release.

    Best Regards,

    Eyal Reizer

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Fred Ford
    Posted by Fred Ford
    on Jul 20 2011 09:44 AM
    Verified Answer
    Verified by Fred Ford
    Prodigy190 points

    Eyal,

     

    Better yet, I have verified the solution. For the first time, I can generate an acceptable uImage.

    In the middle there I really wasn't sure which was was up. But I'm not good at giving up, and apparently neither are you so we eventually found a solution. Thanks you for your assistance and hopefully we can save someone else the same trougles.

    Till the next one,

    Fred

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use