← Back to team overview

ubuntu-touch-coreapps team mailing list archive

[wifi] wlan0 is not up and wlan discovery isn't showing anything in the gui yet on Advent Vega/Nvidia Shuttle/Viewsonic Viewpad 10s/P10AN01

 

TANGENT for a second:
--------------------
Installed CM10.1/ubuntu touch on class 4 8GB microsdhc card. ARGH!
Installed CM10.1/Ubuntu touch on class 10 8GB microsdhc card. better.
It takes about 4 minutes to boot.
I would recommend a UHS-I 8GB card, but they're hard to find.  16GB
UHS-I cards are pricy.  The best to try it with would be UHS-II
microsdhc cards, but again they are hard to find.  Only PNY seems to
sell UHS-II, but they are 150$, but worth it if you are as impatient as
I am.

----------------------------------------
Developer Scanno has built a cm10.1
Along with a quantal.zip.
I installed it successfully.  At first the gui wasn't displaying well,
but after reading around it was mentioned to tweak ubuntu-session so I did.

--------------------------------------------------------------------
----------------------------------------------------------
vi /usr/bin/ubuntu-session

****remove "if then" device== statement block and replace it with just a
section dedicated to the advent vega hardware spec

    services="/etc/tablet-services"
    grep -q GRID_UNIT_PX /home/phablet/.bashrc
    [ $? -ne 0 ] && echo "export GRID_UNIT_PX=8" >> /home/phablet/.bashrc
    export GRID_UNIT_PX=8
    grep -q QTWEBKIT_DPR /home/phablet/.bashrc
    [ $? -ne 0 ] && echo "export QTWEBKIT_DPR=1.5" >> /home/phablet/.bashrc
    export QTWEBKIT_DPR=1.5
    export FORM_FACTOR="tablet"

--------------------------------------------------------------------
----------------------------------------------------------

While I was at it, I tweaked the wpa_supplicant.conf file.

****You will also have to vi /system/etc/wifi/wpa_supplicant.conf
#ctrl_interface=wlan0
ctrl_interface=DIR=/data/misc/wifi/sockets/wpa_wlan0 GROUP=system
update_config=1
device_name=AdventVega
manufacturer=Advent
model_name=Vega
#model_number=Transformer TF101
#serial_number=02885041418134d7
#device_type=10-0050F204-5
#config_methods=physical_display virtual_push_button keypad
network={
    ssid="DD-WRT"
    psk="XXXXXXXXXX"
    key_mgmt=WPA-PSK
}

***then reboot
-------------------------------------------------------------
The gui looks ok now, but the wifi was not up and I got a Network Error
in the firefox browser.

--------------------------------------------------------------------
----------------------------------------------------------
I put the following in /etc/init.d/rc5.d/90userinit
insmod /data/ubuntu/system/lib/hw/wlan/ar6000.ko
ip link set wlan0 up
wpa_supplicant -B -Dwext -i wlan0 -c /system/etc/wifi/wpa_supplicant.conf

Still no ipaddress assigned to wlan0, but wlan0 is up.
-------------------------------------------

adb shell
su
mount -o rw,remount /system
mount -o rw,remount /
***********
edit the android init.rc file on your machine and then:  adb push
init.rc /init.rc
service wpa_supplicant /system/bin/wpa_supplicant \


    -D wext -i wlan0 \


    -c /system/etc/wifi/wpa_supplicant.conf
************
mount -o ro,remount /
mount -o ro,remount /system
reboot

Still didn't work.
I noticed that the init.rc got squashed after rebooting so it's
contained within the compressed kernel, but I forgot about that.

It should work, but I really don't have time to try other stuff.

I want to help where I can, but I still can't compile CM10.1/Quantal for
it.  From what I know, only scanno can.  I've got two boxes to try
compiling with, but the builds I made had errors I couldn't fix with
anything I googled or debugged/hacked up myself.

Cheers,
David Marceau