Since this took me a few days to figure out, I figured I'd post how I got
Wifi working in bbbandroid. Hope this saves a few days of your life :)
Obviously swap the kernel modules with the ones appropriate for your
device.
# Add to device/ti/beagleboneblack/init.genericam33xx_flatteneddevicetr.rc:
# under "on post-fs-data"
# wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
insmod
/system/vendor/lib/modules/3.8.13+/kernel/net/wireless/cfg80211.ko
insmod
/system/vendor/lib/modules/3.8.13+/kernel/net/mac80211/mac80211.ko
insmod
/system/vendor/lib/modules/3.8.13+/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
# At the bottom
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dwext -c/data/misc/wifi/wpa_supplicant.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
# Add to following tags in file
device/ti/beagleboneblack/overlay/frameworks/base/core/res/res/values/config.xml:
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1,-1,true"</item>
…
</string-array>
# And
<string-array translatable="false" name="radioAttributes">
<item>"1,1"</item>
…
</string-array>
# Add to device/ti/beagleboneblack/BoardConfig.mk:
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
BOARD_HOSTAPD_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WLAN_DEVICE := wlan0
# Add file device/ti/beagleboneblack/wpa_supplicant.conf with the following
contents:
ctrl_interface=wlan0
update_config=1
# Add to device/ti/beagleboneblack/device.mk:
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml
\
device/ti/beagleboneblack/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wlan.driver.status=ok
On Sunday, October 12, 2014 at 10:55:58 AM UTC-6, Adam Singer wrote:
>
> The suggested Wifi support would be awesome, its a common stack that
> people can get their hands on easily. ADB over USB would also be greatly
> appreciated when you publish a new image :)
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.