2009年11月11日 星期三
2009年8月5日 星期三
Android Wifi Compilation
First verify your drivers are getting inserted and you are able to connect
AP with static Ip adress (use wlan_cfg). This is independent of Android and
it should work FIRST.
1. Add HAVE_CUSTOM_WIFI_DRIVER_2 := true to
build/target/board/generic/BoardConfig.mk file.
2. make sure external/wpa_supplicant/.config has got below entries
CONFIG_WIRELESS_EXTENSION=y
CONFIG_CTRL_IFACE=y
CONFIG_DRIVER_WEXT=y
3. Build android with this you will get support for WEXt and wpa_supplicant
client.
4. After the system boot, insert driver and know the interface (in my case
it is eth1)
5. Modify wpa_supplicant.conf file for AP configuration and Run
/system/bin/wpa_supplicant -Dwext -ieth1 -c/sdcard/wpa_supplicant.conf
5. Run dhcp to get the IP
/system/bin/dhcpcd -d eth1
6. Ping to AP to check connectivity.
- 顯示被引用文字 -
AP with static Ip adress (use wlan_cfg). This is independent of Android and
it should work FIRST.
1. Add HAVE_CUSTOM_WIFI_DRIVER_2 := true to
build/target/board/generic/BoardConfig.mk file.
2. make sure external/wpa_supplicant/.config has got below entries
CONFIG_WIRELESS_EXTENSION=y
CONFIG_CTRL_IFACE=y
CONFIG_DRIVER_WEXT=y
3. Build android with this you will get support for WEXt and wpa_supplicant
client.
4. After the system boot, insert driver and know the interface (in my case
it is eth1)
5. Modify wpa_supplicant.conf file for AP configuration and Run
/system/bin/wpa_supplicant -Dwext -ieth1 -c/sdcard/wpa_supplicant.conf
5. Run dhcp to get the IP
/system/bin/dhcpcd -d eth1
6. Ping to AP to check connectivity.
- 顯示被引用文字 -
2009年7月21日 星期二
how to build a git package from Android GIT
how to cross build a git package from Android GIT?
make CROSS=arm-none-linux-gnueabi-
make CROSS=arm-none-linux-gnueabi-
2009年5月25日 星期一
Android: Wifi driver integration
I started looking into Wifi driver integration into Android. Android from one and only Google..which has created a big storm in the mobile platform world. Android is basicaly combination of Linux kernel with Java stack. It has got cutstomoized and optmized libc (bionic) and java virtual machine (Dalvik).
Wifi conifiguration in Android starts from Java application and goes till driver/firmware insertion through JNI interface and wifi native component. Before starting modification for these components, I wanted to verify whether Wifi driver for my target will work under Android or not.
wpa_supplicant component was not enabled by default in android 1.0 release. So to enable
Add HAVE_CUSTOM_WIFI_DRIVER_2 := true to build/target/board/generic/BoardConfig.mk file.
2. make sure external/wpa_supplicant/.config has got below entries
CONFIG_WIRELESS_EXTENSION=y
CONFIG_CTRL_IFACE=y
CONFIG_DRIVER_WEXT=y
3. Build android with this to get support for WEXT and wpa_supplicant client.
4. After the system boot, insert driver and know the interface (in my case it is eth1)
5. Modify wpa_supplicant.conf file for AP configuration and Run
/system/bin/wpa_supplicant -Dwext -ieth1 -c/sdcard/wpa_supplicant.conf
6. Run dhcp to get the IP/system/bin/dhcpcd -d eth1
7. Ping to AP to check connectivity.
To automate these steps, put above commands for wpa_supplicant and dhcpcd in init.rc.
POSTED BY VINAY H AT 3:02 AM
Wifi conifiguration in Android starts from Java application and goes till driver/firmware insertion through JNI interface and wifi native component. Before starting modification for these components, I wanted to verify whether Wifi driver for my target will work under Android or not.
wpa_supplicant component was not enabled by default in android 1.0 release. So to enable
Add HAVE_CUSTOM_WIFI_DRIVER_2 := true to build/target/board/generic/BoardConfig.mk file.
2. make sure external/wpa_supplicant/.config has got below entries
CONFIG_WIRELESS_EXTENSION=y
CONFIG_CTRL_IFACE=y
CONFIG_DRIVER_WEXT=y
3. Build android with this to get support for WEXT and wpa_supplicant client.
4. After the system boot, insert driver and know the interface (in my case it is eth1)
5. Modify wpa_supplicant.conf file for AP configuration and Run
/system/bin/wpa_supplicant -Dwext -ieth1 -c/sdcard/wpa_supplicant.conf
6. Run dhcp to get the IP/system/bin/dhcpcd -d eth1
7. Ping to AP to check connectivity.
To automate these steps, put above commands for wpa_supplicant and dhcpcd in init.rc.
POSTED BY VINAY H AT 3:02 AM
訂閱:
文章 (Atom)