Please help: hostapd hangs

332 views
Skip to first unread message

Yulia McCarthy

unread,
Dec 9, 2011, 2:20:16 PM12/9/11
to Chromium OS discuss
Hi guys,

Can someone pleeeaaase help me with this? I'm a total newbie here.
I have built my Chromium OS image successfully, it runs fine off a USB
key on my Samsung Chromebook Series 5 ALEX EPSILON-US 4507.
Now, I need to configure my Atheros AR9382 wireless card to become an
Access Point (it uses ath9k driver and is AP mode compatible).
So, I have added packages that I believe I need in order to accomplish
this to my image using: emerge-x86-generic -k --root=/tmp/m
<package_name> (while having my image mounted to /tmp/m from USB
key). The packages seemed to install successfully.
List of packages I installed:
hostapd
bridge-utils
dhpc, dhcpcd
iw
(libnl, crda, wireless-regdb - just in case hoping that it would
help)

I'm trying to follow these instructions on setting up an AP on Linux:
http://www.su-root.eu/computing/turn-your-linux-computer-in-a-wireless-access-point-using-hostapd
and here http://linuxwireless.org/en/users/Documentation/hostapd

But when I invoke: sudo hostapd -dd /hostapd-minimal.conf
with hostapd-minimal.conf content:
interface=wlan0
driver=nl80211
ssid=TestAP
channel=11

Either nothing happens at all and I don't even get any debug output (-
dd option) or command hangs right away or it hangs with this single
line of output: wlan0: STA 00:22:6b:8b:f2:90 IEEE 802.11:
diassociated

What is wrong with this??

Any help would be highly appreciated.

Thanks!

Yulia

Yulia McCarthy

unread,
Dec 10, 2011, 12:39:58 AM12/10/11
to Chromium OS discuss
Ok, I resolved the first issue. Apparently, it's ok for hostapd to
hang like this, it still works, AP network becomes visible over the
air and I can connect another 802.11 device, I just had to open new
console to be able to configure other things... Among which is a
bridge between eth0 and wlan0 interfaces... (because I can only
connect to the AP but can't get online).
But now I have another issue. I installed bridge-utils package. It was
successful. But when I run: brctil addbr br0 I get an error message
"add bridge failed: Package not installed". I found out that it's
most likely caused by the fact that the kernel was compiled with
CONFIG_TUN = n , and CONFIG_BRIDGE = n. I can "insmod tun" but "insmod
bridge" fails, bridge module is not found...

So, I guess I have to recompile my kernel with CONFIG_BRIDGE = y...
Can someone please explain me HOW to do that?

Thanks.

Yulia

On Dec 9, 12:20 pm, Yulia McCarthy <yuly...@gmail.com> wrote:
> Hi guys,
>
> Can someone pleeeaaase help me with this? I'm a total newbie here.
> I have built my Chromium OS image successfully, it runs fine off a USB
> key on my Samsung Chromebook Series 5 ALEX EPSILON-US 4507.
> Now, I need to configure my Atheros AR9382 wireless card to become an
> Access Point (it uses ath9k driver and is AP mode compatible).
> So, I have added packages that I believe I need in order to accomplish
> this to my image  using:  emerge-x86-generic -k --root=/tmp/m
> <package_name>  (while having my image mounted to /tmp/m from USB
> key). The packages seemed to install successfully.
> List of packages I installed:
>     hostapd
>     bridge-utils
>     dhpc, dhcpcd
>     iw
>     (libnl, crda, wireless-regdb - just in case hoping that it would
> help)
>

> I'm trying to follow these instructions on setting up an AP on Linux:http://www.su-root.eu/computing/turn-your-linux-computer-in-a-wireles...
> and herehttp://linuxwireless.org/en/users/Documentation/hostapd

Sonny Rao

unread,
Dec 10, 2011, 1:12:01 AM12/10/11
to yul...@gmail.com, Chromium OS discuss
There's some docs on how the config files get generated here:

http://dev.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-configuration

but basically you want to do something like this (I'm assuming you're
using the x86-generic overlay)
from inside the chroot:
cros_workon-x86-generic start chromeos-kernel
cd ~/trunk/src/third_party/kernel/file/
repo start bridge kernel


then edit chromeos/config/base.config and enable the config options you want
run "git commit . " and save your changes with a commit message
then rebuild your image

Sonny

> --
> Chromium OS discuss mailing list: chromium-...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages