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-14 21:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What's the output of ifconfig, when the phone is connected via USB?

edp17 2019-11-14 21:21

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

Originally Posted by mautz (Post 1562000)
What's the output of ifconfig, when the phone is connected via USB?

Code:

ifconfig
enp0s29u1u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.20  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::ca60:7701:f7f0:40cf  prefixlen 64  scopeid 0x20<link>
        ether 4e:09:fb:0e:f3:5a  txqueuelen 1000  (Ethernet)
        RX packets 2  bytes 656 (656.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 51  bytes 8717 (8.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp17s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 84:2b:2b:80:6e:3d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3241  bytes 301291 (301.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3241  bytes 301291 (301.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp18s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.86  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a00:23c4:6697:9800:3386:413b:33eb:e9a7  prefixlen 64  scopeid 0x0<global>
        inet6 2a00:23c4:6697:9800:d584:5ba9:3733:61ba  prefixlen 64  scopeid 0x0<global>
        inet6 fdaa:bbcc:ddee:0:d584:5ba9:3733:61ba  prefixlen 64  scopeid 0x0<global>
        inet6 fdaa:bbcc:ddee:0:9b49:3166:84b:52e0  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::56b6:b68e:a450:3b3f  prefixlen 64  scopeid 0x20<link>
        ether 5c:ac:4c:7f:17:0c  txqueuelen 1000  (Ethernet)
        RX packets 29913  bytes 29938016 (29.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 195558
        TX packets 24044  bytes 3392690 (3.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

There is no 192.168.2.15 :(

mautz 2019-11-14 21:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Ok, the problem is that you alreay have a connection in the IP range the phone can be connected to when using USB. The telnet IP is 192.168.2.15, but you are already connected to a network which uses the same IP range via enp0s29u1u1, which should be wired connection. So, when you telnet 192.168.2.15 it uses the ethernet connection, which surely cannot connect. Can yu disable the ethernet connection, and restart the phone? You should get a network device with USB in its name and you should be able to connect.

edp17 2019-11-14 21:27

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Probably I need to change something in the kernel config and recompile, but I don't know what change to what value.

juiceme 2019-11-14 21:30

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Your network setup seems correct, enp0s29u1u1 is the ip over usb interface and it is correctly configured.

You should use command "telnet 192.168.2.15 2323", there's no colon in the command. :D

edp17 2019-11-14 21:31

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

Originally Posted by mautz (Post 1562002)
Ok, the problem is that you alreay have a connection in the IP range the phone can be connected to when using USB. The telnet IP is 192.168.2.15, but you are already connected to a network which uses the same IP range via enp0s29u1u1, which should be wired connection. So, when you telnet 192.168.2.15 it uses the ethernet connection, which surely cannot connect. Can yu disable the ethernet connection, and restart the phone? You should get a network device with USB in its name and you should be able to connect.

I don't really understand this as there is no wired connection is used in my PC. Only the phone plugged in via usb and the main. Plus two other usb memory sticks. Nothing more. So I am not sure about that enp0s29u1u1.
How can I disable the ethernet connection?

juiceme 2019-11-14 21:32

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

Originally Posted by mautz (Post 1562002)
Ok, the problem is that you alreay have a connection in the IP range the phone can be connected to when using USB. The telnet IP is 192.168.2.15, but you are already connected to a network which uses the same IP range via enp0s29u1u1, which should be wired connection. So, when you telnet 192.168.2.15 it uses the ethernet connection, which surely cannot connect. Can yu disable the ethernet connection, and restart the phone? You should get a network device with USB in its name and you should be able to connect.

No need for that, the networks are /24 so it's OK

edp17 2019-11-14 21:35

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

Originally Posted by juiceme (Post 1562004)
Your network setup seems correct, enp0s29u1u1 is the ip over usb interface and it is correctly configured.

You should use command "telnet 192.168.2.15 2323", there's no colon in the command. :D

Hi juiceme!

YES. This was it!

(I disabled enp0s29u1u1 but when I unplugged the phone and plugged back it it appeared again. So, enp0s29u1u1 is the phone!)

Now I got:
Code:

telnet 192.168.2.15 2323
Trying 192.168.2.15...
Connected to 192.168.2.15.
Escape character is '^]'.

Welcome to the Mer/SailfishOS Boat loader debug init system.

Log so far is in /init.log

To make post-switch_root halt before starting systemd, perform:
  touch /init_enter_debug2
(When run post-switch_root, telnet is on port 2323, not 23)

sh-3.2#


edp17 2019-11-14 21:36

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I am very rubish with any network stuff.

mautz 2019-11-14 21:37

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

Thank you!

@edp17

Maybe you could share your image?

edp17 2019-11-14 21:42

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

Originally Posted by mautz (Post 1562009)
@juiceme

Thank you!

@edp17

Maybe you could share your image?

Of course. It is 302MB.
Can you suggest a place to upload?

mautz 2019-11-14 21:45

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

edp17 2019-11-14 21:52

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

Originally Posted by mautz (Post 1562012)
Mediafire for example.

In the meantime I have created an account on Mega. It is uploading.
I let you know the link once it is there.

edp17 2019-11-14 21:54

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What can I do with the telnet session?
It seems the system started but I don't see any obvious reason for not seeing anything on the screen in the 'init.log' file.

mautz 2019-11-14 21:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Check dmesg for errors. Check the systemd log with journalctl for errors. Some services like lipstick seem not to start, that's why you do not see anything.

edp17 2019-11-14 21:59

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The upload completed. Here is the link. --removed--
(However I am not sure what you can do with it.)


Edit: Latest info and image is available in my signature or here

edp17 2019-11-14 22:03

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Please let me know if you have downloaded.

mautz 2019-11-14 22:07

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

Could you also put your defconfig on pastebin?

EDIT: Installing your version.

edp17 2019-11-14 22:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I think I know what is missing from the kernel.
In dmesg there are these two lines:
Code:

[    7.851527] systemd[1]: Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or directory

[    7.859699] systemd[1]: Cannot determine cgroup we are running in: No such file or directory

(there are other red ones but I think these are the important ones)

And I remember among the warnings there were some flags regarding this cgroup. (CONFIG_CGROUP_PERF, CONFIG_CGROUP_DEVICE, CONFIG_NETPRIO_CGROUP, CONFIG_NET_CLS_CGROUP, CONFIG_CGROUP_MEM_RES_CTLR_KMEM, CONFIG_CGROUP_MEM_RES_CTLR_SWAP, CONFIG_CGROUP_MEM_RES_CTLR and CONFIG_BLK_CGROUP)

edp17 2019-11-14 22:13

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

Originally Posted by mautz (Post 1562018)
Downloading atm.

Could you also put your defconfig on pastebin?

EDIT: Installing your version.

Here it is: cyanogenmod_hammerhead_defconfig

Are you using MultiRom?

edp17 2019-11-14 22:17

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

Originally Posted by mautz (Post 1562015)
Check dmesg for errors. Check the systemd log with journalctl for errors. Some services like lipstick seem not to start, that's why you do not see anything.

There is no systemd log. The 'journalctl' command returns with
Code:

No journal files were found.
-- No entries --

(The same if I run as user or root.)

edp17 2019-11-14 22:23

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

Originally Posted by edp17 (Post 1562016)
The upload completed. Here is the link. --deleted--
(However I am not sure what you can do with it.)

I wanted to share the cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip but I just have realized that is available on your first post :D

Edit: Latest info and image is available in my signature or here

edp17 2019-11-14 23:10

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
WOW!!!! I have flashed a kernel from @mautz and after a reboot the screen appeared!!!! :D

Edit: Well, at least I see the language selection screen, however the screen doesn't respond on touch.

mautz 2019-11-14 23:18

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Did the same :-D

edp17 2019-11-14 23:20

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

Originally Posted by mautz (Post 1562024)
Did the same :-D

:D Which one did you flash? I flashed the custom2.1.1.x-build-01.zip

I have tried the v9 kernel from your signature, but it doesn't show the screen and the telnet doesn't work either.

edp17 2019-11-14 23:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
This means something definitely wrong with the kernel. I am double checking all flags from the warning against the mer-kernel-check log you linked in yesterday.

edp17 2019-11-14 23:40

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
The following is wrong in the defconf:
Code:

CONFIG_BT_MSM_SLEEP=y
CONFIG_AUDIT=y

Both of these should be set to n or commented out.

I am just wondering whether any of these can be the root cause of the expected behaviour. :confused:

By the way, can I flash the kernel that I compiled during the build? Or is it part of the sailfish.zip?

mautz 2019-11-14 23:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
What about the CGROUP stuff?

edp17 2019-11-14 23:47

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

Originally Posted by mautz (Post 1562028)
What about the CGROUP stuff?

I have checked them against the mer-kernel-check and all should be unset as they currently are.
Only these two flag were set differently. (As far as I know from my kernel check list.)

I have changed them in the defconfig and started the recompilation.

mautz 2019-11-14 23:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Touch is working!
You need to change evdevtouch:/dev/input/event0 to evdevtouch:/dev/input/event1 in droid-hal-device.conf.

edp17 2019-11-15 00:02

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

Originally Posted by mautz (Post 1562030)
Touch is working!
You need to change evdevtouch:/dev/input/event0 to evdevtouch:/dev/input/event1 in droid-hal-device.conf.

On the device? or in one of the configs and recompile the stuff?

Well, as I already have recompiled the kernel and just started to re-build HAL, I changed this in there and re-started to build HAL again. :)

Are you using the original kernel or the one we flashed after?

mautz 2019-11-15 00:07

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
You have to change it in the configs, no one would like to telnet into the phone and fiddling around with config files ;-)

hybris/droid-configs/sparse/var/lib/environment/compositor/droid-hal-device.conf

edp17 2019-11-15 00:16

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

Originally Posted by mautz (Post 1562032)
You have to change it in the configs, no one would like to telnet into the phone and fiddling around with config files ;-)

hybris/droid-configs/sparse/var/lib/environment/compositor/droid-hal-device.conf

Thank you! I will do it. I thought need to change it somewhere on the phone.
When you posted first I located the file and changed it. Now the rebuild is running.
Well, it just crashed: 'Error <repo>[11/15 00:19:02] : Could not run transaction.'

mautz 2019-11-15 00:18

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

Originally Posted by edp17 (Post 1562025)
:D Which one did you flash? I flashed the custom2.1.1.x-build-01.zip

I have tried the v9 kernel from your signature, but it doesn't show the screen and the telnet doesn't work either.

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...

edp17 2019-11-15 00:25

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 am sorry it is not clear. Do I need to add these changes that listed in that commit (like 'unsigned f_mode = file->f_mode;' ) into my kernel and recompile?

mautz 2019-11-15 00:37

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Yes you need to apply the patch. Download this file:
https://github.com/mautz-kernel/andr...545958b8.patch

and then do a
Code:

git am < 88c1d3ce778da5f5ed12c1e97424a69c545958b8.patch
in your kernel directory to apply the patch.

edp17 2019-11-15 00:38

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Okay, it is clear now. Thank you.

edp17 2019-11-15 00:43

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
It was quicker/easier to manually change the code. :-)
Thank you.

However now the 'rpm/dhd/helpers/build_packages.sh' is keep crashing. :eek:

mautz 2019-11-15 00:46

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

edp17 2019-11-15 00:54

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

Originally Posted by mautz (Post 1562039)
What is the error?

The error was "Error <repo>[11/15 00:19:02] : Could not run transaction."
But don't worry about it now because I recompiled the kernel and restarted building the HAL too. If it crashes again I will check the libhybris.log and give you a shout.


All times are GMT. The time now is 09:08.

vBulletin® Version 3.8.8