Closed Bug 1248718 Opened 8 years ago Closed 8 years ago

Fairphone 2 (FP2) - no data Fetching from Wifi nor Cellular

Categories

(Firefox OS Graveyard :: Wifi, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: i.hoerler, Assigned: _AtilA_)

Details

Attachments

(3 files, 6 obsolete files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160209234642

Steps to reproduce:

I installed (flashed) my Fairphone2 two times. Between i reflashed with the Fairphone OS Android and checked if that works and it works fine so i now open this bug about.
The Firefox OS does not get any Data connection running. Nor a Wifi nor a SIM Data connection.
Model:FP2, Software:Boot2Gecko 2.6.0.0-prerelease, IMEI: Not available, MAC Address: Not available


Actual results:

Wifi didn't connect (the ring circles always.) So i added the SIM and had connection to a Antenna but the data dind't work. Also after checking Data Connection in the Setings under Cellular & Data. Wifi still doesn't connect. 


Expected results:

I expected the phone to receive Data from Wifi or Cellular.
Maybe i can find out more by myself if i cold talk to Juan (witch Juan is it?) who has a Fairphone 2.
@Alexandre LISSY :gerard-majax , wrote that in this post;
https://bugzilla.mozilla.org/show_bug.cgi?id=1244519#c11
and says that it works at Juan's side on FP2. 
Wold be nice to ask him how he flashed his phone...
Maybe his source was bloobfree...
Regards, Novski
Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(jgomez)
Summary: no data Fetching → Fairphone 2 (FP2) - no data Fetching from Wifi nor Cellular
Hi Novsky, both Wifi and LTE should work.
Could you please attach (or https://pastebin.mozilla.org) a logcat?
adb logcat -v threadtime 2>&1 | tee logcat.log

Thanks!
Flags: needinfo?(jgomez)
If you cannot see any IMEI nor MAC then something is obviously wrong on the gonk side ... I cannot help, I don't have that device.
Flags: needinfo?(lissyx+mozillians)
Hi Juan, Thanks for the Reply.
I can not connect with adb. If i copy your code to terminal and it says waiting for Device. If i then connect my device nothing happens. So i had a look to all the options and at the bottom of Developer Config window there is a option to unlock Full DevTools what i tried. I pressed the Enable button 10 times but at the 1 it stops to decrease the number and stays by Tap Enable 1 more times to continue regardless how many times i tap on Enable...
In the topmost menu i have set the Debugging via USB  to ADB and DevTools. and i added al kind of vendor ids i found to be right on the web. have no idea which one is right. 
the strange thing is that i can connect and list my device within the fastboot mode with 'fastboot devices' so something seams weird.
How can i go on?
Hi Juan, Thanks for the Reply.
I can not connect with adb. If i copy your code to terminal and it says waiting for Device. If i then connect my device nothing happens. So i had a look to all the options and at the bottom of Developer Config window there is a option to unlock Full DevTools what i tried. I pressed the Enable button 10 times but at the 1 it stops to decrease the number and stays by Tap Enable 1 more times to continue regardless how many times i tap on Enable...
In the topmost menu i have set the Debugging via USB  to ADB and DevTools. and i added al kind of vendor ids i found to be right on the web. have no idea which one is right. 
the strange thing is that i can connect and list my device within the fastboot mode with 'fastboot devices' so something seams weird.
How can i go on?
ah. do you have the newest bloobs installed? i got sibon-2.0.1 with the last repo update...
Flags: needinfo?(jgomez)
Make sure you have Fairphone's USB vendor ID listed in your $HOME/.android/adb_usb.ini and then adb kill-server.
Attached file logcat.log (obsolete) —
This is the log of my FP2 after adb logcat -v threadtime 2>&1 | tee logcat.log
because of my Wifi and LTE problems on Firefox OS 2.6.0.0
Flags: needinfo?(jgomez)
Flags: needinfo?(jgomez)
Novski,
Can you share this too?
$ adb shell dmesg > dmesg.log
Thanks
Flags: needinfo?(i.hoerler)
Attached file dmesg.log (obsolete) —
Hi Juan, Here is the $ adb shell dmesg > dmesg.log
From my FP2.
Thanks for the Help.
Regardings, Novski
Flags: needinfo?(jgomez)
Flags: needinfo?(i.hoerler)
Flags: needinfo?(jgomez)
I've analized your dmesg by comparing it with mine, and I can't see where is the problem. Once the phone is booted, you have this file: /persist/WCNSS_qcom_wlan_nv.bin , right? This is the Wlan driver and it should be getting loaded while booting, but in your case is not getting loaded.
Have some questions:
Did you change anything in the sources? Kernel config? 
Are you using a clean build from our repositories?
Are you using the vendor blobs version being downloaded while building?
Can you please paste me the content of your /persist partition? $ adb shell ls -la /persist
Flags: needinfo?(jgomez) → needinfo?(i.hoerler)
Hi Juan
Thanks for your investigation. I will answer below:
1. I didn't change anything in this build.
2. Im used this tutorial: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Preparing_for_your_first_B2G_build
and followed the Building guide https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building
And the Device Information shows: 
Boot2Gecko: 2.6.0.0-prerelease, 
Build Number: eng.root.20160212.111750, 
Platform Version: 47.0a1, 
Build Identifier: 201602162001819, 
Git Commit Info: 2016-02-16 18:54:23 - 3b3621bc,
3. yes the vendor blobs are beeing downloaded. version fp2-sibon-2.0.1-blobs.tgz 
I started a build to have a look: 
root@novski-MacBookPro:~/firefox_os/B2G# ./build.sh -j8
including device/qcom/common/vendorsetup.sh
including vendor/qcom/proprietary/vendorsetup.sh
Build with proprietary libs

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
TARGET_PRODUCT=FP2
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-49-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LVY48I
OUT_DIR=out
============================================
including ./abi/cpp/android.mk ...


I also find this path in the B2G/device/fairphone_device/FP2/download-blobs.sh file:

#!/bin/bash

# Copyright (C) 2012 Mozilla Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

EXTRACT_RC="$PWD/extract.rc"

install_blobs() {
    mkdir -p download-$1 &&
    (cd download-$1 && shasum -p -c $2) ||
    rm -rf download-$1/fp2-sibon-2.0.1-blobs.* &&
    curl http://code.fairphone.com/downloads/FP2/blobs/fp2-sibon-2.0.1-blobs.tgz -o download-$1/fp2-sibon-2.0.1-blobs.tgz || exit -1 &&
    tar xvfz download-$1/fp2-sibon-2.0.1-blobs.tgz -C download-$1 || exit -1 &&
    BASH_ENV="$EXTRACT_RC" bash download-$1/fp2-sibon-2.0.1-blobs.sh || exit -1
    # Execute the contents of any vendorsetup.sh files we can find in the vendor blobs
    for f in `test -d vendor && find -L vendor -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null`
    do
         echo "including $f"
         . $f
    done
    unset f
}

CSUM_LIST="$PWD/blob-shasums"

cd ../../.. &&
install_blobs fairphone2 "$CSUM_LIST"


this is the persist you requested: 
root@novski-MacBookPro:~/.android# adb shell ls -la /persist
-rw------- bluetooth bluetooth        9 1970-01-10 15:19 .bt_nv.bin
-rw-r--r-- wifi     wifi        29816 2016-01-27 19:45 WCNSS_qcom_wlan_nv.bin
drwx------ system   system            1970-01-10 15:19 data
drwxrwx--- system   system            1970-01-10 15:19 drm
drwx------ root     root              1970-01-01 01:00 lost+found
drwxrwxr-x root     root              2016-01-27 19:13 sensors
-rwx------ root     root        15360 1970-01-05 11:03 sns.reg
drwxr-x--- root     root              2016-02-12 12:18 svoperapps
drwxr-xr-x root     root              2016-01-27 19:13 usf

don't worry its a linux ubuntu 14.4 native terminal. Only the Hardware is a macbook.
Did you install your Running system with a bloobfree build?
Regards, Novski
Flags: needinfo?(i.hoerler) → needinfo?(jgomez)
Ok, you changed something :) 
We haven't tested with 2.0.1 blobs yet, so I would suggest you to change the download-blobs.sh script, and revert it back to it's origins [1]. It should be downloading 2.0.0 version of the vendor blobs, no 2.0.1.
Let's try a build from the scratch with those blobs and lets see what happens.

To make a build from scratch just:
$ cd B2G/
$ rm -rf out/
$ rm -rf objdir-gecko/
$ ./build.sh showcommands 2>&1 | tee build.log

[1] https://github.com/mozilla-b2g/device-fairphone2/blob/master/download-blobs.sh#L23
Flags: needinfo?(jgomez)
but how is it possible? i realy changed that but then i read someware that the new blobs are now implemented an i wiped out my full B2G folder and did the full process new. Are you shure that its not in the repo already? (sorry i dton't understand much of Git. so..)

im now building with 2.0.0 again. But just to say i had that build and it had the same non working wifi... 
well, we will see. Il get back once flashed... 
Thanks a lot for the help!
Novski


Are you shure that its not in the repo already?
Flags: needinfo?(jgomez)
Attached file build.log.zip (obsolete) —
So, it was quite fast. I think the ccache helped out. Wifi still doesn't work. So maybe it wold be better to clear the ccache as well. What do you think?
Novski
Flags: needinfo?(jgomez)
Attached file build.log.after_clearing-cache.zip (obsolete) —
The new build didn't help in any way. I attached the build log from the second build after clearing ccache with -C & -c anyway.
Attachment #8722155 - Attachment is obsolete: true
Flags: needinfo?(jgomez)
Attached file dmesg.log (obsolete) —
added the new dmesg.log from ccach -c build
Attachment #8721230 - Attachment is obsolete: true
Attached file logcat.log (obsolete) —
now also the logcat.log refreshed. but it run for hours so i quited after 2h.
Attachment #8720447 - Attachment is obsolete: true
Can i somehow help debug? 
Im no Programer so code is nothing i understand until now, but im willing to learn...
Regards, Novski
Flags: needinfo?(jgomez) → needinfo?(lissyx+mozillians)
I can't help you, I don't have this device so I cannot check.
Flags: needinfo?(lissyx+mozillians)
Hi there, Juan can we try to further debug together?
If there is maybe no time on your side, just give me a note...
Regards, Novski
Flags: needinfo?(jgomez)
Yeah, sorry Novski, pretty busy these days :( ... feel free to ping me on IRC #fxos (:_AtilA_), so we could try a real time debugging session :)
Flags: needinfo?(jgomez)
Hi there, im ready for realtime debugging session. :)
I tried to connect through IRC but i dont understand if the text message is been received or not..
Regards, Novski
Flags: needinfo?(jgomez)
Session done,
let's wait for the b2g transitioning plan to move forward with your issue.
Flags: needinfo?(jgomez)
Ok,some repositories lost at some point, but I could be able to restore them. Now Wifi and LTE should woek again.
Novksi, Could you synchronize and test it?
Thanks!

https://github.com/mozilla-b2g/b2g-manifest/commit/8710b8195952e40e1f5775fe62880959d666fec9
Flags: needinfo?(i.hoerler)
Assignee: nobody → jgomez
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
This is the Failure on downloading the blobs
This is the now working download of blobs 2.0.0
(In reply to Novski from comment #26)
> Created attachment 8744587 [details]
> Bildschirmfoto 2016-04-22 um 16.49.40.png
> 
> This is the Failure on downloading the blobs

Where do you see a failure? This is the expected behavior: file not existing, we download the blobs and extract them?
Hi Juan! Thank you for your Work!
I have problems with that build i now made from fresh.
What i did is i cleared the OUT with: rm -rf out and also rm -rf objdir-gecko
then i synced the repo with ./repo sync -d
Now the build worked fine again and i flashed as usual but then the phone reboots and shows the Fairphone Logo white and blue (not fullscreen) after that the grey screen with loading.. stays for hours. I aborted after 1h because the phone got hot.
How can i test what whent wrong when it doesn't boot correct?
Regards, Novski
Hi Novsky, thanks to you!
I would be very interested in building from the very beginning, I mean: no previous sources. So I'd ask you to clone B2G.git and start from here :)
This is what I did (several times) and it worked for me! :)

Thank you so much in advance ;)
(In reply to Novski from comment #29)
> Hi Juan! Thank you for your Work!
> I have problems with that build i now made from fresh.
> What i did is i cleared the OUT with: rm -rf out and also rm -rf objdir-gecko
> then i synced the repo with ./repo sync -d
> Now the build worked fine again and i flashed as usual but then the phone
> reboots and shows the Fairphone Logo white and blue (not fullscreen) after
> that the grey screen with loading.. stays for hours. I aborted after 1h
> because the phone got hot.
> How can i test what whent wrong when it doesn't boot correct?
> Regards, Novski

You could try to recompile the image, this sometimes worked for me. In some of my builds the phone freezes after a certain uptime and I can't tell why. Have you also flashed the userdata partition, if not it could also be caused by this, I forgot it on my first build as well.
I would also like to test the changes of Juan but I don't have my hard drive at hand, so I will try tomorrow.
whats the momentary gcc and g++ version to use?
(In reply to Novski from comment #32)
> whats the momentary gcc and g++ version to use?

4.9 is the recent version of gcc/g++. Previous builds of me worked fine with 4.9.
Hi again. 
So i did this:
in my Virtual Machine with Ubuntu 14.4 id did this two more times:
$ cd B2G/
$ rm -rf out/
$ rm -rf objdir-gecko/
$ ./config.sh fairphone2
$ ./repo sync
$ ./build.sh -j1

Both times it stuck on the grey Loading.. page.

Then i rebooted my machine and even did the same native on ubuntu 14.4
same result.
I also tryed after reinstalling the FPOS (original 1.2.8) and then flashing B2G again.
same.

@sebastian, i think offical gcc/g++ is 4.8 as 4.9 wasn't installed on my machine. With 4.7 build failed.
with 4.8 it worked fine.

any ideas?
Regards, Novski
Flags: needinfo?(i.hoerler) → needinfo?(jgomez)
Hi Novsky,
I don't think the way you built from scratch was correct.
Try the following steps:
$ rm -rf B2G (I want you to remove absolutely all previous sources)
$ git clone https://github.com/mozilla-b2g/B2G
$ cd B2G
$ ./config.sh fairphone2
$ ./build.sh showcommands 2>&1 | tee build.log

That should work! If it doesn't, send me the build.log file (please compress it before) :)
Flags: needinfo?(jgomez)
Hi Juan
I have tried that without success.
What i did:

First Build:
$ rm -rf B2G
$ git clone https://github.com/mozilla-b2g/B2G
$ cd B2G
$ ./config.sh fairphone2
$ ./build.sh showcommands 2>&1 | tee build.log

Second Build:
$ ./repo sync 
$ rm -rf out
$ ccache -C
$ ccache -c
$ ./build.sh showcommands 2>&1 | tee build2.log

Third Build:
$ ./build.sh showcommands 2>&1 | tee build3.log

No success with all... Allways the grey Loading screen for more than 15min.
I will attached the logs with the ecsact names you find in this post but with the date in previous.
If you compare the first with the second you will find the blobs give out an ecception in the first Build but not more in the second Build. I have seen the same behaviour before in the Build i have done on the 24.4.2016.
Seams like if i remove the full folder B2G and go trough the full proccess then the first build can't get the blobs downloaded. But after a ./repo sync it works. Whats the difference?

That happend on 24.4.2016 by downloading from this path: 
$ git clone git://github.com/mozilla-b2g/B2G.git && cd B2G
And now yesterday 25.4.16 with this path from your post, as same:
$ git clone https://github.com/mozilla-b2g/B2G

I don't know the difference so... 
Thanks for any help.
Regards, Novski
Flags: needinfo?(jgomez)
Attachment #8722344 - Attachment is obsolete: true
Attachment #8722346 - Attachment is obsolete: true
Attachment #8722401 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(jgomez)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: