How to enable wifi-hospot on cubieboard2 running on ubuntu

431 views
Skip to first unread message

nithin.m...@gmail.com

unread,
Aug 1, 2014, 1:03:43 AM8/1/14
to linux...@googlegroups.com
I have cubieboard2 running on ubuntu . wifi is working fine. But i want turn it on as AP. Im doing it by using hostapd. But it is giving these messages

root@localhost:/# sudo hostapd -d /etc/hostapd/hostapd.conf

Configuration file: /etc/hostapd/hostapd.conf
nl80211: Add own interface ifindex 5
Failed to create interface mon.wlan1: -95 (Operation not supported)
nl80211: Failed to set interface wlan1 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x2f0900 user_data=0x2f0ea8 handler=0x28b9d
ELOOP: remaining socket: sock=6 eloop_data=0x2f2848 user_data=(nil) handler=0x2e341

Julian Calaby

unread,
Aug 1, 2014, 1:19:42 AM8/1/14
to linux...@googlegroups.com
Hi,
Judging by this, your WiFi card doesn't support AP operation.

Do you know what chipset it is?

Thanks,

--
Julian Calaby

Email: julian...@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

Nithin Chakravarthy

unread,
Aug 1, 2014, 2:10:16 AM8/1/14
to linux...@googlegroups.com
my wifi chipset is ap6210. But the same board with andrid os it is working as AP

Julian Calaby

unread,
Aug 1, 2014, 2:25:58 AM8/1/14
to linux...@googlegroups.com
Hi Nithin,

On Fri, Aug 1, 2014 at 4:10 PM, Nithin Chakravarthy
<nithin.m...@gmail.com> wrote:
> my wifi chipset is ap6210. But the same board with andrid os it is working
> as AP

As you can see from the log, hostapd can't create a monitor mode
interface with that driver (it's not supported) and hostapd needs that
to do it's thing.

Android does things differently and (I believe) uses different drivers
so it doesn't have that restriction.

If you simply must have AP mode, I'd recommend getting a USB WiFi
stick that supports it.

Thanks,

Julian Calaby
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Nithin Chakravarthy

unread,
Aug 1, 2014, 3:17:36 AM8/1/14
to linux...@googlegroups.com
Actually in Ubuntu the driver is cfg80211. what is the difference between nl80211?
should i make it as cfg80211 in configuration file. here is the configuration file. I didnt see 
any nl80211 when i give dmesg


#interface
interface=wlan1
# Select driver
driver=cfg82011
# Set access point name
ssid=myhotspot
# Set access point harware mode to 802.11g
hw_mode=g
# Set WIFI channel (can be easily changed)
channel=6
# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)
wpa=2
wpa_passphrase=mypassword


Thanks
--M.Nithin

ditma...@gmail.com

unread,
Aug 1, 2014, 3:23:15 AM8/1/14
to linux...@googlegroups.com
Am Freitag, 1. August 2014 07:03:43 UTC+2 schrieb Nithin Chakravarthy:
> I have cubieboard2 running on ubuntu . wifi is working fine. But i want turn it on as AP. Im doing it by using hostapd. But it is giving these messages

There is a updated hostapd V2.3 out there.
http://www.cubieforums.com/index.php/topic,1275.msg18130.html#msg18130
https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/bin/hostapd23.tgz

The chip AO6210 is the same as that on the cubietruck.

Julian Calaby

unread,
Aug 1, 2014, 3:31:48 AM8/1/14
to linux...@googlegroups.com
Hi,

On Fri, Aug 1, 2014 at 5:17 PM, Nithin Chakravarthy
<nithin.m...@gmail.com> wrote:
> Actually in Ubuntu the driver is cfg80211. what is the difference between
> nl80211?

nl80211 is a configuration protocol, cfg80211 is the part of the
kernel that handles that, which then talks to actual drivers e.g.
brcmfmac for your device.

> should i make it as cfg80211 in configuration file. here is the
> configuration file. I didnt see
> any nl80211 when i give dmesg

That won't work.

Nithin Chakravarthy

unread,
Aug 1, 2014, 3:59:49 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
Thank you for that. so pls tell me how to make cubietruck as hotspot

Nithin Chakravarthy

unread,
Aug 1, 2014, 4:00:13 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
Thank you for that. so pls tell me how to make cubietruck as hotspot


On Friday, August 1, 2014 12:53:15 PM UTC+5:30, ditma...@gmail.com wrote:

ditma...@gmail.com

unread,
Aug 1, 2014, 4:12:30 AM8/1/14
to linux...@googlegroups.com
Am Freitag, 1. August 2014 10:00:13 UTC+2 schrieb Nithin Chakravarthy:
> Thank you for that. so pls tell me how to make cubietruck as hotspot
>
Why dont you read the thread in cubietech-org i posted to you ? Read the titel of that tread.
"Topic: Wheezy server for SD, SATA or NAND with hotspot (!!!!!) & BT - update 11.7.2014"

or just do a simple search in the forum ?
http://www.cubieforums.com/index.php/topic,2560.msg16981.html#msg16981

Nithin Chakravarthy

unread,
Aug 1, 2014, 4:32:38 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
okay I got you .I downloades the debian image thank you. so is it working as AP?


Thanks
--M.Nithin

Nithin Chakravarthy

unread,
Aug 1, 2014, 6:29:32 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
its booting in cubieboard. but it is saying the following messages

========== WLAN placed in POWER ON ========
[   18.989643] =========== WLAN placed in POWER ON ========

failed to power up wifi chip, retry again (4 left) **

[   20.998711] 
[   20.998717] failed to power up wifi chip, retry again (4 left) **
[   20.998722] 
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[   21.014845] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   21.028358] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER OFF ========
[   21.038725] =========== WLAN placed in POWER OFF ========
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[   21.051081] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   21.064603] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER ON ========
[   21.175909] =========== WLAN placed in POWER ON ========

failed to power up wifi chip, retry again (3 left) **

[   23.178694] 
[   23.178699] failed to power up wifi chip, retry again (3 left) **
[   23.178704] 
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[   23.194814] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   23.208292] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER OFF ========
[   23.218601] =========== WLAN placed in POWER OFF ========
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[   23.230954] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   23.244527] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER ON ========
[   23.354615] =========== WLAN placed in POWER ON ========

failed to power up wifi chip, retry again (2 left) **

[   25.358695] 
[   25.358700] failed to power up wifi chip, retry again (2 left) **
[   25.358705] 
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[   25.374809] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   25.388291] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER OFF ========
[   25.398590] =========== WLAN placed in POWER OFF ========
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[   25.410935] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   25.424445] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER ON ========
[   25.534597] =========== WLAN placed in POWER ON ========

failed to power up wifi chip, retry again (1 left) **

[   27.538692] 
[   27.538697] failed to power up wifi chip, retry again (1 left) **
[   27.538702] 
dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[   27.554814] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
[wifi_pm]: No select wifi, please check your config !!
[   27.568282] [wifi_pm]: No select wifi, please check your config !!
=========== WLAN placed in POWER OFF ========
[   27.578590] =========== WLAN placed in POWER OFF ========

failed to power up wifi chip, max retry reached, exits **

[   27.589469] 
[   27.589472] failed to power up wifi chip, max retry reached, exits **
[   27.589477] 
ERROR: could not insert 'bcmdhd': No such device

ditma...@gmail.com

unread,
Aug 1, 2014, 6:38:44 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
Did you take the cubieboard2 download or the cubietruck download ?

There might be still a driver problem when there is no buildin wifi and you plug in a usb wifi.

I posted that link because there is a description how to update hostadp and configure it.
I didn`t recommend to download the image because it was not tested with USB wifi.
Please read the thread an learn howto do thing in linux.

Nithin Chakravarthy

unread,
Aug 1, 2014, 7:04:14 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
There was only one download

ditma...@gmail.com

unread,
Aug 1, 2014, 7:14:20 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
There are four ! We should stop this diskussion in this sunxi kernel development mailing list. Go to the http://www.cubieforums.com/index.php forum and open a thread with your problem. Dont forget to describe your system setup and your steps that have been tried sofar.

Nithin Chakravarthy

unread,
Aug 1, 2014, 8:38:19 AM8/1/14
to linux...@googlegroups.com, ditma...@gmail.com
I have tried with changes in the script file.  Now it s turning on the wifi chipset with out errors. I have to check whether it supports AP, chnages i had made in script file

[wifi_para]
wifi_mod_sel = 7 
ap6xxx_lpo = port:PI12<4><default><default><default>

bt_used = 1

 the boot message

   4.724689] =========== WLAN placed in POWER ON ========
[    4.730657] [mmc-err] smc 3 err, cmd 52,  RTO
[    4.736338] [mmc-err] smc 3 err, cmd 52,  RTO
[    4.741229] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.754135] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.766469] [mmc-err] smc 3 err, cmd 8,  RTO
[    4.771565] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.791219] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    4.798868] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.806529] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.815372] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    4.834833] [mmc-msg] sdc3 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.845283] [mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[    4.911001] [mmc-msg] sdc3 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[    4.923525] mmc1: new high speed SDIO card at address 0001
[    4.930625] bcmsdh_register: Linux Kernel SDIO/MMC Driver
[    4.936870] bcm_wlan_get_oob_irq enter.
[    4.941161] bcm_wlan_get_oob_irq GPIO(WL_HOST_WAKE) = 60
[    4.947411] dhdsdio_probe : no mutex held. set lock
[    4.953005] F1 signature read @0x18000000=0x1591a962
[    4.991892] bcmsdh_config_hw_oob_intr: Enable HW OOB for 43362
[    5.001324] DHD: dongle ram size is set to 245760(orig 245760)
[    5.009820] wl_create_event_handler thr:312 created
[    5.015268] wl_create_event_handler thr:312 started
[    5.022855] p2p0: P2P Interface Registered
[    5.027572] dhd_attach thr:319 created
[    5.031759] dhd_attach thr:319 started
[    5.035999] dhd_attach thr:31a created
[    5.040213] dhd_attach thr:31a started
[    5.044452] dhd_attach thr:31b created
[    5.048751] dhd_attach thr:31b started
[    5.054657] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33

anu...@mindsarray.com

unread,
Sep 28, 2014, 2:46:25 PM9/28/14
to linux...@googlegroups.com
I am also facing the same problem, I wish to run hotspot in my cubietruck and further install coovachilli.

But I am not able to Run the hotspot on linux.

Any luck, please post here.

I

Julian Calaby

unread,
Sep 28, 2014, 7:45:53 PM9/28/14
to linux...@googlegroups.com
Hi,

On Mon, Sep 29, 2014 at 4:46 AM, <anu...@mindsarray.com> wrote:
> I am also facing the same problem, I wish to run hotspot in my cubietruck and further install coovachilli.
>
> But I am not able to Run the hotspot on linux.
>
> Any luck, please post here.

If you're using official Cubietruck images, then there should be a
thread on the cubie forums about this (it was mentioned a few posts
ago), so there should be some help there.

If you're using a linux-sunxi kernel based image, then I believe the
driver in that kernel does support AP mode, so if you're having
problems with that, please post your kernel (dmesg output) and hostapd
configuration and logs and we'll try to help.
Reply all
Reply to author
Forward
0 new messages