Re: Froyo-x86 and Wifi

149 views
Skip to first unread message

Chih-Wei Huang

unread,
Sep 6, 2010, 7:36:10 AM9/6/10
to andro...@googlegroups.com
Hi,
I have pushed all necessary changes for wifi support of
eeepc target of froyo-x86 branch into the git server.
Get it by repo sync, as usual.

I've tested it successfully on my Eee PC 900A, T91, 1000H
with different wifi drivers (ath5k, ath9k, rt2860sta).

Known bugs (limitations)
* You need to disable ethernet before enable wifi,
or the dhcpcd may fail.
* Sometimes the log said it failed to scan AP, or unable to
associate the AP. Usually reboot the android-x86 (or the AP)
may rescue the situation. Not sure it's an issue of
the driver or the android frameworks.


If you want to add wifi to your target, here are the brief steps:

* Set BOARD_WPA_SUPPLICANT_DRIVER := AWEXT
in your BoardConfig.mk.
* Include the wifi module in your kernel config.
Then load the module in your target script (detect_hardware),
or set the property wlan.modname to your module name.
* If your wifi driver needs a firmware, set LOCAL_FIRMWARES
and LOCAL_FIRMWARES_DIR properly.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Denis Pynkin

unread,
Sep 6, 2010, 6:25:57 PM9/6/10
to andro...@googlegroups.com, Chih-Wei Huang
Hi.

> Known bugs (limitations)
> * You need to disable ethernet before enable wifi,
> or the dhcpcd may fail.

could you review the attached patch, please?
just add suffix to service 'dhcpcd' for particular interface: 'dhcpcdeth0' and 'dhcpcdwlan0' for eth0 and wlan0.
works for me but not sure if this approach is correct.

> * Sometimes the log said it failed to scan AP, or unable to
> associate the AP. Usually reboot the android-x86 (or the AP)
> may rescue the situation. Not sure it's an issue of
> the driver or the android frameworks.

tested with wifi-usb-dongle on eclair - same behavior.
In my case it also helps to remove/insert the dongle on running system.

--
wbr, d4s

system_core-dhcpcd_suffix.patch

slajeune

unread,
Sep 7, 2010, 7:47:17 AM9/7/10
to Android-x86
Hi Chih-Wei,

I am obviously doing something wrong as I can't get wifi working with
the latest pushes to the git tree. I do see that it loads the driver
properly (i.e. rt2860sta) but I always get this when I try to enable
wifi:

E/WifiHW (2397): Unable to open connection to supplicant on /data/
system/wpa_supplicant/wlan0: No such file or directory
V/WifiStateTracker (2397): Supplicant died unexpectedly

I have built the rt2860sta from the staging directory. The actual
wifi card that I have is a RT3090. At this point . I would rather
think that it is a driver issue and not a froyo-x86 issue.

I think that I do need a firmware file... Will see if I can find the
issue.

Thanks for all the hard work!

Stephane.

slajeune

unread,
Sep 7, 2010, 8:58:47 AM9/7/10
to Android-x86
Still don't know what I am doing wrong.

I have added the rt2860.bin firmware (apparently required for all
Ralink wifi cards). It is in /system/lib/firmware, so I know that it
did make it. Yet, wifi still fails. One more message that might
help:

D/Tethering ( 2439 ): wlan0 is not a tetherable iface, ignoring

Would that explain why wifi is not working? What are the steps to
ensure that the rt2860sta works properly?

Cheers,
Stephane.

vijaydeep gokul

unread,
Sep 7, 2010, 11:14:29 AM9/7/10
to andro...@googlegroups.com
Hi

Can anyone please post the clear steps for making WIfi work on Froyo ?

Please appreciate your help and time.

Thanks
Vijaydeep

> --
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-x86...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
>
>

paul

unread,
Sep 7, 2010, 6:18:33 PM9/7/10
to andro...@googlegroups.com
Are you sure that the rt2860sta is the correct driver for your wireless?
The Ralink Linux driver downloads site lists a rt3090, but it is for a
PCIe card.

http://www.ralinktech.com/support.php?s=2

I know how to add this driver to a Linux installation, but Android is a
different animal.

Paul

Chih-Wei Huang

unread,
Sep 7, 2010, 9:24:26 PM9/7/10
to andro...@googlegroups.com
Yes, you need the rt2860.bin firmware.
(the firmware has already been put in the build/ dir,
you just need to set LOCAL_FIRMWARES := rt2860.bin)

All the messages you shown are not significant
and not related to the wifi problem.
The first is a bogus message from wpa_supplicant.
The second just said wlan0 can't be used for tethering.
We haven't enable tethering function in froyo-x86.
(if you don't know what tethering is, ignore it)
Actually I have both the same messages in my logcat,
but my wifi works.


2010/9/7 slajeune <stephane....@gmail.com>:

slajeune

unread,
Sep 8, 2010, 8:17:51 AM9/8/10
to Android-x86
Actually, I found it! For me, I needed the rt3090.bin file. I saw
something in the logs that it wasn't able to load rt3090.bin.

For anybody wanting to enable wifi on their builds, these are the
steps that I took to enable wifi on mine. My card is a RT3090:

- download the rt3090.bin file and put it in build/target/board/
generic_x86/firmware
- ensure that your driver is properly selected as a module in your
defconfig file. For me, the driver was in the STAGING drivers
portion:
CONFIG_RT2860=m
- Add the following line in AndroidBoard.mk, this will need to be
changed if yours needs different firmware:
LOCAL_FIRMWARES := rt3090.bin
- Add this in the BoardConfig.mk file:
BOARD_WPA_SUPPLICANT_DRIVER := AWEXT

And that was pretty much all that was required to enable wifi on my
device. I did disable ethernet before enabling wifi just in case.

That's it!

Stephane.

On Sep 7, 9:24 pm, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> Yes, you need the rt2860.bin firmware.
> (the firmware has already been put in the build/ dir,
> you just need to set LOCAL_FIRMWARES := rt2860.bin)
>
> All the messages you shown are not significant
> and not related to the wifi problem.
> The first is a bogus message from wpa_supplicant.
> The second just said wlan0 can't be used for tethering.
> We haven't enable tethering function in froyo-x86.
> (if you don't know what tethering is, ignore it)
> Actually I have both the same messages in my logcat,
> but my wifi works.
>
> 2010/9/7 slajeune <stephane.lajeune...@gmail.com>:

kwok

unread,
Sep 8, 2010, 2:50:38 PM9/8/10
to Android-x86
Working OK on eeepc 901 :)

Windsor's Gmail

unread,
Sep 8, 2010, 9:48:32 PM9/8/10
to andro...@googlegroups.com
Just to be sure before trying it out, will these step work for Donut also when using the compat-wireless-2.6.36-rc3-1, finally got it to work on ubuntu 10.04 with a manual install and after the reboot all was well.

Sent from my iPhone

Message has been deleted

Christian Buchner

unread,
Sep 12, 2010, 10:14:27 AM9/12/10
to andro...@googlegroups.com
/data has not been mounted, so it is still an empty directory on the write protected system drive.


itisanup

unread,
Mar 2, 2012, 9:38:27 PM3/2/12
to andro...@googlegroups.com
got no idea how to start plz explain breifly please

itisanup

unread,
Mar 2, 2012, 9:39:13 PM3/2/12
to andro...@googlegroups.com
i installed   android-x86-4.0-generic_x86-20120227.iso      for my sony vaio vgn-fw5 but couldnt turn wifi, how can i make it happen?

On Monday, 6 September 2010 12:36:10 UTC+1, Chih-Wei Huang wrote:
Reply all
Reply to author
Forward
0 new messages