Reply
Thread Tools
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#721
What's the output of ifconfig, when the phone is connected via USB?
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#722
Originally Posted by mautz View Post
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
 

The Following 2 Users Say Thank You to edp17 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#723
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.
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#724
Probably I need to change something in the kernel config and recompile, but I don't know what change to what value.
 

The Following User Says Thank You to edp17 For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#725
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.
__________________
Dave999: Meateo balloons. What’s so special with em? Is it a ballon?
 

The Following 2 Users Say Thank You to juiceme For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#726
Originally Posted by mautz View Post
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?
 

The Following User Says Thank You to edp17 For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#727
Originally Posted by mautz View Post
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
__________________
Dave999: Meateo balloons. What’s so special with em? Is it a ballon?
 

The Following User Says Thank You to juiceme For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#728
Originally Posted by juiceme View Post
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.
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#
 

The Following User Says Thank You to edp17 For This Useful Post:
edp17's Avatar
Posts: 592 | Thanked: 706 times | Joined on Jul 2019 @ UK
#729
I am very rubish with any network stuff.
 

The Following User Says Thank You to edp17 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#730
@juiceme

Thank you!

@edp17

Maybe you could share your image?
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
Reply

Tags
hammerhead, nexus5, sailfishos, sfdroid


 
Forum Jump


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