maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

mautz 2019-11-17 00:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
To get the sensors working:

You need to create this file:
Code:

/etc/sensorfw/sensord.conf.d/60-sensors-hammerhead.conf
and here you'll find the needed content for the file: https://dpaste.de/BjZg

This has to go in your sparse folder, but you can test it on the phone first :)

edp17 2019-11-17 00:06

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562136)
Have you enabled remote connection and set a password for nemo?
DDo you use port 22?

The port number was wrong, I left it blank and it used 21. Now with 22 it works. Thanks.

mautz 2019-11-17 00:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Regarding the problem with the non storing wifi passwords...i had to build the wifi driver as a module and not directly into the kernel to get SFOS to store the passwords...do not ask me why ;)

So, could be worth a try.

edp17 2019-11-17 00:12

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562139)
Regarding the problem with the non storing wifi passwords...i had to build the wifi driver as a module and not directly into the kernel to get SFOS to store the passwords...do not ask me why ;)

So, could be worth a try.

Do you know the driver name in the kernel config?

Now the screen rotation works. :)
How can I check what sensors do work and what do not?

mautz 2019-11-17 00:17

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Install messwerk from openrepos.net to check sensors.

You need CONFIG_MODULES=y and CONFIG_BCMDHD=m in your defconfig.

edp17 2019-11-17 00:28

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562142)
Install messwerk from openrepos.net to check sensors.

You need CONFIG_MODULES=y and CONFIG_BCMDHD=m in your defconfig.

Thank you.
Excep the position and GNSS Satelites, everything else work now. (At least in messwerk the graphs shows the change.)

Now I am recompiling the kernel to fix the wifi problem.
However it would be good if I have a solution for the mobile data and the missing /android folder issues before I re-build the system again.

Plus, I am not sure whether I need to re-do the 13.2 and 13.3 steps again. And I still don't know how can I include an rpm into the build.

edp17 2019-11-17 00:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Low Power Mode (AKA "sneak peak" or "ambient display") also works. :)

mautz 2019-11-17 00:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Position and Satelites only work when GPS is enabled.

No, you do not need to repeat steps 13.2 and 13.3.

Found the solution for the missing android folder, you need this file:
https://github.com/mautz-kernel/droi.../android.mount

and a symlink to this file in /lib/systemd/system/local-fs.target.wants/

All this stuff also needs to go into the sparse folder.

edp17 2019-11-17 01:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Thank you!

mautz 2019-11-17 01:31

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
This could also be usefull:

https://github.com/mautz-kernel/droi...-links.service

Symlink goes into multi-user.target.wants folder and you need the android-links.sh script from /usr/bin/droid too.

edp17 2019-11-17 01:32

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562145)
Position and Satelites only work when GPS is enabled.

No, you do not need to repeat steps 13.2 and 13.3.

Found the solution for the missing android folder, you need this file:
https://github.com/mautz-kernel/droi.../android.mount

and a symlink to this file in /lib/systemd/system/local-fs.target.wants/

All this stuff also needs to go into the sparse folder.

I have uploaded the file and symlink to the current installation and rebooted. It works!! Thank you!! Now from Sailfish I can access all local files stored on the internal sd card. :D

edp17 2019-11-17 01:37

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562147)
This could also be usefull:

https://github.com/mautz-kernel/droi...-links.service

Symlink goes into multi-user.target.wants folder and you need the android-links.sh script from /usr/bin/droid too.

Is the '/usr/bin/droid' a folder or the droid is the name of the script in '/usr/bin/' ?

Newermind, I got it now. :o
(I need to put the android-links.sh into /usr/bin/droid/ within sparse.)

mautz 2019-11-17 01:38

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
https://github.com/mautz-kernel/droi...droid-links.sh

edp17 2019-11-17 01:52

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
As I am generating multiple images until I get to the final one. It would be easier to maintain what's working and what's not in one post.
Can I add my build and the relevant info to the end of your first post in this topic?
Or can you suggest another best way, please? (May be if I stick a post to be always the second under yours? If so, how can I do that?
Or maybe I should create another topic for this?) Thank you.

mautz 2019-11-17 01:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What about gathering everything in one post and put the link in your signature for the moment?

edp17 2019-11-17 02:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562152)
What about gathering everything in one post and put the link in your signature for the moment?

That also a good idea. I will do it tomorrow. :D Thank you.

Plus I think I will go back and remove the urls pointing to the first few builds. They are not relevant anymore and I don't want to confuse anybody with old WIP (non working) images. :cool:

edp17 2019-11-17 02:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Signature test.

edp17 2019-11-17 02:45

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562139)
Regarding the problem with the non storing wifi passwords...i had to build the wifi driver as a module and not directly into the kernel to get SFOS to store the passwords...do not ask me why ;)

So, could be worth a try.

With putting the wifi driver into module, the wifi cannot be turned on at all. I will test the rest but this requires a fix as now there is no working internet connection as both (data and wifi) is broken.
Would you like to see/test this image?

mautz 2019-11-17 02:58

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sure!
There must be something wrong, my old cm12.1 custom kernels use modules and the wifi worked with them and the passwords were stored too.

mautz 2019-11-17 09:00

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Ok, the problem was that the wifi module does not get loaded at startup.

To fix this create file /etc/modules-load.d/bcmdhd.conf with following content:
Code:

#Load wifi module at startup
bcmdhd

After a reboot everything works as expected.

claustn 2019-11-17 12:42

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Thanks for the new development! Maybe after 3 years I will finally update my Nexus 5 :)

edp17 2019-11-17 23:03

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
A new build in the signature. (Mobile data still not work :( )

mautz 2019-11-17 23:24

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry, i can not test the mobile data part right now because i don't have an adaptor to fit my SIM in the Nexus and my signal here is so weak i am happy if i get 2G...

edp17 2019-11-17 23:33

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562177)
Sorry, i can not test the mobile data part right now because i don't have an adaptor to fit my SIM in the Nexus and my signal here is so weak i am happy if i get 2G...

Thank you. Don't worry about that now. The main problem, I don't know what to look for in dmesg or journalctl. (I lack of knowledge.)

edp17 2019-11-17 23:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
In this last build the camera settings shows ?Mpx however I installed the gstreamer and camres packages. When I run the 'droid-camres -w' command I got:
Code:

[nemo@Sailfish ~]$ droid-camres -w
[I] unknown:0 - Camres version 1.2.3
[I] unknown:0 - Searching cameras...
[I] unknown:0 - Searching resolutions for Primary camera...
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
[C] unknown:0 - Camres error: Failed to start playback.

and it doesn't generate the 'jolla-camera-hw.txt' file.

I have checked your configs in mautz_kernel repo and used a few bits and bobs (bt-sleep, camera resolutions, ...etc/). I am building a new image using those. I hope that will work.

edp17 2019-11-17 23:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I tried to install an app that requires opengl. I got an error:
Code:

Fatal error: nothing provides libhybris-libGLESv1 needed by ...
I thought the cm12.1 layer contains the libGLES by default. Or is it something similar to the camera and requires some extra work?

mautz 2019-11-18 00:04

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What do you mean by "- find out to include the gstreamer and camres packages" You only need the camres package to create the configuration files it isn't needed afterwards so it does not belong into the image. And the gstreamer packet is already in your image when you followed the HADK.

Regarding the timezone, take a look here: https://together.jolla.com/question/...t=votes&page=1

mautz 2019-11-18 00:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by edp17 (Post 1562180)
I tried to install an app that requires opengl. I got an error:
Code:

Fatal error: nothing provides libhybris-libGLESv1 needed by ...
I thought the cm12.1 layer contains the libGLES by default. Or is it something similar to the camera and requires some extra work?

Code:

[nemo@Sailfish ~]$ zypper se libgles
Loading repository data...
Reading installed packages...

S | Name                          | Summary                            | Type 
--+-------------------------------+------------------------------------+--------
i | libhybris-libGLESv2          | OpenGL ES 2.0 for libhybris        | package
  | mesa-llvmpipe-libGLESv1      | Mesa libGLESv1 runtime libraries  | package
  | mesa-llvmpipe-libGLESv1-devel | Mesa libGLESv1 development package | package
  | mesa-llvmpipe-libGLESv2      | Mesa libGLESv2 runtime libraries  | package
  | mesa-llvmpipe-libGLESv2-devel | Mesa libGLESv2 development package | package
[nemo@Sailfish ~]$

So, v2 is installed.

edp17 2019-11-18 00:09

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562181)
What do you mean by "- find out to include the gstreamer and camres packages" You only need the camres package to create the configuration files it isn't needed afterwards so it does not belong into the image. And the gstreamer packet is already in your image when you followed the HADK.

Regarding the timezone, take a look here: https://together.jolla.com/question/...t=votes&page=1

I see. I thought I needed to install the camres rpm everytime, therefore I wanted to include it into the build. Now it does make sense.

Thanks for the pointer to the date time issue. :)

edp17 2019-11-18 00:27

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562177)
Sorry, i can not test the mobile data part right now because i don't have an adaptor to fit my SIM in the Nexus and my signal here is so weak i am happy if i get 2G...

However the 'ps ax | grep rild' returns:
Code:

[root@Sailfish nemo]# ps ax | grep rild
 1071 ?        Sl    0:01 /system/bin/rild
 3223 ?        Ssl    0:00 /system/bin/rild -l libalien_native_ril.so
 6372 pts/0    S+    0:00 grep rild

the logcat shows lots of errors regarding the RIL. logcat

mautz 2019-11-18 00:39

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Which errors?

edp17 2019-11-18 01:07

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562185)
Which errors?

What the logcat shows. Like:
E/RILQ ( 1071): (0/1071): RIL[0][rild] qcril_log_init: Fail to initialize Diag for QCRIL logging

E/RILQ ( 1071): (0/1071): RIL[0][main] qcril_qmi_init_core_client_handles: qcril_qmi_presence_init returned failure(31)
E/RILQ ( 1071): (0/1071): RIL[0][main] qcril_qmi_nas_retrieve_custom_emergency_numbers_co nfigured_value: Invalid value for properties count 0
E/RILQ ( 1071): (0/1071): RIL[0][main] qcril_sms_perform_transport_layer_info_initializat ion: error while retrieving transport layer reg info
E/RILQ ( 1071): (0/1071): RIL[0] get_ecc_property_name: ecc list name : ril.ecclist.

E/RILQ ( 1071): (0/1071): RIL[0][event] qcril_uim_update_pbm_card_event: PBM_HANDLE_CARD 397313 processing Failed!
E/RILQ ( 1071): (0/1071): RIL[0][event] qcril_uim_update_pbm_card_event: PBM_HANDLE_CARD 397314 processing Failed!

I am not sure whether this is connected the issue with the mobile data.


Edit: This was a red herring as these are not errors.

edp17 2019-11-18 01:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I think go to sleep now. Good night!

edp17 2019-11-18 11:20

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have got some other problems. I created a new image (not uploaded yet) to fix the missing camera resolution. This worked, so there is no need to manually copy this file anymore.
However instead of the lock screen, the phone displays a blank screen with the circle is rotating. (It is seemingly waiting for something to finish.)
I waited then tried to swipe and I got to the desktop. Hmm. Then I relised there was no icon for the cell network at all. Hmm again. I went into the settings and the Messages app was dimmed and not available to click on. Finally I realized the 'ril_subscription.conf' file in '/etc/ofono' was missing. I copied in and that solved this issue. (Although the mobile internet still doesn't work.)
I don't really understand why this file disappeared from the build but I added into the droid_config/etc/ofono/ folder and generated a new build.
The file was missing again and I got the same symptom. (No network icon, spinning circle instead of lock screen.) :eek:

The other issue: The contact import wizard is broken. (I got a 'Could not load page' error when I tried to import my contact with it.)
However the import 'From contact file' option works fine.

mautz 2019-11-18 13:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Would be good to get your code on Github, that would make solving such problems much easier. ril_subscriptions.conf needs to be in sparse folder.

edp17 2019-11-18 13:29

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562201)
Would be good to get your code on Github, that would make solving such problems much easier. ril_subscriptions.conf needs to be in sparse folder.

Yes, that is where I put. That's why I am scratching my head why this has not arrived to the phone.

Yes, I am also thinking about pushing things into the github. I am not sure tonight I can work on it as I am tired but I will publish the latest version once I got home. It needs to copy the ril file into the /etc manually but so far this is the best version. (However it is far from complete. :))
Then the next step, before I continue any more work on it will be, pushing things to the github. (I will try to follow the hadk first but probably I will shout out for support. ;))

edp17 2019-11-18 13:46

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Here are my first questions. :)
The hadk says I need to do the following:
Code:

cd kernel/lge/hammerhead
git checkout -b cm-12.1
DEFCONFIG=arch/arm/configs/cyanogenmod_hammerhead_defconfig
git add $DEFCONFIG
git commit -m "Hybris-friendly defconfig"
git remote add edp17 https://github.com/edp17/android_kernel_lge_hammerhead
git push edp17 hybris-12.1

Will or will not the 'git checkout -b cm-12.1' command overwrite my work so far?
Should I fork John's 'android_kernel_lge_hammerhead' before I do these steps above? (Or when I push that will take care of forking/creating/whatever the repo?)

Thank you.

edp17 2019-11-18 14:07

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@mautz
Seemingly the kernel I compiled doesn't support the BT sleep mode. (There is no '/proc/Bluetooth/sleep'. Well, there is no /proc/Bluetooth at all and I just checked and the Bluetooth cannot be turned on.)
Could you let me know what flags needs to switched on the in the defconfig to get this working, please? Thank you.

Edit:
I have found them :D:

CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_H4=y

Edit2: ...and both of them are in my kernel config.

edp17 2019-11-18 22:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562034)
This is a cm13 kernel.
The kernels from my signature do not work, because they are missing this commit:

https://github.com/mautz-kernel/andr...24a69c545958b8

So, you have to add this to your kernel and start to recompile...

I have just realized that I missed to add the last line 'inode->i_mode = S_IFLNK;' :o
I am not sure what difference will this make, but I re-build the package and upload to try.

mautz 2019-11-18 22:27

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
That's why you should use patch files ;-)


All times are GMT. The time now is 16:10.

vBulletin® Version 3.8.8