Wlan is not working with my compiled ROM (CM 11) - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Hi everybody,
I compiled my own CM-11 for my Galaxy Tab 2 10.1 (P5110) following this guide and got the following issue.
It is not possible to switch on the WLAN. When I move the switch to 'On' no WLANs are shown and it says "To see available networks, turn Wi-Fi on" that's it?
For testing purposes I've installed cm-11-20160320-NIGHTLY-p5110, there Wlan is working.
Any ideas or hints to figure out what's wrong?
Regards Pete

Cause I suspected missing drivers, I've adapted the script 'extract-files.sh' to pull the proprietary files out of the ROM mentioned above.
Thereafter I recompiled my ROM, but Wifi is still not working. The output of logcat and dmesg is attached.
Thanks for any help!
Regards Pete

...I'm a step further.
To have the same conditions as in the nightly, i build a ROM with the 'build_manifest.xml' out of the nightly. After a comparison of both, I've found out that in my ROM in the directory '/system/etc/wifi' the following files are missing:
Code:
bcmdhd_p2p.bin
nvram_mfg.txt
nvram_net.txt
I've copied these files from the 'nightly' to my ROM and guess what... WLAN is working now!
But there's still one question left, why aren't these files compiled with my ROM?
Does anybody know the answer for this?
Regards
Pete

Related

Init.rc help needed

Hi everyone,
I have been working on an android build for the HTC Titan for a while and I have been trying to get the wifi to work. I have all of the drivers in the system.sqsh but now the problem lies with the init.rc. A sysinit.rc came with the drivers, and there was an unmodified version, and then one with just the needed wifi fixes. Neither of them boot on my device, however when I leave the sysinit.rc out of my system.sqsh, the build uses "/ion.init.rc". This file works like a charm! I have searched the rootfs, and system.sqsh but cannot find this file. Can somebody point me in the direction of finding it? If I can get this file then I am confident that I can get the wifi to work. Thanks in advance for your help. - Jemilio3

[How To] Activate Wifi

After many hours of research and trial and error we finally have a working Wifi setup on CM7!
This is what we learned:
-There are specific wifi drivers that must be compiled alongside the kernel (twilan_drv.ko)
-The .ini file are developed when building the drivers that also must be used
-The stock firmware.bin file can be used
-The wifi drivers must be calibrated to work properly and efficiently. This can be done by referencing the WifiBackupConfiguration file found on the /Rom partition
-This device uses the Ti wl1273 wifi/Bluetooth card but is compiled using the wl1283 drivers (The Kindle Fire drivers worked perfectly! Boo you B&N for the no-show)
Here are some simple steps to get it working on your device:
1. Build a kernel (there are several other threads that talk to this like: http://www.nooktabletdev.org/index.php/Making_a_Boot_Image)
2. Get the Kindle Fire Source: http://kindle-src.s3.amazonaws.com/Kindle_src_6.2.2_user_3205220.tar.gz
3. Build the drivers:
Code:
cd <path to KF source>/Source/mydroid/hardware/ti/wlan/wl1283/platforms/os/linux/
make ARCH=arm CROSS_COMPILE=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- KERNEL_DIR=<path to NT source>kernel/android-2.6.35 TNETW=1273
cd ../../../..
cd wl1283_softAP/platforms/os/linux/
make ARCH=arm CROSS_COMPILE=/opt/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- KERNEL_DIR=<path to NT source>kernel/android-2.6.35 TNETW=1273
NOTE: You can use whatever Cross Compiler you want. I found the most success using CodeSourcery Lite (2009 or 2010) for Ubuntu 11.10. Another common path is
Code:
~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
If you are getting build errors it is probably because your kernel path is wrong or you need to try another set of CROSS-COMPILER files.
Note the line 'TNETW=1273' when building. That is the key to building the correct driver version.
4. Copy the drivers and ini files to your /system/etc/wifi folder:
Grab the twlan_drv.ko from the wl1283/platforms/os/linux folder. Also grab the tiwlan.ini file from wl1283/platforms/os/linux folder. Push both of these to your /system/etc/wifi folder.
Next grab the tiap_drv.ko and tiwlan_ap.ini from the wl1283_softAP/platforms/os/linux/ and wl1283_softAP/config folders. Push these to the /system/etc/wifi/softap folder.
5. Ensure your init.omap4430.rc has access to WifiBackupConfiguration
6. Build and install your boot.img using the kernel from step 1
Done! Enjoy the internet again
So, now all that needs to be fixed is SOD? Good news, thank you all for your hard work.
Mephikun said:
So, now all that needs to be fixed is SOD? Good news, thank you all for your hard work.
Click to expand...
Click to collapse
Fixing SoD should be usable enough for first Alpha. Then it is tweaking small things, having everyone find bugs, and fixing them!
Goncezilla said:
Fixing SoD should be usable enough for first Alpha. Then it is tweaking small things, having everyone find bugs, and fixing them!
Click to expand...
Click to collapse
Can't wait to start testing and finally help with the development
If bluetooth is on the same chip as wifi, will this also make bluetioth function?
travisn000 said:
If bluetooth is on the same chip as wifi, will this also make bluetioth function?
Click to expand...
Click to collapse
As of right now bluetooth does not function with these drivers (even though it is turned on in the kernel).
There are however some init.omap4430.rc services that look like they could be enabled to activate blutooth. We are going to try this out soon but are currently working some higher priority functionality issues.
I'll be sure to ammend this thread if we get blutooth working

(Q) Modules for Wifi

Maybe this is a easy solvable problem, but i tried and googled and could solve it. So...
Im trying to compile a wifi module for evervolv kernel...i have the source, also toolchain. Im using ubuntu, and i have problems extracting toolchains path to kernel directory.I have all necessery tools.
Filesystem->android->toolchain folder and kernel source folder -- this is the location of my files (computer name is AcaPC).
And im using this *export PATH=$HOME/android/toolchain-4.6.3/bin:$PATH* (i tried AcaPC for HOME), but im getting error that my path is not correct. I download the source many times and tried everything, but cant get the path correct. Can someone tell me what am i doing wrong?
Thanks!

[Q][SGP311]GPS issues with CM10.1

I did install Cyanogen Mod 10.1 from the link in the "Free Xperia" thread (stable pollux_windy) today. It actually was an update from a nightly version from some days ago. It works pretty well except the gps, which doesn't work at all. I've done some googeling, but I didn't find anyone with similar problems. GPS worked fine for me with the stock rom, so i guess the chip is working. If i use a GPS tester, it shows that 0 satellites are available. I've not switched back to stock to try if it still works, because I had hoped that i could save all the time.
The positioning system works from time to time, but I guess it is only Wifi positioning. If i deactivate the Wifi positioning, it can't get any gps fix.
What i tried so far:
Stop/Reboot/Restart GPS
Wipe Cache and Dalvik Cache
Reboot again and again and again
Comparing the GPS.conf to the one from the stock rom (they are identical)
This is the first time I tried installing a custom rom, so there is a high chance, I did something wrong, but i would really appreciate if someone told me what it was. And please remember, that i'm quite new to the whole custom rom scene.
Not getting any answers at least tells me the problem is not that simple and I am not too stupid.
I thought till now at least anyone would have asked for details or anything.
Please anyone help! I desperately need the GPS!
Woozar said:
Not getting any answers at least tells me the problem is not that simple and I am not too stupid.
I thought till now at least anyone would have asked for details or anything.
Please anyone help! I desperately need the GPS!
Click to expand...
Click to collapse
Woozar,
working now to understand the problem. You know adb connection (debug mode)??. You know how to create logcat.txt??.
Asap I will tell you if I find the solution....
Regards
I just googled it. I need to use usb debug mode and then attach it to a pc with the android ask installed and run the command
Code:
adb logcat -d > logcat.txt
Do I need adb root access for this?
Shall I upload the file to the thread or send it to you personally?
Woozar said:
I just googled it. I need to use usb debug mode and then attach it to a pc with the android ask installed and run the command
Code:
adb logcat -d > logcat.txt
Do I need adb root access for this?
Shall I upload the file to the thread or send it to you personally?
Click to expand...
Click to collapse
make cold reset on GPS status app Pro
download AGPS
Swicth off the tablet
start adb logcat just after power on the tablet.
open GPS status again, download again AGPS.....
wait for searching in open sky area
only stop it after few min gps status is running...lets say 10 minutes.
press Ctrl+C on terminal mac to stop logcat.txt
send logcat.txt link download to me private.
I will use my and yours to search what is failing...
which CM10.1 running now...me experimental 25/06/13.
Sorry no time now...
I am not allowed to post links, so I need to post it like this.
https ://dl.dropboxusercontent.com/u/11941413/1
I hope I did everything as you wanted me to.
Please let me know if you need anything else.
Woozar said:
I am not allowed to post links, so I need to post it like this.
https ://dl.dropboxusercontent.com/u/11941413/1
I hope I did everything as you wanted me to.
Please let me know if you need anything else.
Click to expand...
Click to collapse
logcat.txt was good, but not usefull info errors.
I sent you private message here.
Regards.
Does this affect all sgp311 or does it work for anyone?
Is sgp 312 or 321 affected, too?
I'm in the same boat and after researching the XDA forums for a while it seems to me that GPS is not working in any of the current custom ROM's for our device. If GPS is important for you you would have to stick to the Stock ROM and wait a little bit more until the developers fix it.
For reference:
---------------------------------
SGP311 - Wifi-only Version (16GB) => CyanogenMod 10.1 (pollux_windy) = No GPS
SGP312 - Wifi-only Version (32GB) => CyanogenMod 10.1 (pollux_windy) = No GPS
SGP321 - LTE Version => CyanogenMod 10.1 (pollux) = GPS is working
---------------------------------
Tip: Some very resourceful user suggested a neat workaround where you could use the GPS from a mobile phone in the tablet. I didn't try it yet but it seems to be a good idea:
http://forum.xda-developers.com/showpost.php?p=43159748&postcount=10
I hope this helps!

{Xperia SP}[Help!!!] Ubuntu Touch Porting

Hi, I am new here at XDA so excuse me if this is posted in the wrong category.
I have a couple of questions if someone could help me with the Ubuntu Touch porting.
I got up to "Retrieving the proprietary blobs from Android" and I have encountered a problem.
I am running Cyanogenmod 11.0 nightly build on a Sony Xperia SP huashan, I connected my phone to my computer and made sure that adb detected it (it did) and everything looked fine until I started the extract-files.sh in my /Desktop/Ubuntu Touch/device/sony/huashan/ folder.
After I started up the file in terminal, I received the error of "no such file or directory".
If you want to view the file it is in a github repository under Cyanogenmod/android_device_sony_huashan
If anyone knows how to fix that would be a big help so I could continue porting,
Thanks.
Hi!
I have a similar device too. Did you solve the problem?
XperiaSPNOOBDev said:
Hi, I am new here at XDA so excuse me if this is posted in the wrong category.
I have a couple of questions if someone could help me with the Ubuntu Touch porting.
I got up to "Retrieving the proprietary blobs from Android" and I have encountered a problem.
I am running Cyanogenmod 11.0 nightly build on a Sony Xperia SP huashan, I connected my phone to my computer and made sure that adb detected it (it did) and everything looked fine until I started the extract-files.sh in my /Desktop/Ubuntu Touch/device/sony/huashan/ folder.
After I started up the file in terminal, I received the error of "no such file or directory".
If you want to view the file it is in a github repository under Cyanogenmod/android_device_sony_huashan
If anyone knows how to fix that would be a big help so I could continue porting,
Thanks.
Click to expand...
Click to collapse

Categories

Resources