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.

Linux/DRA726: wifi server question

Part Number: DRA726

Tool/software: Linux

I need to connect an iPhone to our display thru wifi. No ethernet and no internet access, just connection between the device and the iPhone.

hostap perhaps, if so do you have some good documentation on the one that comes with the automotive yocto?

I need that for a demonstration to some customers, there will be no internet connection and no router available.

I got the device from odroid working as a client with the driver from Rashpberry Pi 4.4 kernel. The one with the TI SDK was not functional.

https://odroidinc.com/products/wifi-module-3

root@actia-global-display:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation

Michel Catudal

ACTIA Corp

  • We're looking into this. Feedback will be posted here.

    Best Regards,
    Yordan
  • Maybe ad hoc would work if the iPhone supports it. I do not have an iPhone to check yet. My phone is android and our demo will be with an iPhone.

    What do you think? Basically what will happen is that we will display some of what is normally on the simulated cluster (which is our 12 inch color display) on an iPhone.

    With ad hoc I should be able to specify a fixed IP

    Michel

  • I gave up on trying to get the TI scripts to work and use one of my slackware scripts

    #!/bin/sh
    /sbin/ifconfig wlan0 down
    /sbin/iwconfig wlan0 mode ad-hoc
    /sbin/iwconfig wlan0 channel 3
    /sbin/iwconfig wlan0 enc off
    /sbin/iwconfig wlan0 essid actia_corp
    /sbin/ifconfig wlan0 192.168.0.100 netmask 255.255.0.0
    /sbin/route add default gw 192.168.0.1

    It works nicely now, I can connect with the iPhone without issue.

    prior to that I always got this when connecting with iwconfig

    root@actia-global-display:/etc/network# iwconfig wlan0 essid actia_corp mode ad-hoc
    root@actia-global-display:/etc/network# [  660.597755] ------------[ cut here ]------------
    [  660.602458] WARNING: CPU: 0 PID: 940 at /home/michelcatudal/yocto-7inch-display/build/tmp/work-shared/actia-global-display/kernel-source/mm/page_alloc.c:3004 __alloc_pages_nodemask+0x55c/0x958()
    [  660.619885] Modules linked in: 8192cu cfg80211 rfkill xhci_plat_hcd xhci_hcd usbcore dwc3 udc_core bc_example(O) ecb pvrsrvkm(O) sha512_generic sha512_arm sha256_generic hmac md5 sha1_generic sha1_arm_neon sha1_arm nls_iso8859_1 n)
    [  660.653848] CPU: 0 PID: 940 Comm: RTW_CMD_THREAD Tainted: G           O    4.4.45-120090v01_04-g89944627d5 #8
    [  660.663800] Hardware name: Generic DRA72X (Flattened Device Tree)
    [  660.669915] Backtrace:
    [  660.672385] [<c0013b00>] (dump_backtrace) from [<c0013cfc>] (show_stack+0x18/0x1c)
    [  660.679982]  r7:c00db350 r6:200c0113 r5:00000000 r4:c089c6cc
    [  660.685693] [<c0013ce4>] (show_stack) from [<c02b74cc>] (dump_stack+0x8c/0xa0)
    [  660.692944] [<c02b7440>] (dump_stack) from [<c0034c28>] (warn_slowpath_common+0x88/0xb8)
    [  660.701064]  r7:c00db350 r6:00000bbc r5:00000009 r4:00000000
    [  660.706769] [<c0034ba0>] (warn_slowpath_common) from [<c0034cfc>] (warn_slowpath_null+0x24/0x2c)
    [  660.715586]  r8:00000014 r7:c0872658 r6:ea2c2000 r5:0208c020 r4:c08bdfae
    [  660.722345] [<c0034cd8>] (warn_slowpath_null) from [<c00db350>] (__alloc_pages_nodemask+0x55c/0x958)
    [  660.731514] [<c00dadf4>] (__alloc_pages_nodemask) from [<c00db954>] (alloc_kmem_pages+0x20/0xac)
    [  660.740331]  r10:0000001a r9:00000000 r8:ed23b160 r7:f30b20a4 r6:00000014 r5:0208c020
    [  660.748219]  r4:f30b2000
    [  660.750770] [<c00db934>] (alloc_kmem_pages) from [<c00f1f6c>] (kmalloc_order+0x18/0x30)
    [  660.758802]  r7:f30b20a4 r6:02088020 r5:ebd0c800 r4:f30b2000
    [  660.764509] [<c00f1f54>] (kmalloc_order) from [<c0112ba8>] (__kmalloc+0x1c4/0x218)
    [  660.772180] [<c01129e4>] (__kmalloc) from [<bf23d380>] (cfg80211_connect_result+0x44/0x110 [cfg80211])
    [  660.781520]  r9:00000000 r8:ed23b160 r7:f30b20a4 r6:ffffffe6 r5:ebd0c800 r4:f30b2000
    [  660.789448] [<bf23d33c>] (cfg80211_connect_result [cfg80211]) from [<bf2b8e64>] (rtw_cfg80211_indicate_connect+0x174/0x17c [8192cu])
    [  660.801405]  r10:ec951200 r9:bf2be760 r8:ea2c2020 r7:f30b204c r6:f312575c r5:ebd0c800
    [  660.809293]  r4:f30b2000 r3:ffffffe6
    [  660.812977] [<bf2b8cf0>] (rtw_cfg80211_indicate_connect [8192cu]) from [<bf2b5330>] (rtw_os_indicate_connect+0x14/0x48 [8192cu])
    [  660.824584]  r5:f30b2020 r4:f30b2000
    [  660.828266] [<bf2b531c>] (rtw_os_indicate_connect [8192cu]) from [<bf271c48>] (rtw_indicate_connect+0x60/0x7c [8192cu])
    [  660.839088]  r5:f30b2020 r4:f30b2000
    [  660.842771] [<bf271be8>] (rtw_indicate_connect [8192cu]) from [<bf271d78>] (rtw_stassoc_event_callback+0x114/0x12c [8192cu])
    [  660.854030]  r5:f30b2020 r4:f30b2000
    [  660.857713] [<bf271c64>] (rtw_stassoc_event_callback [8192cu]) from [<bf27f2e0>] (mlme_evt_hdl+0x7c/0x94 [8192cu])
    [  660.868100]  r7:f30b34a0 r6:f30b2000 r5:ec951200 r4:bf2bc1fc
    [  660.873885] [<bf27f264>] (mlme_evt_hdl [8192cu]) from [<bf267908>] (rtw_cmd_thread+0x1cc/0x27c [8192cu])
    [  660.883399]  r7:f30b34a0 r6:f30b3480 r5:f30b2000 r4:ee2ec1c0
    [  660.889144] [<bf26773c>] (rtw_cmd_thread [8192cu]) from [<c0050a0c>] (kthread+0xe4/0xfc)
    [  660.897263]  r10:00000000 r9:00000000 r8:00000000 r7:bf26773c r6:f30b2000 r5:ed3c1580
    [  660.905153]  r4:00000000
    [  660.907701] [<c0050928>] (kthread) from [<c000fd18>] (ret_from_fork+0x14/0x3c)
    [  660.914948]  r7:00000000 r6:00000000 r5:c0050928 r4:ed3c1580
    [  660.920732] ---[ end trace c8551f0e5231ff64 ]---
    [  660.929670] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready