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?


All times are GMT. The time now is 05:23.

vBulletin® Version 3.8.8