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.

Porting Openwrt for OMAP 4430

Other Parts Discussed in Thread: WL1271

Dear all,

           I have built openwrt for OMAP4430 and was able to boot the board successfully. I am trying to enable wifi in the built by selecting the option kmod-wl12xx. When I give make after saving the configuration file, i get the following error as wl12xx.ko file is missing.

I am unable to find the procedure to build the WLAN for OMAP4430 board. Could you provide me the steps for it?

 

Thanks in advance

Sheriff Manzoor

  • Hi sheriff,

    Examine this change in the makefile, hope it will resolve your issue

    https://dev.openwrt.org/changeset/38333

    Regards,

    Boyko

  • Dear Boyko,

                          Thanks for response. I was able to solve the error. But after the build was done successfully, I flashed the image to the board . When I turned on the Wifi by just giving the "wifi" command, I get the following error.

    " root@OpenWrt:/# wifi

    Configuration file: /var/run/hostapd-phy0.conf

    Line 49: unknown configuration item 'ieee80211n'

    Line 50: unknown configuration item 'ht_capab'

    2 error found in configuration file '/var/run/hostapd-phy0.conf'

    Failed to set up interface with /var/run/hostapd-phy0.conf

    Failed to initialize interface

    Failed to start hostapd for phy0

    root@OpenWrt:/#  "

    Can you help me in solving this issue?

    Regards

    Sheriff

  • Hi Sheriff,

    can you post the content of hostapd.conf ( also  you can start hostapd  with hostapd -dd /etc/hostapd/hostapd.conf for precise output dignostics)

    Regards,

    Boyko

  • Hi Boyko,

                     I have searched for hostapd.conf file. But its not there. Am I missing anything while i am building Openwrt?

    Below i have pasted the hostapd-phy0.conf file.

    *******************************************************************************************************

    ctrl_interface=/var/run/hostapd-phy0
    driver=nl80211
    wmm_ac_bk_cwmin=4
    wmm_ac_bk_cwmax=10
    wmm_ac_bk_aifs=7
    wmm_ac_bk_txop_limit=0
    wmm_ac_bk_acm=0
    wmm_ac_be_aifs=3
    wmm_ac_be_cwmin=4
    wmm_ac_be_cwmax=10
    wmm_ac_be_txop_limit=0
    wmm_ac_be_acm=0
    wmm_ac_vi_aifs=2
    wmm_ac_vi_cwmin=3
    wmm_ac_vo_cwmax=3
    wmm_ac_vo_txop_limit=47
    wmm_ac_vo_acm=0
    tx_queue_data3_aifs=7
    tx_queue_data3_cwmin=15
    tx_queue_data3_cwmax=1023
    tx_queue_data3_burst=0
    tx_queue_data2_aifs=3
    tx_queue_data2_cwmin=15
    tx_queue_data2_cwmax=63
    tx_queue_data2_burst=0
    tx_queue_data1_aifs=1
    tx_queue_data1_cwmin=7
    tx_queue_data1_cwmax=15
    tx_queue_data1_burst=3.0
    tx_queue_data0_aifs=1
    tx_queue_data0_cwmin=3
    wmm_ac_vi_cwmax=4     
    wmm_ac_vi_txop_limit=94
    wmm_ac_vi_acm=0        
    wmm_ac_vo_aifs=2       
    wmm_ac_vo_cwmin=2      
    wmm_ac_vo_cwmax=3      
    wmm_ac_vo_txop_limit=47
    wmm_ac_vo_acm=0        
    tx_queue_data3_aifs=7  
    tx_queue_data3_cwmin=15
    tx_queue_data3_cwmax=1023
    tx_queue_data3_burst=0   
    tx_queue_data2_aifs=3    
    tx_queue_data2_cwmin=15  
    tx_queue_data2_cwmax=63  
    tx_queue_data2_burst=0   
    tx_queue_data1_aifs=1    
    tx_queue_data1_cwmin=7   
    tx_queue_data1_cwmax=15  
    tx_queue_data1_burst=3.0
    tx_queue_data0_aifs=1   
    tx_queue_data0_cwmin=3  
    tx_queue_data0_cwmax=7  
    tx_queue_data0_burst=1.5
    hw_mode=g               
    channel=11  




                             
    logger_syslog=127        
    logger_syslog_level=2    
    logger_stdout=127        
    logger_stdout_level=2    
    ieee80211n=1             
    ht_capab=[HT20][GF][SHORT-GI-20][RX-STBC1]
                             
    interface=wlan0                           
    ctrl_interface=/var/run/hostapd-phy0      
    disassoc_low_ack=1                        
    preamble=1                                
    auth_algs=1                               
    wpa=0                                     
    ssid=OpenWrt                              
    bridge=br-lan                             
    wmm_enabled=1                             
    bssid=de:ad:be:ef:00:00                   
    ignore_broadcast_ssid=0

    ****************************************************************************************

    Regards

    Sheriff

  • Sorry for the typo, I meant exacly hostapd-phy0.conf. ( hostpd -v to check its version)

    When you build your os what version did you use and do you have  the option below enabled?

    CONFIG_IEEE80211N=y

    Regards,

    Boyko

  • Hi Boyko,

                     I have pasted the hostapd version below.

    ********************************************************

    root@OpenWrt:/# hostapd -v
    hostapd v2.1-devel
    User space daemon for IEEE 802.11 AP management,
    IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
    Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> and contributors
    root@OpenWrt:/#

    *************************************************************

    Yes the option CONFIG_IEEE80211N=y was enabled and it was there in hostapd -> .config file.



    Regards

    Sheriff


  • CONFIG_IEEE80211N=y is build option. How do you build your project?

    If you use first make menuconfig then you can check with /openwrt/scripts/diffconfig.sh the non-default options generated to .config file which later on you can modify.

    Regards,

    Boyko

  • Hi Boyko,

                    Let me explain how I build Openwrt. In the make menuconfig, I used to select the necessary packages and would save and build it. There I don't find any option to enable the CONFIG_IEEE80211N. Instead I select the following packages to enable wifi:

    Kernel Modules->Wireless Drivers->kmod-cfg80211

                                                                   ->kmod-lib80211

                                                                   ->kmod-mac80211

                                                                   ->kmod-wl12xx

    Network->wireless->horst

                                     ->xsupplicant

    Network->hostapd

                     ->hostapd-utils

                     ->iw

                     ->wpad

    The above are the options that i have selected. 

    Below are the contents of the /trunk/scripts/diffconfig.sh

    ****************************************************************

    #!/bin/sh
    grep \^CONFIG_TARGET_ .config | head -n3 > tmp/.diffconfig.head
    grep '^CONFIG_ALL=y' .config >> tmp/.diffconfig.head
    grep '^CONFIG_DEVEL=y' .config >> tmp/.diffconfig.head
    grep '^CONFIG_TOOLCHAINOPTS=y' .config >> tmp/.diffconfig.head
    ./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage1 Config.in >/dev/null
    ./scripts/kconfig.pl '>+' tmp/.diffconfig.stage1 .config >> tmp/.diffconfig.head
    ./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage2 Config.in >/dev/null
    ./scripts/kconfig.pl '>' tmp/.diffconfig.stage2 .config >> tmp/.diffconfig.head
    cat tmp/.diffconfig.head
    rm -f tmp/.diffconfig tmp/.diffconfig.head

    ****************************************************************

    Regards

    Sheriff

  • The SH script is executed to show what is set different from the default. However

    open openwrt/package/hostapd/Config.in and add something like

    config CONFIG_IEEE80211N
        bool
        default y

    hope this helps.

    Regards

    Boyko

  • Hi Boyko,

                 I tried including the mentioned lines in the trunk/package/network/services/hostapd/Config.in  file and I was able to see the CONFIG_IEEE80211N in the make menuconfig . But after building the image, there was no change in the output. Any other options?

                Please also do share openwrt built images if any with wifi enabled.

     

    Thanks

    Sheriff Manzoor F 

  • Hi Sheriff,

    I found that other people had this kind of driver problem, but unfortunately they didn’t conclude a verified fix and stated that  problem was removed in the latest versions.

    Did you try the "Attitude Adjustment" tree http://downloads.openwrt.org/attitude_adjustment/12.09/omap4/generic/ and see if really is fixed there?

    Regards,

    Boyko

  • Hi Boyko,

                 I tried the attitude adjustment and was not able to get any output when I tried wifi command. No logs and no wireless file in /etc/config/wireless.

                 Also i would like to mention you that I enable DRIVER_11N_SUPPORT after which my logs for the wifi changed to the following

     

    "

    root@OpenWrt:/# wifi

    Configuration file: /var/run/hostapd-phy0.conf [  325.713531] wlcore: firmware chunk too long: 407449728 [  326.349182] wlcore: firmware chunk too long: 407449728 [  327.289276] wlcore: firmware chunk too long: 407449728 [  327.294738] wlcore: ERROR firmware boot failed despite 3 retries Could not set interface wlan0 flags (UP): Invalid argument

    nl80211: Could not set interface 'wlan0' UP

    nl80211 driver initialization failed.

    Failed to initialize interface

    Failed to start hostapd for phy0  "

     

    How could I proceed further?

     

    Regards

    Sheriff

     

  • Hi Boyko,

                     One more thing i also tried to check for the modules that were loaded in which the wl12xx_sdio.ko was not loaded. When I tried to load it by copying wl12xx_sdio  to the /lib/modules/3.3.8/ , and load it by giving the command insmod wl12xx_sdio.ko, it gives the following error:

    [  191.414367] Error: Driver 'wl1271_sdio' is already registered, aborting...
    kmod: failed to insert /lib/modules/3.3.8/wl12xx_sdio.ko

    Please provide some suggestions on this to proceed further.

    Regards

    Sheriff Manzoor

  • Hi Boyko,

                      Thanks for the support, I was able to enable the Wifi in pandaboard. I was using development branch till now. So i tried with attitude adjustment 12.09 branch and its working fine.

    Regards

    Sheriff Manzoor F