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)

edp17 2019-11-18 22:35

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

Originally Posted by mautz (Post 1562235)
That's why you should use patch files ;-)

I know, I know, I know. :) And I should do this when I am fresher. (Plus I should read things much much more thoroughly.)

I am happy to learn how to use patches, by the way. ;) Hopefully by the end of this project I will know that too. :o

Once the new image is baked and uploaded I will try to push my work to the github.

edp17 2019-11-18 22:45

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I just read the OBS build and OTA update section in the hadk-faq. It looks complicated. (At this point.)
What makes this even more complicated is, I still cannot post question on the #sailfishos-porters channel. :( :confused:

mautz 2019-11-18 22:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
For me the webchat is working, but why don't you use an IRC client like xchat for example?

FAQ from #sailfishos-porters channel, sometimes it can be quite usefull:
https://github.com/mer-hybris/hadk-faq

The OBS stuff isn't as complicated as it seems at first look.

edp17 2019-11-18 22:59

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

Originally Posted by mautz (Post 1562242)
For me the webchat is working, but why don't you use an IRC client like xchat for example?

I have tried the IRC app in Sailfish and the website too. I will try xchat.

mautz 2019-11-18 23:34

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
https://webchat.freenode.net/

Channel: #sailfishos-porters

is working for me.

edp17 2019-11-18 23:37

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have built a new image and tried. The same symptoms:
- date and time cannot be changed (timed-qt5 must be reinstalled for this)
- bluetooth cannot be switched on,
- no mobile data,
- no video recording,
- cannot install in Storeman
- plus the ril_subscription.conf is missing (manually need to copy o the device)
(plus probably many other things are wrong)

But I have torch and the camera resolutions are ok.

I don't understand these. The bluetooth driver is in the kernel config, the ril file in the sparse/etc/ofono folder.

mautz 2019-11-18 23:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Could you please upload this build? I'd like to test it.

edp17 2019-11-18 23:40

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

Originally Posted by mautz (Post 1562245)
https://webchat.freenode.net/

Channel: #sailfishos-porters

is working for me.

For me when I enter a text and hit the enter: "Cannot send to nick/channel"

edp17 2019-11-18 23:44

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

Originally Posted by mautz (Post 1562247)
Could you please upload this build? I'd like to test it.

Of course. Thank you for testing. It is available in my signature.
Now I try to push some files to the github.

edp17 2019-11-18 23:46

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

Originally Posted by mautz (Post 1562247)
Could you please upload this build? I'd like to test it.

The bluetooth is completely broken as there is no Bluetooth folder in /proc.

edp17 2019-11-18 23:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Are you Matuzone on irc? I see your messages but cannot respond. (the same error)

mautz 2019-11-18 23:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
You need to register your nick.

https://freenode.net/kb/answer/registration

mautz 2019-11-18 23:49

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Downloading...will test it tommorow hopefully.

edp17 2019-11-18 23:49

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

Originally Posted by mautz (Post 1562252)
You need to register your nick.

https://freenode.net/kb/answer/registration

I have tried that too and logged in with my password but didn't make any difference. Now I am trying the xchat.

edp17 2019-11-18 23:59

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

Originally Posted by mautz (Post 1562253)
Downloading...will test it tommorow hopefully.

Thank you. I may try to work out why the ril file is not distributed but maybe I'll continue later. Good night.

edp17 2019-11-19 01:57

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

Originally Posted by edp17 (Post 1562250)
The bluetooth is completely broken as there is no Bluetooth folder in /proc.

No wonder I couldn't find. It is called bluetooth not Bluetooth. And bluetooth indeed does exist in /proc.

edp17 2019-11-19 02:21

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

Originally Posted by mautz (Post 1562253)
Downloading...will test it tommorow hopefully.

I have worked out why the ril file was not distributed.
It is there now but the phone now doesn't pass the initial setup. From the screen 'Starting, please wait' it goes back to the one where it greets me in multiple languages and it is doing this loop.
Okay, I take a break now and trying to go back to an earlier, more or less working version. (I uploaded this last one 0.8 too. Available in my signature.)

mautz 2019-11-19 08:59

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Relating Bluetooth: You need to change droid-config-hammerhead-bluez5 to droid-config-hammerhead-bluez4 in jolla-hw-adaptation-hammerhead.yaml.

The kernel does not support bluez5. Just stick with 4 or try to backport bluez5 to the kernel:

https://github.com/mer-hybris/hadk-f...hci-smd-driver

edp17 2019-11-19 09:04

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

I could not push my files to github but zipped and uploaded here

There is something I have messed up because the last 4 images I created however boots up and the ril and other files are distributed correctly, the phone stuck in a loop between the initial greeting and the license approval screens. I made it available the last one (0.9) in my signature.

mautz 2019-11-19 09:15

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Lots of stuff missing in droid-config-hammerhead.spec.

Please compare with my spec file and missing parts to your file:
https://github.com/mautz-kernel/droi...ammerhead.spec

modem, ofono, community adaptation, dcd path

edp17 2019-11-19 09:35

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

Originally Posted by mautz (Post 1562271)
Lots of stuff missing in droid-config-hammerhead.spec.

Please compare with my spec file and missing parts to your file:
https://github.com/mautz-kernel/droi...ammerhead.spec

modem, ofono, community adaptation, dcd path

Thank you.
What are the dcd and community_adaptation for?

mautz 2019-11-19 10:01

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
dcd only shows the path to droid-config device folder. Community adaptation is needed to get the store working for example.

mautz 2019-11-19 10:06

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Storeman works for me, maybe you need to do a 'pkcon refresh' in the terminal?

edp17 2019-11-19 10:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Oh, I wanted to say, don't bother trying the version that is in the 'initial screen loop'. I will update the configs accordingly and generate a new version (hopefully better that the last one :)). I also use wip0.6 version as that was the most "stable" so far. Thanks.

edp17 2019-11-19 14:04

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

Originally Posted by mautz (Post 1562273)
dcd only shows the path to droid-config device folder. Community adaptation is needed to get the store working for example.

I am just thinking out loud. I didn't have the community_adaptation but the Jolla store works fine. So it seems this is not required for the store anymore. It would be useful what else requires this. Is it getting some extra driver/programs/whatever else?

My other question is about the pixel ration. If I set 1.75, will it work? The hadk-faq says 1.75 is a valid icon_res value, so in theory it should work. I'll try.

edp17 2019-11-19 14:10

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

Originally Posted by mautz (Post 1562269)
Relating Bluetooth: You need to change droid-config-hammerhead-bluez5 to droid-config-hammerhead-bluez4 in jolla-hw-adaptation-hammerhead.yaml.

The kernel does not support bluez5. Just stick with 4 or try to backport bluez5 to the kernel:

https://github.com/mer-hybris/hadk-f...hci-smd-driver

Yeah, I have read this in the hadk-faq yesterday but because I didn't find a few flags in neither John's nor the original CM kernels, I didn't put the missing flags into mine. I will do this too.
Thank you!

edp17 2019-11-19 21:11

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

Originally Posted by mautz (Post 1562271)
Lots of stuff missing in droid-config-hammerhead.spec.

Please compare with my spec file and missing parts to your file:
https://github.com/mautz-kernel/droi...ammerhead.spec

modem, ofono, community adaptation, dcd path

Well, I have double checked my 'droid-config-hammerhead.spec' and only the dcd_path was missing from it. I added.

I applied all three patches for the bluetooth and added the necessary flags into defconfig and changed the bluez5 to 'droid-config-hammerhead-bluez4' in 'jolla-hw-adaptation-hammerhead.yaml'.

I have found an error in the bluetooth patch in tcrypt.c
The lines the patch recommends to add with +
Code:

        case 151:
                ret += tcrypt_test("rfc4106(gcm(aes))");
                break;

+                break;
+
+        case 153:
+                ret += tcrypt_test("cmac(aes)");
+                break;
+
+        case 154:
+                ret += tcrypt_test("cmac(des3_ede)");

        case 200:
                test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,

If I add the code this way, the first 'break;' is an extra and at case 154 the 'break;' is missing,

So, I think the correct code should be
Code:

        case 151:
                ret += tcrypt_test("rfc4106(gcm(aes))");
                break;

+
+        case 153:
+                ret += tcrypt_test("cmac(aes)");
+                break;
+
+        case 154:
+                ret += tcrypt_test("cmac(des3_ede)");
+                break;

        case 200:
                test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0,

The highlighted code (break;) should go where I indicated.
Now, I am ready to compile and rebuild. Will let you know the outcome.

edp17 2019-11-19 21:15

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

Originally Posted by mautz (Post 1562274)
Storeman works for me, maybe you need to do a 'pkcon refresh' in the terminal?

Yes, you were right! It needed a 'pkcon update' at command line. Then it started working. :)

Plus I have tested the hw acceleration with Quake 2. (Not the native version because that needs to be recompiled for the new libhybris-libGLESv2, but the android app from Aptiod.) It plays very smoothly. :D I am not sure whether it has sound though.

edp17 2019-11-19 21:22

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Another question regarding the bluetooth. It seems we are compiling the bluetooth as module in kernel (CONFIG_BT=m) just like the wifi.
But I didn't find any place where the driver is loaded.
For wifi, we added 'bcmdhd' into 'droid-hal-hammerhead.conf' in '/usr/lib/modules-load.d/'

Isn't a similar solution necessary for the bluetooth? Or that just works?

mautz 2019-11-19 22:47

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Sorry, i was looking at the wrong spec file...my fault.

Which patches did you add? For bluez4 you shouldn't need patches or build BT as module or you are going the backport route?

edp17 2019-11-19 23:28

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

Originally Posted by mautz (Post 1562318)
Sorry, i was looking at the wrong spec file...my fault.

Which patches did you add? For bluez4 you shouldn't need patches or build BT as module or you are going the backport route?

No worries. :)

So, what I changed:
- applied all from this
- added the following to the kernel:
CONFIG_BT=m
CONFIG_CRYPTO_CMAC=y
CONFIG_CRYPTO_USER_API=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
- changed the 'droid-config-hammerhead-bluez5' to 'droid-config-hammerhead-bluez4' in 'jolla-hw-adaptation-hammerhead.yaml'
- added the 'bt-sleep-monitor' and 'bt-sleep-timer' from 'droid-config-hammerhead' in mautz_kernel
- added the missing '%define dcd_path ./' into 'droid-config-hammerhead.spec' in 'hybris/droid-configs/rpm'

aaand, that's it. :)
Now I just have flashed the new build and rebooting. Fingers crossed... If it works, I will upload, otherwise I go back to the mine to pull the tram. :rolleyes:

edp17 2019-11-19 23:30

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What is the backport route?

I still have the loop, by the way. :( :(

edp17 2019-11-19 23:41

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
This new image displays the welcome in multiple language, then takes me to the language selection screen, then to the End user licence agreement, then back to the welcome screen.
Hmm.

mautz 2019-11-20 00:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
You only had to change bluez5 to bluez4 in the config file, nothing more.

The patches and kenel config changes are only needed if you want to backport bluez5 to an older kernel which does not support it. So, you mixed up quite a lot i think.

edp17 2019-11-20 00:28

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

Originally Posted by mautz (Post 1562324)
You only had to change bluez5 to bluez4 in the config file, nothing more.

The patches and kenel config changes are only needed if you want to backport bluez5 to an older kernel which does not support it. So, you mixed up quite a lot i think.

I have applied those patches because this is how I read what you suggested regarding the bluetooth. :) I had no idea what the backport means.

Reverted those changes I made (the 3 patches and the defconfig flags) and only kept the bluez5 to bluez4 one and generated a new image. (wip0.11)

And the 'initial settings loop' is still there. All files and services I put into /sparse folder distributed correctly but something else is preventing the phone to step forward from the End of user licence screen. Probably this is related another change I made earlier but I have no clue what that was.

edp17 2019-11-20 09:36

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Good news! Mobile data works! :)
I needed to add the allowDataReq=off line to the end of '/etc/ofono/ril_subscription.conf' file and reboot the phone.

I have tried this on the wip0.6 version.

It means, if I find out why the new images do not pass the End user licence sscreen and the suggested bluetooth fix (bluez5 to bluez4) works (why not), we have a more or less working version! :D

edp17 2019-11-20 09:48

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

Originally Posted by edp17 (Post 1562092)
I am not sure about this commit solve the problem, because almost everything is commented out in there.
Plus I have found the 'ril_subscription.conf' in two locations.
1. /home/edp17/mer/targets/lge-hammerhead-armv7hl/etc/ofono/ril_subscription.conf

2. /home/edp17/mer/toolings/SailfishOS-3.2.0.12/etc/ofono/ril_subscription.conf

Both of them are the same and both of them are the same as the content in the commit. So, I am not sure how this would help.

Seemingly they were not as the same as the content in that commit.
The allowDataReq=off line was missing from them which has caused the non working mobile data.

edp17 2019-11-20 10:36

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
@mautz
I have found these 'dev-ttyHS99.device' and 'hciattach.service' in your repo.
What are these for?
Do I need them?
If yes, where from I can get the '/usr/sbin/hciattach' program/script what the mentioned in the 'hciattach.service'? I didn't find 'hciattach' on the phone either in your repo.
Thank you.

mautz 2019-11-20 12:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I needed these files in order to get bluetooth work. Is it working on your phone?

hciattach is included in the bluez package i think.

edp17 2019-11-20 13:37

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

Originally Posted by mautz (Post 1562338)
I needed these files in order to get bluetooth work. Is it working on your phone?

hciattach is included in the bluez package i think.

Thank you.
Since wip0.6, I included these files but got the loop issue. I thought this was the reason, so removed them. However it was not the reason, I didn't include them into newer images.

Currently I use wip0.6 that has bluez5 and the other version (wip0.11) what I build with bluez4 is broken as cannot go further than the End user licence screen.
So I don't know whether the bluetooth works.

I will give another go and include these two files for another image. But this time I will use the 'make clean' before compiling the kernel and double check all settings (kernel config + patches, .spec files and files in the /sparse folder)
If get the same problem (loop in the initial setting) with the new image too, I will scrap everything and start over from scratch. (I hope won't need to do the latter as downloading the android source takes for very looooong time. :))


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8