Fuhu Nabi2 Back to Stock from scratch in Ubuntu Linux - Miscellaneous Android Development

If you have/want to go back to stock, it is best to use the backup you made(of course you made a backup). If you somehow lost or didn't make a backup. Here are the directions for going back to version 1.9.12 from scratch.
I wrote these directions for Linux, but you can easily adapt them for WIndows(except installing adb and fastboot) by just removing 'sudo' from the commands.
Download and extract the following to your home directory: http://dl.dropbox.com/u/6529005/FuhuNabi2/fuhu_nabi2_back_to_stock_from_scratch.zip
Open a terminal(ctrl+alt+t) and run the following command to install ADB and Fastboot (Universe).
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
With the Nabi2 fully charged and turned off, hold the vol+ and power button until the menu comes up. You use the vol- to navigate and the vol+ to select. Choose 'Fastboot Protocol', connect your USB cable.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
We will flash the new TWRP recovery image using fastboot:
Code:
sudo fastboot flash recovery recovery.img
When fastboot is finished, boot the new recovery kernel on the Nabi2 by pressing vol+ then vol-(down to recovery) then vol+ to select.
Now the device is in TWRP, choose Wipe>Factory Reset>Slide to Wipe
We will now push the WiFi Fix that might be needed to restore wifi.
Code:
sudo adb push fuhu_nabi2_wifi_fix.zip /sdcard/fuhu_nabi2_wifi_fix.zip
Get your device id(unique to YOUR Nabi2), you will use the 16 character value returned in the next step to replace '___YOUR_DEVICEID_GOES_HERE__' :
Code:
adb devices
This will return something like:
PHP:
List of devices attached
016b32201337rf0f recovery
Replace '___YOUR_DEVICEID_GOES_HERE__' in the following command with what was returned to you. This command is going to push a large file, so it will take some time, wait for it to finish. TWRP has a file manager if you need to free some space on your /sdcard/
Code:
adb push fuhu_nabi2_v1912_system.ext4.win /sdcard/TWRP/BACKUPS/___YOUR_DEVICEID_GOES_HERE__/oem/system.ext4.win
Now on the device in TWRP you can choose Restore>Using internal storage>oem>Swipe to Restore.
Once this step is finished you can Home>Reboot>Bootloader in TWRP.
Now your device is back to version 1.9.12, from here you can start doing your OTA updates, but before you do that, we have to go back to the original recovery image, otherwise the OTA will fail.
Lets flash the original recovery image:
Code:
sudo fastboot flash recovery nabi2_original_recovery.img
It is now possible to do your OTA updates. Either download them over WiFi from Settings>About Tablet> Update, or you can manually install them from a MicroSD card through the original recovery.
http://dl.dropbox.com/u/6529005/FuhuNabi2/fuhu_nabi2_138139__1923_ota.zip
http://dl.dropbox.com/u/6529005/FuhuNabi2/fuhu_nabi2_138139_1937_ota.zip
If your system needs the wifi fix, you can flash the fuhu_nabi2_wifi_fix.zip in TWRP>Home>Install>fuhu_nabi2_wifi_fix.zip

Followed All The Steps But I Get A Error ...Status 7.
"assert failed: apply_patch_check ("/system/build.prop".
---------- Post added at 10:08 PM ---------- Previous post was at 10:06 PM ----------
I'm Assuming My Build Prop Is Different Not Sure How If I Applied The Backup That Is In The File You Provided. Would Anyone Have An Original Build.Prop?

NVM Just Did A Complete TWRP Backup From My Other Nabi Tablet And Transferred The Files To The "Broken" One & Success Got It Updated To Latest OS .Just Did A Factory Reset So That Way I Could Have A Different Login.

Added OTA updates to original post.

So need a little help. I had the .23 on my nabi with a broken wifi. Followed your post to get back to .12. I did get back to .12 but wifi is still broke. I pushed the wifi fix like posted, but I did not flash before going back to .12. So I then flashed twrp again and flashed it once on .12, but it did not work. Stuck saying "updating partition details." Not sure what to do to get the wifi back. I made a nandroid of .23 before going through the process. Went back to .23 and tried flashing the wifi fix in twrp and still stuck with the same message.
Any ideas?

Go back to .12, do a factory reset, flash the stock recovery, then install the OTAs from the stock recovery in proper order from a microSD card. Without using the wifi fix zip.

Although weird, one of my daughters wifi stopped working even though all updates were performed and I have not rooted them as of yet. Stopped after about 8 days of use. Wasn't picking up any wifi anywhere at all. I tried everything and last was a full reset back to complete stock from the beginning like when she first got it. That solved the problem. Just thought I would mention it in case anyone gets this issue.
Sent from my SPH-L710 using Tapatalk 2

t499user said:
Go back to .12, do a factory reset, flash the stock recovery, then install the OTAs from the stock recovery in proper order from a microSD card. Without using the wifi fix zip.
Click to expand...
Click to collapse
DarkAngel said:
Although weird, one of my daughters wifi stopped working even though all updates were performed and I have not rooted them as of yet. Stopped after about 8 days of use. Wasn't picking up any wifi anywhere at all. I tried everything and last was a full reset back to complete stock from the beginning like when she first got it. That solved the problem. Just thought I would mention it in case anyone gets this issue.
Sent from my SPH-L710 using Tapatalk 2
Click to expand...
Click to collapse
Thanks guys for the help. Did not know there was a factory reset on the tablet. Fixed it a little differently. I had another nabi for my other kid, and updated that to .37 and ran jmz script #2. Then copied the stockbackup to the broke nabi and wiped and restored. Did factory reset on tab and re-ran jmz's script. Back in business!
I must say that I screwed up the first time around by not updating twice to the .37. Then compounded it by doing a reboot recovery in cmd line while it was making a stock backup. It was sitting there for quite along time any my impatience got the best of me. I guess I am used to seeing the progress bar while it is performing backup or flashing new rom. The second one, I walked away and let the script do its thing.
Thanks for all the help!

This wifi problem got me going nuts all my kids got a nabi 2 I got 4 kids and i got to keep restoring them and even the one that is not rooted I got to keep resetting all the time I'm about to sell them

got the android recovery installed but it is stuck nothing happens except the dead android with an exclamation point coming out of his chest

jd0819 said:
got the android recovery installed but it is stuck nothing happens except the dead android with an exclamation point coming out of his chest
Click to expand...
Click to collapse
That's the stock recovery it always does that, unless you are performing OTA, you are trying to go back to stock? You want TWRP installed, until you have recovered the system(Android) to stock. Maybe I am reading you wrong but you need TWRP recovery to restore Android back to scratch.
http://forum.xda-developers.com/showthread.php?t=2074501

aicjofs said:
That's the stock recovery it always does that, unless you are performing OTA, you are trying to go back to stock? You want TWRP installed, until you have recovered the system(Android) to stock. Maybe I am reading you wrong but you need TWRP recovery to restore Android back to scratch.
http://forum.xda-developers.com/showthread.php?t=2074501
Click to expand...
Click to collapse
thanks for the reply got it going, had to do some volume button presses ex. (up down up down up down) and the menu popped up and i was able to flash from there i was trying to go back to completely stock/factory so i could update. Got everything back to normal now im just tracking down wakelocks getting horrible battery life.. audio out_1 is the latest has about 7hrs of awake with 2 hrs screen on

I've had the Nabi 2 for about 6 months, rooted it when I first got it and it was working fine until a couple of days ago when WiFi stopped working. It would not connect although it was showing the access points. Tried various things without success and finally ended up here. I followed the instructions and now I've restored to stock but now the nabi is on version 1.9.12 , when I was originally on 1.9.37. On 1.9.12 I have no WiFi at all. I've tried running the wififix, but it gets stuck on writing partition tables. Pretty sure I need to upgrade to 1.9.37 to have any chance of getting WiFi working again. But, How do I do that without WiFi. I've download the zip files and copied them on to my external sd card, but when I boot into recovery kernel I just get the Dead Android! Feeling pretty frustrated right now as I've spent hours on this. Any Help appreciat

engmex said:
I've had the Nabi 2 for about 6 months, rooted it when I first got it and it was working fine until a couple of days ago when WiFi stopped working. It would not connect although it was showing the access points. Tried various things without success and finally ended up here. I followed the instructions and now I've restored to stock but now the nabi is on version 1.9.12 , when I was originally on 1.9.37. On 1.9.12 I have no WiFi at all. I've tried running the wififix, but it gets stuck on writing partition tables. Pretty sure I need to upgrade to 1.9.37 to have any chance of getting WiFi working again. But, How do I do that without WiFi. I've download the zip files and copied them on to my external sd card, but when I boot into recovery kernel I just get the Dead Android! Feeling pretty frustrated right now as I've spent hours on this. Any Help appreciat
Click to expand...
Click to collapse
You performed the restore to stock procedure. So the recovery is the stock recovery, which is the dead android. You need to reinstall TWRP recovery to proceed. i.e sudo fastboot flash recovery recovery.img

aicjofs said:
You performed the restore to stock procedure. So the recovery is the stock recovery, which is the dead android. You need to reinstall TWRP recovery to proceed. i.e sudo fastboot flash recovery recovery.img
Click to expand...
Click to collapse
I've tried everything! I've had the stock recovery, I've had the TWRP recovery. I've had every version of the firmware from 1.9.12, 1.9.37 and now I've managed to put 2 on there. Doesn't make any difference I can't get the wifi to work. I can't run the wifi fix as it just says updating partitions and hangs!

engmex said:
I've tried everything! I've had the stock recovery, I've had the TWRP recovery. I've had every version of the firmware from 1.9.12, 1.9.37 and now I've managed to put 2 on there. Doesn't make any difference I can't get the wifi to work. I can't run the wifi fix as it just says updating partitions and hangs!
Click to expand...
Click to collapse
Does the restore you are using have boot partition? System? Data? Or all of them?

aicjofs said:
Does the restore you are using have boot partition? System? Data? Or all of them?
Click to expand...
Click to collapse
I completely wiped the rom and reinstalled, so all of them. I'm currently on 1.9.37 unrooted with the TWRP recovery installed. This is what adb logcat reports when I try to connect to an open WiFi:
I/wpa_supplicant( 1529): wlan0: Trying to associate with 00:03:6d:f3:50:7c (SSID='WLAN' freq=2457 MHz)
D/wpa_supplicant( 1529): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 1529): nl80211: Connect (ifindex=5)
D/wpa_supplicant( 1529): * bssid=00:03:6d:f3:50:7c
D/wpa_supplicant( 1529): * freq=2457
D/wpa_supplicant( 1529): * Auth Type 0
D/wpa_supplicant( 1529): nl80211: Connect request send successfully
D/wpa_supplicant( 1529): EAPOL: External notification - EAP success=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - EAP fail=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - portControl=ForceAuthorized
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/CommandListener( 109): Clearing all IP addresses on wlan0
D/wpa_supplicant( 1529): nl80211: Event message available
D/wpa_supplicant( 1529): nl80211: Associated on 2457 MHz
D/wpa_supplicant( 1529): nl80211: Operating frequency for the associated BSS from scan results: 2457 MHz
D/wpa_supplicant( 1529): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 1529): Add randomness: count=181 entropy=179
I/wpa_supplicant( 1529): wlan0: Associated with 00:03:6d:f3:50:7c
D/wpa_supplicant( 1529): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - portValid=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - portEnabled=1
D/wpa_supplicant( 1529): EAPOL: SUPP_PAE entering state S_FORCE_AUTH
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Authorized
D/wpa_supplicant( 1529): EAPOL: SUPP_BE entering state IDLE
I/wpa_supplicant( 1529): wlan0: CTRL-EVENT-CONNECTED - Connection to 00:03:6d:f3:50:7c completed (reauth) [id=1 id_str=]
D/wpa_supplicant( 1529): wpa_driver_nl80211_set_operstate: operstate 0->1 (UP)
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=1 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1529): CTRL_IFACE: ENABLE_NETWORK id=0
D/wpa_supplicant( 1529): Writing configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1529): Configuration file '/data/misc/wifi/wpa_supplicant.conf' written successfully
D/wpa_supplicant( 1529): CTRL_IFACE: SAVE_CONFIG - Configuration updated
D/wpa_supplicant( 1529): wpa_driver_nl80211_driver_cmd OK len = 0, 2
D/wpa_supplicant( 1529): nl80211: Get power mode = 1
E/DhcpStateMachine( 197): DHCP failed on wlan0: Timed out waiting for DHCP to finish
D/wpa_supplicant( 1529): wpa_driver_nl80211_driver_cmd OK len = 0, 2
E/WifiStateMachine( 197): IP configuration failed
D/wpa_supplicant( 1529): wpa_driver_nl80211_disconnect(addr=00:03:6d:f3:50:7c reason_code=3)
D/wpa_supplicant( 1529): wpa_driver_nl80211_set_operstate: operstate 1->0 (DORMANT)
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 1529): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 1529): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - portValid=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): nl80211: Event message available
D/wpa_supplicant( 1529): Added BSSID 00:00:00:00:00:00 into blacklist
I/wpa_supplicant( 1529): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
D/wpa_supplicant( 1529): wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
D/wpa_supplicant( 1529): netlink: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 1529): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): EAPOL: External notification - portValid=0
D/wpa_supplicant( 1529): EAPOL: Supplicant port status: Unauthorized
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1529): RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
D/wpa_supplicant( 1529): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/CommandListener( 109): Clearing all IP addresses on wlan0
D/wpa_supplicant( 1529): WPS: Building WPS IE for Probe Request
D/wpa_supplicant( 1529): WPS: * Version (hardcoded 0x10)
D/wpa_supplicant( 1529): WPS: * Request Type
D/ConnectivityService( 197): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 197): Attempting to switch to BLUETOOTH_TETHER
D/wpa_supplicant( 1529): WPS: * Config Methods (2388)
D/wpa_supplicant( 1529): WPS: * UUID-E
D/wpa_supplicant( 1529): WPS: * Primary Device Type
D/wpa_supplicant( 1529): WPS: * RF Bands (3)
D/wpa_supplicant( 1529): WPS: * Association State
D/wpa_supplicant( 1529): WPS: * Configuration Error (0)
D/wpa_supplicant( 1529): WPS: * Device Password ID (0)
D/wpa_supplicant( 1529): WPS: * Manufacturer
D/wpa_supplicant( 1529): WPS: * Model Name
D/wpa_supplicant( 1529): WPS: * Model Number
D/wpa_supplicant( 1529): WPS: * Device Name
D/wpa_supplicant( 1529): WPS: * Version2 (0x20)
D/wpa_supplicant( 1529): P2P: * P2P IE header
D/wpa_supplicant( 1529): P2P: * Capability dev=27 group=00
D/wpa_supplicant( 1529): P2P: * Listen Channel: Regulatory Class 81 Channel 1
D/wpa_supplicant( 1529): Scan requested (ret=0) - scan timeout 30 seconds
D/wpa_supplicant( 1529): nl80211: Event message available
D/wpa_supplicant( 1529): nl80211: Scan trigger
D/wpa_supplicant( 1529): wpa_driver_nl80211_driver_cmd SCAN-ACTIVE len = 0, 11
D/wpa_supplicant( 1529): Ongoing scan action - reject new request
D/wpa_supplicant( 1529): wpa_driver_nl80211_driver_cmd SCAN-PASSIVE len = 0, 12
D/wpa_supplicant( 1529): nl80211: Event message available
D/wpa_supplicant( 1529): nl80211: New scan results available
D/wpa_supplicant( 1529): Received scan results (3 BSSes)
D/wpa_supplicant( 1529): Add randomness: count=182 entropy=180
D/wpa_supplicant( 1529): Add randomness: count=183 entropy=181
D/wpa_supplicant( 1529): Add randomness: count=184 entropy=182
D/wpa_supplicant( 1529): wlan0: Request association: reassociate: 1 selected: 00:03:6d:f3:50:7c bssid: 00:00:00:00:00:00 pending: 00:00:00:00:00:00 wpa_state: SCANN
ING

I really really need help... I cannot get fuhu_nabi2_v1912_system.ext4.win to install from TWRP 2.3.3.0 .. I always get "Failed" when trying to restore. Please HELP THANKS
EDIT: I decided to post this because maybe it will help someone or maybe the future me. WARNING I'M NOT RESPONSIBLE FOR YOUR BRICKED NABI 2 AND WHAT YOU DO WITH THE INFORMATION I'M ABOUT TO TELL YOU IS YOUR RESPONSIBILITY.. So I wasn't able to get past this error for whatever reason but I did fix my problem. The reason I was trying to go back to stock with fuhu_nabi2_v1912_system.ext4.win is because I lost wifi on 1.9.37 and in the past (I believe) I went back to the first stock img then gradually upgraded one by one until the latest version on the nabi 2 was installed and this seemed to fix the wifi issue but this time I was unsuccessful at returning to stock so I was going through different methods and found NabiLab. http://forum.xda-developers.com/showthread.php?t=2101277 inside of nabilab I found boot.emmc.win so I took that and flashed it in TWRP (just the bootboot.emmc.win) while still on 1.9.37 and wifi is working again..

I couldn't get wifi working either using the fuhu_nabi2_v1912_system.ext4.win image even with the wifi fix. I was able to get it working by install the Stock Version 2.1.27 ROM from http://forum.xda-developers.com/wiki/Fuhu_nabi_2 which makes me wonder if it is some boot kernel setting preventing wifi from starting properly.

Been spending the better half of the last two days trying to get this tablets wifi working again and then to update to the latest OTA. I've at least gotten it back to 1.9.12 (says 1.9.12-release-keys in About Tablet) but wifi still doesn't work after the fix and I've been trying to manually install the .23 and .37 OTA's but those won't install either. In TWRP is processes and says they were installed but it still shows .12 in About Tablet. I tried installing the 2.1.27 ROM in TWRP but it says there was an error flashing (tried off of ext SD card in TWRP 2.3.3.0 Old kernel, 2.2.2.1 doesn't recognize the sd card.)
I'm at a loss as to where to continue or what to try next. Does it matter which version of TWRP I use? Each version of TWRP seems to be tied with certain ROM versions.
Edit: got a little closer - I put the stock recovery back on. transferred the .23 OTA to the internal SD card and renamed it update.zip. Nabi booted up, swiped to unlock the screen and a message popped up that and update.zip was found, yay!. BUT I get a message that says "java security.SignatureException: signature digest verification failed"
I also tried this on TWRP 2221 before the stock recovery and got the same message.
Edit2:trying through the stock recovery, put the OTA on my external SD, gives me this message "E:failed to mount /sdcard (Invalid argument)" when I try to update from external storage. I can't see the folders in cache (lost+found/ or recovery/) in windows explorer to transfer the .zip to.

Related

Android with Wifi Thread - Cooler wifi

Update:
handsets are becoming very hot when wifi is used, you can make them use less power by using the rootfs.img provided, changes where made to tiwlan.ini during testing which keeps the wifi on active even when not in use, this version has reverted the changes and now power saving can be used once more.
http://drop.io/coolerwifikaiser
Aims:
Wakelocks?
Looks like this thread has served its purpose
Wow, are you actually doing all of these commands through the phone? >_<
I really want to see wifi rollin on android too, can't wait to load the ol' Tilt up with it.
the '-f' option
Hi,
a short question, you wrote...
Code:
'wpa_supplicant -f -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf &'
...and I've allready seen this in different ohter posts, but I don't know what the '-f' option effects.
I allready browsed the manpages an this option ins't listed. I just tried the command without this statement and it also worked (but did not create the output '-Dtiwlan0' to '/data/local/tmp'). But wlan also doesn't work...
For Polaris users who might need this info:
First things first, make sure wlan works in Windows Mobile. This seems to be the procedure for getting the wlan into do something in Android. It seems to be very similar to the wifi tethering guides on the G1.
Custom Kernel
We need a kernel, the kernel config produced by make vogue_defconfig ARCH=arm leaves the wireless extensions disabled, so this might the cause of the missing mac address in ifconfig. Current attempts to produce a kernel with these extensions have caused the settings dialogues and ifconfig to hang, Ctrl+C does not force an exit. I'll continue to investigate this.
Tiwlan kernel module
I've found another version of the tiwlan driver, other than the one that is currently in git master which loads the firmware and gives the ok - OK
Download Update: This driver skipped checks, ignore it
so lets see if we can merge this with the newer driver to get a working one.
Initial Variables
Code:
setprop wifi.interface tiwlan0
WLan Commands
Modprobe Method:
Code:
mkdir -p /lib/modules/`uname -r`
cp /sdcard/wlan.ko /lib/modules/`uname -r`/
Insmod Method:
Code:
insmod /sdcard/wlan.ko
Tiwlan0 Mac address: No
Required Output: TIWLAN: Driver loaded
WLAN_Loader
Code:
wlan_loader -f /sdcard/Fw1251r1c.bin -e /proc/calibration -i /sdcard/tiwlan.ini
Tiwlan0 Mac address: No
Required Output: Set property wlan.driver.status = ok - Ok
ifconfig -a might need to show a mac address at this point, i'm still not sure when ifconfig -a gets the mac address info
Code:
wpa_supplicant -ddK -Dtiwlan0 -itiwlan0 -c/sdcard/wpa_supplicant.conf &
ifconfig -a must show a mac address or the next step will error out, you can assign one using the following command, just change it to mac address you see in windows. However simply assigning one with this command might not be enough, it could be the sign of a bigger problem.
Code:
ifconfig tiwlan0 hw ether 00:00:00:00:00:00
Code:
ifconfig tiwlan0 192.168.1.100 netmask 255.255.255.0
ifconfig tiwlan0 up
Log Collecting:
Dmesg - Its a ring buffer so as new info is added old info will be removed, you need to run the command right after insmod or modprobe to see if it worked ok.
Code:
[B]dmesg|grep -i wlan[/B]
TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)
TIWLAN: Driver initialized (rc 0)
TIWLAN: 1251 PG [B]1.1[/B]
TIWLAN: Driver loaded
If i'm right The kaiser has 1.1. the G1 has 1.2, its a reference to the chip used.
Logcat
You can run logcat at the start to keep a log of everything the machine has done since android has started. If you run it like this it will keep logging to the file as you run other commands so when you boot back to WM and sync you can open the file in an editor like Notepad++ and see what happened. This is the first thing i run when i get to the root shell
Code:
logcat -f /sdcard/debuglog.txt &
After running the wlan_loader you can run this to check it worked ok:
Code:
[B]grep -i 'wlan' /sdcard/debuglog.txt[/B]
D/wlan_loader( 395): adapter tiwlan0, eeprom /proc/calibration, init /sdcard/tiwlan.ini, firmware /sdcard/Fw1251r1c.bin
D/wlan_loader( 395): Configuring adapter
D/wlan_loader( 395): Adapter configuration rc = 0
D/wlan_loader( 395): Starting configMge
D/wlan_loader( 395): ConfigMge start rc = 0
D/wlan_loader( 395): Driver configured
D/wlan_loader( 395): Firmware loaded and running OK
D/wlan_loader( 395): Set property wlan.driver.status = ok - Ok
i did once end up with the ok - Ok but it was hit and miss, and i've ended up with all sorts from ok - Fail to fail - Ok to fail - Fail but ifconfig has never shown a mac address on its own
Email to...
The terminal emulator in android should have an option in the menu to email everything you've seen to an email address, use that to keep logs of the entire session. Better terminal has this feature, but it stopped working, try
Files
Fw1251r1c.bin
The firmware filenames of the G1 and the Kaiser have the same name. So we should get a list of good kaiser firmware to rule firmware issues out as soon as possible. If you can connect in windows mobile to a wpa secured AP then the Fw1251r1c.bin in the windows folder on the rom should be the one you are using in Android.
File, Size in bytes, MD5SUM, Source
Fw1251r1c.bin, 185388, ebf5c2036d37bc56b4d41ddcbda4311e, 6.1 WWE ROM shifu, Download
tiwlan.ini
Lets get a good tiwlan.ini file, so we know if its causing issues.
Values:
Comming Soon...
wpa_supplicant.conf
Code:
ctrl_interface=tiwlan0
ap_scan=1
eapol_version=1
fast_reauth=1
eapol_version=1
update_config=1
network={
ssid="WIFISSID"
...
priority=1
}
-------------------------------------------------------------------------------------
Quick Scripts:
Its hard to type long commands on the keyboard so here are some scripts to help:
Code:
[B]/sdcard/cmd1[/B]
#!/bin/sh
echo 'Setting Variables...'
setprop wifi.interface tiwlan0
echo 'Variables Set!'
echo 'Logging to /sdcard/debuglog.txt...'
pkill logcat
logcat -f /sdcard/debuglog.txt &
echo 'Logger Started!'
echo 'Copying WLan Module...'
mkdir -p /lib/modules/`uname -r`
cp /system/lib/modules/wlan.ko /lib/modules/`uname -r`/
echo 'Module Coppied!'
echo 'Loading Module...'
modprobe wlan
lsmod
echo 'Module Loaded!'
#
Code:
[B]/sdcard/cmd2[/B]
#!/bin/sh
echo 'Running Loader...'
wlan_loader -f /sdcard/Fw1251r1c.bin -e /sdcard/calibration -i /sdcard/tiwlan.ini
echo 'Loder Completed'
echo 'Ifconfig Output'
ifconfig -a
dmesg|grep -i wlan
cat /sdcard/debuglog.txt... |grep -i wlan
#
Output:
$ su
~ # cd /sdcard/
/sdcard # ./cmd1
Setting Variables...
Variables Set!
Logging to /sdcard/debuglog.txt...
Logger Started!
Copying WLan Module...
Module Coppied!
Loading Module...
wlan 584168 0 - Live 0xbf000000
Module Loaded!
/sdcard # ./cmd2
Running Loader...
Loder Completed
Ifconfig Output
tiwlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[ 96.701234] TIWLAN: Driver loading
[ 97.593872] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)
[ 97.599251] TIWLAN: Driver initialized (rc 0)
[ 97.599511] TIWLAN: 1251 PG 1.1
[ 97.599547] TIWLAN: Driver loaded
D/wlan_loader( 518): adapter tiwlan0, eeprom /sdcard/calibration, init /system/etc/wifi/tiwlan.ini, firmware /sdcard/Fw1251r1c.bin
D/wlan_loader( 518): Configuring adapter
D/wlan_loader( 518): Adapter configuration rc = 0
D/wlan_loader( 518): Starting configMge
D/wlan_loader( 518): ConfigMge start rc = 0
D/wlan_loader( 518): Driver configured
D/wlan_loader( 518): Firmware loaded and running OK
D/wlan_loader( 518): Set property wlan.driver.status = ok - Ok
thanks,
how did you manage that configMge doesn't fail on start? I still get 'rc = -1'. Did you build a new 'wlan.ko' with the Kernelsource from git (Vogue/Kaiser)? And what firmware are you using (the original or the extracted?)
maybe you can post your files for testing...
toasty_ said:
thanks,
how did you manage that configMge doesn't fail on start? I still get 'rc = -1'. Did you build a new 'wlan.ko' with the Kernelsource from git (Vogue/Kaiser)? And what firmware are you using (the original or the extracted?)
maybe you can post your files for testing...
Click to expand...
Click to collapse
Its either the variable being set or modprobe being used that does the trick, so try those, i'm in the middle of compiling a newer kernel to see if it works better
Thx for the short Tutorial and the scripts. Unfortunately I still get the message:
Code:
'ConfigMge start rc = -1'
I think the reason is the (my) wlan.ko module - it shows following message/warning while loading (insmod and modprobe)
Code:
wlan: version magic '2.6.25-00818-gf668526 preempt mod_unload ARMv6 ' should be '2.6.25-00832-g42c5da5 preempt mod_unload ARMv6'
but its loaded...
especialy lsmod gives me another value for the second number (think the allocated memory):
Code:
wlan 583852 0 - Live 0xbf000000
I use the firmware from '3.34.shifuv11F WWE':
Size: 185388 byte
MD5: ebf5c2036d37bc56b4d41ddcbda4311e
dmesg:
Code:
[ 114.718730] TIWLAN: Driver loading
[ 115.079288] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)
[ 115.084840] TIWLAN: Driver initialized (rc 0)
[ 115.084952] TIWLAN: Driver loaded
[ 122.852419] TIWLAN: TIWLAN: Failed to start config manager
logcat:
Code:
D/wlan_loader( 444): adapter tiwlan0, eeprom /proc/calibration, init /sdcard/wlan/tiwlan.ini, firmware /sdcard/wlan/Fw1251r1c.bin
D/wlan_loader( 444): Configuring adapter
D/wlan_loader( 444): Adapter configuration rc = 0
D/wlan_loader( 444): Starting configMge
D/wlan_loader( 444): ConfigMge start rc = -1
D/wlan_loader( 444): Driver configuration failed (-1)
E/wlan_loader( 444): init_driver() failed
D/wlan_loader( 444): Set property wlan.driver.status = failed - Ok
can you tell me what wlan.ko you are using - maybe a link...
Upon further investigation it turns out that a specific version of the firmware and a compatible wlan.ko are needed to get it to work, i'm rolling up a fresh system.img to test now, i'll post it if it works
http://forum.xda-developers.com/showthread.php?p=4231219
toasty_ said:
Thx for the short Tutorial and the scripts. Unfortunately I still get the message:
Code:
'ConfigMge start rc = -1'
I think the reason is the (my) wlan.ko module - it shows following message/warning while loading (insmod and modprobe)
Code:
wlan: version magic '2.6.25-00818-gf668526 preempt mod_unload ARMv6 ' should be '2.6.25-00832-g42c5da5 preempt mod_unload ARMv6'
but its loaded...
especialy lsmod gives me another value for the second number (think the allocated memory):
Code:
wlan 583852 0 - Live 0xbf000000
I use the firmware from '3.34.shifuv11F WWE':
Size: 185388 byte
MD5: ebf5c2036d37bc56b4d41ddcbda4311e
dmesg:
Code:
[ 114.718730] TIWLAN: Driver loading
[ 115.079288] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)
[ 115.084840] TIWLAN: Driver initialized (rc 0)
[ 115.084952] TIWLAN: Driver loaded
[ 122.852419] TIWLAN: TIWLAN: Failed to start config manager
logcat:
Code:
D/wlan_loader( 444): adapter tiwlan0, eeprom /proc/calibration, init /sdcard/wlan/tiwlan.ini, firmware /sdcard/wlan/Fw1251r1c.bin
D/wlan_loader( 444): Configuring adapter
D/wlan_loader( 444): Adapter configuration rc = 0
D/wlan_loader( 444): Starting configMge
D/wlan_loader( 444): ConfigMge start rc = -1
D/wlan_loader( 444): Driver configuration failed (-1)
E/wlan_loader( 444): init_driver() failed
D/wlan_loader( 444): Set property wlan.driver.status = failed - Ok
can you tell me what wlan.ko you are using - maybe a link...
Click to expand...
Click to collapse
So you'll have to compile a custom kernel, then a custom wlan.ko before you try this. I have also uploaded the wifi firmware, a link is in the first post
Custom Kernel:
I use the Kernelsources from git ("git.linuxtogo.org", vogue branch). I also tried to build the 'wlan.ko' from Android-source (I set 'KERNEL_DIR' to the Folder of my Kernel source). If I run make I get some errors because of missing include-files.
//Edit: just made symlink to arm-msm
If I'm home on weekend I try to build a new wlan.ko for my kernel. Is there anything, that needs to be patched for kernel 2.6.25?
btw. I found this page http://www.johandekoning.nl/index.php, there are some information about wlan and firmware loading issues (for the G1, but nearly the same problemes)
I didn't do anything special to get a wlan.ko, just compiled it as normal:
Code:
KERNEL_DIR=/Android/kernel make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
Current status from error log:
Code:
D/wlan_loader( 406): adapter tiwlan0, eeprom /proc/calibration, init /system/etc/wifi/tiwlan.ini, firmware /system/etc/wifi/Fw1251r1c.bin
D/wlan_loader( 406): Configuring adapter
D/wlan_loader( 406): Adapter configuration rc = 0
D/wlan_loader( 406): Starting configMge
D/wlan_loader( 406): ConfigMge start rc = 0
D/wlan_loader( 406): Driver configured
D/wlan_loader( 406): Firmware loaded and running OK
D/wlan_loader( 406): Set property wlan.driver.status = ok - Ok
D/dalvikvm( 161): GC freed 11747 objects / 572968 bytes in 363ms
V/WifiMonitor( 161): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiMonitor( 161): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
D/SettingsWifiEnabler( 390): Received wifi state changed from Enabling to Enabled
V/WifiMonitor( 161): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiMonitor( 161): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
[B]D/WifiHW ( 161): 'DRIVER RSSI' command timed out.[/B]
[B]D/WifiHW ( 161): 'DRIVER LINKSPEED' command timed out.[/B]
[B]D/WifiHW ( 161): 'DRIVER MACADDR' command timed out.[/B]
V/WifiStateTracker( 161): Connection to supplicant established, state=INACTIVE
[B]D/WifiHW ( 161): 'DRIVER RXFILTER-ADD 0' command timed out.[/B]
[B]D/WifiHW ( 161): 'DRIVER BTCOEXSCAN-STOP' command timed out.[/B]
V/WifiStateTracker( 161): Changing supplicant state: INACTIVE ==> SCANNING
I/WindowManager( 161): Setting rotation to 1, animFlags=1
I/WindowManager( 161): Config changed: { scale=1.0 imsi=0/0 locale=en touch=3 key=2/1/1 nav=1 orien=2 }
[B]D/WifiHW ( 161): 'DRIVER SCAN-PASSIVE' command timed out.[/B]
V/WifiStateTracker( 161): Changing supplicant state: SCANNING ==> INACTIVE
V/WifiStateTracker( 161): Changing supplicant state: INACTIVE ==> SCANNING
V/WifiStateTracker( 161): Changing supplicant state: SCANNING ==> INACTIVE
W/WindowManager( 161): Window freeze timeout expired.
W/WindowManager( 161): Force clearing orientation change: Window{43120508 StatusBar paused=false}
[B]D/WifiHW ( 161): 'SCAN_RESULTS' command timed out.[/B]
D/StatusBar( 161): updateResources
I/WindowManager( 161): Config changed: { scale=1.0 imsi=0/0 locale=en touch=3 key=2/1/2 nav=1 orien=2 }
D/dalvikvm( 161): GC freed 5792 objects / 384744 bytes in 220ms
D/StatusBar( 161): updateResources
[B]D/WifiHW ( 161): 'LIST_NETWORKS' command timed out.[/B]
W/SurfaceFlinger( 161): timeout expired mFreezeDisplay=1, mFreezeCount=1
W/WindowManager( 161): App freeze timeout expired.
W/WindowManager( 161): Force clearing freeze: AppWindowToken{43358af8 token=HistoryRecord{43358808 {com.android.settings/com.android.settings.wifi.WifiSettings}}}
D/WifiHW ( 161): 'STATUS' command timed out.
D/dalvikvm( 161): GC freed 946 objects / 43184 bytes in 188ms
D/dalvikvm( 317): GC freed 356 objects / 32824 bytes in 105ms
D/WifiHW ( 161): 'DRIVER RSSI' command timed out.
W/WindowManager( 161): Key dispatching timed out sending to com.android.settings/com.android.settings.wifi.WifiSettings
W/WindowManager( 161): Dispatch state: null
W/WindowManager( 161): Current state: {{null to Window{4335b828 com.android.settings/com.android.settings.wifi.WifiSettings paused=false} @ 1247587631205 lw=Window{4335b828 com.android.settings/com.android.settings.wifi.WifiSettings paused=false} [email protected] fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{4335b828 com.android.settings/com.android.settings.wifi.WifiSettings paused=false}}}
I/ActivityManager( 161): ANR (application not responding) in process: com.android.settings
I/ActivityManager( 161): Annotation: keyDispatchingTimedOut
I/ActivityManager( 161): CPU usage:
I/ActivityManager( 161): Load: 5.21 / 3.21 / 1.36
I/ActivityManager( 161): CPU usage from 9963ms to 28ms ago:
I/ActivityManager( 161): system_server: 8% = 7% user + 0% kernel
I/ActivityManager( 161): com.android.alarmclock: 1% = 1% user + 0% kernel
I/ActivityManager( 161): com.android.phone: 0% = 0% user + 0% kernel
I/ActivityManager( 161): loop0: 0% = 0% user + 0% kernel
I/ActivityManager( 161): rild: 0% = 0% user + 0% kernel
I/ActivityManager( 161): android.process.acore: 0% = 0% user + 0% kernel
I/ActivityManager( 161): com.android.inputmethod.latin: 0% = 0% user + 0% kernel
I/ActivityManager( 161): android.process.media: 0% = 0% user + 0% kernel
I/ActivityManager( 161): TOTAL: 8% = 7% user + 1% kernel + 0% irq
toasty_ said:
Custom Kernel:
I use the Kernelsources from git ("git.linuxtogo.org", vogue branch). I also tried to build the 'wlan.ko' from Android-source (I set 'KERNEL_DIR' to the Folder of my Kernel source). If I run make I get some errors because of missing include-files.
If I'm home on weekend I try to build a new wlan.ko for my kernel. Is there anything, that needs to be patched for kernel 2.6.25?
btw. I found this page http://www.johandekoning.nl/index.php, there are some information about wlan and firmware loading issues (for the G1, but nearly the same problemes)
Click to expand...
Click to collapse
Sorry, my mistake, i did in fact have a different driver version. I have uploaded it, check the first post. This driver does not seem to work and will need to be modified.
thanks for the files, where did you get them? Compiling worked without any failure (just had to create a symlink to 'arch-msm'
it seem as if the firmware is loaded (on my phone it only works with the fw of the G1). I think it is realiy loaded because you get 'failed - OK' if you try to load it a 2nd time.
by the way have you extraced wlan-eeprom ('/proc/calibration') http://projects.linuxtogo.org/tracker/index.php?func=detail&aid=32&group_id=37&atid=273
toasty_ said:
thanks for the files, where did you get them? Compiling worked without any failure (just had to create a symlink to 'arch-msm'
it seem as if the firmware is loaded (on my phone it only works with the fw of the G1). I think it is realiy loaded because you get 'failed - OK' if you try to load it a 2nd time.
by the way have you extraced wlan-eeprom ('/proc/calibration') http://projects.linuxtogo.org/tracker/index.php?func=detail&aid=32&group_id=37&atid=273
Click to expand...
Click to collapse
Yes, i have extracted my eeprom file and i have found my mac address in there 3 times, which seems strange. I found the area which has the same start as the carlibration of a G1 (found here) and extracted a chunk to get the same size file. I tried it but it doesn't seem to make a difference. Maybe the data is read after the point at which we are having errors?
So I've played a bit around with the files. At the moment the driver is loaded and the firmware is accepted. But the wlan adapter still doesn't get a Mac.
Btw. if you take a look at the eeprom-file you find the MAC from Offset 0x5C to 0x61 in reverse order. Would be interesting the G1 eeprom-file looks like. Maybe somebody can 'cat /proc/calibration > /sdcard/calibration.bin'.
//***OK nearly the same as you said - should write faster***//
OK, yes found the offset in my file, but the its a bit different
Code:
G1:
02 11 56 06 1C 06 01 16 60 03 07 01 09 56 12 00 00 00 01 0D 56 40
Kaiser:
02 11 56 06 1C 06 [COLOR="Red"]00[/COLOR] 16 60 03 [COLOR="Red"]02[/COLOR] 01 09 56 12 00 00 00 01 0D 56 40
Ah, i made a mistake, still need to find where the contents of calibration are in the rom dump
Ok in romdump there are some more Offsets (0x243E5C8, 0x2500040, 0x2500840, 0x2520040 from full rom-dump) that have nearly the same byte order
But only in 0x2500840 and 0x2500040 my MAC is included --> I've checked with 'diff' both extracted Offsets (752 Byte) and they are same
toasty_ said:
So I've played a bit around with the files. At the moment the driver is loaded and the firmware is accepted. But the wlan adapter still doesn't get a Mac.
Btw. if you take a look at the eeprom-file you find the MAC from Offset 0x5C to 0x61 in reverse order. Would be interesting the G1 eeprom-file looks like. Maybe somebody can 'cat /proc/calibration > /sdcard/calibration.bin'.
//***OK nearly the same as you said - should write faster***//
OK, yes found the offset in my file, but the its a bit different
Code:
G1:
02 11 56 06 1C 06 01 16 60 03 07 01 09 56 12 00 00 00 01 0D 56 40
Kaiser:
02 11 56 06 1C 06 [COLOR="Red"]00[/COLOR] 16 60 03 [COLOR="Red"]02[/COLOR] 01 09 56 12 00 00 00 01 0D 56 40
Click to expand...
Click to collapse
Ok i found the correct location, I searched for 021156061c in the eeprom dump and found it. I haven't had a chance to test this yet. Also another interesting thing to note is that both the kaiser' and G1's mac address started with 00:18 :41
Newbie16 said:
Ok i found the correct location, I searched for 021156061c in the eeprom dump and found it. I haven't had a chance to test this yet. Also another interesting thing to note is that both the kaiser' and G1's mac address started with 00:18 :41
Click to expand...
Click to collapse
yap, my does it too...

Wifi not working cm9 based ics roms on international Sim(lg-p999dw)

Wifi not working cm9 based ics roms on international Sim(lg-p999dw)
Any one have this issues?
Any one have how to fix idea?
Wifi working us sim or not sim state
Logcat:
E/WifiStateMachine( 1597): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg wlan0 0.0.0.0 0 [down broadcast running multicast]} failed with code 501 : {Flag unsupported}
03-12 00:00:22.926 I/wpa_supplicant( 7483): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
03-12 00:00:22.986 E/WifiConfigStore( 1597): Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
Sent from my LG-P999 using xda premium

[Q] Wifi not enabled after flashing CROMi or cyanogen

I have now flashed both the latest CROMi and/or cyanogen, but I end up without wifi on both. I cannot enable wifi (i.e.switch the button to ON)
Thanks
Good luck. I have flashed CROMI-X without problems. Have you cold-booted after the install/flash to see if that does anything? If not, try flash again after wiping cache/dalvik. Maybe someone with more experience will post as well. Wish I could offer more suggestions - I'm learning as I go.
jt1998 said:
Good luck. I have flashed CROMI-X without problems. Have you cold-booted after the install/flash to see if that does anything? If not, try flash again after wiping cache/dalvik. Maybe someone with more experience will post as well. Wish I could offer more suggestions - I'm learning as I go.
Click to expand...
Click to collapse
Probably some left over settings from one ROM or the other. You must do a full wipe when switchingbetween the two. Did you try that?
Yes, have done a factory reset, flushed cash and dalvik, etc.
only thing I haven't done is wipe data (for obvious reasons).
In a nutshell, followed all the guides to the letter, but never get wifi.
lister171254 said:
Yes, have done a factory reset, flushed cash and dalvik, etc.
only thing I haven't done is wipe data (for obvious reasons).
In a nutshell, followed all the guides to the letter, but never get wifi.
Click to expand...
Click to collapse
Well unless you have a hardware failure? factory resetting should get it working.....BTW a factory reset in TWRP does wipe data so I'm not sure what you mean by not wiping data.... You need to wipe data as you'll have all your old data settings present. Back up in tibu the stuff you want to keep and wipe data please. What have you got to lose?
Yes, you are quite correct about wiping data. Leaves media though, as that's where the TWRP backups are.
So can confirm that I do a factory reset.
As mentioned in the original post. Everything comes up as expected, except wifi.
extract from logcat
The following is an extract from logcat when I ran cyanogen
--------------------------------------------------------------
D/PhoneStatusBar( 1344): disable: < expand icons alerts ticker system_info back* home* recent clock* search >
V/Sensors ( 1168): Changed Polling period to 400ms
V/TAG ( 1168): bug 7643792: fitSystemWindows([0,38][0,0])
E/wpa_supplicant( 1834): Could not set interface wlan0 flags (UP): Operation not permitted
E/wpa_supplicant( 1834): nl80211: Could not set interface 'wlan0' UP
E/wpa_supplicant( 1834): wlan0: Failed to initialize driver interface
W/hwcomposer( 899): Potential underflow detected, enacting countermeasures
I/dalvikvm( 1168): Jit: resizing JitTable from 4096 to 8192
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiStateMachine( 1168): Failed to setup control channel, restart supplicant
D/SoftapController( 897): Softap fwReload - Ok
D/CommandListener( 897): Setting iface cfg
D/CommandListener( 897): Trying to bring down wlan0
I/wpa_supplicant( 1851): Successfully initialized wpa_supplicant
I/wpa_supplicant( 1851): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 1851): Could not set interface wlan0 flags (UP): Operation not permitted
E/wpa_supplicant( 1851): nl80211: Could not set interface 'wlan0' UP
E/wpa_supplicant( 1851): wlan0: Failed to initialize driver interface
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiStateMachine( 1168): Failed to setup control channel, restart supplicant
D/SoftapController( 897): Softap fwReload - Ok
D/CommandListener( 897): Setting iface cfg
D/CommandListener( 897): Trying to bring down wlan0
I/wpa_supplicant( 1853): Successfully initialized wpa_supplicant
I/wpa_supplicant( 1853): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 1853): Could not set interface wlan0 flags (UP): Operation not permitted
E/wpa_supplicant( 1853): nl80211: Could not set interface 'wlan0' UP
E/wpa_supplicant( 1853): wlan0: Failed to initialize driver interface
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
E/WifiHW ( 1168): Supplicant not running, cannot connect
-------------------------------------------------------------
Still stuck without a solution.
Given that some of you got Wifi working on your TF700, maybe somebody can post the steps.
Only other difference I can think of is that my device is encrypted.
Thanks
lister171254 said:
Still stuck without a solution.
Given that some of you got Wifi working on your TF700, maybe somebody can post the steps.
Only other difference I can think of is that my device is encrypted.
Thanks
Click to expand...
Click to collapse
Do you have external SD and willing to follow instructions? I will try to help you out and see if you can get your wifi back..
Yep. Have an external card, but not recognised by latest TWRP (still) if that's needed.
Happy to follow your lead.
Thanks
lister171254 said:
Yep. Have an external card, but not recognised by latest TWRP (still) if that's needed.
Happy to follow your lead.
Thanks
Click to expand...
Click to collapse
First, you need to format your external SD with a fat32 for the TWRP to see it. Then you may want to back up your whole system to your external SD just in case you want to restore it later. Also, you need to move all your data to your external SD because you will need to format your internal SD and install a fresh rom on it. Please make sure that you use a "Format" option in the TWRP, not "Wipe". After the installation of the custom rom, you need to shut down your device for at least 10 second and power it up for the rom to set up. When you see the device set up screen, you must let it stabilizes for at least one minute and reboot your device one more time. During the device set up, you want to skip the wifi set up and do not sign in the google app store to prevent any app to install. When your device are up and running, you can check to see if you can enable your wifi. Please follow all the steps and report back. Good luck.

[Q] WiFi connect possible, but no scanning?

Hi,
problem:
i can´t see any wifi networks, that im not connected to
i´m able to add manuelly any wifi network without problems.. wifi on those manually added networks, works perfect
notification of open networks is enabled.. and i got a notification that there is an open wifi network in range.. so scanning itself seems to work? but my device doesn´t show any network but the one im connected to.
EDIT: "MotoTool AIO" shows me at "SysInfo" -> "wifi" a wifi scan... so this seems really a problem on just displaying the wifi scan results on the device?!?!?
tools like "wifi analyzer" don´t show ANY network
what i tried/looked for, without a positive result:
wifi_display_on has still value 0 in settings.db
file WCNSS_qcom_wlan_factory_nv.bin is existing in /persists (http://forum.xda-developers.com/showpost.php?p=49656627&postcount=3)
flashed stock baseband (http://forum.xda-developers.com/showthread.php?t=2649763)
i did more.. but can´t remember everything.. im sorry...
im on latest gapps.. latest cm12 nightly.. (problem exists since some nightly in the summer of 2014)
im on moto g XT1032
i did not a clean install.. i just upgraded via adb sideload in TWRP (and i don´t really want to do a clean install)
after fixing systemUI Crash and launcher3 crash on myself (look: http://forum.xda-developers.com/showpost.php?p=58316659&postcount=768) i just have this problem (also no GPS Signal, tried to fastboot erasing modemst1 and modemst2)
im really really interested in finding the problem instead of just do a clean install..
so i also take a look at logcat.. and found those errors:
the errors:
I/wpa_supplicant(4981): CTRL_IFACE: Detach monitor /data/misc/wifi/sockets/wpa_ctrl_774-5\x00 that cannot receive messages
E/WifiHW (774): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
E/WifiHAL (774): wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle, byte*): requestResponse Error:-95
E/WifiHAL (774): wifi_error wifi_get_gscan_capabilities(wifi_interface_handle, wifi_gscan_capabilities*): GSCAN is not supported by driver
more details:
I/wpa_supplicant(4981): CTRL_IFACE: Detach monitor /data/misc/wifi/sockets/wpa_ctrl_774-5\x00 that cannot receive messages
E/WifiHW (774): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
I/wpa_supplicant(6513): Successfully initialized wpa_supplicant
I/wpa_supplicant(6513): rfkill: Cannot open RFKILL control device
E/WifiHW (774): Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
I/wpa_supplicant(6513): rfkill: Cannot open RFKILL control device
D/WifiConfigStore(774): Loading config and enabling all networks
I/wpa_supplicant(6513): wlan0: CTRL-EVENT-SCAN-STARTED
D/WifiNative-HAL(774): Setting external_sim to 1
D/WifiStateMachine(774): Setting OUI to DA-A1-19
I/WifiNative-HAL(774): startHal
D/wifi (774): setting scan oui 0x977ece20
I/WifiHAL (774): ******HexDump len:0*********
I/WifiHAL (774): ******HexDump End***********
E/WifiHAL (774): virtual int WifiVendorCommand::create() ifindex obtained:29
E/WifiHAL (774): virtual int WifiVendorCommand::set_iface_id(const char*) ifindex obtained:29
I/WifiHAL (774): MAC_OUI - da:a1:19
D/WifiHAL (774): virtual int WifiVendorCommand::requestResponse(): request a response
E/WifiHAL (774): wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle, byte*): requestResponse Error:-95
D/RttService(774): SCAN_AVAILABLE : 3
D/WifiScanningService(774): SCAN_AVAILABLE : 3
D/RttService(774): DefaultState got{ when=-1ms what=160512 target=com.android.internal.util.StateMachine$SmHandler }
D/WifiScanningService(774): DefaultState got{ when=-1ms what=160006 target=com.android.internal.util.StateMachine$SmHandler }
I/WifiNative-HAL(774): startHal
D/wifi (774): getting scan capabilities on interface[0] = 0x977ece20
E/WifiHAL (774): wifi_error wifi_get_gscan_capabilities(wifi_interface_handle, wifi_gscan_capabilities*): GSCAN is not supported by driver
D/wifi (774): failed to get capabilities : -3
E/WifiScanningService(774): could not get scan capabilities
D/WifiMonitor(774): startMonitoring(p2p0) with mConnected = true
D/class com.mobisystems.wifi_direct.StartWifiDirectReceiver(6198): Wifi notification received.
D/class com.mobisystems.wifi_direct.StartWifiDirectReceiver(6198): WIFI State Changed.
Click to expand...
Click to collapse
added important info in first post!

[SOLVED][Q] WiFi won't turn on

All of a sudden, on Stock + Root TF700T, WiFi won't turn on. I highly doubt that this is related to my WiFi router ... the WiFi won't even enable on the tablet, and I can't even see a MAC address in About Tablet section.
I also did some digging and have some additional detail, but I cannot find a solution.
logcat:
Code:
E/WifiHW ( 122): Failed to open wlan fw path param (No such file or directory)
E/SoftapController( 122): Softap fwReload - failed: -1
E/WifiStateMachine( 489): Failed to reload STA firmware java.lang.IllegalStateException: command '43 softap fwreload wlan0 STA' failed with '400 43 Softap operation failed (No such file or directory)'
W/CommandListener( 122): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 122): Setting iface cfg
E/WifiStateMachine( 489): Unable to change interface settings: java.lang.IllegalStateException: command '45 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 45 Failed to set address (No such device)'
E/WifiHW ( 489): wpa_ctrl_open fail, retry again
I/wpa_supplicant( 2767): Successfully initialized wpa_supplicant
E/wpa_supplicant( 2767): nl80211: Could not add multicast membership for scan events: -2 (No such file or directory)
E/wpa_supplicant( 2767): Failed to initialize driver 'nl80211'
E/wpa_supplicant( 2767): wlan0: Unsupported driver 'nl80211'
D/dalvikvm( 1258): GC_CONCURRENT freed 427K, 14% free 3700K/4272K, paused 3ms+3ms, total 57ms
D/AsusBrightnessManager( 489): br transform : 35 -> 13
D/DockManagerService( 489): mLastAcOnline:false mAcOnline:false
D/LowBatteryService( 1487): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
D/LowBatteryService( 1487): mAcOnline = false, mDeviceBatteryLevel = 96, mDockBatteryLevel = 0, mDockBatteryStatus = 0
D/LowBatteryService( 1487): Battery level is higher than threshold, no need to apply
D/LowBatteryService( 1487): Battery level is good, no need to apply low battery config.
D/DockManagerService( 489): mLastAcOnline:false mAcOnline:false
D/LowBatteryService( 1487): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
D/LowBatteryService( 1487): mAcOnline = false, mDeviceBatteryLevel = 96, mDockBatteryLevel = 0, mDockBatteryStatus = 0
D/LowBatteryService( 1487): Battery level is higher than threshold, no need to apply
D/LowBatteryService( 1487): Battery level is good, no need to apply low battery config.
E/WifiHW ( 489): Supplicant not running, cannot connect
E/WifiHW ( 489): Supplicant not running, cannot connect
E/WifiHW ( 489): Supplicant not running, cannot connect
E/WifiHW ( 489): Supplicant not running, cannot connect
E/WifiHW ( 489): Supplicant not running, cannot connect
E/WifiHW ( 122): Failed to open wlan fw path param (No such file or directory)
E/SoftapController( 122): Softap fwReload - failed: -1
E/WifiStateMachine( 489): Failed to reload STA firmware java.lang.IllegalStateException: command '46 softap fwreload wlan0 STA' failed with '400 46 Softap operation failed (No such file or directory)'
E/WifiStateMachine( 489): Failed 6 times to start supplicant, unload driver
W/CommandListener( 122): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 122): Setting iface cfg
E/WifiStateMachine( 489): Unable to change interface settings: java.lang.IllegalStateException: command '48 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 48 Failed to set address (No such device)'
E/WifiHW ( 489): wpa_ctrl_open fail, retry again
I/wpa_supplicant( 2792): Successfully initialized wpa_supplicant
E/wpa_supplicant( 2792): nl80211: Could not add multicast membership for scan events: -2 (No such file or directory)
E/wpa_supplicant( 2792): Failed to initialize driver 'nl80211'
E/wpa_supplicant( 2792): wlan0: Unsupported driver 'nl80211'
D/dalvikvm( 1258): GC_CONCURRENT freed 427K, 14% free 3700K/4272K, paused 2ms+1ms, total 22ms
W/NvCpuClient( 489): Failed to bind to service
D/AsusBrightnessManager( 489): br transform : 35 -> 13
E/WifiHW ( 489): Supplicant not running, cannot connect
W/NvCpuClient( 489): Failed to bind to service
Also, output from netcfg:
Code:
[email protected]:/ # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 76:ad:93:6b:c9:b7
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
And here is output of my wpa_supplicant.conf:
Code:
[email protected]:/ # cat /etc/wifi/wpa_supplicant.conf
update_config=1
ctrl_interface=wlan0
eapol_version=1
ap_scan=1
fast_reauth=1
And I searched the entire filesystem for "nl80211" and found nothing.
Does anyone have suggestions on where to go next? Did my driver somehow get deleted, or am I just not looking for the right thing?
Thanks.
I will use this question in the future as an example of how to ask for support properly. Unfortunately I don't have a solution for you, but you could check the files in your /data/misc/wifi, maybe you can find something unusual. Your MAC address should come from some file on the FAT filesystem on /dev/block/mmcblk0p5 - I'd recommend making an image of it as a backup and then analyze the image.
_that said:
I will use this question in the future as an example of how to ask for support properly.
Click to expand...
Click to collapse
I provide Enterprise-level support to software devs working in the Cloud and particularly on CentOS/RHEL Linux servers. This is why I know how to ask for help properly.
Well, since I can't find much, and there aren't any definitive answers here, my next thoughts are:
1) Something is seriously jacked up on the filesystem, possibly corrupted driver, possibly something worse. Hopefully, this is the case, because a software problem is possible to fix.
2) The WiFi radio is permanently damaged, or "burnt out".
In the hopes that it's something more like software, I'm going to reimage. I just need to decide what ROM to use. Not having network connectivity will make the prep for this a bit more challenging, but I can work through it using a MicroSD card.
If it's #2, well then I suppose I will have wasted my time reimaging and will be on the market for a new tablet ... and I need to get on that right away because I need to travel soon. Any suggestions are welcome ... I'd like a 9" or 10" tablet and it must have an HDMI out (micro preferred) and be able to handle 1080p video.
Thanks.
[SOLVED]
I am having a heckuva time even doing what I described above.
-I had never unlocked the bootloader before, so when I tried the ASUS unlock util v8, it gave error "INSTALL_FAILED_SHARED_USER_INCOMPATIBLE"
-I tried the ASUS unlock tool v7, and was finally able to install it but when I run and select Unlock I get an error that there is no network connection (FFS that's what I'm trying to resolve!)
-I can't get into recovery, I just get the Android guy with "ERROR!" when I enter fastboot and select "RCK".
My only option is to go back to Stock. So, I tried this:
http://forum.xda-developers.com/showthread.php?t=1833212
The steps in that post result in the same Android guy with the "ERROR!" screen ... not a very helpful error msg.
So, I tried this, and used the stock firmware from ASUS. (NOTE: I downloaded "ASUS Transformer Pad TF700T Firmware: V10.6.1.14.10 Only for US SKU (Android 4.2.1)" directly from ASUS after I read their notes on where to check for which one you need ([Settings]-->[About tablet]-->Build number).):
http://www.transformerforums.com/fo...e-firmware-tf700-tf701-tf300-tf101-tf201.html
From that post ^^ I did Method B: Flash from MicroSD. I extracted the .zip I downloaded from ASUS, and renamed the new zip EP201_768_SDUPDATE.zip per the GUIDE linked above.
I put in my MicroSD, went back into fastboot, and selected "RCK". It was at this point that I began typing the above. Total time to get to this point was about 90 minutes!
-----
FINALLY, for the first time, I saw a progress bar under the Android guy, and he had gears turning in his belly.
*INSERT SIGH OF RELIEF HERE*
As I was typing out all the above, progress bars were moving, and a few reboots happened. I expected that I would be fully back on Stock ROM, and that my data would have been wiped. I never ran a data wipe, I just assumed the ASUS installer would do that by default.
Well, it didn't wipe data. But, what it did do: restore all my device drivers!! After about 10 minutes, and 2-3 reboots, Android loaded with my existing desktop and settings, and the WiFi connected right away!!
So, this fixed it. I documented the above so anyone (even me, months from now) having a similar problem might be able to use these steps.
WOO HOO!
lost root
I should add that I lost root now. I think at this point, after all I've been through with this, I'm just going to press on and install CyanogenMod which is what I was planning to do anyway.
CaptainRewind said:
I should add that I lost root now. I think at this point, after all I've been through with this, I'm just going to press on and install CyanogenMod which is what I was planning to do anyway.
Click to expand...
Click to collapse
Just flash this to get root
http://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip
sbdags said:
Just flash this to get root
http://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip
Click to expand...
Click to collapse
Yep, I had to do that anyway because I wanted to do a full Titanium Backup first. Still, I'm moving to CM now.

Categories

Resources