Sorry, you need to enable JavaScript to visit this website.

petalinux 2016.4 and wilink : wpa_supplicant not working

Unsolved
2 posts / 0 new
mail2sbansal
Junior(0)
petalinux 2016.4 and wilink : wpa_supplicant not working

Hello all,
I am working on integrating the ti wilink on my custom unit which is dual core zynq platform. I am using petalinux 2016.4. I followed the instructions from  and also the instructions from one of the forum members to integrate the chip. I see that wilink chip is coming up but now when I try to run the wpa_supplicant or wpa_cli or iw it shows me 

-sh: /usr/local/sbin/wpa_supplicant: No such file or directory 
I get the same error for all the tools like iw, crda, wpa_cli, wpa_passphrase 
Can somebody help me understand why am I getting this error?
 
I created a install template app and then changed the .bb file to cp the tools and libraries in the rootfs.
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d 
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache 
Machine model: test 
bootconsole [earlycon0] enabled 
cma: Reserved 16 MiB at 0x3f000000 
Memory policy: Data cache writealloc 
percpu: Embedded 12 pages/cpu @ef7d2000 s19776 r8192 d21184 u49152 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608 
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait 
PID hash table entries: 4096 (order: 2, 16384 bytes) 
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) 
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) 
Memory: 994028K/1048576K available (6323K kernel code, 240K rwdata, 1980K rodata, 1024K init, 230K bss, 38164K reserved, 16384K cma-reserved, 245760K highmem 

Virtual kernel memory layout: 
   vector  : 0xffff0000 - 0xffff1000   (   4 kB) 
   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB) 
   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB) 
   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB) 
   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB) 
   modules : 0xbf000000 - 0xbfe00000   (  14 MB) 
     .text : 0xc0008000 - 0xc091bf34   (9296 kB) 
     .init : 0xc0a00000 - 0xc0b00000   (1024 kB) 
     .data : 0xc0b00000 - 0xc0b3c3e0   ( 241 kB) 
      .bss : 0xc0b3c3e0 - 0xc0b75cfc   ( 231 kB) 
Preemptible hierarchical RCU implementation. 
       Build-time adjustment of leaf fanout to 32. 
       RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. 
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 
NR_IRQS:16 nr_irqs:16 16 
efuse mapped to f0802000 
slcr mapped to f0804000 
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 
L2C-310 erratum 769419 enabled 
L2C-310 enabling early BRESP for Cortex-A9 
L2C-310 full line of zeros enabled for Cortex-A9 
L2C-310 ID prefetch enabled, offset 1 lines 
L2C-310 dynamic clock gating enabled, standby mode enabled 
L2C-310 cache controller enabled, 8 ways, 512 kB 
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 
zynq_clock_init: clkc starts at f0804100 
Zynq clock init 
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns 
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns 
Switching to timer-based delay loop, resolution 3ns 
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns 
timer #0 at f080c000, irq=17 
Console: colour dummy device 80x30 
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333) 
pid_max: default: 32768 minimum: 301 
Security Framework initialized 
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) 
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) 
CPU: Testing write buffer coherency: ok 
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 
Setting up static identity map for 0x100000 - 0x100058 
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 
Brought up 2 CPUs 
SMP: Total of 2 processors activated (1333.33 BogoMIPS). 
CPU: All CPU(s) started in SVC mode. 
devtmpfs: initialized 
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns 
pinctrl core: initialized pinctrl subsystem 
NET: Registered protocol family 16 
DMA: preallocated 256 KiB pool for atomic coherent allocations 
cpuidle: using governor menu 
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. 
hw-breakpoint: maximum watchpoint size is 4 bytes. 
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000 
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized 
GPIO IRQ not connected 
XGpio: /amba_pl/gpio@41200000: registered, base is 874 
vgaarb: loaded 
SCSI subsystem initialized 
usbcore: registered new interface driver usbfs 
usbcore: registered new interface driver hub 
usbcore: registered new device driver usb 
media: Linux media interface: v0.10 
Linux video capture interface: v2.00 
pps_core: LinuxPPS API ver. 1 registered 
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it
PTP clock support registered 
EDAC MC: Ver: 3.0.0 
Advanced Linux Sound Architecture Driver Initialized. 
clocksource: Switched to clocksource arm_global_timer 
NET: Registered protocol family 2 
TCP established hash table entries: 8192 (order: 3, 32768 bytes) 
TCP bind hash table entries: 8192 (order: 4, 65536 bytes) 
TCP: Hash tables configured (established 8192 bind 8192) 
UDP hash table entries: 512 (order: 2, 16384 bytes) 
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) 
NET: Registered protocol family 1 
RPC: Registered named UNIX socket transport module. 
RPC: Registered udp transport module. 
RPC: Registered tcp transport module. 
RPC: Registered tcp NFSv4.1 backchannel transport module. 
Trying to unpack rootfs image as initramfs... 
Freeing initrd memory: 18248K (c6e2e000 - c8000000) 
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available 
futex hash table entries: 512 (order: 3, 32768 bytes) 
workingset: timestamp_bits=28 max_order=18 bucket_order=0 
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc. 
bounce: pool size: 64 pages 
io scheduler noop registered 
io scheduler deadline registered 
io scheduler cfq registered (default) 
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 
xilinx-vdma 40400000.dma: Xilinx AXI VDMA Engine Driver Probed!! 
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 143, base_baud = 3125000) is a xuartps 
�console [ttyPS0] enabled 
console [ttyPS0] enabled 
bootconsole [earlycon0] disabled 
bootconsole [earlycon0] disabled 
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0904000 
[drm] Initialized drm 1.1.0 20060810 
brd: module loaded 
loop: module loaded 
m25p80 spi0.0: found n25q256a, expected m25p80 
m25p80 spi0.0: n25q256a (32768 Kbytes) 
4 ofpart partitions found on MTD device spi0.0 
Creating 4 MTD partitions on "spi0.0": 
0x000000000000-0x000000500000 : "boot" 
0x000000500000-0x000000520000 : "bootenv" 
0x000000520000-0x000000fa0000 : "kernel" 
0x000000fa0000-0x000002000000 : "spare" 
CAN device driver interface 
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k 
e1000e: Copyright(c) 1999 - 2015 Intel Corporation. 
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 
ehci-pci: EHCI PCI platform driver 
usbcore: registered new interface driver usb-storage 
e0002000.usb supply vbus not found, using dummy regulator 
ci_hdrc ci_hdrc.0: unable to init phy: -110 
ci_hdrc: probe of ci_hdrc.0 failed with error -110 
mousedev: PS/2 mouse device common for all mice 
i2c /dev entries driver 
EDAC MC: ECC not enabled 
Xilinx Zynq CpuIdle Driver started 
sdhci: Secure Digital Host Controller Interface driver 
sdhci: Copyright(c) Pierre Ossman 
sdhci-pltfm: SDHCI platform and OF driver helper 
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA 
mmc0: new high speed SDHC card at address aaaa 
mmcblk0: mmc0:aaaa SL08G 7.40 GiB  
mmcblk0: p1 p2 
mmc1: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using DMA 
ledtrig-cpu: registered to indicate activity on CPUs 
usbcore: registered new interface driver usbhid 
usbhid: USB HID core driver 
sdhci-arasan e0101000.sdhci: card claims to support voltages below defined range 
NET: Registered protocol family 10 
sit: IPv6 over IPv4 tunneling driver 
NET: Registered protocol family 17 
can: controller area network core (rev 20120528 abi 9) 
mmc1: new high speed SDIO card at address 0001 
NET: Registered protocol family 29 
can: raw protocol (rev 20120528) 
wl18xx_driver wl18xx.0.auto: Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2 
can: broadcast manager protocol (rev 20120528 t) 
can: netlink gateway (rev 20130117) max_hops=1 
Registering SWP/SWPB emulation handler 
hctosys: unable to open rtc device (rtc0) 
ALSA device list: 
 No soundcards found. 
wlcore: ERROR could not get configuration binary ti-connectivity/wl18xx-conf.bin: -2 
wlcore: WARNING falling back to default config 
Freeing unused kernel memory: 1024K (c0a00000 - c0b00000) 
INIT: version 2.88 booting 
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) 
wlcore: loaded 
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. 
EXT4-fs (mmcblk0p2): recovery complete 
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) 
random: dd urandom read with 6 bits of entropy available 
Mon Oct 16 04:22:56 UTC 2017 
Starting internet superserver: inetd. 
INIT: Entering runlevel: 5 
Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device 
Starting Dropbear SSH server: Generating key, this may take a while... 
Public key portion is: 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSF07vI+iNCa5WUK9H7+K4NUmYR+f35DKYSI1DOPZK0oOW4m8OQNF4ckO976Tv6G2x9CJj/hLLDtHEazxCJs9IScamnFo3lZum8PuVSCIR856sKgNjolnZA 
UptLyLgCRXHU+tt5NTu7JfiZ6EknYbz9YmXiP6LD9TFvr2Lv2rqfDmCUjFin2Hj/y0LdHYaPN7e8BIRqXgf+of+KJq9dBinhRfEdA+cW2LkFNL4c/dLztiwFICm5orRAl50OHCJmN9u+1qInTQ0ESTDtVOJ6M 
qY8K9XG90//ySpOCLE9C5I8vbMsICH0O0eRZox/+/wJW0xZQgqkQ5PLTJ8Sfie8Zt1 root@plnx_arm 
Fingerprint: md5 24:47:5f:b0:59:00:33:8d:0f:59:de:68:90:59:fd:99 
dropbear. 
Starting syslogd/klogd: done 
Starting tcf-agent: OK 

PetaLinux 2016.4 plnx_arm /dev/ttyPS0 

plnx_arm login: root 
Password:  
root@plnx_arm:~# ifconfig 
lo        Link encap:Local Loopback   
         inet addr:127.0.0.1  Mask:255.0.0.0 
         inet6 addr: ::1%768144/128 Scope:Host 
         UP LOOPBACK RUNNING  MTU:65536  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:1  
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 

root@plnx_arm:~# ifconfig wlan0 up 
wlcore: PHY firmware version: Rev 8.2.0.0.237 
wlcore: firmware booted (Rev 8.9.0.0.70) 
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready 
root@plnx_arm:~# ifconfig 
lo        Link encap:Local Loopback   
         inet addr:127.0.0.1  Mask:255.0.0.0 
         inet6 addr: ::1%768144/128 Scope:Host 
         UP LOOPBACK RUNNING  MTU:65536  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:1  
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 

wlan0     Link encap:Ethernet  HWaddr 38:D2:69:B7:A6:76   
         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)

root@plnx_arm:~# wpa_supplicant  
-sh: /usr/local/sbin/wpa_supplicant: No such file or directory 
root@plnx_arm:~#

fletch
Moderator(18)
We are no longer supporting

We are no longer supporting the TI WiLink. Would you consider switching to the Murata 1DX? We have found it to work much better. You will find it on MiniZed, or you can add a Pmod to any other development board, like ZedBoard

http://avnet.me/pmod_1dx

http://zedboard.org/content/adding-wi-fi-and-bluetooth-connectivity-zedb...

 

Bryan